UniTO/anno2/YearI/SecondSem/VPC/labs/analisi/3.2/terminazione.smv
Francesco Mecca 5e286062f8 MCAD 2019
2018-11-22 13:09:11 +01:00

21 lines
256 B
Text

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