You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
442 B
Plaintext
29 lines
442 B
Plaintext
node f(x:bool;c:bool) returns (o:bool)
|
|
let
|
|
automaton
|
|
state A
|
|
var l:bool; do
|
|
l = x when c;
|
|
o = merge c (true -> l) (false -> false)
|
|
until true then B
|
|
state B
|
|
do o = false
|
|
end
|
|
tel
|
|
|
|
|
|
(*
|
|
node clock_on<<pref, per : int>>(w1, w2 : bool) returns (o : bool)
|
|
let
|
|
automaton
|
|
state FirstPeriod
|
|
var w2' : bool; do
|
|
w2' = w1 when w2;
|
|
o = false;
|
|
until true then Cruise
|
|
state Cruise do
|
|
o = true;
|
|
end
|
|
tel
|
|
*)
|