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.

28 lines
429 B

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