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

MR Solver SMT fixes for testing on Heapster models #1594

Merged
merged 26 commits into from
Feb 22, 2022

Conversation

eddywestbrook
Copy link
Contributor

This PR fixes a number of bugs in the way MR Solver calls out to SMT, in order to enable it to run on models extracted from Heapster. Specifically, it adds support for representing vectors of type BVVec with symbolic lengths in SMT solvers, by transforming them to uninterpreted functions.

This change also adds support for refinement of the maybe eliminator.

Eddy Westbrook added 25 commits February 11, 2022 16:56
… making it normalize the input type before deciding if it is already computational
… just globals but also (tuple and record) projections of globals
…that we do not pass the SMT solver uvars that do not occur in the proposition we want to prove
…titute outer instantiations into the types of inner ones as it goes
…ninterpreted functions in place of variable-length vectors
…tx; fixed a bug in withUVar, that assumptions added under the extended context should be thrown away when that context ends
…tx; fixed a bug in withUVar, that assumptions need to be lifted in the new context and then reverted when that context ends
…ged variable instantiation in mrProvable to use the normalized types
…var being instantiated; trying to figure out why my uninterpreted functions do not work when passing them to the SMT solver...
@eddywestbrook eddywestbrook requested a review from m-yac February 21, 2022 23:53
Copy link
Contributor

@m-yac m-yac left a comment

Choose a reason for hiding this comment

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

LGTM! Found one typo but that's all.

src/SAWScript/Prover/MRSolver.hs Outdated Show resolved Hide resolved
@m-yac m-yac added the PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run label Feb 22, 2022
@mergify mergify bot merged commit 2c726dd into master Feb 22, 2022
@mergify mergify bot deleted the mr-solver/heapster-tests branch February 22, 2022 02:13
@m-yac m-yac added the subsystem: MRSolver Issues related to the Mr. Solver monadic-recursive solver in Heapster label Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run subsystem: MRSolver Issues related to the Mr. Solver monadic-recursive solver in Heapster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants