Skip to content
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

Saw script issue585a #347

Merged
merged 3 commits into from
Nov 15, 2019
Merged

Saw script issue585a #347

merged 3 commits into from
Nov 15, 2019

Conversation

brianhuffman
Copy link
Contributor

Avoid generating crucible PtrAddOffset statements when translating LLVM getelementptr with array index of 0, or struct field with offset 0.

Fixes GaloisInc/saw-script#585.

Cf. #344, which tests for zero offset later, inside the implementation of PtrAddOffset. I think checking for 0 early is a better way to go.

Copy link
Contributor

@robdockins robdockins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK to me.

@brianhuffman brianhuffman merged commit 8f7db76 into master Nov 15, 2019
@langston-barrett langston-barrett deleted the saw-script-issue585a branch November 15, 2019 23:05
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.

Struct field accesses generate duplicate proof obligations for pointer validity
2 participants