Skip to content

Commit

Permalink
Fix operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbinria committed Aug 31, 2023
1 parent 1f85974 commit cd44416
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/TVOperators.tla
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RemoveFromBag(cur, val) ==
ELSE
cur

Add(cur, val) == cur + val
Sub(cur, val) == cur - val
AddInteger(cur, val) == cur + val
SubInteger(cur, val) == cur - val

Unchanged(cur, val) == cur

Expand All @@ -44,7 +44,8 @@ Apply(var, default, op, args) ==
[] op = "RemoveElement" -> RemoveElement(var, args[1])
[] op = "AddToBag" -> AddToBag(var, args[1])
[] op = "RemoveFromBag" -> RemoveFromBag(var, args[1])
[] op = "Add" -> Add(var, args[1])
[] op = "Add" -> AddInteger(var, args[1])
[] op = "Sub" -> SubInteger(var, args[1])
[] op = "Clear" -> Clear(var, <<>>)
[] op = "AppendElement" -> AppendElement(var, args[1])
[] op = "RemoveKey" -> RemoveKey(var, args[1])
Expand Down

0 comments on commit cd44416

Please sign in to comment.