Unbounded Exists Expression
TonyZhangND opened this issue · comments
Tony Zhang commented
When running CokeMachine, encountered
The exception was a java.lang.RuntimeException
: TLC attempted to evaluate an unbounded \E.
Make sure that the expression is of form \E x \in S: P(x).
line 24, col 44 to line 24, col 84 of module machine
Error: The behavior up to this point is:
State 1: <Initial predicate>
tla_s = [type |-> "CokeMachine", numCokes |-> 0]
Looking at the generated TLA code, I have the clause
\E _148_num: Restock(c, v, v_k, _148_num)
Fix this issue, and check if the same issue occurs for universal quantifier.
Tony Zhang commented
Fixed for both universal and existential quantifiers.
Page 293 of Specifying Systems details the proper syntax.