Skip to content

feat[venom]: stack order analysis #4646

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

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

Conversation

HodanPlodky
Copy link
Collaborator

What I did

inter bb stack analysis

How I did it

used the intra bb analysis (dft) as a base for the inter bb by propagating the information between the basic blocks

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 May 19, 2025

Codecov Report

Attention: Patch coverage is 99.50739% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.86%. Comparing base (533682d) to head (84cbb3d).

Files with missing lines Patch % Lines
vyper/venom/analysis/stack_order.py 99.25% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4646      +/-   ##
==========================================
+ Coverage   92.80%   92.86%   +0.06%     
==========================================
  Files         131      132       +1     
  Lines       18947    19132     +185     
  Branches     3289     3334      +45     
==========================================
+ Hits        17583    17767     +184     
  Misses        933      933              
- Partials      431      432       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


while len(worklist) > 0:
bb = worklist.popleft()
stack_order = self.stack_order.handle_bbs(list(self.cfg.cfg_out(bb)))
Copy link
Member

Choose a reason for hiding this comment

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

does the liveness need to be recomputed for these bbs?

@@ -0,0 +1,345 @@
import pytest

Check notice

Code scanning / CodeQL

Unused import Note test

Import of 'pytest' is not used.
Comment on lines +486 to +488
#for op in reversed(liv):
#if op not in target_stack:
#target_stack.insert(0, op)

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
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