| 1 | module Resync; |
| 2 | |
| 3 | import Out; |
| 4 | |
| 5 | proc a(x: I64); |
| 6 | begin |
| 7 | if x = 1 then |
| 8 | x := 2; |
| 9 | Out.int(x); |
| 10 | end a; |
| 11 | |
| 12 | proc b(x: I64); |
| 13 | begin |
| 14 | while x > 0 do x := x - 1 end; |
| 15 | x := ) + 2; |
| 16 | match x |
| 17 | | 1: x := true; |
| 18 | end; |
| 19 | end b; |
| 20 | |
| 21 | proc c(x: I64); |
| 22 | begin |
| 23 | x := 1 +; |
| 24 | |
| 25 | proc d(x: I64); |
| 26 | begin |
| 27 | x := false; |
| 28 | end d; |
| 29 | |
| 30 | proc main*(); |
| 31 | begin |
| 32 | a(1); b(2); c(3); d(4); |
| 33 | end main; |
| 34 | |
| 35 | end Resync. |