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