This web page was written on:
30 August 2021
The video was produced on:
7 April 2017
Copy
button below it, or by your usual method of copying
text.
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
SimpleProgram .