Skip to content

Commit

Permalink
Handle (DOMAIN pc) \subseteq Nat.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemmy committed Oct 1, 2019
1 parent 6dbdf73 commit 702f65a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/ShiViz.tla
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
------------------------------- MODULE ShiViz -------------------------------
u------------------------------- MODULE ShiViz -------------------------------
EXTENDS Integers, Json, Toolbox, TLC

-----------------------------------------------------------------------------
Expand Down Expand Up @@ -27,7 +27,8 @@ Host == FnHost[_TEPosition]
-----------------------------------------------------------------------------

LOCAL clock(n) ==
[p \in DOMAIN _TETrace[n].pc |-> IF p = FnHost[n]
IF n = 1 THEN [p \in DOMAIN _TETrace[n].pc |-> 0] \* In the init state, all clocks are 0.
ELSE [p \in DOMAIN _TETrace[n].pc |-> IF p = FnHost[n]
THEN 1
ELSE 0]

Expand Down

0 comments on commit 702f65a

Please sign in to comment.