-
Notifications
You must be signed in to change notification settings - Fork 285
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:
Additional details and impacted files@@ Coverage Diff @@
## master #742 +/- ##
==========================================
- Coverage 97.91% 97.83% -0.08%
==========================================
Files 110 112 +2
Lines 10580 10946 +366
==========================================
+ Hits 10359 10709 +350
- Misses 221 237 +16
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
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&)`
72ba52f
to
81eaef0
Compare
81eaef0
to
ab38a8d
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