-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
refactor[test]: add more tests with hevm venom harness #4493
base: master
Are you sure you want to change the base?
refactor[test]: add more tests with hevm venom harness #4493
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4493 +/- ##
=======================================
Coverage 92.06% 92.06%
=======================================
Files 120 120
Lines 17335 17335
Branches 2935 2935
=======================================
Hits 15960 15960
Misses 957 957
Partials 418 418 ☔ View full report in Codecov by Sentry. |
ac = IRAnalysesCache(fn) | ||
for p in self.passes: | ||
obj = p(ac, fn) | ||
self.pass_objects.append(obj) |
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.
this persists across test runs
self.pass_objects = list() | ||
|
||
def __call__(self, pre: str, post: str, hevm: bool | None = None) -> list[IRPass]: | ||
from tests.hevm import hevm_check_venom |
Check notice
Code scanning / CodeQL
Cyclic import Note test
tests.hevm
pass_objects: list[IRPass] | ||
default_hevm: bool | ||
|
||
def __init__(self, *passes, post: list[type] | None = None, default_hevm: bool = True): |
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.
bit odd that pre passes are passed as varargs but post passes are passed as a list
jmp @join | ||
join: | ||
%3 = phi @then, %1, @else, %2 | ||
stop |
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.
maybe we should sink %3
here, otherwise hevm will trivially validate it
What I did
Added hevm harness to more venom tests
How I did it
rewrote tests to venom text format if needed and used hevm harness
How to verify it
Commit message
Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)
Description for the changelog
Cute Animal Picture