Skip to content

Commit

Permalink
Add a liveness property.
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Alexander Kuppe <[email protected]>
  • Loading branch information
lemmy committed Apr 6, 2024
1 parent 43b4c93 commit 64a9291
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5177,11 +5177,11 @@
"mode": "exhaustive search",
"features": [
"state constraint",
"symmetry"
"liveness"
],
"result": "success",
"distinctStates": 598,
"totalStates": 3196,
"distinctStates": 1182,
"totalStates": 6322,
"stateDepth": 14
}
]
Expand Down
8 changes: 6 additions & 2 deletions specifications/tcp/MCtcp.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ CONSTANT
Peers <- peers
Init <- MCInit

SYMMETRY
Symmetry
\* Disable symmetry reduction when checking liveness.
\* SYMMETRY
\* Symmetry

SPECIFICATION
Spec
Expand All @@ -16,6 +17,9 @@ INVARIANT
TypeOK
Inv

PROPERTY
Prop

CONSTRAINT
NoRetransmission

Expand Down
6 changes: 5 additions & 1 deletion specifications/tcp/tcp.tla
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Spec ==
/\ [][Next]_vars
/\ WF_vars(System)
\* Would get stuck in SYN-SENT if we don't assert a user command.
/\ WF_vars(\E local, remote \in Peers: CLOSE_CLOSE_WAIT(local, remote))
/\ WF_vars(\E local, remote \in Peers: CLOSE_SYN_SENT(local, remote))

-----------------------------------------------------------------------------

Expand All @@ -272,6 +272,10 @@ Inv ==
\A local, remote \in { p \in Peers : network[p] = <<>> } :
connstate[local] = "ESTABLISHED" <=> connstate[remote] = "ESTABLISHED"

Prop ==
\A p \in Peers :
connstate[p] = "SYN-SENT" ~> connstate[p] \in {"ESTABLISHED", "LISTEN", "CLOSED"}

=============================================================================
\* Modification History
\* Created Tue Apr 02 10:38:50 PDT 2024 by markus
Expand Down

0 comments on commit 64a9291

Please sign in to comment.