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.

22 lines
334 B

  1. mdp
  2. module main
  3. x : [0..4] init 0;
  4. [a] x=0 -> 1/10 : (x'=1) + 9/10 : (x'=0);
  5. [b] x=0 -> 1/4 : (x'=1) + 3/4 : (x'=2);
  6. [] x=2 -> (x'=3);
  7. [] x=3 -> 1/2 : (x'=2) + 1/2 : (x'=3);
  8. [] x=3 -> 1/3 : (x'=3) + 2/3 : (x'=4);
  9. [] x=4 -> (x'=0);
  10. endmodule
  11. rewards "a"
  12. [a] true : 2/5;
  13. endrewards
  14. rewards "b"
  15. [b] true : 1;
  16. endrewards