Changes between Version 13 and Version 14 of CIVLite
- Timestamp:
- 09/23/23 07:18:58 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CIVLite
v13 v14 87 87 int %s1 = 0; 88 88 89 void t0() {89 void %t0() { 90 90 print "t0 is before the barrier\n"; 91 91 %s0 = 1; … … 94 94 } 95 95 96 void t1() {96 void %t1() { 97 97 print "t1 is before the barrier\n"; 98 98 %s0 -> %s0 = 0; … … 101 101 } 102 102 103 void main() {103 void %main() { 104 104 proc %p0; 105 105 proc %p1; … … 110 110 } 111 111 }}} 112 113 Translation of 114 {{{ 115 if (x>0) { 116 y=1; 117 z=2; 118 } else { 119 y=0; 120 z=3; 121 } 122 }}} 123 124 {{{ 125 int %x; 126 int %y; 127 void %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 }}}
