heptagon/test/good/memalloc_clocks.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

14 lines
241 B
Plaintext

node f(c:bool) = (o:int)
var last t:int^100 = 1^100;
let
t = merge c ((last t) when c) ([((last t) whenot c) with [0] = 0]);
o = t[0];
tel
node main() returns (o:int)
var c:bool;
let
c = true fby true fby false fby c;
o = f(c);
tel