20 lines
560 B
Text
20 lines
560 B
Text
--------------------------- 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 Mon Feb 03 15:18:32 CET 2025 by fredericmarand
|
|
\* Created Mon Feb 03 09:48:31 CET 2025 by fredericmarand
|