-
Notifications
You must be signed in to change notification settings - Fork 274
CONTRACTS: Allow void function calls in assigns clauses #7214
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
CONTRACTS: Allow void function calls in assigns clauses #7214
Conversation
Front-end modification that prepares for dynamic frames.
@nwetzler, can you review the front-end changes. |
Codecov ReportBase: 77.89% // Head: 77.88% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #7214 +/- ##
===========================================
- Coverage 77.89% 77.88% -0.01%
===========================================
Files 1616 1616
Lines 186701 186719 +18
===========================================
+ Hits 145433 145435 +2
- Misses 41268 41284 +16
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only minor comments.
throw invalid_source_file_exceptiont( | ||
"function pointer calls not allowed in assigns clauses", | ||
target.source_location()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add a regression test to cover this case?
"to " CPROVER_PREFIX | ||
"POINTER_OBJECT or a call to a function returning void", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to remove here all CPROVER_PREFIX_object_*
cases? Make the error message shorter? For me, it was quite informative before.
This is a front-end modification required for #6887. It allows to call user-defined functions returning void in
assigns clauses.
Accepted by the front end but triggers an error in the back end if actually used (for now).
Will be documented when supported.