Merge pull request #12754 from ethereum/optimizerEqIszero

Some more peephole optimizer rules.
This commit is contained in:
Daniel Kirchner 2022-03-10 15:16:27 +01:00 committed by GitHub
commit 921c4fd5e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
101 changed files with 312 additions and 253 deletions

View File

@ -6,6 +6,7 @@ Language Features:
Compiler Features: Compiler Features:
* JSON-AST: Added selector field for errors and events. * JSON-AST: Added selector field for errors and events.
* Peephole Optimizer: Optimize comparisons in front of conditional jumps and conditional jumps across a single unconditional jump.
Bugfixes: Bugfixes:
* Yul IR Code Generation: Optimize embedded creation code with correct settings. This fixes potential mismatches between the constructor code of a contract compiled in isolation and the bytecode in ``type(C).creationCode``, resp. the bytecode used for ``new C(...)``. * Yul IR Code Generation: Optimize embedded creation code with correct settings. This fixes potential mismatches between the constructor code of a contract compiled in isolation and the bytecode in ``type(C).creationCode``, resp. the bytecode used for ``new C(...)``.

View File

@ -233,6 +233,65 @@ struct IsZeroIsZeroJumpI: SimplePeepholeOptimizerMethod<IsZeroIsZeroJumpI>
} }
}; };
struct EqIsZeroJumpI: SimplePeepholeOptimizerMethod<EqIsZeroJumpI>
{
static size_t applySimple(
AssemblyItem const& _eq,
AssemblyItem const& _iszero,
AssemblyItem const& _pushTag,
AssemblyItem const& _jumpi,
std::back_insert_iterator<AssemblyItems> _out
)
{
if (
_eq == Instruction::EQ &&
_iszero == Instruction::ISZERO &&
_pushTag.type() == PushTag &&
_jumpi == Instruction::JUMPI
)
{
*_out = AssemblyItem(Instruction::SUB, _eq.location());
*_out = _pushTag;
*_out = _jumpi;
return true;
}
else
return false;
}
};
// push_tag_1 jumpi push_tag_2 jump tag_1: -> iszero push_tag_2 jumpi tag_1:
struct DoubleJump: SimplePeepholeOptimizerMethod<DoubleJump>
{
static size_t applySimple(
AssemblyItem const& _pushTag1,
AssemblyItem const& _jumpi,
AssemblyItem const& _pushTag2,
AssemblyItem const& _jump,
AssemblyItem const& _tag1,
std::back_insert_iterator<AssemblyItems> _out
)
{
if (
_pushTag1.type() == PushTag &&
_jumpi == Instruction::JUMPI &&
_pushTag2.type() == PushTag &&
_jump == Instruction::JUMP &&
_tag1.type() == Tag &&
_pushTag1.data() == _tag1.data()
)
{
*_out = AssemblyItem(Instruction::ISZERO, _jumpi.location());
*_out = _pushTag2;
*_out = _jumpi;
*_out = _tag1;
return true;
}
else
return false;
}
};
struct JumpToNext: SimplePeepholeOptimizerMethod<JumpToNext> struct JumpToNext: SimplePeepholeOptimizerMethod<JumpToNext>
{ {
static size_t applySimple( static size_t applySimple(
@ -372,7 +431,7 @@ bool PeepholeOptimiser::optimise()
applyMethods( applyMethods(
state, state,
PushPop(), OpPop(), DoublePush(), DoubleSwap(), CommutativeSwap(), SwapComparison(), PushPop(), OpPop(), DoublePush(), DoubleSwap(), CommutativeSwap(), SwapComparison(),
DupSwap(), IsZeroIsZeroJumpI(), JumpToNext(), UnreachableCode(), DupSwap(), IsZeroIsZeroJumpI(), EqIsZeroJumpI(), DoubleJump(), JumpToNext(), UnreachableCode(),
TagConjunctions(), TruthyAnd(), Identity() TagConjunctions(), TruthyAnd(), Identity()
); );
if (m_optimisedItems.size() < m_items.size() || ( if (m_optimisedItems.size() < m_items.size() || (

View File

@ -58,10 +58,9 @@ tag_6:
/* "optimizer_user_yul/input.sol":384:392 sload(5) */ /* "optimizer_user_yul/input.sol":384:392 sload(5) */
dup1 dup1
/* "optimizer_user_yul/input.sol":376:509 for { } sload(5) { } {... */ /* "optimizer_user_yul/input.sol":376:509 for { } sload(5) { } {... */
tag_8 iszero
tag_6
jumpi jumpi
jump(tag_6)
tag_8:
/* "optimizer_user_yul/input.sol":380:383 { } */ /* "optimizer_user_yul/input.sol":380:383 { } */
pop pop
/* "optimizer_user_yul/input.sol":340:513 {... */ /* "optimizer_user_yul/input.sol":340:513 {... */

View File

@ -25,5 +25,5 @@ contract C {
// ---- // ----
// f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb // f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb
// gas irOptimized: 203312 // gas irOptimized: 203312
// gas legacy: 206084 // gas legacy: 206075
// gas legacyOptimized: 203068 // gas legacyOptimized: 203059

View File

@ -61,9 +61,9 @@ contract C {
// ---- // ----
// test_bytes() -> // test_bytes() ->
// gas irOptimized: 371919 // gas irOptimized: 371919
// gas legacy: 418955 // gas legacy: 416585
// gas legacyOptimized: 326783 // gas legacyOptimized: 322043
// test_uint256() -> // test_uint256() ->
// gas irOptimized: 523001 // gas irOptimized: 523001
// gas legacy: 586784 // gas legacy: 583100
// gas legacyOptimized: 451529 // gas legacyOptimized: 444161

View File

@ -62,9 +62,9 @@ contract C {
// ---- // ----
// test_bytes() -> // test_bytes() ->
// gas irOptimized: 371919 // gas irOptimized: 371919
// gas legacy: 418955 // gas legacy: 416585
// gas legacyOptimized: 326783 // gas legacyOptimized: 322043
// test_uint256() -> // test_uint256() ->
// gas irOptimized: 523001 // gas irOptimized: 523001
// gas legacy: 586784 // gas legacy: 583100
// gas legacyOptimized: 451529 // gas legacyOptimized: 444161

View File

@ -22,5 +22,5 @@ contract C {
// f(uint256[][1]): 32, 32, 1, 42 -> true // f(uint256[][1]): 32, 32, 1, 42 -> true
// f(uint256[][1]): 32, 32, 8, 421, 422, 423, 424, 425, 426, 427, 428 -> true // f(uint256[][1]): 32, 32, 8, 421, 422, 423, 424, 425, 426, 427, 428 -> true
// gas irOptimized: 171842 // gas irOptimized: 171842
// gas legacy: 141644 // gas legacy: 140672
// gas legacyOptimized: 121532 // gas legacyOptimized: 119588

View File

@ -12,5 +12,5 @@ contract C {
// ---- // ----
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg" // f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
// gas irOptimized: 135918 // gas irOptimized: 135918
// gas legacy: 137190 // gas legacy: 137181
// gas legacyOptimized: 136082 // gas legacyOptimized: 136073

View File

@ -14,7 +14,7 @@ contract Test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// set(uint24[3][]): 0x20, 0x06, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12 -> 0x06 // set(uint24[3][]): 0x20, 0x06, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12 -> 0x06
// gas irOptimized: 189871 // gas irOptimized: 189817
// gas legacy: 211149 // gas legacy: 211149
// gas legacyOptimized: 206054 // gas legacyOptimized: 206054
// data(uint256,uint256): 0x02, 0x02 -> 0x09 // data(uint256,uint256): 0x02, 0x02 -> 0x09

View File

@ -48,8 +48,8 @@ contract c {
// storageEmpty -> 0 // storageEmpty -> 0
// test_long() -> 67 // test_long() -> 67
// gas irOptimized: 89148 // gas irOptimized: 89148
// gas legacy: 103590 // gas legacy: 103039
// gas legacyOptimized: 101044 // gas legacyOptimized: 100493
// storageEmpty -> 0 // storageEmpty -> 0
// test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020 // test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020
// gas legacy: 61930 // gas legacy: 61930

View File

@ -19,6 +19,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0 // test() -> 0
// gas irOptimized: 158143 // gas irOptimized: 157951
// gas legacy: 189715 // gas legacy: 188576
// gas legacyOptimized: 184472 // gas legacyOptimized: 183333

View File

@ -16,6 +16,6 @@ contract c {
// getLength() -> 0 // getLength() -> 0
// set(): 1, 2 -> true // set(): 1, 2 -> true
// gas irOptimized: 110439 // gas irOptimized: 110439
// gas legacy: 110726 // gas legacy: 110723
// gas legacyOptimized: 110567 // gas legacyOptimized: 110564
// getLength() -> 68 // getLength() -> 68

View File

@ -22,7 +22,7 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// store(uint256[9],uint8[3][]): 21, 22, 23, 24, 25, 26, 27, 28, 29, 0x140, 4, 1, 2, 3, 11, 12, 13, 21, 22, 23, 31, 32, 33 -> 32 // store(uint256[9],uint8[3][]): 21, 22, 23, 24, 25, 26, 27, 28, 29, 0x140, 4, 1, 2, 3, 11, 12, 13, 21, 22, 23, 31, 32, 33 -> 32
// gas irOptimized: 650647 // gas irOptimized: 650608
// gas legacy: 694515 // gas legacy: 694515
// gas legacyOptimized: 694013 // gas legacyOptimized: 694013
// retrieve() -> 9, 28, 9, 28, 4, 3, 32 // retrieve() -> 9, 28, 9, 28, 4, 3, 32

View File

@ -21,6 +21,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000 // test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000
// gas irOptimized: 212571 // gas irOptimized: 212568
// gas legacy: 221883 // gas legacy: 221856
// gas legacyOptimized: 220734 // gas legacyOptimized: 220680

View File

@ -37,12 +37,12 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0x02000202 // test() -> 0x02000202
// gas irOptimized: 4652058 // gas irOptimized: 4652050
// gas legacy: 4578341 // gas legacy: 4578320
// gas legacyOptimized: 4548354 // gas legacyOptimized: 4548312
// storageEmpty -> 1 // storageEmpty -> 1
// clear() -> 0, 0 // clear() -> 0, 0
// gas irOptimized: 4483175 // gas irOptimized: 4483175
// gas legacy: 4410769 // gas legacy: 4410748
// gas legacyOptimized: 4382531 // gas legacyOptimized: 4382489
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -19,7 +19,7 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 4, 5 // test() -> 4, 5
// gas irOptimized: 238826 // gas irOptimized: 238799
// gas legacy: 238736 // gas legacy: 238736
// gas legacyOptimized: 237159 // gas legacyOptimized: 237159
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -21,5 +21,5 @@ contract c {
// ---- // ----
// test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000 // test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 129167 // gas irOptimized: 129167
// gas legacy: 186406 // gas legacy: 186184
// gas legacyOptimized: 166126 // gas legacyOptimized: 165682

View File

@ -23,5 +23,5 @@ contract c {
// ---- // ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0 // test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0
// gas irOptimized: 294772 // gas irOptimized: 294772
// gas legacy: 303653 // gas legacy: 303626
// gas legacyOptimized: 301999 // gas legacyOptimized: 301945

View File

@ -23,5 +23,5 @@ contract c {
// ---- // ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00 // test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00
// gas irOptimized: 273963 // gas irOptimized: 273963
// gas legacy: 276381 // gas legacy: 276360
// gas legacyOptimized: 275453 // gas legacyOptimized: 275411

View File

@ -48,6 +48,6 @@ contract C {
// ---- // ----
// copyExternalStorageArrayOfFunctionType() -> true // copyExternalStorageArrayOfFunctionType() -> true
// gas irOptimized: 104669 // gas irOptimized: 104669
// gas legacy: 108725 // gas legacy: 108722
// gas legacyOptimized: 102441 // gas legacyOptimized: 102438
// copyInternalArrayOfFunctionType() -> true // copyInternalArrayOfFunctionType() -> true

View File

@ -51,7 +51,7 @@ contract C {
// ---- // ----
// copyExternalStorageArraysOfFunctionType() -> true // copyExternalStorageArraysOfFunctionType() -> true
// gas irOptimized: 104342 // gas irOptimized: 104342
// gas legacy: 108462 // gas legacy: 108459
// gas legacyOptimized: 102174 // gas legacyOptimized: 102171
// copyInternalArrayOfFunctionType() -> true // copyInternalArrayOfFunctionType() -> true
// gas legacy: 104178 // gas legacy: 104178

View File

@ -17,4 +17,4 @@ contract C {
// compileViaYul: true // compileViaYul: true
// ---- // ----
// f((uint128,uint64,uint128)[]): 0x20, 3, 0, 0, 12, 0, 11, 0, 10, 0, 0 -> 10, 11, 12 // f((uint128,uint64,uint128)[]): 0x20, 3, 0, 0, 12, 0, 11, 0, 10, 0, 0 -> 10, 11, 12
// gas irOptimized: 121048 // gas irOptimized: 121021

View File

@ -8,12 +8,12 @@ contract c {
// ---- // ----
// set(uint256): 1, 2 -> true // set(uint256): 1, 2 -> true
// gas irOptimized: 110604 // gas irOptimized: 110604
// gas legacy: 111091 // gas legacy: 111088
// gas legacyOptimized: 110736 // gas legacyOptimized: 110733
// set(uint256): 2, 2, 3, 4, 5 -> true // set(uint256): 2, 2, 3, 4, 5 -> true
// gas irOptimized: 177564 // gas irOptimized: 177564
// gas legacy: 178021 // gas legacy: 178018
// gas legacyOptimized: 177666 // gas legacyOptimized: 177663
// storageEmpty -> 0 // storageEmpty -> 0
// copy(uint256,uint256): 1, 2 -> true // copy(uint256,uint256): 1, 2 -> true
// storageEmpty -> 0 // storageEmpty -> 0

View File

@ -20,24 +20,24 @@ contract c {
// f(uint256): 0 -> 0x20, 0x00 // f(uint256): 0 -> 0x20, 0x00
// f(uint256): 31 -> 0x20, 0x1f, 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e00 // f(uint256): 31 -> 0x20, 0x1f, 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e00
// gas irOptimized: 121741 // gas irOptimized: 121741
// gas legacy: 124364 // gas legacy: 123884
// gas legacyOptimized: 119898 // gas legacyOptimized: 119139
// f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671 // f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671
// gas irOptimized: 130733 // gas irOptimized: 130733
// gas legacy: 135431 // gas legacy: 134936
// gas legacyOptimized: 130829 // gas legacyOptimized: 130046
// f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000 // f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 137732 // gas irOptimized: 137732
// gas legacy: 142238 // gas legacy: 141728
// gas legacyOptimized: 137518 // gas legacyOptimized: 136711
// f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992 // f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992
// gas irOptimized: 152352 // gas irOptimized: 152352
// gas legacy: 160728 // gas legacy: 159768
// gas legacyOptimized: 152168 // gas legacyOptimized: 150641
// f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000 // f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000
// gas legacy: 59345 // gas legacy: 59345
// gas legacyOptimized: 57279 // gas legacyOptimized: 57279
// f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968 // f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968
// gas irOptimized: 406089 // gas irOptimized: 406089
// gas legacy: 423017 // gas legacy: 421067
// gas legacyOptimized: 406021 // gas legacyOptimized: 402910

View File

@ -38,11 +38,11 @@ contract C {
// ---- // ----
// f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000 // f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000
// gas irOptimized: 179899 // gas irOptimized: 179899
// gas legacy: 180694 // gas legacy: 180676
// gas legacyOptimized: 180088 // gas legacyOptimized: 180070
// g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000 // g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000
// gas irOptimized: 107274 // gas irOptimized: 107274
// gas legacy: 107895 // gas legacy: 107877
// gas legacyOptimized: 107254 // gas legacyOptimized: 107236
// h() -> 0x40, 0x60, 0x00, 0x00 // h() -> 0x40, 0x60, 0x00, 0x00
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -49,5 +49,5 @@ contract C {
// ---- // ----
// f() -> 0xff // f() -> 0xff
// gas irOptimized: 121145 // gas irOptimized: 121145
// gas legacy: 128035 // gas legacy: 128005
// gas legacyOptimized: 123476 // gas legacyOptimized: 123446

View File

@ -18,6 +18,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 7 // test() -> 7
// gas irOptimized: 124041 // gas irOptimized: 124037
// gas legacy: 205196 // gas legacy: 205196
// gas legacyOptimized: 204987 // gas legacyOptimized: 204987

View File

@ -10,8 +10,8 @@ contract c {
// ---- // ----
// set(): 1, 2, 3, 4, 5 -> true // set(): 1, 2, 3, 4, 5 -> true
// gas irOptimized: 177390 // gas irOptimized: 177390
// gas legacy: 177656 // gas legacy: 177653
// gas legacyOptimized: 177496 // gas legacyOptimized: 177493
// storageEmpty -> 0 // storageEmpty -> 0
// reset() -> true // reset() -> true
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -22,8 +22,8 @@ contract sender {
// ---- // ----
// (): 7 -> // (): 7 ->
// gas irOptimized: 110954 // gas irOptimized: 110954
// gas legacy: 111082 // gas legacy: 111073
// gas legacyOptimized: 111027 // gas legacyOptimized: 111018
// val() -> 0 // val() -> 0
// forward(bool): true -> true // forward(bool): true -> true
// val() -> 0x80 // val() -> 0x80

View File

@ -21,5 +21,5 @@ contract C {
// ---- // ----
// f() -> 3 // f() -> 3
// gas irOptimized: 129916 // gas irOptimized: 129916
// gas legacy: 130307 // gas legacy: 130181
// gas legacyOptimized: 129363 // gas legacyOptimized: 129198

View File

@ -20,5 +20,5 @@ contract C {
// ---- // ----
// f() -> 1, 2, 3, 4, 5, 6, 7 // f() -> 1, 2, 3, 4, 5, 6, 7
// gas irOptimized: 207785 // gas irOptimized: 207785
// gas legacy: 212325 // gas legacy: 212313
// gas legacyOptimized: 211486 // gas legacyOptimized: 211462

View File

@ -14,5 +14,5 @@ contract C {
// ---- // ----
// f() -> 0x20, 0x02, 0x40, 0x80, 3, 0x6162630000000000000000000000000000000000000000000000000000000000, 0x99, 44048183304486788312148433451363384677562265908331949128489393215789685032262, 32241931068525137014058842823026578386641954854143559838526554899205067598957, 49951309422467613961193228765530489307475214998374779756599339590522149884499, 0x54555658595a6162636465666768696a6b6c6d6e6f707172737475767778797a, 0x4142434445464748494a4b4c4d4e4f5051525354555658595a00000000000000 // f() -> 0x20, 0x02, 0x40, 0x80, 3, 0x6162630000000000000000000000000000000000000000000000000000000000, 0x99, 44048183304486788312148433451363384677562265908331949128489393215789685032262, 32241931068525137014058842823026578386641954854143559838526554899205067598957, 49951309422467613961193228765530489307475214998374779756599339590522149884499, 0x54555658595a6162636465666768696a6b6c6d6e6f707172737475767778797a, 0x4142434445464748494a4b4c4d4e4f5051525354555658595a00000000000000
// gas irOptimized: 202840 // gas irOptimized: 202840
// gas legacy: 204459 // gas legacy: 204441
// gas legacyOptimized: 203437 // gas legacyOptimized: 203419

View File

@ -21,5 +21,5 @@ contract C {
// ---- // ----
// f() -> 1, 2, 3, 4, 5, 6, 7 // f() -> 1, 2, 3, 4, 5, 6, 7
// gas irOptimized: 207785 // gas irOptimized: 207785
// gas legacy: 212330 // gas legacy: 212318
// gas legacyOptimized: 211491 // gas legacyOptimized: 211467

View File

@ -16,5 +16,5 @@ contract C {
// ---- // ----
// f() -> 2, 3, 4 // f() -> 2, 3, 4
// gas irOptimized: 114120 // gas irOptimized: 114120
// gas legacy: 126449 // gas legacy: 126350
// gas legacyOptimized: 120902 // gas legacyOptimized: 120704

View File

@ -19,5 +19,5 @@ contract c {
// ---- // ----
// test1() -> true // test1() -> true
// gas irOptimized: 225894 // gas irOptimized: 225894
// gas legacy: 255577 // gas legacy: 254650
// gas legacyOptimized: 248611 // gas legacyOptimized: 247384

View File

@ -17,8 +17,8 @@ contract c {
// storageEmpty -> 1 // storageEmpty -> 1
// fill() -> // fill() ->
// gas irOptimized: 519886 // gas irOptimized: 519886
// gas legacy: 521773 // gas legacy: 521710
// gas legacyOptimized: 517048 // gas legacyOptimized: 516922
// storageEmpty -> 0 // storageEmpty -> 0
// halfClear() -> // halfClear() ->
// storageEmpty -> 0 // storageEmpty -> 0

View File

@ -14,8 +14,8 @@ contract c {
// storageEmpty -> 1 // storageEmpty -> 1
// fill() -> // fill() ->
// gas irOptimized: 465544 // gas irOptimized: 465544
// gas legacy: 471460 // gas legacy: 471400
// gas legacyOptimized: 467520 // gas legacyOptimized: 467400
// storageEmpty -> 0 // storageEmpty -> 0
// clear() -> // clear() ->
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -21,6 +21,6 @@ contract B {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 2, 3, 4, 5, 6, 1000, 1001, 1002, 1003, 1004 // f() -> 2, 3, 4, 5, 6, 1000, 1001, 1002, 1003, 1004
// gas irOptimized: 130152 // gas irOptimized: 129910
// gas legacy: 234943 // gas legacy: 234719
// gas legacyOptimized: 132863 // gas legacyOptimized: 132639

View File

@ -11,7 +11,7 @@ contract Creator {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(): 1, 2, 3, 4 -> // constructor(): 1, 2, 3, 4 ->
// gas irOptimized: 129908 // gas irOptimized: 128995
// gas legacy: 176789 // gas legacy: 176789
// gas legacyOptimized: 129585 // gas legacyOptimized: 129585
// r() -> 4 // r() -> 4

View File

@ -45,6 +45,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 5, 6, 7 // test() -> 5, 6, 7
// gas irOptimized: 298983 // gas irOptimized: 298735
// gas legacy: 452172 // gas legacy: 452136
// gas legacyOptimized: 285017 // gas legacyOptimized: 284945

View File

@ -25,7 +25,7 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 1, 2, 3 // test() -> 1, 2, 3
// gas irOptimized: 2271482 // gas irOptimized: 2271050
// gas legacy: 2273722 // gas legacy: 2273434
// gas legacyOptimized: 2262396 // gas legacyOptimized: 2261820
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -21,6 +21,6 @@ contract c {
// ---- // ----
// test() -> 38, 28, 18 // test() -> 38, 28, 18
// gas irOptimized: 188649 // gas irOptimized: 188649
// gas legacy: 189780 // gas legacy: 189492
// gas legacyOptimized: 178870 // gas legacyOptimized: 178294
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -21,6 +21,6 @@ contract c {
// ---- // ----
// test() -> 20, 10 // test() -> 20, 10
// gas irOptimized: 159175 // gas irOptimized: 159175
// gas legacy: 159459 // gas legacy: 159279
// gas legacyOptimized: 153281 // gas legacyOptimized: 152921
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -13,5 +13,5 @@ contract c {
// ---- // ----
// test() -> 0x20, 29, 0x0303030303030303030303030303030303030303030303030303030303000000 // test() -> 0x20, 29, 0x0303030303030303030303030303030303030303030303030303030303000000
// gas irOptimized: 109503 // gas irOptimized: 109503
// gas legacy: 127309 // gas legacy: 126728
// gas legacyOptimized: 124136 // gas legacyOptimized: 123444

View File

@ -19,6 +19,6 @@ contract c {
// ---- // ----
// test() -> true // test() -> true
// gas irOptimized: 196545 // gas irOptimized: 196545
// gas legacy: 229864 // gas legacy: 228685
// gas legacyOptimized: 210964 // gas legacyOptimized: 209662
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -18,6 +18,6 @@ contract c {
// ---- // ----
// test() -> // test() ->
// gas irOptimized: 142640 // gas irOptimized: 142640
// gas legacy: 165363 // gas legacy: 164430
// gas legacyOptimized: 159446 // gas legacyOptimized: 158513
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -13,5 +13,5 @@ contract c {
// ---- // ----
// test() -> 0x20, 33, 0x303030303030303030303030303030303030303030303030303030303030303, 0x0300000000000000000000000000000000000000000000000000000000000000 // test() -> 0x20, 33, 0x303030303030303030303030303030303030303030303030303030303030303, 0x0300000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 108493 // gas irOptimized: 108493
// gas legacy: 126187 // gas legacy: 125610
// gas legacyOptimized: 123261 // gas legacyOptimized: 122582

View File

@ -14,6 +14,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(uint120[]): 0x20, 3, 1, 2, 3 -> 1 // f(uint120[]): 0x20, 3, 1, 2, 3 -> 1
// gas irOptimized: 113267 // gas irOptimized: 113258
// gas legacy: 113686 // gas legacy: 113686
// gas legacyOptimized: 113499 // gas legacyOptimized: 113499

View File

@ -18,6 +18,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test((uint16,uint16,uint16[3],uint16[])): 0x20, 2, 3, 0, 0, 4, 0xC0, 4, 0, 0, 5, 0, 0 -> 2, 3, 4, 5 // test((uint16,uint16,uint16[3],uint16[])): 0x20, 2, 3, 0, 0, 4, 0xC0, 4, 0, 0, 5, 0, 0 -> 2, 3, 4, 5
// gas irOptimized: 138732 // gas irOptimized: 138705
// gas legacy: 145150 // gas legacy: 145150
// gas legacyOptimized: 139171 // gas legacyOptimized: 139171

View File

@ -17,6 +17,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0 // test() -> 0
// gas irOptimized: 176848 // gas irOptimized: 176497
// gas legacy: 218028 // gas legacy: 216790
// gas legacyOptimized: 205124 // gas legacyOptimized: 203886

View File

@ -16,5 +16,5 @@ contract C {
// ---- // ----
// f() -> // f() ->
// gas irOptimized: 179590 // gas irOptimized: 179590
// gas legacy: 180620 // gas legacy: 180602
// gas legacyOptimized: 180403 // gas legacyOptimized: 180385

View File

@ -30,14 +30,14 @@ contract C {
// l() -> 0 // l() -> 0
// f(uint256,uint256): 42, 64 -> // f(uint256,uint256): 42, 64 ->
// gas irOptimized: 112528 // gas irOptimized: 112528
// gas legacy: 108234 // gas legacy: 108105
// gas legacyOptimized: 102245 // gas legacyOptimized: 101987
// l() -> 1 // l() -> 1
// ll(uint256): 0 -> 43 // ll(uint256): 0 -> 43
// a(uint256,uint256): 0, 42 -> 64 // a(uint256,uint256): 0, 42 -> 64
// f(uint256,uint256): 84, 128 -> // f(uint256,uint256): 84, 128 ->
// gas irOptimized: 116400 // gas irOptimized: 116400
// gas legacy: 107780 // gas legacy: 107525
// gas legacyOptimized: 96331 // gas legacyOptimized: 96331
// l() -> 2 // l() -> 2
// ll(uint256): 1 -> 85 // ll(uint256): 1 -> 85

View File

@ -24,8 +24,8 @@ contract C {
// l() -> 0 // l() -> 0
// g(uint256): 70 -> // g(uint256): 70 ->
// gas irOptimized: 185936 // gas irOptimized: 185936
// gas legacy: 184991 // gas legacy: 183811
// gas legacyOptimized: 180608 // gas legacyOptimized: 179218
// l() -> 70 // l() -> 70
// a(uint256): 69 -> left(69) // a(uint256): 69 -> left(69)
// f() -> // f() ->

View File

@ -11,9 +11,9 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// (): 1, 2, 3, 4, 5 -> // (): 1, 2, 3, 4, 5 ->
// gas irOptimized: 155181 // gas irOptimized: 155170
// gas legacy: 155254 // gas legacy: 155251
// gas legacyOptimized: 155217 // gas legacyOptimized: 155214
// checkIfDataIsEmpty() -> false // checkIfDataIsEmpty() -> false
// sendMessage() -> true, 0x40, 0 // sendMessage() -> true, 0x40, 0
// checkIfDataIsEmpty() -> true // checkIfDataIsEmpty() -> true

View File

@ -26,6 +26,6 @@ contract Creator {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(uint256,address[]): 7, 0x40, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 -> 7, 8 // f(uint256,address[]): 7, 0x40, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 -> 7, 8
// gas irOptimized: 443989 // gas irOptimized: 443720
// gas legacy: 590683 // gas legacy: 590683
// gas legacyOptimized: 448326 // gas legacyOptimized: 448326

View File

@ -26,6 +26,6 @@ contract Creator {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h" // f(uint256,bytes): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> 7, "h"
// gas irOptimized: 300837 // gas irOptimized: 300834
// gas legacy: 428917 // gas legacy: 428711
// gas legacyOptimized: 298128 // gas legacyOptimized: 297922

View File

@ -11,7 +11,7 @@ contract Test {
// ---- // ----
// constructor(): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" -> // constructor(): 7, 0x40, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" ->
// gas irOptimized: 291443 // gas irOptimized: 291443
// gas legacy: 309842 // gas legacy: 309607
// gas legacyOptimized: 260801 // gas legacyOptimized: 260566
// m_x() -> 7 // m_x() -> 7
// m_s() -> 0x20, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz" // m_s() -> 0x20, 78, "abcdefghijklmnopqrstuvwxyzabcdef", "ghijklmnopqrstuvwxyzabcdefghijkl", "mnopqrstuvwxyz"

View File

@ -19,7 +19,7 @@ contract Main {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(): "abc", true // constructor(): "abc", true
// gas irOptimized: 107175 // gas irOptimized: 106267
// gas legacy: 145838 // gas legacy: 145838
// gas legacyOptimized: 104017 // gas legacyOptimized: 104017
// getFlag() -> true // getFlag() -> true

View File

@ -12,7 +12,7 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(): 1, 2, 3, 4 -> // constructor(): 1, 2, 3, 4 ->
// gas irOptimized: 174905 // gas irOptimized: 174041
// gas legacy: 221377 // gas legacy: 221377
// gas legacyOptimized: 177671 // gas legacyOptimized: 177671
// a() -> 1 // a() -> 1

View File

@ -19,6 +19,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(), 2000 ether -> true // f(), 2000 ether -> true
// gas irOptimized: 123037 // gas irOptimized: 123036
// gas legacy: 123226 // gas legacy: 123226
// gas legacyOptimized: 123092 // gas legacyOptimized: 123092

View File

@ -15,5 +15,5 @@ contract B is A {
// compileViaYul: true // compileViaYul: true
// ---- // ----
// constructor() -> // constructor() ->
// gas irOptimized: 122017 // gas irOptimized: 121153
// y() -> 42 // y() -> 42

View File

@ -12,7 +12,7 @@ contract B is A {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() -> // constructor() ->
// gas irOptimized: 122017 // gas irOptimized: 121153
// gas legacy: 135046 // gas legacy: 135046
// gas legacyOptimized: 116176 // gas legacyOptimized: 116176
// y() -> 42 // y() -> 42

View File

@ -11,7 +11,7 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(): 2, 0 -> // constructor(): 2, 0 ->
// gas irOptimized: 104227 // gas irOptimized: 103363
// gas legacy: 117158 // gas legacy: 117158
// i() -> 2 // i() -> 2
// k() -> 0 // k() -> 0

View File

@ -14,7 +14,7 @@ contract D is C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(): 2, 0 -> // constructor(): 2, 0 ->
// gas irOptimized: 124844 // gas irOptimized: 123980
// gas legacy: 139250 // gas legacy: 139250
// gas legacyOptimized: 119367 // gas legacyOptimized: 119367
// i() -> 2 // i() -> 2

View File

@ -17,7 +17,7 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() -> // constructor() ->
// gas irOptimized: 173672 // gas irOptimized: 172802
// gas legacy: 250376 // gas legacy: 250376
// gas legacyOptimized: 174522 // gas legacyOptimized: 174522
// deposit(bytes32), 18 wei: 0x1234 -> // deposit(bytes32), 18 wei: 0x1234 ->

View File

@ -20,5 +20,5 @@ contract C {
// deposit() -> // deposit() ->
// ~ emit E(string,uint256[4]): #0xa7fb06bb999a5eb9aff9e0779953f4e1e4ce58044936c2f51c7fb879b85c08bd, #0xe755d8cc1a8cde16a2a31160dcd8017ac32d7e2f13215b29a23cdae40a78aa81 // ~ emit E(string,uint256[4]): #0xa7fb06bb999a5eb9aff9e0779953f4e1e4ce58044936c2f51c7fb879b85c08bd, #0xe755d8cc1a8cde16a2a31160dcd8017ac32d7e2f13215b29a23cdae40a78aa81
// gas irOptimized: 343396 // gas irOptimized: 343396
// gas legacy: 390742 // gas legacy: 388679
// gas legacyOptimized: 376774 // gas legacyOptimized: 374441

View File

@ -76,9 +76,9 @@ contract FixedFeeRegistrar is Registrar {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() // constructor()
// gas irOptimized: 413485 // gas irOptimized: 413269
// gas legacy: 936897 // gas legacy: 935817
// gas legacyOptimized: 490983 // gas legacyOptimized: 489951
// reserve(string), 69 ether: 0x20, 3, "abc" -> // reserve(string), 69 ether: 0x20, 3, "abc" ->
// ~ emit Changed(string): #0x4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45 // ~ emit Changed(string): #0x4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45
// gas irOptimized: 45967 // gas irOptimized: 45967

View File

@ -35,8 +35,8 @@ contract test {
// ---- // ----
// constructor() // constructor()
// gas irOptimized: 450044 // gas irOptimized: 450044
// gas legacy: 766936 // gas legacy: 765640
// gas legacyOptimized: 543094 // gas legacyOptimized: 541810
// encode_inline_asm(bytes): 0x20, 0 -> 0x20, 0 // encode_inline_asm(bytes): 0x20, 0 -> 0x20, 0
// encode_inline_asm(bytes): 0x20, 1, "f" -> 0x20, 4, "Zg==" // encode_inline_asm(bytes): 0x20, 1, "f" -> 0x20, 4, "Zg=="
// encode_inline_asm(bytes): 0x20, 2, "fo" -> 0x20, 4, "Zm8=" // encode_inline_asm(bytes): 0x20, 2, "fo" -> 0x20, 4, "Zm8="
@ -53,9 +53,9 @@ contract test {
// encode_no_asm(bytes): 0x20, 6, "foobar" -> 0x20, 8, "Zm9vYmFy" // encode_no_asm(bytes): 0x20, 6, "foobar" -> 0x20, 8, "Zm9vYmFy"
// encode_inline_asm_large() // encode_inline_asm_large()
// gas irOptimized: 1385047 // gas irOptimized: 1385047
// gas legacy: 1658033 // gas legacy: 1652033
// gas legacyOptimized: 1210033 // gas legacyOptimized: 1201033
// encode_no_asm_large() // encode_no_asm_large()
// gas irOptimized: 3335101 // gas irOptimized: 3335101
// gas legacy: 4801077 // gas legacy: 4777077
// gas legacyOptimized: 2929077 // gas legacyOptimized: 2890077

View File

@ -178,35 +178,35 @@ contract DepositContract is IDepositContract, ERC165 {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() // constructor()
// gas irOptimized: 1543359 // gas irOptimized: 1542927
// gas legacy: 2436584 // gas legacy: 2435803
// gas legacyOptimized: 1776483 // gas legacyOptimized: 1775425
// supportsInterface(bytes4): 0x0 -> 0 // supportsInterface(bytes4): 0x0 -> 0
// supportsInterface(bytes4): 0xffffffff00000000000000000000000000000000000000000000000000000000 -> false # defined to be false by ERC-165 # // supportsInterface(bytes4): 0xffffffff00000000000000000000000000000000000000000000000000000000 -> false # defined to be false by ERC-165 #
// supportsInterface(bytes4): 0x01ffc9a700000000000000000000000000000000000000000000000000000000 -> true # ERC-165 id # // supportsInterface(bytes4): 0x01ffc9a700000000000000000000000000000000000000000000000000000000 -> true # ERC-165 id #
// supportsInterface(bytes4): 0x8564090700000000000000000000000000000000000000000000000000000000 -> true # the deposit interface id # // supportsInterface(bytes4): 0x8564090700000000000000000000000000000000000000000000000000000000 -> true # the deposit interface id #
// get_deposit_root() -> 0xd70a234731285c6804c2a4f56711ddb8c82c99740f207854891028af34e27e5e // get_deposit_root() -> 0xd70a234731285c6804c2a4f56711ddb8c82c99740f207854891028af34e27e5e
// gas irOptimized: 122135 // gas irOptimized: 122135
// gas legacy: 150465 // gas legacy: 150273
// gas legacyOptimized: 122798 // gas legacyOptimized: 122510
// get_deposit_count() -> 0x20, 8, 0 # TODO: check balance and logs after each deposit # // get_deposit_count() -> 0x20, 8, 0 # TODO: check balance and logs after each deposit #
// deposit(bytes,bytes,bytes,bytes32), 32 ether: 0 -> FAILURE # Empty input # // deposit(bytes,bytes,bytes,bytes32), 32 ether: 0 -> FAILURE # Empty input #
// get_deposit_root() -> 0xd70a234731285c6804c2a4f56711ddb8c82c99740f207854891028af34e27e5e // get_deposit_root() -> 0xd70a234731285c6804c2a4f56711ddb8c82c99740f207854891028af34e27e5e
// gas irOptimized: 122135 // gas irOptimized: 122135
// gas legacy: 150465 // gas legacy: 150273
// gas legacyOptimized: 122798 // gas legacyOptimized: 122510
// get_deposit_count() -> 0x20, 8, 0 // get_deposit_count() -> 0x20, 8, 0
// deposit(bytes,bytes,bytes,bytes32), 1 ether: 0x80, 0xe0, 0x120, 0xaa4a8d0b7d9077248630f1a4701ae9764e42271d7f22b7838778411857fd349e, 0x30, 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f73292, 0x67a8811c397529dac52ae1342ba58c9500000000000000000000000000000000, 0x20, 0x00f50428677c60f997aadeab24aabf7fceaef491c96a52b463ae91f95611cf71, 0x60, 0xa29d01cc8c6296a8150e515b5995390ef841dc18948aa3e79be6d7c1851b4cbb, 0x5d6ff49fa70b9c782399506a22a85193151b9b691245cebafd2063012443c132, 0x4b6c36debaedefb7b2d71b0503ffdc00150aaffd42e63358238ec888901738b8 -> # txhash: 0x7085c586686d666e8bb6e9477a0f0b09565b2060a11f1c4209d3a52295033832 # // deposit(bytes,bytes,bytes,bytes32), 1 ether: 0x80, 0xe0, 0x120, 0xaa4a8d0b7d9077248630f1a4701ae9764e42271d7f22b7838778411857fd349e, 0x30, 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f73292, 0x67a8811c397529dac52ae1342ba58c9500000000000000000000000000000000, 0x20, 0x00f50428677c60f997aadeab24aabf7fceaef491c96a52b463ae91f95611cf71, 0x60, 0xa29d01cc8c6296a8150e515b5995390ef841dc18948aa3e79be6d7c1851b4cbb, 0x5d6ff49fa70b9c782399506a22a85193151b9b691245cebafd2063012443c132, 0x4b6c36debaedefb7b2d71b0503ffdc00150aaffd42e63358238ec888901738b8 -> # txhash: 0x7085c586686d666e8bb6e9477a0f0b09565b2060a11f1c4209d3a52295033832 #
// ~ emit DepositEvent(bytes,bytes,bytes,bytes,bytes): 0xa0, 0x0100, 0x0140, 0x0180, 0x0200, 0x30, 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f73292, 0x67a8811c397529dac52ae1342ba58c9500000000000000000000000000000000, 0x20, 0xf50428677c60f997aadeab24aabf7fceaef491c96a52b463ae91f95611cf71, 0x08, 0xca9a3b00000000000000000000000000000000000000000000000000000000, 0x60, 0xa29d01cc8c6296a8150e515b5995390ef841dc18948aa3e79be6d7c1851b4cbb, 0x5d6ff49fa70b9c782399506a22a85193151b9b691245cebafd2063012443c132, 0x4b6c36debaedefb7b2d71b0503ffdc00150aaffd42e63358238ec888901738b8, 0x08, 0x00 // ~ emit DepositEvent(bytes,bytes,bytes,bytes,bytes): 0xa0, 0x0100, 0x0140, 0x0180, 0x0200, 0x30, 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f73292, 0x67a8811c397529dac52ae1342ba58c9500000000000000000000000000000000, 0x20, 0xf50428677c60f997aadeab24aabf7fceaef491c96a52b463ae91f95611cf71, 0x08, 0xca9a3b00000000000000000000000000000000000000000000000000000000, 0x60, 0xa29d01cc8c6296a8150e515b5995390ef841dc18948aa3e79be6d7c1851b4cbb, 0x5d6ff49fa70b9c782399506a22a85193151b9b691245cebafd2063012443c132, 0x4b6c36debaedefb7b2d71b0503ffdc00150aaffd42e63358238ec888901738b8, 0x08, 0x00
// get_deposit_root() -> 0x2089653123d9c721215120b6db6738ba273bbc5228ac093b1f983badcdc8a438 // get_deposit_root() -> 0x2089653123d9c721215120b6db6738ba273bbc5228ac093b1f983badcdc8a438
// gas irOptimized: 122114 // gas irOptimized: 122114
// gas legacy: 150475 // gas legacy: 150283
// gas legacyOptimized: 122811 // gas legacyOptimized: 122523
// get_deposit_count() -> 0x20, 8, 0x0100000000000000000000000000000000000000000000000000000000000000 // get_deposit_count() -> 0x20, 8, 0x0100000000000000000000000000000000000000000000000000000000000000
// deposit(bytes,bytes,bytes,bytes32), 32 ether: 0x80, 0xe0, 0x120, 0xdbd986dc85ceb382708cf90a3500f500f0a393c5ece76963ac3ed72eccd2c301, 0x30, 0xb2ce0f79f90e7b3a113ca5783c65756f96c4b4673c2b5c1eb4efc22280259441, 0x06d601211e8866dc5b50dc48a244dd7c00000000000000000000000000000000, 0x20, 0x00344b6c73f71b11c56aba0d01b7d8ad83559f209d0a4101a515f6ad54c89771, 0x60, 0x945caaf82d18e78c033927d51f452ebcd76524497b91d7a11219cb3db6a1d369, 0x7595fc095ce489e46b2ef129591f2f6d079be4faaf345a02c5eb133c072e7c56, 0x0c6c3617eee66b4b878165c502357d49485326bc6b31bc96873f308c8f19c09d -> # txhash: 0x404d8e109822ce448e68f45216c12cb051b784d068fbe98317ab8e50c58304ac # // deposit(bytes,bytes,bytes,bytes32), 32 ether: 0x80, 0xe0, 0x120, 0xdbd986dc85ceb382708cf90a3500f500f0a393c5ece76963ac3ed72eccd2c301, 0x30, 0xb2ce0f79f90e7b3a113ca5783c65756f96c4b4673c2b5c1eb4efc22280259441, 0x06d601211e8866dc5b50dc48a244dd7c00000000000000000000000000000000, 0x20, 0x00344b6c73f71b11c56aba0d01b7d8ad83559f209d0a4101a515f6ad54c89771, 0x60, 0x945caaf82d18e78c033927d51f452ebcd76524497b91d7a11219cb3db6a1d369, 0x7595fc095ce489e46b2ef129591f2f6d079be4faaf345a02c5eb133c072e7c56, 0x0c6c3617eee66b4b878165c502357d49485326bc6b31bc96873f308c8f19c09d -> # txhash: 0x404d8e109822ce448e68f45216c12cb051b784d068fbe98317ab8e50c58304ac #
// ~ emit DepositEvent(bytes,bytes,bytes,bytes,bytes): 0xa0, 0x0100, 0x0140, 0x0180, 0x0200, 0x30, 0xb2ce0f79f90e7b3a113ca5783c65756f96c4b4673c2b5c1eb4efc22280259441, 0x06d601211e8866dc5b50dc48a244dd7c00000000000000000000000000000000, 0x20, 0x344b6c73f71b11c56aba0d01b7d8ad83559f209d0a4101a515f6ad54c89771, 0x08, 0x40597307000000000000000000000000000000000000000000000000000000, 0x60, 0x945caaf82d18e78c033927d51f452ebcd76524497b91d7a11219cb3db6a1d369, 0x7595fc095ce489e46b2ef129591f2f6d079be4faaf345a02c5eb133c072e7c56, 0x0c6c3617eee66b4b878165c502357d49485326bc6b31bc96873f308c8f19c09d, 0x08, 0x0100000000000000000000000000000000000000000000000000000000000000 // ~ emit DepositEvent(bytes,bytes,bytes,bytes,bytes): 0xa0, 0x0100, 0x0140, 0x0180, 0x0200, 0x30, 0xb2ce0f79f90e7b3a113ca5783c65756f96c4b4673c2b5c1eb4efc22280259441, 0x06d601211e8866dc5b50dc48a244dd7c00000000000000000000000000000000, 0x20, 0x344b6c73f71b11c56aba0d01b7d8ad83559f209d0a4101a515f6ad54c89771, 0x08, 0x40597307000000000000000000000000000000000000000000000000000000, 0x60, 0x945caaf82d18e78c033927d51f452ebcd76524497b91d7a11219cb3db6a1d369, 0x7595fc095ce489e46b2ef129591f2f6d079be4faaf345a02c5eb133c072e7c56, 0x0c6c3617eee66b4b878165c502357d49485326bc6b31bc96873f308c8f19c09d, 0x08, 0x0100000000000000000000000000000000000000000000000000000000000000
// get_deposit_root() -> 0x40255975859377d912c53aa853245ebd939bdd2b33a28e084babdcc1ed8238ee // get_deposit_root() -> 0x40255975859377d912c53aa853245ebd939bdd2b33a28e084babdcc1ed8238ee
// gas irOptimized: 122114 // gas irOptimized: 122114
// gas legacy: 150475 // gas legacy: 150283
// gas legacyOptimized: 122811 // gas legacyOptimized: 122523
// get_deposit_count() -> 0x20, 8, 0x0200000000000000000000000000000000000000000000000000000000000000 // get_deposit_count() -> 0x20, 8, 0x0200000000000000000000000000000000000000000000000000000000000000

View File

@ -50,9 +50,9 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() // constructor()
// gas irOptimized: 1938339 // gas irOptimized: 1937251
// gas legacy: 2480887 // gas legacy: 2478955
// gas legacyOptimized: 1874490 // gas legacyOptimized: 1877737
// div(int256,int256): 3141592653589793238, 88714123 -> 35412542528203691288251815328 // div(int256,int256): 3141592653589793238, 88714123 -> 35412542528203691288251815328
// gas irOptimized: 22137 // gas irOptimized: 22137
// gas legacy: 22767 // gas legacy: 22767

View File

@ -50,9 +50,9 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() // constructor()
// gas irOptimized: 1792108 // gas irOptimized: 1791688
// gas legacy: 2250130 // gas legacy: 2248594
// gas legacyOptimized: 1746528 // gas legacyOptimized: 1749096
// div(uint256,uint256): 3141592653589793238, 88714123 -> 35412542528203691288251815328 // div(uint256,uint256): 3141592653589793238, 88714123 -> 35412542528203691288251815328
// gas irOptimized: 22004 // gas irOptimized: 22004
// gas legacy: 22497 // gas legacy: 22497

View File

@ -35,9 +35,9 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() // constructor()
// gas irOptimized: 465789 // gas irOptimized: 464709
// gas legacy: 672749 // gas legacy: 671453
// gas legacyOptimized: 479606 // gas legacyOptimized: 480242
// prb_pi() -> 3141592656369545286 // prb_pi() -> 3141592656369545286
// gas irOptimized: 57478 // gas irOptimized: 57478
// gas legacy: 98903 // gas legacy: 98903

View File

@ -298,5 +298,5 @@ contract Test {
// verifyTx() -> true // verifyTx() -> true
// ~ emit Verified(string): 0x20, 0x16, "Successfully verified." // ~ emit Verified(string): 0x20, 0x16, "Successfully verified."
// gas irOptimized: 95261 // gas irOptimized: 95261
// gas legacy: 114094 // gas legacy: 113731
// gas legacyOptimized: 83670 // gas legacyOptimized: 83670

View File

@ -51,9 +51,9 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() // constructor()
// gas irOptimized: 707330 // gas irOptimized: 704522
// gas legacy: 1130761 // gas legacy: 1127730
// gas legacyOptimized: 750416 // gas legacyOptimized: 753807
// toSlice(string): 0x20, 11, "hello world" -> 11, 0xa0 // toSlice(string): 0x20, 11, "hello world" -> 11, 0xa0
// gas irOptimized: 22660 // gas irOptimized: 22660
// gas legacy: 23190 // gas legacy: 23190
@ -71,6 +71,6 @@ contract test {
// gas legacy: 31621 // gas legacy: 31621
// gas legacyOptimized: 27914 // gas legacyOptimized: 27914
// benchmark(string,bytes32): 0x40, 0x0842021, 8, "solidity" -> 0x2020 // benchmark(string,bytes32): 0x40, 0x0842021, 8, "solidity" -> 0x2020
// gas irOptimized: 2040045 // gas irOptimized: 2040024
// gas legacy: 4381235 // gas legacy: 4356286
// gas legacyOptimized: 2317529 // gas legacyOptimized: 2268278

View File

@ -25,9 +25,9 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 1 ether -> // constructor(), 1 ether ->
// gas irOptimized: 315341 // gas irOptimized: 314681
// gas legacy: 465314 // gas legacy: 464030
// gas legacyOptimized: 304481 // gas legacyOptimized: 304049
// f(uint256): 0 -> FAILURE // f(uint256): 0 -> FAILURE
// f(uint256): 1 -> FAILURE // f(uint256): 1 -> FAILURE
// f(uint256): 2 -> FAILURE // f(uint256): 2 -> FAILURE

View File

@ -27,9 +27,9 @@ contract C {
// revertStrings: debug // revertStrings: debug
// ---- // ----
// constructor(), 1 ether -> // constructor(), 1 ether ->
// gas irOptimized: 452673 // gas irOptimized: 449901
// gas legacy: 834272 // gas legacy: 832976
// gas legacyOptimized: 510004 // gas legacyOptimized: 509560
// f(uint256): 0 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code" // f(uint256): 0 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code"
// f(uint256): 1 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code" // f(uint256): 1 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code"
// f(uint256): 2 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code" // f(uint256): 2 -> FAILURE, hex"08c379a0", 0x20, 37, "Target contract does not contain", " code"

View File

@ -18,9 +18,9 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 20 wei // constructor(), 20 wei
// gas irOptimized: 219285 // gas irOptimized: 219069
// gas legacy: 294569 // gas legacy: 294335
// gas legacyOptimized: 174699 // gas legacyOptimized: 174279
// f(uint256): 20 -> 1370859564726510389319704988634906228201275401179 // f(uint256): 20 -> 1370859564726510389319704988634906228201275401179
// x() -> 1 // x() -> 1
// f(uint256): 20 -> FAILURE // f(uint256): 20 -> FAILURE

View File

@ -41,7 +41,7 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 20 wei -> // constructor(), 20 wei ->
// gas irOptimized: 283040 // gas irOptimized: 282824
// gas legacy: 402654 // gas legacy: 402654
// gas legacyOptimized: 274470 // gas legacyOptimized: 274470
// sendAmount(uint256): 5 -> 5 // sendAmount(uint256): 5 -> 5

View File

@ -40,7 +40,7 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 20 wei -> // constructor(), 20 wei ->
// gas irOptimized: 283040 // gas irOptimized: 282824
// gas legacy: 402654 // gas legacy: 402654
// gas legacyOptimized: 274470 // gas legacyOptimized: 274470
// sendAmount(uint256): 5 -> 5 // sendAmount(uint256): 5 -> 5

View File

@ -20,7 +20,7 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// set(uint8,uint8,uint8,uint8,uint8): 1, 21, 22, 42, 43 -> 0, 0, 0, 0 // set(uint8,uint8,uint8,uint8,uint8): 1, 21, 22, 42, 43 -> 0, 0, 0, 0
// gas irOptimized: 111929 // gas irOptimized: 111914
// gas legacy: 113806 // gas legacy: 113806
// gas legacyOptimized: 111781 // gas legacyOptimized: 111781
// get(uint8): 1 -> 21, 22, 42, 43 // get(uint8): 1 -> 21, 22, 42, 43

View File

@ -42,7 +42,7 @@ contract Main {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 22 wei -> // constructor(), 22 wei ->
// gas irOptimized: 284321 // gas irOptimized: 282981
// gas legacy: 402045 // gas legacy: 402045
// gas legacyOptimized: 266772 // gas legacyOptimized: 266772
// getFlag() -> true // getFlag() -> true

View File

@ -18,7 +18,7 @@ contract ClientReceipt {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 2000 wei -> // constructor(), 2000 wei ->
// gas irOptimized: 188162 // gas irOptimized: 187946
// gas legacy: 235195 // gas legacy: 235195
// gas legacyOptimized: 176766 // gas legacyOptimized: 176766
// balance -> 1500 // balance -> 1500

View File

@ -25,6 +25,6 @@ contract Test {
// ---- // ----
// library: Lib // library: Lib
// f() -> 4, 0x11 // f() -> 4, 0x11
// gas irOptimized: 115874 // gas irOptimized: 115868
// gas legacy: 135952 // gas legacy: 135820
// gas legacyOptimized: 119643 // gas legacyOptimized: 119448

View File

@ -14,7 +14,7 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor() // constructor()
// gas irOptimized: 115297 // gas irOptimized: 115278
// gas legacy: 155081 // gas legacy: 155081
// gas legacyOptimized: 107997 // gas legacyOptimized: 107997
// genesisHash() -> 0x3737373737373737373737373737373737373737373737373737373737373737 // genesisHash() -> 0x3737373737373737373737373737373737373737373737373737373737373737

View File

@ -18,6 +18,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(uint32,(uint128,uint256[][2],uint32)): 55, 0x40, 77, 0x60, 88, 0x40, 0x40, 2, 1, 2 -> 55, 77, 1, 2, 88 // f(uint32,(uint128,uint256[][2],uint32)): 55, 0x40, 77, 0x60, 88, 0x40, 0x40, 2, 1, 2 -> 55, 77, 1, 2, 88
// gas irOptimized: 203312 // gas irOptimized: 203303
// gas legacy: 209194 // gas legacy: 209194
// gas legacyOptimized: 203583 // gas legacyOptimized: 203583

View File

@ -88,7 +88,7 @@ contract Test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test1() -> true // test1() -> true
// gas irOptimized: 150545 // gas irOptimized: 150533
// gas legacy: 150266 // gas legacy: 150266
// gas legacyOptimized: 149875 // gas legacyOptimized: 149875
// test2() -> true // test2() -> true

View File

@ -26,8 +26,8 @@ contract c {
// storageEmpty -> 1 // storageEmpty -> 1
// set(uint256,bytes,uint256): 12, 0x60, 13, 33, "12345678901234567890123456789012", "3" -> true // set(uint256,bytes,uint256): 12, 0x60, 13, 33, "12345678901234567890123456789012", "3" -> true
// gas irOptimized: 133728 // gas irOptimized: 133728
// gas legacy: 134436 // gas legacy: 134433
// gas legacyOptimized: 133879 // gas legacyOptimized: 133876
// test(uint256): 32 -> "3" // test(uint256): 32 -> "3"
// storageEmpty -> 0 // storageEmpty -> 0
// copy() -> true // copy() -> true

View File

@ -43,7 +43,7 @@ contract c {
// gas legacyOptimized: 110006 // gas legacyOptimized: 110006
// retrieve(uint256): 7 -> 1, 3, 4, 2 // retrieve(uint256): 7 -> 1, 3, 4, 2
// copy(uint256,uint256): 7, 8 -> true // copy(uint256,uint256): 7, 8 -> true
// gas irOptimized: 118597 // gas irOptimized: 118591
// gas legacy: 119166 // gas legacy: 119166
// gas legacyOptimized: 118622 // gas legacyOptimized: 118622
// retrieve(uint256): 7 -> 1, 3, 4, 2 // retrieve(uint256): 7 -> 1, 3, 4, 2

View File

@ -51,12 +51,12 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test_f() -> true // test_f() -> true
// gas irOptimized: 122364 // gas irOptimized: 122334
// gas legacy: 126168 // gas legacy: 126150
// gas legacyOptimized: 123199 // gas legacyOptimized: 123163
// test_g() -> true // test_g() -> true
// gas irOptimized: 95980 // gas irOptimized: 95980
// gas legacy: 101311 // gas legacy: 101281
// gas legacyOptimized: 96566 // gas legacyOptimized: 96566
// addresses(uint256): 0 -> 0x18 // addresses(uint256): 0 -> 0x18
// addresses(uint256): 1 -> 0x19 // addresses(uint256): 1 -> 0x19

View File

@ -115,8 +115,8 @@ contract ERC20 {
// ---- // ----
// constructor() // constructor()
// ~ emit Transfer(address,address,uint256): #0x00, #0x1212121212121212121212121212120000000012, 0x14 // ~ emit Transfer(address,address,uint256): #0x00, #0x1212121212121212121212121212120000000012, 0x14
// gas irOptimized: 423885 // gas irOptimized: 423453
// gas legacy: 861559 // gas legacy: 860880
// gas legacyOptimized: 420959 // gas legacyOptimized: 420959
// totalSupply() -> 20 // totalSupply() -> 20
// gas irOptimized: 23415 // gas irOptimized: 23415

View File

@ -18,8 +18,8 @@ contract C {
// ---- // ----
// constructor() -> // constructor() ->
// gas irOptimized: 199723 // gas irOptimized: 199723
// gas legacy: 241124 // gas legacy: 240889
// gas legacyOptimized: 155549 // gas legacyOptimized: 155314
// initCode() -> 0x20, 0 // initCode() -> 0x20, 0
// f() -> true // f() -> true
// g() -> 0 // g() -> 0

View File

@ -36,6 +36,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(bytes): 0x20, 0x5, "abcde" -> 0 // f(bytes): 0x20, 0x5, "abcde" -> 0
// gas irOptimized: 240691 // gas irOptimized: 240667
// gas legacy: 240358 // gas legacy: 240349
// gas legacyOptimized: 239682 // gas legacyOptimized: 239673

View File

@ -98,8 +98,8 @@ contract ERC20 {
// ---- // ----
// constructor() // constructor()
// ~ emit Transfer(address,address,uint256): #0x00, #0x1212121212121212121212121212120000000012, 0x14 // ~ emit Transfer(address,address,uint256): #0x00, #0x1212121212121212121212121212120000000012, 0x14
// gas irOptimized: 419330 // gas irOptimized: 418910
// gas legacy: 833310 // gas legacy: 832643
// gas legacyOptimized: 416135 // gas legacyOptimized: 416135
// totalSupply() -> 20 // totalSupply() -> 20
// gas irOptimized: 23415 // gas irOptimized: 23415

View File

@ -23,5 +23,5 @@ contract C {
// ---- // ----
// g() -> 2, 6 // g() -> 2, 6
// gas irOptimized: 178812 // gas irOptimized: 178812
// gas legacy: 180762 // gas legacy: 180753
// gas legacyOptimized: 179481 // gas legacyOptimized: 179472

View File

@ -22,7 +22,7 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 20 wei -> // constructor(), 20 wei ->
// gas irOptimized: 192113 // gas irOptimized: 191249
// gas legacy: 265006 // gas legacy: 265006
// gas legacyOptimized: 182842 // gas legacyOptimized: 182842
// sendAmount(uint256): 5 -> 8 // sendAmount(uint256): 5 -> 8

View File

@ -21,7 +21,7 @@ contract test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// constructor(), 20 wei -> // constructor(), 20 wei ->
// gas irOptimized: 194261 // gas irOptimized: 193397
// gas legacy: 266728 // gas legacy: 266728
// gas legacyOptimized: 184762 // gas legacyOptimized: 184762
// sendAmount(uint256): 5 -> 8 // sendAmount(uint256): 5 -> 8

View File

@ -28,9 +28,9 @@ contract C {
// index(uint256): 10 -> true // index(uint256): 10 -> true
// index(uint256): 20 -> true // index(uint256): 20 -> true
// index(uint256): 0xFF -> true // index(uint256): 0xFF -> true
// gas irOptimized: 138410 // gas irOptimized: 137645
// gas legacy: 248854 // gas legacy: 247324
// gas legacyOptimized: 152638 // gas legacyOptimized: 149578
// accessIndex(uint256,int256): 10, 1 -> 2 // accessIndex(uint256,int256): 10, 1 -> 2
// accessIndex(uint256,int256): 10, 0 -> 1 // accessIndex(uint256,int256): 10, 0 -> 1
// accessIndex(uint256,int256): 10, 11 -> FAILURE, hex"4e487b71", 0x32 // accessIndex(uint256,int256): 10, 11 -> FAILURE, hex"4e487b71", 0x32

View File

@ -19,32 +19,32 @@ contract C {
// test_indices(uint256): 1 -> // test_indices(uint256): 1 ->
// test_indices(uint256): 129 -> // test_indices(uint256): 129 ->
// gas irOptimized: 3032986 // gas irOptimized: 3032986
// gas legacy: 3071205 // gas legacy: 3070431
// gas legacyOptimized: 3011873 // gas legacyOptimized: 3010325
// test_indices(uint256): 5 -> // test_indices(uint256): 5 ->
// gas irOptimized: 367642 // gas irOptimized: 367642
// gas legacy: 369241 // gas legacy: 369211
// gas legacyOptimized: 366149 // gas legacyOptimized: 366089
// test_indices(uint256): 10 -> // test_indices(uint256): 10 ->
// test_indices(uint256): 15 -> // test_indices(uint256): 15 ->
// gas irOptimized: 72860 // gas irOptimized: 72860
// test_indices(uint256): 0xFF -> // test_indices(uint256): 0xFF ->
// gas irOptimized: 3438610 // gas irOptimized: 3438610
// gas legacy: 3514167 // gas legacy: 3512637
// gas legacyOptimized: 3398107 // gas legacyOptimized: 3395047
// test_indices(uint256): 1000 -> // test_indices(uint256): 1000 ->
// gas irOptimized: 18318372 // gas irOptimized: 18318372
// gas legacy: 18617999 // gas legacy: 18611999
// gas legacyOptimized: 18178944 // gas legacyOptimized: 18166944
// test_indices(uint256): 129 -> // test_indices(uint256): 129 ->
// gas irOptimized: 2733570 // gas irOptimized: 2733570
// gas legacy: 2772735 // gas legacy: 2771961
// gas legacyOptimized: 2716547 // gas legacyOptimized: 2714999
// test_indices(uint256): 128 -> // test_indices(uint256): 128 ->
// gas irOptimized: 426682 // gas irOptimized: 426682
// gas legacy: 467272 // gas legacy: 466504
// gas legacyOptimized: 418424 // gas legacyOptimized: 416888
// test_indices(uint256): 1 -> // test_indices(uint256): 1 ->
// gas irOptimized: 363074 // gas irOptimized: 363074
// gas legacy: 363407 // gas legacy: 363401
// gas legacyOptimized: 361811 // gas legacyOptimized: 361799

View File

@ -54,18 +54,18 @@ contract C {
// ---- // ----
// test_zeroed_indicies(uint256): 1 -> // test_zeroed_indicies(uint256): 1 ->
// test_zeroed_indicies(uint256): 5 -> // test_zeroed_indicies(uint256): 5 ->
// gas irOptimized: 131197 // gas irOptimized: 131193
// gas legacy: 132367 // gas legacy: 132331
// gas legacyOptimized: 129586 // gas legacyOptimized: 129514
// test_zeroed_indicies(uint256): 10 -> // test_zeroed_indicies(uint256): 10 ->
// gas irOptimized: 174805 // gas irOptimized: 174811
// gas legacy: 177329 // gas legacy: 177248
// gas legacyOptimized: 172224 // gas legacyOptimized: 172062
// test_zeroed_indicies(uint256): 15 -> // test_zeroed_indicies(uint256): 15 ->
// gas irOptimized: 198055 // gas irOptimized: 198071
// gas legacy: 201954 // gas legacy: 201828
// gas legacyOptimized: 194604 // gas legacyOptimized: 194352
// test_zeroed_indicies(uint256): 0xFF -> // test_zeroed_indicies(uint256): 0xFF ->
// gas irOptimized: 6098185 // gas irOptimized: 6098681
// gas legacy: 6163149 // gas legacy: 6160863
// gas legacyOptimized: 6029474 // gas legacyOptimized: 6024902

View File

@ -14,12 +14,12 @@ contract C {
// ---- // ----
// pushEmpty(uint256): 128 // pushEmpty(uint256): 128
// gas irOptimized: 412570 // gas irOptimized: 412570
// gas legacy: 417287 // gas legacy: 416903
// gas legacyOptimized: 399048 // gas legacyOptimized: 398280
// pushEmpty(uint256): 256 // pushEmpty(uint256): 256
// gas irOptimized: 702558 // gas irOptimized: 702558
// gas legacy: 715083 // gas legacy: 714315
// gas legacyOptimized: 688908 // gas legacyOptimized: 687372
// pushEmpty(uint256): 38869 -> FAILURE # out-of-gas # // pushEmpty(uint256): 38869 -> FAILURE # out-of-gas #
// gas irOptimized: 100000000 // gas irOptimized: 100000000
// gas legacy: 100000000 // gas legacy: 100000000

Some files were not shown because too many files have changed in this diff Show More