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.

31 lines
459 B

  1. mdp
  2. module main
  3. s : [0..6] init 6;
  4. [] s=6 -> 1 : (s'=0);
  5. [] s=6 -> 1 : (s'=5);
  6. [a] s=5 -> 1 : (s'=5);
  7. [b] s=5 -> 1 : (s'=1);
  8. [] s=0 -> 1/10: (s'=1) + 9/10: (s'=3);
  9. [] s=0 -> 1/10: (s'=1) + 9/10: (s'=4);
  10. [a] s=3 -> 1: (s'=0);
  11. [b] s=3 -> 1: (s'=0);
  12. [] s=1 -> 1: (s'=2);
  13. [] s=2 -> 1: (s'=2);
  14. endmodule
  15. rewards "first"
  16. [a] true : 1;
  17. endrewards
  18. rewards "second"
  19. [b] s=3 : 1;
  20. [b] s=5 : 2;
  21. endrewards
  22. rewards "third"
  23. true : 0.7;
  24. endrewards