Changes between Version 13 and Version 14 of CIVLite


Ignore:
Timestamp:
09/23/23 07:18:58 (3 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CIVLite

    v13 v14  
    8787int %s1 = 0;
    8888
    89 void t0() {
     89void %t0() {
    9090  print "t0 is before the barrier\n";
    9191  %s0 = 1;
     
    9494}
    9595
    96 void t1() {
     96void %t1() {
    9797  print "t1 is before the barrier\n";
    9898  %s0 -> %s0 = 0;
     
    101101}
    102102
    103 void main() {
     103void %main() {
    104104  proc %p0;
    105105  proc %p1;
     
    110110}
    111111}}}
     112
     113Translation of
     114{{{
     115if (x>0) {
     116  y=1;
     117  z=2;
     118} else {
     119  y=0;
     120  z=3;
     121}
     122}}}
     123
     124{{{
     125int %x;
     126int %y;
     127void %main() {
     128  %x>0 -> ;
     129  or
     130  else -> ; goto @L1;
     131  %y=1;
     132  %z=2; goto @L2;
     133@L1:
     134  %y=0;
     135  %z=3;
     136@L2: ;
     137}
     138}}}