Skip to content

Commit 0b29a5b

Browse files
committed
Add a liveness property.
Signed-off-by: Markus Alexander Kuppe <[email protected]>
1 parent 43b4c93 commit 0b29a5b

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5177,7 +5177,7 @@
51775177
"mode": "exhaustive search",
51785178
"features": [
51795179
"state constraint",
5180-
"symmetry"
5180+
"liveness"
51815181
],
51825182
"result": "success",
51835183
"distinctStates": 598,

specifications/tcp/MCtcp.cfg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ CONSTANT
66
Peers <- peers
77
Init <- MCInit
88

9-
SYMMETRY
10-
Symmetry
9+
\* Disable symmetry reduction when checking liveness.
10+
\* SYMMETRY
11+
\* Symmetry
1112

1213
SPECIFICATION
1314
Spec
@@ -16,6 +17,9 @@ INVARIANT
1617
TypeOK
1718
Inv
1819

20+
PROPERTY
21+
Prop
22+
1923
CONSTRAINT
2024
NoRetransmission
2125

specifications/tcp/tcp.tla

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Spec ==
261261
/\ [][Next]_vars
262262
/\ WF_vars(System)
263263
\* Would get stuck in SYN-SENT if we don't assert a user command.
264-
/\ WF_vars(\E local, remote \in Peers: CLOSE_CLOSE_WAIT(local, remote))
264+
/\ WF_vars(\E local, remote \in Peers: CLOSE_SYN_SENT(local, remote))
265265

266266
-----------------------------------------------------------------------------
267267

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

275+
Prop ==
276+
\A p \in Peers :
277+
connstate[p] = "SYN-SENT" ~> connstate[p] \in {"ESTABLISHED", "LISTEN", "CLOSED"}
278+
275279
=============================================================================
276280
\* Modification History
277281
\* Created Tue Apr 02 10:38:50 PDT 2024 by markus

0 commit comments

Comments
 (0)