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

Break assume return into a separate hook in the generalized hook framework #279

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

yuxincs
Copy link
Contributor

@yuxincs yuxincs commented Sep 16, 2024

This PR refactors the logic that returns nonnil producer in the new generalized hook framework into a new strongly-typed hook for better maintainability and slightly better performance (fewer look ups in all hook points). It introduces no functionality changes.

@yuxincs yuxincs marked this pull request as ready for review September 16, 2024 03:50
@yuxincs yuxincs changed the title Break assume return into a separate sub-hook in the generalized hook framework Break assume return into a separate hook in the generalized hook framework Sep 16, 2024
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.61%. Comparing base (c59c3f4) to head (152ec48).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #279   +/-   ##
=======================================
  Coverage   87.60%   87.61%           
=======================================
  Files          63       64    +1     
  Lines        7916     7922    +6     
=======================================
+ Hits         6935     6941    +6     
  Misses        799      799           
  Partials      182      182           

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

Copy link

github-actions bot commented Sep 16, 2024

Golden Test

Note

✅ NilAway errors reported on standard libraries are identical.

3271 errors on base branch (main, c59c3f4)
3271 errors on test branch (98a9116)

Base automatically changed from yuxincs/generalize-hook to main October 4, 2024 21:06
@yuxincs yuxincs force-pushed the yuxincs/break-nonnil-return branch from 10acb30 to 152ec48 Compare October 4, 2024 21:11
@yuxincs yuxincs merged commit 45bee80 into main Oct 4, 2024
9 checks passed
@yuxincs yuxincs deleted the yuxincs/break-nonnil-return branch October 4, 2024 21:19
yuxincs added a commit that referenced this pull request Oct 4, 2024
Similar to #279, this PR breaks the logic that splits the CFG block upon
seeing a trusted function into a separate strongly-typed hook for better
maintainability and slightly better performance (due to fewer lookups in
hook points). It introduces no functionality changes.

---------

Co-authored-by: Sonal Mahajan <101232472+sonalmahajan15@users.noreply.github.com>
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