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

[Heapster] Don't use Coq let-bindings in Heapster specs #1545

Merged
merged 10 commits into from
Dec 23, 2021
Merged

Conversation

m-yac
Copy link
Contributor

@m-yac m-yac commented Dec 20, 2021

This PR adds a function sawLet to the saw-core Prelude which is used in Heapster instead of saw-core's usual sharing mechanism to ensure certain shared variables are not translated to Coq let-bindings. This is because Coq very much likes to unfold let-bindings, which is bad for examples in which unfolding let-bindings results in exponential explosion (see the exp_explosion example added in this PR). By having an explicit function (sawLet), we can control when we unfold in the proof automation.

This PR also cleans up the SHA512 example.

@m-yac m-yac added the subsystem: heapster Issues specifically related to memory verification using Heapster label Dec 20, 2021
Copy link
Contributor

@eddywestbrook eddywestbrook left a comment

Choose a reason for hiding this comment

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

Looks good!

@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 Dec 21, 2021
@m-yac m-yac removed the PR: ready to merge Magic flag for pull requests to ask Mergify to merge given an approval and a successful CI run label Dec 22, 2021
@eddywestbrook eddywestbrook 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 Dec 23, 2021
@mergify mergify bot merged commit 0c22f18 into master Dec 23, 2021
@mergify mergify bot deleted the heapster/sawLet branch December 23, 2021 01:21
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: heapster Issues specifically related to memory verification using Heapster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants