Remove redundant lines in ID_dynamic_object branch in value_set_dereferencet#4291
Conversation
|
This reminds me of f1ff824 from #2646 (and #3769, where the actual merge of that work is being prepared). I don't feel sufficiently comfortable removing this at the moment (given the mess that f1ff824 tries to clean up). It's probably ok to be removed, and it's perfectly possible that |
|
Actually the regression tests suggest that this isn't dead code at all: |
This branch is not taken by symex but it is taken by the slicer. The code I've removed has no effect, as far as I can tell, and may have been left over from an old implementation from before the beginning of the git history. Note, there is a commit that splits ID_dynamic_object into two different ids. See diffblue#2646 and diffblue#3769 for more details.
814ca07 to
d57e21b
Compare
|
Thanks for pointing that commit out to me, @tautschnig . I hope it can be merged soon, as it seems to fix some bugs in the slicer. Indeed, this code does turn out to be used. I've updated my commit to just remove the lines from it that seem to have no effect at all. If that doesn't pass CI, or someone points out an effect that they have, then I will close this PR. |
allredj
left a comment
There was a problem hiding this comment.
✔️
Passed Diffblue compatibility checks (cbmc commit: d57e21b).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/102634292
This branch is not taken any more, at least in symex. The code in it
doesn't make much sense, which makes me think it isn't taken at all.