heptagon/test/good/sampling_stateful_output.ept
2011-12-06 15:44:20 +01:00

20 lines
264 B
Plaintext

node f(c :bool; x :int) returns (y :int)
let
y = (0 fby x) when c
tel
node nn(x:int) returns (y:int)
let
y = 0 fby x
tel
node ff(x:int) returns (y :int)
let
y = x + 1
tel
node g(c :bool) returns (y,y2 :int)
let
y = nn(1) when c;
y2 = ff(1) when c
tel