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
392 B

  1. ma
  2. module main
  3. x : [0..4];
  4. [a] x=0 -> 0.5 : (x'=1) + 0.5 : (x'=0);
  5. [b] x=0 -> (x'=2);
  6. <> x=1 -> 6 : (x'=2) + 4 : (x'=4);
  7. <> x=2 -> 5 : (x'=2) + 5 : (x'=3);
  8. [c] x=3 -> 0.3 : (x'=2) + 0.7 : (x'=4);
  9. [d] x=3 -> 0.3 : (x'=4) + 0.7 : (x'=2);
  10. <> x=4 -> 5 : (x'=3);
  11. endmodule
  12. rewards "first"
  13. true : 3;
  14. [] x=2 : 10;
  15. [d] true : 5;
  16. endrewards
  17. rewards "second"
  18. x<2 : 42;
  19. endrewards