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 permIndicesForProvingOffset using llvmPermContainsArray #1536

Merged
merged 1 commit into from
Dec 7, 2021

Conversation

eddywestbrook
Copy link
Contributor

This PR generalizes the permIndicesForProvingOffset function, which searches for a permission on the left that could be used to prove a specific offset on the right. Previously, this function required a "precise" match unless the permission being considered on the left was an array permission, but this ignores the possibility that the permission on the left could be a memblock permission containing an array shape. This PR fixes this issue, which allows the sha512 example to type-check.

…tches on the left to check not only for a syntactic array permission, but also for a block permission containing an array shape
@eddywestbrook eddywestbrook added the subsystem: heapster Issues specifically related to memory verification using Heapster label Dec 6, 2021
@eddywestbrook eddywestbrook requested a review from m-yac December 6, 2021 21:43
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

@eddywestbrook eddywestbrook merged commit 18a0cea into master Dec 7, 2021
@mergify mergify bot deleted the heapster/llvm-perm-contains-array branch December 7, 2021 00:41
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants