Test to watch sampling of returned stateful exps.
parent
f76667e042
commit
fe1f02402b
@ -0,0 +1,20 @@
|
||||
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
|
@ -0,0 +1,17 @@
|
||||
node f(a : int) = (o : int)
|
||||
var x : int; c : bool;
|
||||
let
|
||||
c = true fby false fby c;
|
||||
x = 0 fby ((merge c a (x whenot c)) + 1);
|
||||
o = x when c
|
||||
tel
|
||||
|
||||
node g(a : int) = (o : int)
|
||||
var x1, x2:int; c1, c2: bool;
|
||||
let
|
||||
c1 = true fby false fby c1;
|
||||
c2 = true fby false fby c2;
|
||||
x1 = 0 fby ((merge c1 a (x1 whenot c1)) + 1);
|
||||
x2 = 0 fby ((merge c2 x1 (x2 whenot c2)) + 1);
|
||||
o = x2 when c2 when c1;
|
||||
tel
|
Loading…
Reference in New Issue