Guest User

Untitled

a guest
Dec 11th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. MODULE main
  2. VAR
  3. p : boolean;
  4. q : boolean;
  5. r : boolean;
  6. state : {l0, l1, l2};
  7.  
  8. ASSIGN
  9. init(state) := l0;
  10. next(state) :=
  11. case
  12. state = l0 : {l1};
  13. state = l1 : {l0,l2};
  14. state = l2 : {l2};
  15. esac;
  16.  
  17. init(p) := TRUE;
  18. init(q) := TRUE;
  19. init(r) := FALSE;
  20.  
  21. next(p) := next(state) = l0;
  22. next(q) := next(state) = l0 | next(state) = l1;
  23. next(r) := next(state) = l1 | next(state) = l2;
  24.  
  25. LTLSPEC G(F(q));
Add Comment
Please, Sign In to add comment