raz / conform / run / Blank.raz

24 lines · 417 B · raw · history · last change 9ca6cfc3

1module Blank;
2import Out;
3var calls: I64;
4proc pair(a, b: I64): (I64, I64);
5begin
6 INC(calls);
7 return a, b;
8end;
9proc count: I64;
10begin
11 INC(calls);
12 return calls;
13end;
14proc main*;
15var n, k: I64;
16begin
17 _ := count();
18 n, _ := pair(1, 2);
19 _, k := pair(3, 4);
20 _, _ := pair(5, 6);
21 _ := n + k;
22 Out.int(n); Out.str(" "); Out.int(k); Out.str(" "); Out.int(calls); Out.ln;
23end;
24end Blank.