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.

30 lines
467 B

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