-
Notifications
You must be signed in to change notification settings - Fork 274
GOTO programs do not have code-typed struct members #6892
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
Conversation
1e7b691
to
8168170
Compare
Codecov ReportBase: 78.02% // Head: 78.04% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #6892 +/- ##
===========================================
+ Coverage 78.02% 78.04% +0.02%
===========================================
Files 1625 1624 -1
Lines 187427 187404 -23
===========================================
+ Hits 146231 146253 +22
+ Misses 41196 41151 -45
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. |
first = false; | ||
else | ||
{ | ||
if(last_size + 40 < dest.size()) |
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.
Magic constant?
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.
Yes, it's the same constant (and approach) that expr2ct::convert_struct
uses for pretty-printing (and the same is true for arrays). Could be replaced by a named constant, but I'll just create an issue for the readability of this code needs improvement: #6900.
FYI: Looks like Kani also creates |
8168170
to
356bcf4
Compare
356bcf4
to
646d5c0
Compare
646d5c0
to
2971262
Compare
Cleanup of an unnecessary branch: Any such component would be a pointer/reference, not an actual code-typed element.
Whitespace changes only, no change in behaviour.
Cleanup of unnecessary branches: Any such component would be a function pointer, not an actual code-typed element.
It's only the C++ front-end that puts methods in struct members, and this should not leak into GOTO programs. We can, therefore, clean up a number of unnecessary branches. Fixes: diffblue#6984
2971262
to
4c8e44b
Compare
What's the blocking issue here? Are we just waiting on a code review? |
It's only the C++ front-end that puts methods in struct members, and
this should not leak into GOTO programs. We can, therefore, clean up a
number of unnecessary branches.
Please review commit-by-commit.
Fixes #6984.