-
Notifications
You must be signed in to change notification settings - Fork 126
Add support for loop-contract historic values #3951
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
Add support for loop-contract historic values #3951
Conversation
Looks like you want to run |
Could we use Some documentation describing the transformation at a high level would help the review. |
I am a bit confused about the semantics of |
…into loopmodify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you!
Add support for
old
andprev
to refers to historic values in loop contracts whereold(expr)
refers to the value of the expr before the loop.prev(expr)
refers to the value of the expr at the previous iteration.Resolves #3697
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.