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

Improve trigger for acc(s) when s is a slice #471

Merged
merged 2 commits into from
Jun 23, 2022
Merged

Conversation

jcp19
Copy link
Contributor

@jcp19 jcp19 commented Jun 23, 2022

Changes the trigger of acc(s) when s is a slice to be heap-independent. The generated trigger should be the same as the one inferred for the assertion forall i int :: 0 <= i && i < len(s) ==> acc(&s[i])

Fixes #238

@jcp19 jcp19 requested a review from Felalolf June 23, 2022 10:56
Copy link
Contributor

@Felalolf Felalolf left a comment

Choose a reason for hiding this comment

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

I am not sure that this is a good choice, but it is a better choice than what we have right now and I do not have a better idea.

@jcp19 jcp19 merged commit 3a6d444 into master Jun 23, 2022
@jcp19 jcp19 deleted the fix-trigger-acc-slices branch June 23, 2022 14:03
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

Successfully merging this pull request may close these issues.

Access to a slice pointer should yield access to its cells
2 participants