-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtcp.tla
30 lines (23 loc) · 937 Bytes
/
tcp.tla
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-------------------------------- MODULE tcp --------------------------------
VARIABLES senderState, receiverState
vars == <<senderState, receiverState>>
SYN == /\ senderState = "WAITING"
/\ receiverState = "WAITING"
/\ senderState' = "OPENING"
SYNACK == /\ senderState = "OPENING"
/\ receiverState = "WAITING"
/\ receiverState' = "OPEN"
ACK == /\ senderState = "OPENING"
/\ receiverState = "OPEN"
/\ senderState' = "OPEN"
Next == \/ SYN /\ UNCHANGED <<receiverState>>
\/ SYNACK /\ UNCHANGED <<senderState>>
\/ ACK /\ UNCHANGED <<receiverState>>
Init == /\ senderState = "WAITING"
/\ receiverState = "WAITING"
Spec == /\ Init
/\ [][Next]_vars
=============================================================================
\* Modification History
\* Last modified Mon Jun 17 02:06:33 NZST 2019 by jb567
\* Created Mon Jun 17 02:01:08 NZST 2019 by jb567