Model speedometer¶
Cited in: [GopanR07] fig. 4 p. 10.
Figure¶
Source code¶
model gopan_reps_cav06_10 {
var d, t, s, c;
states n1, n4, n6, n5, n2, n3;
transition t4 := {
from := n1;
to := n4;
guard := true;
action := ;
};
transition t1 := {
from := n1;
to := n2;
guard := true;
action := ;
};
transition t7 := {
from := n4;
to := n6;
guard := s >= c;
action := ;
};
transition t5 := {
from := n4;
to := n5;
guard := s < c;
action := ;
};
transition t8 := {
from := n6;
to := n1;
guard := true;
action := ;
};
transition t6 := {
from := n5;
to := n6;
guard := true;
action := d' = d + 1, s' = s + 1;
};
transition t2 := {
from := n2;
to := n3;
guard := true;
action := t' = t + 1, s' = 0;
};
transition t3 := {
from := n3;
to := n6;
guard := true;
action := ;
};
}
strategy gopan_reps_cav06_10_s {
Region init := {state = n1 && d = 0 && t = 0 && s = 0};
}