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

8 years ago
  1. mdp
  2. module one
  3. x : [0 .. 2] init 0;
  4. [a] x=0 -> (x'=1);
  5. [] x>=0 -> (x'=2);
  6. [done] x>=1 -> true;
  7. endmodule
  8. module two
  9. y : [0 .. 2] init 0;
  10. [b] y=0 -> (y'=1);
  11. [] y>=0 -> (y'=2);
  12. [done] y>=1 -> true;
  13. endmodule
  14. module three
  15. z : [0 .. 2] init 0;
  16. [a] z=0 -> (z'=1);
  17. [] x=0&y=0&z=1 -> (z'=2);
  18. [loop] z>=1 -> true;
  19. endmodule
  20. system
  21. ((one || two {b <- a}) / {a}) {done <- loop} || three
  22. endsystem