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

feat[venom]: fix offset pass #4248

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

charles-cooper
Copy link
Member

What I did

fix offset pass in the case that the arguments are swapped

How I did it

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-->

and isinstance(inst.operands[0], IRLiteral)
and isinstance(inst.operands[1], IRLabel)
):
if not inst.opcode == "add":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if not inst.opcode == "add":
if inst.opcode != "add":

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no wonder it was not working!

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 51.35%. Comparing base (039d369) to head (fac3cc2).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
vyper/venom/passes/algebraic_optimization.py 0.00% 6 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (039d369) and HEAD (fac3cc2). Click for more details.

HEAD has 179 uploads less than BASE
Flag BASE (039d369) HEAD (fac3cc2)
187 8
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #4248       +/-   ##
===========================================
- Coverage   89.39%   51.35%   -38.05%     
===========================================
  Files         112      112               
  Lines       15923    15928        +5     
  Branches     2693     2695        +2     
===========================================
- Hits        14235     8180     -6055     
- Misses       1192     7120     +5928     
- Partials      496      628      +132     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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