-
Notifications
You must be signed in to change notification settings - Fork 152
Some bitwise and bool2Word lemmas #2241
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
Changes from 6 commits
1a865c0
42ef32d
eaaac0c
a1f6689
1df4d57
9d1328a
1ae7b01
a668e48
980998f
cf808b8
00aedfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "kevm-pyk" | ||
version = "1.0.408" | ||
version = "1.0.409" | ||
description = "" | ||
authors = [ | ||
"Runtime Verification, Inc. <[email protected]>", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
from typing import Final | ||
|
||
|
||
VERSION: Final = '1.0.408' | ||
VERSION: Final = '1.0.409' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,4 +243,11 @@ module INT-SIMPLIFICATION-COMMON | |
requires 0 <Int Y | ||
[simplification, comm] | ||
|
||
// ########################################################################### | ||
// comparisons | ||
// ########################################################################### | ||
|
||
rule X ==Int 0 => true requires 0 <=Int X andBool X <=Int 0 [simplification, comm] | ||
rule X ==Int 0 => false requires 0 <Int X [simplification, comm] | ||
Comment on lines
+250
to
+251
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lemmas like these tend to slow down the execution. @dwightguth has flagged this in the Maude backend, I've also noticed a considerable speedup once I commented slightly more general lemmas that we had out of the work on symbolic calldata. The CI is currently timing out and lasting almost double the time it did before. I remember introducing these more general lemmas for Optimism because of the looping on the symbolic size of a
How did these two lemmas come up? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tests added are exactly the expressions that came up causing these lemmas to be added. I can try out the lemmas you suggest. Whenever I run into something unsimplified that I want simplified, the first thing I do is snip out that expression and add it as a test to KEVM. Then I begin working on that test directly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I understand that. I'm not suggesting that you replace your lemmas with the ones I suggest. All that I am saying is that I had similar lemmas that were slowing down the performance. I suspect that your lemmas are causing a slowdown that resulted in the CI failure. Have you got a performance comparison of this branch vs master? |
||
|
||
endmodule |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.408 | ||
1.0.409 |
Uh oh!
There was an error while loading. Please reload this page.