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