-
Notifications
You must be signed in to change notification settings - Fork 126
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
Trying to match to a typedef value in a receive statement causes "bad node type 44" error message #17
Comments
that's a bug -- i'll check it out and find a fix if i can |
fixed with update to pangen2.c and pangen4.c |
Thank you. The issue seems to be fixed. |
I played around with the fixed code and in some cases where the struct type is more complex there seems to be some issues. I attached two examples. In complex_id.pml I see the following error: "invalid end state". In test.pml I see this other error: "missing pars in receive". I think both files should pass the simulation. Should I open a new issue or can this one be reused/reopened? I think there might be some issues when there are more than one eval()'s that evaluate a typedef variable in the receive statements and/or when the typedef is composed of other typedefs. |
made a further update -- 6 files changed -- that should now cover all cases. |
Hmm... I still see the same issues. I simplified test.pml even further. The asserts here should pass but they are failing: pan:1: assertion violated Q_has(c, 1, receiver_id.t2.t1a.i, 1, sender_id1.t2.t1a.i, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) |
agreed -- good example -- that'll take some more checking |
i have a fix -- will update once i've tested it a little more |
fix uploaded -- 7 files changed -- this now passes the test.txt example and everything else I could think of. fingers crossed.... |
When I try to match a message in a receive statement I get a "bad node type 44" error message. This happens when the message's type is a typedef. The error message is rather cryptic and doesn't give much insight. I would like to know if this is a bug or the intended behavior. I don't think the documentation mentions anything related to the restriction of using struct types for doing matching in receive statements.
Code example:
Link to StackOverflow question here.
The text was updated successfully, but these errors were encountered: