-
Notifications
You must be signed in to change notification settings - Fork 26
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
Crash report: Viper has crashed: java.util.NoSuchElementException: None.get #1275
Comments
Note that this also seems to occur when reversing the polarity |
This crash occurs because we ignore Viper's checks that happen after parsing. In your output log you can see the line:
Which notifies us of the actual problem which is that you can only put a direct expression in between If I'm understanding correctly what you're trying to do, you could write this as:
Note that this will stop working in a future version of VerCors since the way we encode C structs has changed quite a lot. (and I didn't consider the use of |
Thanks for your answer. Regarding the formula itself, no I think you did not get correctly what I mean. What I am trying to phrase is "No permission to any cac field of a struct t instance is held" (meaning no permission overall, not just forbidding to hold the cac field of this specifically). That is not what your suggested formula describes, right? |
I'm not 100% sure what they mean by direct expression in Viper but I guess basically anything of the form I guess because the only things with a field |
Ok, I understand. You suggestion worked to fix the problem. |
Crash Message
Version Information
2.2.0
HEAD
(changes=false)Arguments
forperm.c
File Inputs
forperm.c
Full Log
The text was updated successfully, but these errors were encountered: