GLaDOS-Michigan / dafnyMC

Integrating protocol debugging workflows into dafny

Home Page:https://dafny-lang.github.io/dafny/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unbounded Exists Expression

TonyZhangND opened this issue · comments

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.

Fixed for both universal and existential quantifiers.

Page 293 of Specifying Systems details the proper syntax.