Skip to content

Commit

Permalink
Limit the global length of all logs to 7 during model checking.
Browse files Browse the repository at this point in the history
(Maintains the checked state space)

Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
  • Loading branch information
lemmy committed Sep 27, 2024
1 parent e14391a commit 8620bd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tla/consensus/MCabs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ PROPERTIES
AppendOnlyProp

SYMMETRY
Symmetry
Symmetry

CONSTRAINT
MaxLogLengthConstraint
4 changes: 4 additions & 0 deletions tla/consensus/MCabs.tla
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ CONSTANTS NodeOne, NodeTwo, NodeThree
MCServers == {NodeOne, NodeTwo, NodeThree}
MCTerms == 2..4

\* Limit length of logs to terminate model checking.
MaxLogLengthConstraint ==
\A i \in Servers :
Len(cLogs[i]) <= 7
====

0 comments on commit 8620bd4

Please sign in to comment.