-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Signed-off-by: Markus Alexander Kuppe <[email protected]>
- Loading branch information
Showing
5 changed files
with
422 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
CONSTANTS | ||
A = A | ||
B = B | ||
|
||
CONSTANT | ||
Peers <- peers | ||
|
||
SYMMETRY | ||
Symmetry | ||
|
||
SPECIFICATION | ||
Spec | ||
|
||
INVARIANT | ||
TypeOK | ||
Inv | ||
|
||
CONSTRAINT | ||
NoRetransmission | ||
|
||
ACTION_CONSTRAINT | ||
SingleActiveOpen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
---- MODULE MCtcp ---- | ||
EXTENDS tcp, TLC | ||
|
||
CONSTANTS A, B | ||
peers == {A, B} | ||
Symmetry == Permutations(peers) | ||
|
||
NoRetransmission == | ||
\A p \in Peers : | ||
\A i \in 1..Len(network[p]) - 1 : | ||
network[p][i] # network[p][i + 1] | ||
|
||
SingleActiveOpen == | ||
\* A real system will allow infinitely many active opens of TCP connections. An | ||
\* explicit state model checker like TLC cannot enumerate infinitely many states. | ||
\* Thus, do not allow multiple active opens (the first active open is implicit in Init). | ||
~ \E local, remote \in Peers: | ||
\/ ACTIVE_OPEN(local, remote) | ||
\/ PASSIVE_OPEN(local, remote) | ||
\/ SEND(local, remote) | ||
|
||
============================================================================= | ||
\* Modification History | ||
\* Created Tue Apr 02 10:38:50 PDT 2024 by markus |
Oops, something went wrong.