Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in da/examples/dscrash/spec.da #32

Open
jmnotin opened this issue Feb 6, 2020 · 0 comments
Open

Error in da/examples/dscrash/spec.da #32

jmnotin opened this issue Feb 6, 2020 · 0 comments

Comments

@jmnotin
Copy link

jmnotin commented Feb 6, 2020

This is related to issue #10 .

In the example DistAlgo program dscrash/spec.da, the comprehensions are written using variable name v that is a state variable bounded in setup. For example, the following line:

V |= setof(v, received(('Value', V2, _)), v in V2)

is compiled as:

self._state.V |= {self._state.v for (_, _, (_ConstantPattern272_, V2, _)) in self._PReceivedEvent_2 if (_ConstantPattern272_ == 'Value') for self._state.v in V2}

Note that in this particular example, it is harmless. Nevertheless, limiting the scope of the variables bounded in comprehensions and existentials, as suggested in #10, could be a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant