Skip to content

[TG-8994] Tolerate a constant on the LHS of an assignment #4998

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

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

smowton
Copy link
Contributor

@smowton smowton commented Aug 8, 2019

This can happen due to a parital write to a string constant, e.g. (int)"hello world".
In real programs these would fault, but we must tolerate them because symex's over-approximate
alias analysis means it may think they can happen when in fact they are forbidden by other
constraints.

This can happen due to a parital write to a string constant, e.g. *(int*)"hello world".
In real programs these would fault, but we must tolerate them because symex's over-approximate
alias analysis means it may think they can happen when in fact they are forbidden by other
constraints.
@smowton smowton force-pushed the smowton/fix/lhs-string-constant branch from 3864ecf to e98540f Compare August 9, 2019 11:57
Copy link
Contributor

@allredj allredj left a 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: e98540f).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/122587749
Status will be re-evaluated on next push.
Common spurious failures include: 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); compatibility was already broken by an earlier merge.

@smowton smowton changed the title Tolerate a constant on the LHS of an assignment [TG-8994] Tolerate a constant on the LHS of an assignment Aug 12, 2019
@smowton smowton merged commit 7ef8430 into diffblue:develop Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants