-
Notifications
You must be signed in to change notification settings - Fork 303
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
evmmax: Initial implementation of EVMMAX instructions (EIP-6690) #742
base: master
Are you sure you want to change the base?
Conversation
d33d0ea
to
b4c0208
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #742 +/- ##
===========================================
- Coverage 94.29% 18.69% -75.61%
===========================================
Files 159 160 +1
Lines 17325 15636 -1689
===========================================
- Hits 16337 2923 -13414
- Misses 988 12713 +11725
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7d36325
to
3f42dd5
Compare
3f42dd5
to
9e876e2
Compare
89aa150
to
ed0056e
Compare
ed0056e
to
67808c1
Compare
lib/evmmax/evmmax.cpp
Outdated
|
||
[[nodiscard]] bool addmodx(size_t dst_idx, size_t x_idx, size_t y_idx) noexcept override | ||
{ | ||
if (dst_idx < values.size() && x_idx < values.size() && y_idx < values.size()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should assume the indexes are valid (because they are going to be validated by EOF). Debug asserts are fine obviously.
e55c458
to
e156a5a
Compare
92b00a1
to
4136a08
Compare
81eaef0
to
ab38a8d
Compare
test: Omit new opcodes with immediate params in unit tests
Add new instruction implementation signature `code_iterator (*instr_fn)(StackTop, ExecutionState&, code_iterator, int64_t&)`
ab38a8d
to
da87a62
Compare
Based on EIP-6690
code_iterator (*instr_fn)(StackTop, ExecutionState&, code_iterator, int64_t&)
EVMMAX
state to evm execution state interfaceEVMMAX
modulus interface and implementation for differentUintT
types