-
Notifications
You must be signed in to change notification settings - Fork 4
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
Interpreter: Parallel and map update bug #294
Comments
I suspect that this and #293 are both actually working per the semantics, but i'll dig into this in the next couple of days. Part of what suggests this is that neither this example nor the one in #293 are using namesets — for values to 'escape' their parallel branch, they must be named in the corresponding nameset, otherwise changes just get thrown away. |
No worries - I have a larger example which has some very odd behaviour - tried to trim it down in for this simple example - let me know if you want to use that. The odd thing is really the inconsistency in how the assignments to the map change depending on which domain value is updated... |
There is something that's not behaving correctly; I will construct an example for this and #293 shortly. |
So, simple model for sanity:
This works correctly, giving the traces < So I think it may have to do with maps, specifically. |
More complex example; this fails. I get the trace:
and the last
|
This looks like a problem with the So I think the above example can be reproduced using a seq too. |
ok, confirmed bug; I'm assigning it over to @lausdahl :) |
There appears to be a bug with the map update expression when called in an operation in a parallel process. Given the model below:
When attempting to update the map index 1 or 2, the update fails (inA.1.x, inA2.2.x) however any other (inA.3.x, inA.4.x, inA.7.x) updates the map successfully. However, when removing the parallel operator and ACT2, all map updates work perfectly.
Not sure if this is a map or parallel issue.
The text was updated successfully, but these errors were encountered: