Skip to content

Commit 872c7c0

Browse files
committed
Unify TLC models for locks_auxiliary_vars
1 parent f52239b commit 872c7c0

8 files changed

Lines changed: 7 additions & 19 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
SPECIFICATION SpecHS
22
INVARIANTS TypeOKHS InvHS LockInv
3-
PROPERTIES Spec
3+
PROPERTIES Spec PSpec

specifications/locks_auxiliary_vars/LockHS.tla

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ NoHistoryChange(A) == A /\ UNCHANGED h_turn
2626
VARIABLE s
2727
INSTANCE Stuttering
2828

29+
\* This theorem justifies the validity of the introduced stuttering variable
30+
\* in definition l1HS
2931
THEOREM StutterConstantCondition(1..2, 1, LAMBDA j : j-1)
3032
<1>. DEFINE InvD(S) == {sig \in (1..2) \ S : sig-1 \in S}
3133
R[n \in Nat] == IF n = 0 THEN {1}
@@ -125,6 +127,7 @@ P == INSTANCE Peterson WITH
125127
pc <- [p \in ProcSet |-> pc_translation(p, pc[p], s)],
126128
c <- [p \in ProcSet |-> c_translation(pc_translation(p, pc[p], s))],
127129
turn <- h_turn
130+
PSpec == P!Spec
128131

129132
-------------------------------------------------------------------------------
130133

specifications/locks_auxiliary_vars/MCLockHS.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

specifications/locks_auxiliary_vars/MCLockHS.tla

Lines changed: 0 additions & 7 deletions
This file was deleted.

specifications/locks_auxiliary_vars/MCPeterson.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

specifications/locks_auxiliary_vars/MCPeterson.tla

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
SPECIFICATION Spec
2-
INVARIANTS TypeOK Inv
2+
INVARIANTS TypeOK Inv
3+
PROPERTY LSpec

specifications/locks_auxiliary_vars/Peterson.tla

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ lock_translation == IF \E p \in ProcSet : pc[p] \in {"cs", "a4"} THEN 0 ELSE 1
106106
L == INSTANCE Lock
107107
WITH pc <- [p \in ProcSet |-> pc_translation(pc[p])],
108108
lock <- lock_translation
109+
LSpec == L!Spec
109110

110111
-------------------------------------------------------------------------------
111112

0 commit comments

Comments
 (0)