Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. MODULE m
  2. VAR
  3. c: boolean;
  4. n: 0..2;
  5. ASSIGN
  6. init(c) := FALSE;
  7. next(c) := case
  8. c: FALSE;
  9. n < 2: {TRUE, FALSE};
  10. n=2: TRUE;
  11. esac;
  12.  
  13. init(n) := 0;
  14. next(n) := case
  15. ! next(c): (n + 1) mod 3;
  16. next(c): 0;
  17. esac;
  18.  
  19. SPEC AX(c | AX(c | AX c))
  20. SPEC AX(c | AX c)
  21.  
  22. MODULE main
  23. VAR
  24. proc: m;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement