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: Add support for the trivially false permission #1543

Merged
merged 21 commits into from
Dec 20, 2021

Conversation

ChrisEPhifer
Copy link
Member

This PR adds a new ValuePerm, ValPerm_False, which represents the trivially false value permission. It furthermore contains the relevant translations, additions to the implication prover, and conversions from Rust types (i.e. the never type, !).

The one thing I'm unsure of is the weight I've assigned to the success of a PermImpl step that is false elimination - or whether it matters as long as the weight is non-zero. Guidance on this for future reference is most welcome :)

@ChrisEPhifer ChrisEPhifer added type: enhancement Issues describing an improvement to an existing feature or capability 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 labels Dec 15, 2021
@ChrisEPhifer ChrisEPhifer self-assigned this Dec 15, 2021
@ChrisEPhifer
Copy link
Member Author

In order to correctly support Rust types, we actually need a bit more than what this PR originally contained. Namely, we need a notion of a "false shape".

I'll be removing the ready-to-merge label and updating the title to reflect this is a WIP.

@ChrisEPhifer ChrisEPhifer 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 15, 2021
@ChrisEPhifer ChrisEPhifer changed the title Heapster: Add support for the trivially false permission WIP: Heapster: Add support for the trivially false permission Dec 15, 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.

It looks like this does not have a recombinePermConj case for recombining a shape that contains false. This is needed in order to have calls to Rust functions with ! return type not continue type-checking after the function returns (because it doesn't return).

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 to me!

@ChrisEPhifer ChrisEPhifer 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 20, 2021
@ChrisEPhifer ChrisEPhifer changed the title WIP: Heapster: Add support for the trivially false permission Heapster: Add support for the trivially false permission Dec 20, 2021
@ChrisEPhifer ChrisEPhifer 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 20, 2021
@ChrisEPhifer ChrisEPhifer merged commit 706f25b into master Dec 20, 2021
@ChrisEPhifer ChrisEPhifer deleted the heapster/add-false-permission branch December 20, 2021 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subsystem: heapster Issues specifically related to memory verification using Heapster type: enhancement Issues describing an improvement to an existing feature or capability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants