i... dont know what to commit
This commit is contained in:
24
DieHard.toolbox/.project
Normal file
24
DieHard.toolbox/.project
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>DieHard</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>toolbox.builder.TLAParserBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>toolbox.natures.TLANature</nature>
|
||||
</natures>
|
||||
<linkedResources>
|
||||
<link>
|
||||
<name>DieHard.tla</name>
|
||||
<type>1</type>
|
||||
<locationURI>PARENT-1-PROJECT_LOC/DieHard.tla</locationURI>
|
||||
</link>
|
||||
</linkedResources>
|
||||
</projectDescription>
|
2
DieHard.toolbox/.settings/org.lamport.tla.toolbox.prefs
Normal file
2
DieHard.toolbox/.settings/org.lamport.tla.toolbox.prefs
Normal file
@@ -0,0 +1,2 @@
|
||||
ProjectRootFile=PARENT-1-PROJECT_LOC/DieHard.tla
|
||||
eclipse.preferences.version=1
|
46
DieHard.toolbox/DieHard___Model_1.launch
Normal file
46
DieHard.toolbox/DieHard___Model_1.launch
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.lamport.tla.toolbox.tool.tlc.modelCheck">
|
||||
<stringAttribute key="TLCCmdLineParameters" value=""/>
|
||||
<stringAttribute key="configurationName" value="Model_1"/>
|
||||
<booleanAttribute key="deferLiveness" value="false"/>
|
||||
<intAttribute key="dfidDepth" value="100"/>
|
||||
<booleanAttribute key="dfidMode" value="false"/>
|
||||
<intAttribute key="distributedFPSetCount" value="0"/>
|
||||
<stringAttribute key="distributedNetworkInterface" value="172.31.99.92"/>
|
||||
<intAttribute key="distributedNodesCount" value="1"/>
|
||||
<stringAttribute key="distributedTLC" value="off"/>
|
||||
<stringAttribute key="distributedTLCVMArgs" value=""/>
|
||||
<intAttribute key="fpBits" value="1"/>
|
||||
<intAttribute key="fpIndex" value="1"/>
|
||||
<intAttribute key="maxHeapSize" value="25"/>
|
||||
<intAttribute key="maxSetSize" value="1000000"/>
|
||||
<booleanAttribute key="mcMode" value="true"/>
|
||||
<stringAttribute key="modelBehaviorInit" value="Init"/>
|
||||
<stringAttribute key="modelBehaviorNext" value="Next"/>
|
||||
<stringAttribute key="modelBehaviorSpec" value=""/>
|
||||
<intAttribute key="modelBehaviorSpecType" value="2"/>
|
||||
<stringAttribute key="modelBehaviorVars" value="big, small"/>
|
||||
<stringAttribute key="modelComments" value=""/>
|
||||
<booleanAttribute key="modelCorrectnessCheckDeadlock" value="false"/>
|
||||
<listAttribute key="modelCorrectnessInvariants">
|
||||
<listEntry value="1TypeOK"/>
|
||||
<listEntry value="1big # 4"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="modelCorrectnessProperties"/>
|
||||
<stringAttribute key="modelExpressionEval" value=""/>
|
||||
<stringAttribute key="modelParameterActionConstraint" value=""/>
|
||||
<listAttribute key="modelParameterConstants"/>
|
||||
<stringAttribute key="modelParameterContraint" value=""/>
|
||||
<listAttribute key="modelParameterDefinitions"/>
|
||||
<stringAttribute key="modelParameterModelValues" value="{}"/>
|
||||
<stringAttribute key="modelParameterNewDefinitions" value=""/>
|
||||
<intAttribute key="numberOfWorkers" value="2"/>
|
||||
<booleanAttribute key="recover" value="false"/>
|
||||
<stringAttribute key="result.mail.address" value=""/>
|
||||
<intAttribute key="simuAril" value="-1"/>
|
||||
<intAttribute key="simuDepth" value="100"/>
|
||||
<intAttribute key="simuSeed" value="-1"/>
|
||||
<stringAttribute key="specName" value="DieHard"/>
|
||||
<stringAttribute key="view" value=""/>
|
||||
<booleanAttribute key="visualizeStateGraph" value="false"/>
|
||||
</launchConfiguration>
|
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.lamport.tla.toolbox.tool.tlc.modelCheck">
|
||||
<stringAttribute key="TLCCmdLineParameters" value=""/>
|
||||
<stringAttribute key="configurationName" value="Model_1_SnapShot_1545406431357"/>
|
||||
<booleanAttribute key="deferLiveness" value="false"/>
|
||||
<intAttribute key="dfidDepth" value="100"/>
|
||||
<booleanAttribute key="dfidMode" value="false"/>
|
||||
<intAttribute key="distributedFPSetCount" value="0"/>
|
||||
<stringAttribute key="distributedNetworkInterface" value="172.31.99.92"/>
|
||||
<intAttribute key="distributedNodesCount" value="1"/>
|
||||
<stringAttribute key="distributedTLC" value="off"/>
|
||||
<stringAttribute key="distributedTLCVMArgs" value=""/>
|
||||
<intAttribute key="fpBits" value="1"/>
|
||||
<intAttribute key="fpIndex" value="1"/>
|
||||
<intAttribute key="maxHeapSize" value="25"/>
|
||||
<intAttribute key="maxSetSize" value="1000000"/>
|
||||
<booleanAttribute key="mcMode" value="true"/>
|
||||
<stringAttribute key="modelBehaviorInit" value="Init"/>
|
||||
<stringAttribute key="modelBehaviorNext" value="Next"/>
|
||||
<stringAttribute key="modelBehaviorSpec" value=""/>
|
||||
<intAttribute key="modelBehaviorSpecType" value="2"/>
|
||||
<stringAttribute key="modelBehaviorVars" value="big, small"/>
|
||||
<stringAttribute key="modelComments" value=""/>
|
||||
<booleanAttribute key="modelCorrectnessCheckDeadlock" value="false"/>
|
||||
<listAttribute key="modelCorrectnessInvariants"/>
|
||||
<listAttribute key="modelCorrectnessProperties"/>
|
||||
<stringAttribute key="modelExpressionEval" value=""/>
|
||||
<stringAttribute key="modelParameterActionConstraint" value=""/>
|
||||
<listAttribute key="modelParameterConstants"/>
|
||||
<stringAttribute key="modelParameterContraint" value=""/>
|
||||
<listAttribute key="modelParameterDefinitions"/>
|
||||
<stringAttribute key="modelParameterModelValues" value="{}"/>
|
||||
<stringAttribute key="modelParameterNewDefinitions" value=""/>
|
||||
<intAttribute key="numberOfWorkers" value="2"/>
|
||||
<booleanAttribute key="recover" value="false"/>
|
||||
<stringAttribute key="result.mail.address" value=""/>
|
||||
<intAttribute key="simuAril" value="-1"/>
|
||||
<intAttribute key="simuDepth" value="100"/>
|
||||
<intAttribute key="simuSeed" value="-1"/>
|
||||
<stringAttribute key="specName" value="DieHard"/>
|
||||
<stringAttribute key="view" value=""/>
|
||||
<booleanAttribute key="visualizeStateGraph" value="false"/>
|
||||
</launchConfiguration>
|
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.lamport.tla.toolbox.tool.tlc.modelCheck">
|
||||
<stringAttribute key="TLCCmdLineParameters" value=""/>
|
||||
<stringAttribute key="configurationName" value="Model_1_SnapShot_1545406506746"/>
|
||||
<booleanAttribute key="deferLiveness" value="false"/>
|
||||
<intAttribute key="dfidDepth" value="100"/>
|
||||
<booleanAttribute key="dfidMode" value="false"/>
|
||||
<intAttribute key="distributedFPSetCount" value="0"/>
|
||||
<stringAttribute key="distributedNetworkInterface" value="172.31.99.92"/>
|
||||
<intAttribute key="distributedNodesCount" value="1"/>
|
||||
<stringAttribute key="distributedTLC" value="off"/>
|
||||
<stringAttribute key="distributedTLCVMArgs" value=""/>
|
||||
<intAttribute key="fpBits" value="1"/>
|
||||
<intAttribute key="fpIndex" value="1"/>
|
||||
<intAttribute key="maxHeapSize" value="25"/>
|
||||
<intAttribute key="maxSetSize" value="1000000"/>
|
||||
<booleanAttribute key="mcMode" value="true"/>
|
||||
<stringAttribute key="modelBehaviorInit" value="Init"/>
|
||||
<stringAttribute key="modelBehaviorNext" value="Next"/>
|
||||
<stringAttribute key="modelBehaviorSpec" value=""/>
|
||||
<intAttribute key="modelBehaviorSpecType" value="2"/>
|
||||
<stringAttribute key="modelBehaviorVars" value="big, small"/>
|
||||
<stringAttribute key="modelComments" value=""/>
|
||||
<booleanAttribute key="modelCorrectnessCheckDeadlock" value="false"/>
|
||||
<listAttribute key="modelCorrectnessInvariants">
|
||||
<listEntry value="1TypeOK"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="modelCorrectnessProperties"/>
|
||||
<stringAttribute key="modelExpressionEval" value=""/>
|
||||
<stringAttribute key="modelParameterActionConstraint" value=""/>
|
||||
<listAttribute key="modelParameterConstants"/>
|
||||
<stringAttribute key="modelParameterContraint" value=""/>
|
||||
<listAttribute key="modelParameterDefinitions"/>
|
||||
<stringAttribute key="modelParameterModelValues" value="{}"/>
|
||||
<stringAttribute key="modelParameterNewDefinitions" value=""/>
|
||||
<intAttribute key="numberOfWorkers" value="2"/>
|
||||
<booleanAttribute key="recover" value="false"/>
|
||||
<stringAttribute key="result.mail.address" value=""/>
|
||||
<intAttribute key="simuAril" value="-1"/>
|
||||
<intAttribute key="simuDepth" value="100"/>
|
||||
<intAttribute key="simuSeed" value="-1"/>
|
||||
<stringAttribute key="specName" value="DieHard"/>
|
||||
<stringAttribute key="view" value=""/>
|
||||
<booleanAttribute key="visualizeStateGraph" value="false"/>
|
||||
</launchConfiguration>
|
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="org.lamport.tla.toolbox.tool.tlc.modelCheck">
|
||||
<stringAttribute key="TLCCmdLineParameters" value=""/>
|
||||
<stringAttribute key="configurationName" value="Model_1_SnapShot_1545406592577"/>
|
||||
<booleanAttribute key="deferLiveness" value="false"/>
|
||||
<intAttribute key="dfidDepth" value="100"/>
|
||||
<booleanAttribute key="dfidMode" value="false"/>
|
||||
<intAttribute key="distributedFPSetCount" value="0"/>
|
||||
<stringAttribute key="distributedNetworkInterface" value="172.31.99.92"/>
|
||||
<intAttribute key="distributedNodesCount" value="1"/>
|
||||
<stringAttribute key="distributedTLC" value="off"/>
|
||||
<stringAttribute key="distributedTLCVMArgs" value=""/>
|
||||
<intAttribute key="fpBits" value="1"/>
|
||||
<intAttribute key="fpIndex" value="1"/>
|
||||
<intAttribute key="maxHeapSize" value="25"/>
|
||||
<intAttribute key="maxSetSize" value="1000000"/>
|
||||
<booleanAttribute key="mcMode" value="true"/>
|
||||
<stringAttribute key="modelBehaviorInit" value="Init"/>
|
||||
<stringAttribute key="modelBehaviorNext" value="Next"/>
|
||||
<stringAttribute key="modelBehaviorSpec" value=""/>
|
||||
<intAttribute key="modelBehaviorSpecType" value="2"/>
|
||||
<stringAttribute key="modelBehaviorVars" value="big, small"/>
|
||||
<stringAttribute key="modelComments" value=""/>
|
||||
<booleanAttribute key="modelCorrectnessCheckDeadlock" value="false"/>
|
||||
<listAttribute key="modelCorrectnessInvariants">
|
||||
<listEntry value="1TypeOK"/>
|
||||
<listEntry value="1big # 4"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="modelCorrectnessProperties"/>
|
||||
<stringAttribute key="modelExpressionEval" value=""/>
|
||||
<stringAttribute key="modelParameterActionConstraint" value=""/>
|
||||
<listAttribute key="modelParameterConstants"/>
|
||||
<stringAttribute key="modelParameterContraint" value=""/>
|
||||
<listAttribute key="modelParameterDefinitions"/>
|
||||
<stringAttribute key="modelParameterModelValues" value="{}"/>
|
||||
<stringAttribute key="modelParameterNewDefinitions" value=""/>
|
||||
<intAttribute key="numberOfWorkers" value="2"/>
|
||||
<booleanAttribute key="recover" value="false"/>
|
||||
<stringAttribute key="result.mail.address" value=""/>
|
||||
<intAttribute key="simuAril" value="-1"/>
|
||||
<intAttribute key="simuDepth" value="100"/>
|
||||
<intAttribute key="simuSeed" value="-1"/>
|
||||
<stringAttribute key="specName" value="DieHard"/>
|
||||
<stringAttribute key="view" value=""/>
|
||||
<booleanAttribute key="visualizeStateGraph" value="false"/>
|
||||
</launchConfiguration>
|
46
DieHard.toolbox/Model_1/DieHard.tla
Normal file
46
DieHard.toolbox/Model_1/DieHard.tla
Normal 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
|
11
DieHard.toolbox/Model_1/MC.cfg
Normal file
11
DieHard.toolbox/Model_1/MC.cfg
Normal 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
|
22
DieHard.toolbox/Model_1/MC.tla
Normal file
22
DieHard.toolbox/Model_1/MC.tla
Normal 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
|
46
DieHard.toolbox/Model_1_SnapShot_1545406431357/DieHard.tla
Normal file
46
DieHard.toolbox/Model_1_SnapShot_1545406431357/DieHard.tla
Normal 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
|
7
DieHard.toolbox/Model_1_SnapShot_1545406431357/MC.cfg
Normal file
7
DieHard.toolbox/Model_1_SnapShot_1545406431357/MC.cfg
Normal file
@@ -0,0 +1,7 @@
|
||||
\* INIT definition
|
||||
INIT
|
||||
init_154540641525210000
|
||||
\* NEXT definition
|
||||
NEXT
|
||||
next_154540641525211000
|
||||
\* Generated on Fri Dec 21 16:33:35 CET 2018
|
14
DieHard.toolbox/Model_1_SnapShot_1545406431357/MC.tla
Normal file
14
DieHard.toolbox/Model_1_SnapShot_1545406431357/MC.tla
Normal file
@@ -0,0 +1,14 @@
|
||||
---- MODULE MC ----
|
||||
EXTENDS DieHard, TLC
|
||||
|
||||
\* INIT definition @modelBehaviorInit:0
|
||||
init_154540641525210000 ==
|
||||
Init
|
||||
----
|
||||
\* NEXT definition @modelBehaviorNext:0
|
||||
next_154540641525211000 ==
|
||||
Next
|
||||
----
|
||||
=============================================================================
|
||||
\* Modification History
|
||||
\* Created Fri Dec 21 16:33:35 CET 2018 by veitheller
|
46
DieHard.toolbox/Model_1_SnapShot_1545406506746/DieHard.tla
Normal file
46
DieHard.toolbox/Model_1_SnapShot_1545406506746/DieHard.tla
Normal 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
|
10
DieHard.toolbox/Model_1_SnapShot_1545406506746/MC.cfg
Normal file
10
DieHard.toolbox/Model_1_SnapShot_1545406506746/MC.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
\* INIT definition
|
||||
INIT
|
||||
init_154540649359515000
|
||||
\* NEXT definition
|
||||
NEXT
|
||||
next_154540649359516000
|
||||
\* INVARIANT definition
|
||||
INVARIANT
|
||||
inv_154540649359517000
|
||||
\* Generated on Fri Dec 21 16:34:53 CET 2018
|
18
DieHard.toolbox/Model_1_SnapShot_1545406506746/MC.tla
Normal file
18
DieHard.toolbox/Model_1_SnapShot_1545406506746/MC.tla
Normal file
@@ -0,0 +1,18 @@
|
||||
---- MODULE MC ----
|
||||
EXTENDS DieHard, TLC
|
||||
|
||||
\* INIT definition @modelBehaviorInit:0
|
||||
init_154540649359515000 ==
|
||||
Init
|
||||
----
|
||||
\* NEXT definition @modelBehaviorNext:0
|
||||
next_154540649359516000 ==
|
||||
Next
|
||||
----
|
||||
\* INVARIANT definition @modelCorrectnessInvariants:0
|
||||
inv_154540649359517000 ==
|
||||
TypeOK
|
||||
----
|
||||
=============================================================================
|
||||
\* Modification History
|
||||
\* Created Fri Dec 21 16:34:53 CET 2018 by veitheller
|
46
DieHard.toolbox/Model_1_SnapShot_1545406592577/DieHard.tla
Normal file
46
DieHard.toolbox/Model_1_SnapShot_1545406592577/DieHard.tla
Normal 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
|
11
DieHard.toolbox/Model_1_SnapShot_1545406592577/MC.cfg
Normal file
11
DieHard.toolbox/Model_1_SnapShot_1545406592577/MC.cfg
Normal 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
|
22
DieHard.toolbox/Model_1_SnapShot_1545406592577/MC.tla
Normal file
22
DieHard.toolbox/Model_1_SnapShot_1545406592577/MC.tla
Normal 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
|
Reference in New Issue
Block a user