i... dont know what to commit
This commit is contained in:
21
SimpleProgram.tla
Normal file
21
SimpleProgram.tla
Normal file
@@ -0,0 +1,21 @@
|
||||
--------------------------- 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
|
Reference in New Issue
Block a user