Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
KTLA Study
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
KTLA Study
Commits
bd2d1550
Commit
bd2d1550
authored
Feb 10, 2022
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
448efbb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
Route.pdf
Route.pdf
+0
-0
Route.tla
Route.tla
+17
-12
No files found.
Route.pdf
View file @
bd2d1550
No preview for this file type
Route.tla
View file @
bd2d1550
...
...
@@ -56,41 +56,46 @@ EdgeQQ(e) == LET x == CHOOSE x \in e : TRUE
(********
--algorithm Route {
variables depth \* node -> depth
variables
ZZ
depth \* node -> depth
= [[n \in Nodes |-> Inf] EXCEPT ![root] = 0],
parent \* node -> parent node
ZZ
parent \* node -> parent node
= [[n \in Nodes |-> NoRoute] EXCEPT ![root] = root],
\* msgs[<<n,m>>] is message queue for n->m
msgs = [
UNION {EdgeQQ(e) : e \in Edges}
|-> << >>];
msgs = [
q \in (UNION {EdgeQQ(e) : e \in Edges})
|-> << >>];
fair process (RT \in Nodes)
{
fair process (RT \in Nodes)
variables depth = IF self = root THEN 0 ELSE Inf,
parent = IF self = root THEN root ELSE NoRoute;
{
loop: while (TRUE) {
skip;
}
}
};
********)
\* BEGIN TRANSLATION (chksum(pcal) = "
b5e3ebb1" /\ chksum(tla) = "59198579
")
VARIABLES
depth, parent, msg
\* BEGIN TRANSLATION (chksum(pcal) = "
65933661" /\ chksum(tla) = "ff5ab133
")
VARIABLES
ZZdepth, ZZparent, msgs, depth, parent
vars == <<
depth, parent, msg
>>
vars == <<
ZZdepth, ZZparent, msgs, depth, parent
>>
ProcSet == (Nodes)
Init == (* Global variables *)
/\ depth = [[n \in Nodes |-> Inf] EXCEPT ![root] = 0]
/\ parent = [[n \in Nodes |-> NoRoute] EXCEPT ![root] = root]
/\ msg = [n,m \in Nodes |-> <<>>]
/\ ZZdepth = [[n \in Nodes |-> Inf] EXCEPT ![root] = 0]
/\ ZZparent = [[n \in Nodes |-> NoRoute] EXCEPT ![root] = root]
/\ msgs = [q \in (UNION {EdgeQQ(e) : e \in Edges}) |-> << >>]
(* Process RT *)
/\ depth = [self \in Nodes |-> IF self = root THEN 0 ELSE Inf]
/\ parent = [self \in Nodes |-> IF self = root THEN root ELSE NoRoute]
RT(self) == /\ TRUE
/\ UNCHANGED <<
depth, parent, msg
>>
/\ UNCHANGED <<
ZZdepth, ZZparent, msgs, depth, parent
>>
Next == (\E self \in Nodes: RT(self))
Spec == Init /\ [][Next]_vars
Spec == /\ Init /\ [][Next]_vars
/\ \A self \in Nodes : WF_vars(RT(self))
\* END TRANSLATION
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment