-
Notifications
You must be signed in to change notification settings - Fork 273
remove unused member_exprt::symbol() #2860
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
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.
I'd suggest that the information included in the PR also makes it into the commit message.
034e414
to
56c6aed
Compare
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.
@thk123, this requires a TG bump.
56c6aed
to
c79fcb2
Compare
Done: diffblue/test-gen#2217 - awaiting CI |
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.
Yeah turns out TG is using this - will fix up.
What's the motivation here? Not only is it not unused (this PR removes two uses) but it is non-trivial - it loops back up the expression tree to find the root symbol. It seems your replacements won't work for: Edit: In these cases it doesn't do seem to do anything useful - will see if the same is true in TG. If not, will make a static function in where it is used. |
It's just wrong. The root operand of a Any current user of this method should use |
Thanks @tautschnig for the explanation. TG updated to use |
Does anyone know why cmake builds are unhappy? |
There are invariant failures in the unit tests. I suppose they should be rewritten in the way I described (using |
See #2877 for the JBMC unit tests. |
c79fcb2
to
f692173
Compare
96586c8
to
49f5b8d
Compare
Reverts d47d503; the root operand of a member_exprt need not be a symbol_exprt. (It could be a struct_exprt, a dereference_exprt, and possibly something else.)
49f5b8d
to
0099f74
Compare
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.
This PR failed Diffblue compatibility checks (cbmc commit: 0099f74).
Status will be re-evaluated on next push.
Please contact @peterschrammel, @thk123, or @allredj for support.
Common spurious failures:
- the cbmc commit has disappeared in the mean time (e.g. in a force-push)
- the author is not in the list of contributors (e.g. first-time contributors).
This was updated after the bump passed and now causes TG to fail. Please hold off merging if you make substantial (e.g. interface) changes until the TG bump has been updated. |
Hmm, sorry, I had understood #2860 (comment) as TG having been cleaned up. |
@tautschnig Fair - it was, but CI was still failing on this PR. Then the changes to the unit test were applied (adding a Annoyingly in GH there is no way to really see the diff between incremental revisions of a rebased PR (which would have shown the diff to be substantial enough to retest on TG). |
Reverts d47d503; the method isn't used.