Skip to content
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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

HodanPlodky
Copy link
Collaborator

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

Put a link to a cute animal picture inside the parenthesis-->

Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.06%. Comparing base (1339177) to head (9a4df4a).

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.
📢 Have feedback on the report? Share it here.

@charles-cooper charles-cooper changed the title chore:[venom]more tests with hevm venom harness refactor[test]: add more tests with hevm venom harness Feb 24, 2025
ac = IRAnalysesCache(fn)
for p in self.passes:
obj = p(ac, fn)
self.pass_objects.append(obj)
Copy link
Member

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

Import of module
tests.hevm
begins an import cycle.
pass_objects: list[IRPass]
default_hevm: bool

def __init__(self, *passes, post: list[type] | None = None, default_hevm: bool = True):
Copy link
Member

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants