Skip to content

Commit

Permalink
Remove constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamrhay committed Jan 10, 2024
1 parent 5fa8e87 commit 299f79c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions syn.tla
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Init ==
/\ removed = 0

Register(n) ==
/\ \A o \in Nodes: Len(inbox[o]) = 0
/\ next_val < MaxValues
/\ registered' = [registered EXCEPT![n] = registered[n] \union {next_val}]
/\ next_val' = next_val + 1
Expand All @@ -34,7 +33,6 @@ ItemToRemove(n) ==
CHOOSE r \in registered[n]: TRUE

Unregister(n) ==
/\ \A o \in Nodes: Len(inbox[o]) = 0
/\ Cardinality(registered[n]) > 0
/\ LET item_to_remove == ItemToRemove(n)
IN registered' = [registered EXCEPT![n] = registered[n] \ {item_to_remove}]
Expand Down

0 comments on commit 299f79c

Please sign in to comment.