-
Notifications
You must be signed in to change notification settings - Fork 144
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
Fix non-exhaustive warnings on gas related rules #2332
Conversation
It looks like there is a slowdown
|
I believe that the slowdown is coming from the fact that the backend would be able to apply two rewrite rules instead of one if the |
Marking all the 4 rules as [Warning] Compiler: Non exhaustive match detected:
`_<Gas__GAS-SYNTAX_Bool_Gas_Gas`(infGas(_),_)
Source(/home/anvacaru/rv/evm-semantics/master/kevm-pyk/src/kevm_pyk/kproj/evm-semantics/gas.md)
Location(23,21,23,69)
23 | syntax Bool ::= Gas "<Gas" Gas [function, total, no-evaluators]
. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Warning] Compiler: Non exhaustive match detected:
`_<=Gas__GAS-SYNTAX_Bool_Gas_Gas`(infGas(_),_)
Source(/home/anvacaru/rv/evm-semantics/master/kevm-pyk/src/kevm_pyk/kproj/evm-semantics/gas.md)
Location(24,21,24,69)
24 | | Gas "<=Gas" Gas [function, total, no-evaluators] |
Closing for now as a won't fix. We can re-open if it bumps in priority again. |
closes: #2248