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

Detecting unnecessary reads/modifies entries #35

Open
parno opened this issue Mar 6, 2019 · 0 comments
Open

Detecting unnecessary reads/modifies entries #35

parno opened this issue Mar 6, 2019 · 0 comments

Comments

@parno
Copy link
Member

parno commented Mar 6, 2019

Would it be reasonable for Vale to detect when you've included an entry in your reads or modifies clause that isn't actually needed? For example, if I include rax in my modifies list, but nothing in the procedure actually modifies it, it would be helpful to at least produce a warning, since this often leads to subtle proof failures in later code. E.g., code that expects (correctly) that the value in rax will be preserved across this procedure call, but the fact that it's included in the modifies clause leads to a proof failure. A slightly more subtle case is when you include something in the modifies clause that really only needs to be in the reads clause.

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

No branches or pull requests

1 participant