| 1 | module Recover; |
| 2 | |
| 3 | import Out; |
| 4 | |
| 5 | type |
| 6 | P = record a: I64; b: Foo; end; |
| 7 | Q = record a: I64; end; |
| 8 | |
| 9 | var g: Bar; |
| 10 | h: I64; |
| 11 | |
| 12 | proc f(x: I64): I64; |
| 13 | var b: BOOL; |
| 14 | begin |
| 15 | b := x; |
| 16 | x := y + 1; |
| 17 | x := y * 2; |
| 18 | if x = 1 then |
| 19 | x := (x + 2) * b; |
| 20 | Out.int(z); |
| 21 | end; |
| 22 | return x + true; |
| 23 | end f; |
| 24 | |
| 25 | proc g2(): Q; |
| 26 | var q: Q; |
| 27 | begin |
| 28 | q.c := 1; |
| 29 | h := g; |
| 30 | Out.str("hi") |
| 31 | return q; |
| 32 | end g2; |
| 33 | |
| 34 | proc main*(); |
| 35 | begin |
| 36 | Out.int(f(1)); |
| 37 | Out.int(nope(2)); |
| 38 | end main; |
| 39 | |
| 40 | end Recover. |