UniTO/anno2/YearI/SecondSem/VPC/labs/analisi/3.2/terminazione.smv

22 lines
256 B
Text
Raw Normal View History

2018-11-22 13:09:11 +01:00
MODULE main
VAR
x : -1..20;
increment : process inc(x);
reset : process res(x);
ASSIGN
init(x) := 0;
SPEC
AF(x = -1 )
MODULE inc(y)
ASSIGN
next(y) := (y+1) mod 20;
FAIRNESS
running
MODULE res(y)
ASSIGN
next(y) := -1 ;
FAIRNESS
running