heptagon/examples/heptreax/twomodes.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

19 lines
294 B
Text

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