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

fix[ux]: fix compiler hang for large exponentiations #3893

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Mar 26, 2024

this commit fixes a UX bug where the compiler would hang while trying to constant-fold large exponentiations. it does a loose check to see if the output would be vastly out of bounds and fails fast if so.

What I did

fixes #1667

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

this commit fixes a UX bug where the compiler would hang while trying to
constant-fold large exponentiations. it does a loose check to see if the
output would be fastly out of bounds and fails fast if so.
@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.85%. Comparing base (ea7f081) to head (2639e21).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3893      +/-   ##
==========================================
- Coverage   86.36%   85.85%   -0.51%     
==========================================
  Files          92       92              
  Lines       14025    14028       +3     
  Branches     3082     3083       +1     
==========================================
- Hits        12112    12044      -68     
- Misses       1485     1543      +58     
- Partials      428      441      +13     

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

@charles-cooper charles-cooper enabled auto-merge (squash) March 26, 2024 21:02
@charles-cooper charles-cooper merged commit 4595938 into vyperlang:master Mar 26, 2024
148 checks passed
electriclilies pushed a commit to electriclilies/vyper that referenced this pull request Apr 27, 2024
this commit fixes a UX bug where the compiler would hang while trying to
constant-fold large exponentiations. it does a loose check to see if the
output would be vastly out of bounds and fails fast if so.
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.

Large exponential can cause very long Vyper runtime
4 participants