i... dont know what to commit

This commit is contained in:
2018-12-27 16:07:37 +01:00
commit 70c944a2b7
88 changed files with 5671 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
------------------------------ MODULE DieHard ------------------------------
EXTENDS Integers
VARIABLES small, big
TypeOK == /\ small \in 0..3
/\ big \in 0..5
Init == /\ small = 0
/\ big = 0
FillSmall == /\ big' = big
/\ small' = 3
FillBig == /\ big' = 5
/\ small' = small
EmptySmall == /\ big' = big
/\ small' = 0
EmptyBig == /\ big' = 0
/\ small' = small
SmallToBig == IF big + small <= 5
THEN /\ big' = big + small
/\ small' = 0
ELSE /\ big' = 5
/\ small' = small - (5 - big)
BigToSmall == IF big + small <= 3
THEN /\ big' = 0
/\ small' = big + small
ELSE /\ small' = 3
/\ big' = big - (3 - small)
Next == \/ FillSmall
\/ FillBig
\/ EmptySmall
\/ EmptyBig
\/ SmallToBig
\/ BigToSmall
=============================================================================
\* Modification History
\* Last modified Fri Dec 21 16:33:15 CET 2018 by veitheller
\* Created Fri Dec 21 16:16:46 CET 2018 by veitheller

View File

@@ -0,0 +1,11 @@
\* INIT definition
INIT
init_154540658308222000
\* NEXT definition
NEXT
next_154540658308223000
\* INVARIANT definition
INVARIANT
inv_154540658308324000
inv_154540658308325000
\* Generated on Fri Dec 21 16:36:23 CET 2018

View File

@@ -0,0 +1,22 @@
---- MODULE MC ----
EXTENDS DieHard, TLC
\* INIT definition @modelBehaviorInit:0
init_154540658308222000 ==
Init
----
\* NEXT definition @modelBehaviorNext:0
next_154540658308223000 ==
Next
----
\* INVARIANT definition @modelCorrectnessInvariants:0
inv_154540658308324000 ==
TypeOK
----
\* INVARIANT definition @modelCorrectnessInvariants:1
inv_154540658308325000 ==
big # 4
----
=============================================================================
\* Modification History
\* Created Fri Dec 21 16:36:23 CET 2018 by veitheller