int loc = 0; // location of Main
clock x;
// synchronization for controllable transition
broadcast chan c1, c2, c3, c4;
// synchronization for uncontrollable transition
broadcast chan u1, u2;
clock time;
MyCon
Accept
L5
M31
M30
M20
M11
M10
M00
M01
L3
L2
L1
L0
Init
Main
clock e; // engery consumption
int s = 0; // transition steps
L0
L1
L2
L3
L4
goal
system Main, MyCon;