heptagon/test/good/sampling_stateful_output2.ept
Gwenal Delaval 87f359a6fd Added main to several tests
Added main to tests
Added dependency statics -> statics2 in scripts
2012-07-17 17:57:04 +02:00

31 lines
409 B
Plaintext

node f(x:int) returns (y:int)
var z :int;
let
z = 3;
y = 0 fby z;
tel
node ff(x:int; c:bool) returns (y:int)
var z :int;
let
z = 3;
y = (0 fby z) when c;
tel
node fff(x:int; c:bool) returns ()
var z :int; y:int;
let
z = 3;
y = (0 fby z) when c;
tel
node main() returns (x,y:int)
var c:bool;
let
x = f(0);
c = false fby false fby true fby c;
y = merge c (ff(0,c)) 0;
() = fff(0,c);
tel