-
Notifications
You must be signed in to change notification settings - Fork 51
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
Adding missing base-case for exponentiation && improve Exp handling via simplification and "ite" in SMT #638
Conversation
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!
bcd1e06
to
79f9051
Compare
Thanks for the quick review @blishko ! Unfortunately, I'll need another review because I decided to add more fun things! With this setup, we get:
The corresponding SMT2 query has indeed the Exp to symbolic value:
and the SMT has the right where |
Co-authored-by: Martin Blicha <[email protected]>
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.
LGMT!
Description
Thanks to @charles-cooper for finding a case where this gets triggered. Fixing. Anything (including 0) to the power of 0 is zero in EVM. See evm codes example
Checklist