heptagon/examples/heptreax/modes.ept
Gwenaël Delaval f720c1844f Added example heptreax
Example heptreax, use of ReaX controller synthesis tool for verification
and controller synthesis.
2015-09-17 16:21:05 +02:00

20 lines
309 B
Text

node twomodes (v:int) = (o:int)
contract
assume (v <= 1) & (v >= 0)
enforce (o <= 10) & (o >= 0)
with (c:bool)
var last y : int = 0;
let
o = y;
automaton
state Up
do y = last y + v
until not c then Down
state Down
do y = last y - v
until not c then Up
end
tel