You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
266 B
20 lines
266 B
|
|
dtmc
|
|
|
|
module main
|
|
s : [0..3] init 0;
|
|
|
|
[] s=0 -> 0.4 : (s'=1) + 0.4 : (s'=2) + 0.2 : (s'=3);
|
|
[a] s=1 -> 1 : (s'=0);
|
|
[b] s=2 -> 1 : (s'=0);
|
|
[] s=3 -> 1 : (s'=3);
|
|
endmodule
|
|
|
|
rewards "first"
|
|
[a] true : 1;
|
|
endrewards
|
|
|
|
rewards "second"
|
|
[b] true : 2;
|
|
endrewards
|
|
|