2022-12-18 09:41:22 +01:00
|
|
|
node aux (i: int) returns (a, b: int);
|
|
|
|
let
|
|
|
|
a = 1 -> pre i;
|
|
|
|
b = 2 * i -> (3 * pre i);
|
|
|
|
tel
|
|
|
|
|
|
|
|
node n (i: int) returns (o1, o2: int);
|
2022-12-18 13:38:40 +01:00
|
|
|
var u1, u2, t1, t2: int; c: bool;
|
2022-12-18 09:41:22 +01:00
|
|
|
let
|
2022-12-18 10:41:36 +01:00
|
|
|
c = true -> not pre c;
|
|
|
|
(t1, t2) = aux (i) when c;
|
2022-12-18 13:38:40 +01:00
|
|
|
(u1, u2) = aux (i) when (not c);
|
|
|
|
o1 = merge c t1 u1;
|
|
|
|
o2 = merge c t2 u2;
|
2022-12-18 09:41:22 +01:00
|
|
|
tel
|