mdp
module M
s : [0..3];
[go] s=0 -> (s'=1);
[safe] s=1 -> 0.7:(s'=0) + 0.3:(s'=2);
[risk] s=1 -> 0.5:(s'=2) + 0.5:(s'=3);
[finish] s=2 -> (s'=2);
[stop] s=3 -> (s'=3);
[reset] s=3 -> (s'=0);
endmodule
module A_ltl
q : [0..2];
[go] q=0 -> (q'=0);
[safe] q=0 -> (q'=0);
[risk] q=0 -> (q'=1);
[finish] q=0 -> (q'=0);
[stop] q=0 -> (q'=0);
[reset] q=0 -> (q'=0);
[go] q=1 -> (q'=1);
[safe] q=1 -> (q'=1);
[risk] q=1 -> (q'=1);
[finish] q=1 -> (q'=2);
[stop] q=1 -> (q'=1);
[reset] q=1 -> (q'=1);
[go] q=2 -> (q'=1);
[safe] q=2 -> (q'=1);
[risk] q=2 -> (q'=1);
[finish] q=2 -> (q'=2);
[stop] q=2 -> (q'=1);
[reset] q=2 -> (q'=1);
endmodule
label "L1" = q=1;
label "K1" = q=2;