Skip to content

Commit

Permalink
Typed model values in consensus spec (#6229)
Browse files Browse the repository at this point in the history
  • Loading branch information
heidihoward authored Jun 6, 2024
1 parent 43ae533 commit d554f45
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 157 deletions.
46 changes: 23 additions & 23 deletions tla/consensus/MCccfraft.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,33 @@ CONSTANTS

Nil = Nil

Follower = Follower
Candidate = Candidate
Leader = Leader
None = None
Follower = L_Follower
Candidate = L_Candidate
Leader = L_Leader
None = L_None

Active = Active
RetirementOrdered = RetirementOrdered
RetirementSigned = RetirementSigned
RetirementCompleted = RetirementCompleted
RetiredCommitted = RetiredCommitted
Active = R_Active
RetirementOrdered = R_RetirementOrdered
RetirementSigned = R_RetirementSigned
RetirementCompleted = R_RetirementCompleted
RetiredCommitted = R_RetiredCommitted

RequestVoteRequest = RequestVoteRequest
RequestVoteResponse = RequestVoteResponse
AppendEntriesRequest = AppendEntriesRequest
AppendEntriesResponse = AppendEntriesResponse
ProposeVoteRequest = ProposeVoteRequest
RequestVoteRequest = M_RequestVoteRequest
RequestVoteResponse = M_RequestVoteResponse
AppendEntriesRequest = M_AppendEntriesRequest
AppendEntriesResponse = M_AppendEntriesResponse
ProposeVoteRequest = M_ProposeVoteRequest

OrderedNoDup = OrderedNoDup
Ordered = Ordered
ReorderedNoDup = ReorderedNoDup
Reordered = Reordered
Guarantee = OrderedNoDup
OrderedNoDup = N_OrderedNoDup
Ordered = N_Ordered
ReorderedNoDup = N_ReorderedNoDup
Reordered = N_Reordered
Guarantee = N_OrderedNoDup

TypeEntry = Entry
TypeSignature = Signature
TypeReconfiguration = Reconfiguration
TypeRetired = Retired
TypeEntry = T_Entry
TypeSignature = T_Signature
TypeReconfiguration = T_Reconfiguration
TypeRetired = T_Retired

NodeOne = n1
NodeTwo = n2
Expand Down
54 changes: 27 additions & 27 deletions tla/consensus/MCccfraftAtomicReconfig.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,33 @@ CONSTANTS

Nil = Nil

Follower = Follower
Candidate = Candidate
Leader = Leader
None = None

Active = Active
RetirementOrdered = RetirementOrdered
RetirementSigned = RetirementSigned
RetirementCompleted = RetirementCompleted
RetiredCommitted = RetiredCommitted

RequestVoteRequest = RequestVoteRequest
RequestVoteResponse = RequestVoteResponse
AppendEntriesRequest = AppendEntriesRequest
AppendEntriesResponse = AppendEntriesResponse
ProposeVoteRequest = ProposeVoteRequest

OrderedNoDup = OrderedNoDup
Ordered = Ordered
ReorderedNoDup = ReorderedNoDup
Reordered = Reordered
Guarantee = OrderedNoDup

TypeEntry = Entry
TypeSignature = Signature
TypeReconfiguration = Reconfiguration
TypeRetired = Retired
Follower = L_Follower
Candidate = L_Candidate
Leader = L_Leader
None = L_None

Active = R_Active
RetirementOrdered = R_RetirementOrdered
RetirementSigned = R_RetirementSigned
RetirementCompleted = R_RetirementCompleted
RetiredCommitted = R_RetiredCommitted

RequestVoteRequest = M_RequestVoteRequest
RequestVoteResponse = M_RequestVoteResponse
AppendEntriesRequest = M_AppendEntriesRequest
AppendEntriesResponse = M_AppendEntriesResponse
ProposeVoteRequest = M_ProposeVoteRequest

OrderedNoDup = N_OrderedNoDup
Ordered = N_Ordered
ReorderedNoDup = N_ReorderedNoDup
Reordered = N_Reordered
Guarantee = N_OrderedNoDup

TypeEntry = T_Entry
TypeSignature = T_Signature
TypeReconfiguration = T_Reconfiguration
TypeRetired = T_Retired

NodeOne = n1
NodeTwo = n2
Expand Down
54 changes: 27 additions & 27 deletions tla/consensus/MCccfraftWithReconfig.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,33 @@ CONSTANTS

Nil = Nil

Follower = Follower
Candidate = Candidate
Leader = Leader
None = None

Active = Active
RetirementOrdered = RetirementOrdered
RetirementSigned = RetirementSigned
RetirementCompleted = RetirementCompleted
RetiredCommitted = RetiredCommitted

RequestVoteRequest = RequestVoteRequest
RequestVoteResponse = RequestVoteResponse
AppendEntriesRequest = AppendEntriesRequest
AppendEntriesResponse = AppendEntriesResponse
ProposeVoteRequest = ProposeVoteRequest

OrderedNoDup = OrderedNoDup
Ordered = Ordered
ReorderedNoDup = ReorderedNoDup
Reordered = Reordered
Guarantee = OrderedNoDup

TypeEntry = Entry
TypeSignature = Signature
TypeReconfiguration = Reconfiguration
TypeRetired = Retired
Follower = L_Follower
Candidate = L_Candidate
Leader = L_Leader
None = L_None

Active = R_Active
RetirementOrdered = R_RetirementOrdered
RetirementSigned = R_RetirementSigned
RetirementCompleted = R_RetirementCompleted
RetiredCommitted = R_RetiredCommitted

RequestVoteRequest = M_RequestVoteRequest
RequestVoteResponse = M_RequestVoteResponse
AppendEntriesRequest = M_AppendEntriesRequest
AppendEntriesResponse = M_AppendEntriesResponse
ProposeVoteRequest = M_ProposeVoteRequest

OrderedNoDup = N_OrderedNoDup
Ordered = N_Ordered
ReorderedNoDup = N_ReorderedNoDup
Reordered = N_Reordered
Guarantee = N_OrderedNoDup

TypeEntry = T_Entry
TypeSignature = T_Signature
TypeReconfiguration = T_Reconfiguration
TypeRetired = T_Retired

NodeOne = n1
NodeTwo = n2
Expand Down
54 changes: 27 additions & 27 deletions tla/consensus/SIMCoverageccfraft.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,33 @@ CONSTANTS

Nil = Nil

Follower = Follower
Candidate = Candidate
Leader = Leader
None = None

Active = Active
RetirementOrdered = RetirementOrdered
RetirementSigned = RetirementSigned
RetirementCompleted = RetirementCompleted
RetiredCommitted = RetiredCommitted

RequestVoteRequest = RequestVoteRequest
RequestVoteResponse = RequestVoteResponse
AppendEntriesRequest = AppendEntriesRequest
AppendEntriesResponse = AppendEntriesResponse
ProposeVoteRequest = ProposeVoteRequest

OrderedNoDup = OrderedNoDup
Ordered = Ordered
ReorderedNoDup = ReorderedNoDup
Reordered = Reordered
Guarantee = OrderedNoDup

TypeEntry = Entry
TypeSignature = Signature
TypeReconfiguration = Reconfiguration
TypeRetired = Retired
Follower = L_Follower
Candidate = L_Candidate
Leader = L_Leader
None = L_None

Active = R_Active
RetirementOrdered = R_RetirementOrdered
RetirementSigned = R_RetirementSigned
RetirementCompleted = R_RetirementCompleted
RetiredCommitted = R_RetiredCommitted

RequestVoteRequest = M_RequestVoteRequest
RequestVoteResponse = M_RequestVoteResponse
AppendEntriesRequest = M_AppendEntriesRequest
AppendEntriesResponse = M_AppendEntriesResponse
ProposeVoteRequest = M_ProposeVoteRequest

OrderedNoDup = N_OrderedNoDup
Ordered = N_Ordered
ReorderedNoDup = N_ReorderedNoDup
Reordered = N_Reordered
Guarantee = N_OrderedNoDup

TypeEntry = T_Entry
TypeSignature = T_Signature
TypeReconfiguration = T_Reconfiguration
TypeRetired = T_Retired

NodeOne = n1
NodeTwo = n2
Expand Down
54 changes: 27 additions & 27 deletions tla/consensus/SIMccfraft.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,33 @@ CONSTANTS

Nil = Nil

Follower = Follower
Candidate = Candidate
Leader = Leader
None = None

Active = Active
RetirementOrdered = RetirementOrdered
RetirementSigned = RetirementSigned
RetirementCompleted = RetirementCompleted
RetiredCommitted = RetiredCommitted

RequestVoteRequest = RequestVoteRequest
RequestVoteResponse = RequestVoteResponse
AppendEntriesRequest = AppendEntriesRequest
AppendEntriesResponse = AppendEntriesResponse
ProposeVoteRequest = ProposeVoteRequest

OrderedNoDup = OrderedNoDup
Ordered = Ordered
ReorderedNoDup = ReorderedNoDup
Reordered = Reordered
Guarantee = OrderedNoDup

TypeEntry = Entry
TypeSignature = Signature
TypeReconfiguration = Reconfiguration
TypeRetired = Retired
Follower = L_Follower
Candidate = L_Candidate
Leader = L_Leader
None = L_None

Active = R_Active
RetirementOrdered = R_RetirementOrdered
RetirementSigned = R_RetirementSigned
RetirementCompleted = R_RetirementCompleted
RetiredCommitted = R_RetiredCommitted

RequestVoteRequest = M_RequestVoteRequest
RequestVoteResponse = M_RequestVoteResponse
AppendEntriesRequest = M_AppendEntriesRequest
AppendEntriesResponse = M_AppendEntriesResponse
ProposeVoteRequest = M_ProposeVoteRequest

OrderedNoDup = N_OrderedNoDup
Ordered = N_Ordered
ReorderedNoDup = N_ReorderedNoDup
Reordered = N_Reordered
Guarantee = N_OrderedNoDup

TypeEntry = T_Entry
TypeSignature = T_Signature
TypeReconfiguration = T_Reconfiguration
TypeRetired = T_Retired

NodeOne = n1
NodeTwo = n2
Expand Down
52 changes: 26 additions & 26 deletions tla/consensus/Traceccfraft.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -56,34 +56,34 @@ CONSTANTS

Nil = Nil

Follower = Follower
Candidate = Candidate
Leader = Leader
None = None

Active = Active
RetirementOrdered = RetirementOrdered
RetirementSigned = RetirementSigned
RetirementCompleted = RetirementCompleted
RetiredCommitted = RetiredCommitted

RequestVoteRequest = RequestVoteRequest
RequestVoteResponse = RequestVoteResponse
AppendEntriesRequest = AppendEntriesRequest
AppendEntriesResponse = AppendEntriesResponse
ProposeVoteRequest = ProposeVoteRequest

OrderedNoDup = OrderedNoDup
Ordered = Ordered
ReorderedNoDup = ReorderedNoDup
Reordered = Reordered
Follower = L_Follower
Candidate = L_Candidate
Leader = L_Leader
None = L_None

Active = R_Active
RetirementOrdered = R_RetirementOrdered
RetirementSigned = R_RetirementSigned
RetirementCompleted = R_RetirementCompleted
RetiredCommitted = R_RetiredCommitted

RequestVoteRequest = M_RequestVoteRequest
RequestVoteResponse = M_RequestVoteResponse
AppendEntriesRequest = M_AppendEntriesRequest
AppendEntriesResponse = M_AppendEntriesResponse
ProposeVoteRequest = M_ProposeVoteRequest

OrderedNoDup = N_OrderedNoDup
Ordered = N_Ordered
ReorderedNoDup = N_ReorderedNoDup
Reordered = N_Reordered
\* Ordered instead of OrderedNoDup compared to ordinary model checking.
Guarantee = Ordered
Guarantee = N_Ordered

TypeEntry = TypeEntry
TypeSignature = TypeSignature
TypeReconfiguration = TypeReconfiguration
TypeRetired = Retired
TypeEntry = T_Entry
TypeSignature = T_Signature
TypeReconfiguration = T_Reconfiguration
TypeRetired = T_Retired

\* state.h my_node_id is a string.
NodeOne = "0"
Expand Down

0 comments on commit d554f45

Please sign in to comment.