You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
Given a high exponent value when calling the EXP opcode, the transaction will run out of resources. This is due to the fact that we don't use the fast powering algorithm for high exponent values. See code below:
<!--- Please provide a general summary of your changes in the title
above -->
<!-- Give an estimate of the time you spent on this PR in terms of work
days.
Did you spend 0.5 days on this PR or rather 2 days? -->
Time spent on this PR:
## Pull request type
<!-- Please try to limit your pull request to one type,
submit multiple pull requests if needed. -->
Please check the type of change your PR introduces:
- [ ] Bugfix
- [x] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying,
or link to a relevant issue. -->
Resolves#700
## What is the new behavior?
Bug Report
Kakarot version: ee6458a
Current behavior:
Given a high exponent value when calling the EXP opcode, the transaction will run out of resources. This is due to the fact that we don't use the fast powering algorithm for high exponent values. See code below:
kakarot/src/kakarot/instructions/stop_and_arithmetic_operations.cairo
Lines 462 to 466 in 95df46c
Expected behavior:
Exponentiation should work for high value of exponent.
Steps to reproduce:
Failing output should be:
The text was updated successfully, but these errors were encountered: