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

Implicitly constrain symbolic pointers to region 0 when adding offset constraints #430

Open
danmatichuk opened this issue Aug 13, 2024 · 0 comments

Comments

@danmatichuk
Copy link
Collaborator

The set of identifiers sent to the front end contains separate identifiers for the offset and region for any symbolic pointer. If the user provides a constraint for a pointer offset, they almost certainly intend for that value to be either interpreted as a raw bitvector or an absolute pointer. In both of these cases, the region for that pointer should be constrained to 0, to avoid creating unexpected models where the pointer is concretized to an offset in a dynamic allocation.

Currently we always try to generate a model which assumes a collection of pointer correctness axioms (e.g. comparing two pointers implies they must have the same region), and so in many cases we should end up with reasonable models even without this explicit constraint, but this will ensure it gets added even when those axioms can't be inferred.

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

No branches or pull requests

1 participant