surete tp1
This commit is contained in:
parent
41bc6fdbf2
commit
a85bb57d9a
12 changed files with 199 additions and 0 deletions
15
surete/tp1/sequential/count_succ_true.ec
Normal file
15
surete/tp1/sequential/count_succ_true.ec
Normal file
|
@ -0,0 +1,15 @@
|
|||
node count_succ_true
|
||||
(i: bool)
|
||||
returns
|
||||
(o: int);
|
||||
|
||||
var
|
||||
V12_prev_i: bool;
|
||||
V13_prev_o: int;
|
||||
|
||||
let
|
||||
o = (if (i and V12_prev_i) then (V13_prev_o + 1) else V13_prev_o);
|
||||
V12_prev_i = (false -> (pre i));
|
||||
V13_prev_o = (0 -> (pre o));
|
||||
tel
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue