22 lines
553 B
Plaintext
22 lines
553 B
Plaintext
--------------------------- MODULE SimpleProgram ---------------------------
|
|
|
|
EXTENDS Integers
|
|
VARIABLES i, pc
|
|
|
|
Init == (pc = "start") /\ (i = 0)
|
|
|
|
Pick == /\ pc = "start"
|
|
/\ i' \in 0..1000
|
|
/\ pc' = "middle"
|
|
|
|
Add1 == /\ pc = "middle"
|
|
/\ i' = i + 1
|
|
/\ pc' = "done"
|
|
|
|
Next == Pick \/ Add1
|
|
|
|
=============================================================================
|
|
\* Modification History
|
|
\* Last modified Fri Dec 21 15:46:32 CET 2018 by veitheller
|
|
\* Created Fri Dec 21 15:45:07 CET 2018 by veitheller
|