Test updates.

This commit is contained in:
Daniel Kirchner 2021-08-13 00:24:12 +02:00
parent 442666d181
commit f9e57dd642
180 changed files with 1278 additions and 1219 deletions

View File

@ -11,7 +11,7 @@ IR:
object "C_81" { object "C_81" {
code { code {
/// @src 0:82:370 /// @src 0:82:370
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_81() constructor_C_81()
@ -41,7 +41,7 @@ object "C_81" {
object "C_81_deployed" { object "C_81_deployed" {
code { code {
/// @src 0:82:370 /// @src 0:82:370
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -41,7 +41,7 @@
}, },
"abi_decode_tuple_t_uint256": "abi_decode_tuple_t_uint256":
{ {
"entryPoint": 281, "entryPoint": 265,
"parameterSlots": 2, "parameterSlots": 2,
"returnSlots": 1 "returnSlots": 1
}, },
@ -52,7 +52,7 @@
}, },
"panic_error_0x32": "panic_error_0x32":
{ {
"entryPoint": 306, "entryPoint": 287,
"parameterSlots": 0, "parameterSlots": 0,
"returnSlots": 0 "returnSlots": 0
} }

View File

@ -11,18 +11,19 @@ object "C_7" {
code { code {
{ {
/// @src 0:82:117 /// @src 0:82:117
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("C_7_deployed") let _2 := datasize("C_7_deployed")
codecopy(128, dataoffset("C_7_deployed"), _1) codecopy(_1, dataoffset("C_7_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "C_7_deployed" { object "C_7_deployed" {
code { code {
{ {
/// @src 0:82:117 /// @src 0:82:117
mstore(64, 128) mstore(64, memoryguard(0x80))
revert(0, 0) revert(0, 0)
} }
} }
@ -43,18 +44,19 @@ object "D_10" {
code { code {
{ {
/// @src 0:118:137 /// @src 0:118:137
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("D_10_deployed") let _2 := datasize("D_10_deployed")
codecopy(128, dataoffset("D_10_deployed"), _1) codecopy(_1, dataoffset("D_10_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "D_10_deployed" { object "D_10_deployed" {
code { code {
{ {
/// @src 0:118:137 /// @src 0:118:137
mstore(64, 128) mstore(64, memoryguard(0x80))
revert(0, 0) revert(0, 0)
} }
} }

View File

@ -11,18 +11,19 @@ object "C_3" {
code { code {
{ {
/// @src 0:82:95 /// @src 0:82:95
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("C_3_deployed") let _2 := datasize("C_3_deployed")
codecopy(128, dataoffset("C_3_deployed"), _1) codecopy(_1, dataoffset("C_3_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "C_3_deployed" { object "C_3_deployed" {
code { code {
{ {
/// @src 0:82:95 /// @src 0:82:95
mstore(64, 128) mstore(64, memoryguard(0x80))
revert(0, 0) revert(0, 0)
} }
} }
@ -43,46 +44,47 @@ object "D_16" {
code { code {
{ {
/// @src 0:96:165 /// @src 0:96:165
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("D_16_deployed") let _2 := datasize("D_16_deployed")
codecopy(128, dataoffset("D_16_deployed"), _1) codecopy(_1, dataoffset("D_16_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "D_16_deployed" { object "D_16_deployed" {
code { code {
{ {
/// @src 0:96:165 /// @src 0:96:165
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
let _1 := 0 let _2 := 0
if eq(0x26121ff0, shr(224, calldataload(_1))) if eq(0x26121ff0, shr(224, calldataload(_2)))
{ {
if callvalue() { revert(_1, _1) } if callvalue() { revert(_2, _2) }
if slt(add(calldatasize(), not(3)), _1) { revert(_1, _1) } if slt(add(calldatasize(), not(3)), _2) { revert(_2, _2) }
/// @src 0:149:156
let _2 := datasize("C_3")
let _3 := add(/** @src 0:96:165 */ 128, /** @src 0:149:156 */ _2)
if or(gt(_3, 0xffffffffffffffff), lt(_3, /** @src 0:96:165 */ 128))
/// @src 0:149:156 /// @src 0:149:156
let _3 := datasize("C_3")
let _4 := add(_1, _3)
if or(gt(_4, 0xffffffffffffffff), lt(_4, _1))
{ {
/// @src 0:96:165 /// @src 0:96:165
mstore(_1, shl(224, 0x4e487b71)) mstore(_2, shl(224, 0x4e487b71))
mstore(4, 0x41) mstore(4, 0x41)
revert(_1, 0x24) revert(_2, 0x24)
} }
/// @src 0:149:156 /// @src 0:149:156
datacopy(/** @src 0:96:165 */ 128, /** @src 0:149:156 */ dataoffset("C_3"), _2) datacopy(_1, dataoffset("C_3"), _3)
if iszero(create(/** @src 0:96:165 */ _1, 128, /** @src 0:149:156 */ _2)) if iszero(create(/** @src 0:96:165 */ _2, /** @src 0:149:156 */ _1, sub(_4, _1)))
{ {
/// @src 0:96:165 /// @src 0:96:165
let pos := mload(64) let pos := mload(64)
returndatacopy(pos, _1, returndatasize()) returndatacopy(pos, _2, returndatasize())
revert(pos, returndatasize()) revert(pos, returndatasize())
} }
return(mload(64), _1) return(mload(64), _2)
} }
} }
revert(0, 0) revert(0, 0)
@ -92,18 +94,19 @@ object "D_16" {
code { code {
{ {
/// @src 0:82:95 /// @src 0:82:95
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("C_3_deployed") let _2 := datasize("C_3_deployed")
codecopy(128, dataoffset("C_3_deployed"), _1) codecopy(_1, dataoffset("C_3_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "C_3_deployed" { object "C_3_deployed" {
code { code {
{ {
/// @src 0:82:95 /// @src 0:82:95
mstore(64, 128) mstore(64, memoryguard(0x80))
revert(0, 0) revert(0, 0)
} }
} }

View File

@ -22,15 +22,16 @@ object "D_12" {
code { code {
{ {
/// @src 0:82:161 /// @src 0:82:161
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
let _1 := 0 let _2 := 0
if eq(0x26121ff0, shr(224, calldataload(_1))) if eq(0x26121ff0, shr(224, calldataload(_2)))
{ {
if callvalue() { revert(_1, _1) } if callvalue() { revert(_2, _2) }
if slt(add(calldatasize(), not(3)), _1) { revert(_1, _1) } if slt(add(calldatasize(), not(3)), _2) { revert(_2, _2) }
return(128, _1) return(_1, _2)
} }
} }
revert(0, 0) revert(0, 0)

View File

@ -11,11 +11,12 @@ object "D_8" {
code { code {
{ {
/// @src 0:82:153 /// @src 0:82:153
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("D_8_deployed") let _2 := datasize("D_8_deployed")
codecopy(128, dataoffset("D_8_deployed"), _1) codecopy(_1, dataoffset("D_8_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "D_8_deployed" { object "D_8_deployed" {

View File

@ -11,11 +11,12 @@ object "C_7" {
code { code {
{ {
/// @src 0:62:285 /// @src 0:62:285
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("C_7_deployed") let _2 := datasize("C_7_deployed")
codecopy(128, dataoffset("C_7_deployed"), _1) codecopy(_1, dataoffset("C_7_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "C_7_deployed" { object "C_7_deployed" {

View File

@ -11,18 +11,19 @@ object "C_59" {
code { code {
{ {
/// @src 0:346:625 /// @src 0:346:625
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("C_59_deployed") let _2 := datasize("C_59_deployed")
codecopy(128, dataoffset("C_59_deployed"), _1) codecopy(_1, dataoffset("C_59_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "C_59_deployed" { object "C_59_deployed" {
code { code {
{ {
/// @src 0:346:625 /// @src 0:346:625
mstore(64, 128) mstore(64, memoryguard(0x80))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
let _1 := 0 let _1 := 0

View File

@ -23,7 +23,7 @@ object "MyContract" {
Binary representation: Binary representation:
33600055600b806011600039806000f3fe60005460005260206000f3 33600055600b8060106000396000f3fe60005460005260206000f3
Text representation: Text representation:
/* "object_compiler/input.yul":128:136 */ /* "object_compiler/input.yul":128:136 */
@ -41,8 +41,6 @@ Text representation:
0x00 0x00
/* "object_compiler/input.yul":205:260 */ /* "object_compiler/input.yul":205:260 */
codecopy codecopy
/* "object_compiler/input.yul":275:294 */
dup1
/* "object_compiler/input.yul":125:126 */ /* "object_compiler/input.yul":125:126 */
0x00 0x00
/* "object_compiler/input.yul":265:295 */ /* "object_compiler/input.yul":265:295 */

View File

@ -11,18 +11,19 @@ object "Arraysum_34" {
code { code {
{ {
/// @src 0:80:429 /// @src 0:80:429
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("Arraysum_34_deployed") let _2 := datasize("Arraysum_34_deployed")
codecopy(128, dataoffset("Arraysum_34_deployed"), _1) codecopy(_1, dataoffset("Arraysum_34_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "Arraysum_34_deployed" { object "Arraysum_34_deployed" {
code { code {
{ {
/// @src 0:80:429 /// @src 0:80:429
mstore(64, 128) mstore(64, memoryguard(0x80))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
let _1 := 0 let _1 := 0

View File

@ -152,20 +152,23 @@ sub_0: assembly {
jump // out jump // out
/* "#utility.yul":196:421 */ /* "#utility.yul":196:421 */
tag_22: tag_22:
/* "#utility.yul":236:239 */ dup2
0x00
/* "#utility.yul":267:268 */
dup3
/* "#utility.yul":263:269 */ /* "#utility.yul":263:269 */
not not
/* "#utility.yul":260:261 */ dup2
dup3
/* "#utility.yul":257:270 */ /* "#utility.yul":257:270 */
gt gt
/* "#utility.yul":254:390 */ tag_27
iszero
tag_30
jumpi jumpi
/* "#utility.yul":406:415 */
add
swap1
/* "#utility.yul":196:421 */
jump // out
tag_27:
pop
pop
pop
/* "#utility.yul":312:322 */ /* "#utility.yul":312:322 */
0x4e487b71 0x4e487b71
/* "#utility.yul":307:310 */ /* "#utility.yul":307:310 */
@ -188,16 +191,9 @@ sub_0: assembly {
0x00 0x00
/* "#utility.yul":365:380 */ /* "#utility.yul":365:380 */
revert revert
/* "#utility.yul":254:390 */
tag_30:
pop
/* "#utility.yul":406:415 */
add
swap1
/* "#utility.yul":196:421 */
jump // out
/* "#utility.yul":426:553 */ /* "#utility.yul":426:553 */
tag_26: tag_26:
pop
/* "#utility.yul":487:497 */ /* "#utility.yul":487:497 */
0x4e487b71 0x4e487b71
/* "#utility.yul":482:485 */ /* "#utility.yul":482:485 */

View File

@ -157,20 +157,23 @@ sub_0: assembly {
jump // out jump // out
/* "#utility.yul":196:421 */ /* "#utility.yul":196:421 */
tag_19: tag_19:
/* "#utility.yul":236:239 */ dup2
0x00
/* "#utility.yul":267:268 */
dup3
/* "#utility.yul":263:269 */ /* "#utility.yul":263:269 */
not not
/* "#utility.yul":260:261 */ dup2
dup3
/* "#utility.yul":257:270 */ /* "#utility.yul":257:270 */
gt gt
/* "#utility.yul":254:390 */ tag_23
iszero
tag_26
jumpi jumpi
/* "#utility.yul":406:415 */
add
swap1
/* "#utility.yul":196:421 */
jump // out
tag_23:
pop
pop
pop
/* "#utility.yul":312:322 */ /* "#utility.yul":312:322 */
0x4e487b71 0x4e487b71
/* "#utility.yul":307:310 */ /* "#utility.yul":307:310 */
@ -193,16 +196,9 @@ sub_0: assembly {
0x00 0x00
/* "#utility.yul":365:380 */ /* "#utility.yul":365:380 */
revert revert
/* "#utility.yul":254:390 */
tag_26:
pop
/* "#utility.yul":406:415 */
add
swap1
/* "#utility.yul":196:421 */
jump // out
/* "#utility.yul":426:553 */ /* "#utility.yul":426:553 */
tag_22: tag_22:
pop
/* "#utility.yul":487:497 */ /* "#utility.yul":487:497 */
0x4e487b71 0x4e487b71
/* "#utility.yul":482:485 */ /* "#utility.yul":482:485 */

View File

@ -11,7 +11,7 @@ IR:
object "C_15" { object "C_15" {
code { code {
/// @src 0:59:147 /// @src 0:59:147
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_15() constructor_C_15()
@ -56,7 +56,7 @@ object "C_15" {
object "C_15_deployed" { object "C_15_deployed" {
code { code {
/// @src 0:59:147 /// @src 0:59:147
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -17,7 +17,7 @@
(local $z3 i64) (local $z3 i64)
(local $_1 i64) (local $_1 i64)
(block $label_ (block $label_
(local.set $p (call $u256_to_i32_726)) (local.set $p (call $u256_to_i32_716))
(local.set $r (i32.add (local.get $p) (i32.const 64))) (local.set $r (i32.add (local.get $p) (i32.const 64)))
(if (i32.lt_u (local.get $r) (local.get $p)) (then (if (i32.lt_u (local.get $r) (local.get $p)) (then
(unreachable))) (unreachable)))
@ -30,14 +30,14 @@
(call $eth.getCallValue (i32.const 0)) (call $eth.getCallValue (i32.const 0))
(local.set $z3 (i64.load (i32.const 8))) (local.set $z3 (i64.load (i32.const 8)))
(if (i32.eqz (i64.eqz (i64.or (i64.or (i64.const 0) (i64.const 0)) (i64.or (local.get $z3) (i64.load (i32.const 0)))))) (then (if (i32.eqz (i64.eqz (i64.or (i64.or (i64.const 0) (i64.const 0)) (i64.or (local.get $z3) (i64.load (i32.const 0)))))) (then
(call $eth.revert (call $to_internal_i32ptr) (call $u256_to_i32_344)))) (call $eth.revert (call $to_internal_i32ptr_334) (call $u256_to_i32_333))))
(local.set $_1 (datasize \"C_3_deployed\")) (local.set $_1 (datasize \"C_3_deployed\"))
(call $eth.codeCopy (call $to_internal_i32ptr_348) (call $u256_to_i32 (dataoffset \"C_3_deployed\")) (call $u256_to_i32 (local.get $_1))) (call $eth.codeCopy (call $to_internal_i32ptr) (call $u256_to_i32 (dataoffset \"C_3_deployed\")) (call $u256_to_i32 (local.get $_1)))
(call $eth.finish (call $to_internal_i32ptr_348) (call $u256_to_i32 (local.get $_1))) (call $eth.finish (call $to_internal_i32ptr) (call $u256_to_i32 (local.get $_1)))
) )
) )
(func $u256_to_i32_344 (func $u256_to_i32_333
(result i32) (result i32)
(local $v i32) (local $v i32)
(local $_1 i64) (local $_1 i64)
@ -68,7 +68,7 @@
(local.get $v) (local.get $v)
) )
(func $u256_to_i32_726 (func $u256_to_i32_716
(result i32) (result i32)
(local $v i32) (local $v i32)
(block $label__3 (block $label__3
@ -82,12 +82,12 @@
(local.get $v) (local.get $v)
) )
(func $to_internal_i32ptr (func $to_internal_i32ptr_334
(result i32) (result i32)
(local $r i32) (local $r i32)
(local $p i32) (local $p i32)
(block $label__4 (block $label__4
(local.set $p (call $u256_to_i32_344)) (local.set $p (call $u256_to_i32_333))
(local.set $r (i32.add (local.get $p) (i32.const 64))) (local.set $r (i32.add (local.get $p) (i32.const 64)))
(if (i32.lt_u (local.get $r) (local.get $p)) (then (if (i32.lt_u (local.get $r) (local.get $p)) (then
(unreachable))) (unreachable)))
@ -96,7 +96,7 @@
(local.get $r) (local.get $r)
) )
(func $to_internal_i32ptr_348 (func $to_internal_i32ptr
(result i32) (result i32)
(local $r i32) (local $r i32)
(local $v i32) (local $v i32)

View File

@ -9,7 +9,7 @@
object \"C_7\" { object \"C_7\" {
code { code {
/// @src 0:79:121 /// @src 0:79:121
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() if callvalue()
{ {
revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb()
@ -28,7 +28,7 @@ object \"C_7\" {
object \"C_7_deployed\" { object \"C_7_deployed\" {
code { code {
/// @src 0:79:121 /// @src 0:79:121
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
let selector := shift_right_224_unsigned(calldataload(0)) let selector := shift_right_224_unsigned(calldataload(0))

View File

@ -10,7 +10,7 @@
object \"C_7\" { object \"C_7\" {
code { code {
/// @src 0:79:121 /// @src 0:79:121
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_7() constructor_C_7()
@ -40,7 +40,7 @@ object \"C_7\" {
object \"C_7_deployed\" { object \"C_7_deployed\" {
code { code {
/// @src 0:79:121 /// @src 0:79:121
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -10,7 +10,7 @@
object \"C_3\" { object \"C_3\" {
code { code {
/// @src 0:79:92 /// @src 0:79:92
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_3() constructor_C_3()
@ -40,7 +40,7 @@ object \"C_3\" {
object \"C_3_deployed\" { object \"C_3_deployed\" {
code { code {
/// @src 0:79:92 /// @src 0:79:92
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
@ -86,7 +86,7 @@ object \"C_3\" {
object \"D_16\" { object \"D_16\" {
code { code {
/// @src 0:93:146 /// @src 0:93:146
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_D_16() constructor_D_16()
@ -116,7 +116,7 @@ object \"D_16\" {
object \"D_16_deployed\" { object \"D_16_deployed\" {
code { code {
/// @src 0:93:146 /// @src 0:93:146
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
@ -217,7 +217,7 @@ object \"D_16\" {
object \"C_3\" { object \"C_3\" {
code { code {
/// @src 0:79:92 /// @src 0:79:92
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_3() constructor_C_3()
@ -247,7 +247,7 @@ object \"D_16\" {
object \"C_3_deployed\" { object \"C_3_deployed\" {
code { code {
/// @src 0:79:92 /// @src 0:79:92
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -1,10 +1,11 @@
{"contracts":{"A":{"object":{"evm":{"assembly":" /* \"A\":17:18 */ {"contracts":{"A":{"object":{"evm":{"assembly":" /* \"A\":38:39 */
0x00 0x00
/* \"A\":11:19 */ /* \"A\":11:19 */
dup1 dup1
mload mload
/* \"A\":20:40 */ /* \"A\":20:40 */
sstore sstore
stop
","bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"<BYTECODE REMOVED>","opcodes":"<OPCODES REMOVED>","sourceMap":"<SOURCEMAP REMOVED>"}},"ir":"object \"object\" { ","bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"<BYTECODE REMOVED>","opcodes":"<OPCODES REMOVED>","sourceMap":"<SOURCEMAP REMOVED>"}},"ir":"object \"object\" {
code { code {
let x := mload(0) let x := mload(0)

View File

@ -5,6 +5,7 @@
mload mload
/* \"A\":20:40 */ /* \"A\":20:40 */
sstore sstore
stop
","bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"<BYTECODE REMOVED>","opcodes":"<OPCODES REMOVED>","sourceMap":"<SOURCEMAP REMOVED>"}},"ir":"object \"object\" { ","bytecode":{"functionDebugData":{},"generatedSources":[],"linkReferences":{},"object":"<BYTECODE REMOVED>","opcodes":"<OPCODES REMOVED>","sourceMap":"<SOURCEMAP REMOVED>"}},"ir":"object \"object\" {
code { code {
let x := mload(0) let x := mload(0)

View File

@ -1,17 +1,14 @@
{"contracts":{"A":{"object":{"evm":{"assembly":" /* \"A\":16:17 */ {"contracts":{"A":{"object":{"evm":{"assembly":" /* \"A\":16:17 */
0x01 0x01
dup1
/* \"A\":27:28 */ /* \"A\":27:28 */
0x00 0x00
/* \"A\":20:32 */ /* \"A\":20:32 */
sstore sstore
pop
/* \"A\":50:51 */ /* \"A\":50:51 */
0x02 0x02
dup1
/* \"A\":61:63 */ /* \"A\":61:63 */
0x20 0x20
/* \"A\":54:67 */ /* \"A\":54:67 */
sstore sstore
pop stop
"}}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]} "}}}},"errors":[{"component":"general","formattedMessage":"Yul is still experimental. Please use the output with care.","message":"Yul is still experimental. Please use the output with care.","severity":"warning","type":"Warning"}]}

View File

@ -25,7 +25,7 @@ object "C_6" {
Binary representation: Binary representation:
60806040523415600e57600080fd5b600e601c600039600e6000f3fe60806040523615600055600080fd 608060405234601557600e601b600039600e6000f35b600080fdfe60806040523615600055600080fd
Text representation: Text representation:
/* "strict_asm_optimizer_steps/input.yul":45:48 */ /* "strict_asm_optimizer_steps/input.yul":45:48 */
@ -35,19 +35,7 @@ Text representation:
/* "strict_asm_optimizer_steps/input.yul":34:49 */ /* "strict_asm_optimizer_steps/input.yul":34:49 */
mstore mstore
/* "strict_asm_optimizer_steps/input.yul":61:72 */ /* "strict_asm_optimizer_steps/input.yul":61:72 */
callvalue jumpi(tag_1, callvalue)
/* "strict_asm_optimizer_steps/input.yul":58:89 */
iszero
tag_1
jumpi
/* "strict_asm_optimizer_steps/input.yul":85:86 */
0x00
/* "strict_asm_optimizer_steps/input.yul":82:83 */
dup1
/* "strict_asm_optimizer_steps/input.yul":75:87 */
revert
/* "strict_asm_optimizer_steps/input.yul":58:89 */
tag_1:
/* "strict_asm_optimizer_steps/input.yul":138:162 */ /* "strict_asm_optimizer_steps/input.yul":138:162 */
dataSize(sub_0) dataSize(sub_0)
/* "strict_asm_optimizer_steps/input.yul":110:136 */ /* "strict_asm_optimizer_steps/input.yul":110:136 */
@ -62,6 +50,12 @@ tag_1:
0x00 0x00
/* "strict_asm_optimizer_steps/input.yul":172:207 */ /* "strict_asm_optimizer_steps/input.yul":172:207 */
return return
tag_1:
/* "strict_asm_optimizer_steps/input.yul":85:86 */
0x00
dup1
/* "strict_asm_optimizer_steps/input.yul":75:87 */
revert
stop stop
sub_0: assembly { sub_0: assembly {
@ -81,7 +75,6 @@ sub_0: assembly {
sstore sstore
/* "strict_asm_optimizer_steps/input.yul":576:577 */ /* "strict_asm_optimizer_steps/input.yul":576:577 */
0x00 0x00
/* "strict_asm_optimizer_steps/input.yul":573:574 */
dup1 dup1
/* "strict_asm_optimizer_steps/input.yul":566:578 */ /* "strict_asm_optimizer_steps/input.yul":566:578 */
revert revert

View File

@ -11,7 +11,7 @@ IR:
object "test_11" { object "test_11" {
code { code {
/// @src 0:79:169 /// @src 0:79:169
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_test_11() constructor_test_11()
@ -41,7 +41,7 @@ object "test_11" {
object "test_11_deployed" { object "test_11_deployed" {
code { code {
/// @src 0:79:169 /// @src 0:79:169
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -17,18 +17,19 @@ object "C_3" {
code { code {
{ {
/// @src 0:82:95 /// @src 0:82:95
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("C_3_deployed") let _2 := datasize("C_3_deployed")
codecopy(128, dataoffset("C_3_deployed"), _1) codecopy(_1, dataoffset("C_3_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "C_3_deployed" { object "C_3_deployed" {
code { code {
{ {
/// @src 0:82:95 /// @src 0:82:95
mstore(64, 128) mstore(64, memoryguard(0x80))
revert(0, 0) revert(0, 0)
} }
} }
@ -55,46 +56,47 @@ object "D_16" {
code { code {
{ {
/// @src 0:96:165 /// @src 0:96:165
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("D_16_deployed") let _2 := datasize("D_16_deployed")
codecopy(128, dataoffset("D_16_deployed"), _1) codecopy(_1, dataoffset("D_16_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "D_16_deployed" { object "D_16_deployed" {
code { code {
{ {
/// @src 0:96:165 /// @src 0:96:165
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
let _1 := 0 let _2 := 0
if eq(0x26121ff0, shr(224, calldataload(_1))) if eq(0x26121ff0, shr(224, calldataload(_2)))
{ {
if callvalue() { revert(_1, _1) } if callvalue() { revert(_2, _2) }
if slt(add(calldatasize(), not(3)), _1) { revert(_1, _1) } if slt(add(calldatasize(), not(3)), _2) { revert(_2, _2) }
/// @src 0:149:156
let _2 := datasize("C_3")
let _3 := add(/** @src 0:96:165 */ 128, /** @src 0:149:156 */ _2)
if or(gt(_3, 0xffffffffffffffff), lt(_3, /** @src 0:96:165 */ 128))
/// @src 0:149:156 /// @src 0:149:156
let _3 := datasize("C_3")
let _4 := add(_1, _3)
if or(gt(_4, 0xffffffffffffffff), lt(_4, _1))
{ {
/// @src 0:96:165 /// @src 0:96:165
mstore(_1, shl(224, 0x4e487b71)) mstore(_2, shl(224, 0x4e487b71))
mstore(4, 0x41) mstore(4, 0x41)
revert(_1, 0x24) revert(_2, 0x24)
} }
/// @src 0:149:156 /// @src 0:149:156
datacopy(/** @src 0:96:165 */ 128, /** @src 0:149:156 */ dataoffset("C_3"), _2) datacopy(_1, dataoffset("C_3"), _3)
if iszero(create(/** @src 0:96:165 */ _1, 128, /** @src 0:149:156 */ _2)) if iszero(create(/** @src 0:96:165 */ _2, /** @src 0:149:156 */ _1, sub(_4, _1)))
{ {
/// @src 0:96:165 /// @src 0:96:165
let pos := mload(64) let pos := mload(64)
returndatacopy(pos, _1, returndatasize()) returndatacopy(pos, _2, returndatasize())
revert(pos, returndatasize()) revert(pos, returndatasize())
} }
return(mload(64), _1) return(mload(64), _2)
} }
} }
revert(0, 0) revert(0, 0)
@ -104,18 +106,19 @@ object "D_16" {
code { code {
{ {
/// @src 0:82:95 /// @src 0:82:95
mstore(64, 128) let _1 := memoryguard(0x80)
mstore(64, _1)
if callvalue() { revert(0, 0) } if callvalue() { revert(0, 0) }
let _1 := datasize("C_3_deployed") let _2 := datasize("C_3_deployed")
codecopy(128, dataoffset("C_3_deployed"), _1) codecopy(_1, dataoffset("C_3_deployed"), _2)
return(128, _1) return(_1, _2)
} }
} }
object "C_3_deployed" { object "C_3_deployed" {
code { code {
{ {
/// @src 0:82:95 /// @src 0:82:95
mstore(64, 128) mstore(64, memoryguard(0x80))
revert(0, 0) revert(0, 0)
} }
} }

View File

@ -21,7 +21,7 @@ object "RunsTest1" {
Binary representation: Binary representation:
602480600d600039806000f3fe7fabc1234500000000000000000000000000000000000000000000000000000000600052 602580600c6000396000f3fe7fabc123450000000000000000000000000000000000000000000000000000000060005200
Text representation: Text representation:
/* "yul_optimize_runs/input.yul":106:125 */ /* "yul_optimize_runs/input.yul":106:125 */
@ -33,8 +33,6 @@ Text representation:
0x00 0x00
/* "yul_optimize_runs/input.yul":71:126 */ /* "yul_optimize_runs/input.yul":71:126 */
codecopy codecopy
/* "yul_optimize_runs/input.yul":145:164 */
dup1
/* "yul_optimize_runs/input.yul":80:81 */ /* "yul_optimize_runs/input.yul":80:81 */
0x00 0x00
/* "yul_optimize_runs/input.yul":135:165 */ /* "yul_optimize_runs/input.yul":135:165 */
@ -48,5 +46,5 @@ sub_0: assembly {
0x00 0x00
/* "yul_optimize_runs/input.yul":270:288 */ /* "yul_optimize_runs/input.yul":270:288 */
mstore mstore
stop
} }

View File

@ -11,7 +11,7 @@ object "C_7" {
code { code {
{ {
/// @src 0:80:112 /// @src 0:80:112
mstore(64, 128) mstore(64, memoryguard(0x80))
if callvalue() if callvalue()
{ {
revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb()
@ -29,7 +29,7 @@ object "C_7" {
code { code {
{ {
/// @src 0:80:112 /// @src 0:80:112
mstore(64, 128) mstore(64, memoryguard(0x80))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
let selector := shift_right_unsigned(calldataload(0)) let selector := shift_right_unsigned(calldataload(0))

View File

@ -10,7 +10,7 @@
object \"C_54\" { object \"C_54\" {
code { code {
/// @src 0:79:428 /// @src 0:79:428
mstore(64, 160) mstore(64, memoryguard(160))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
let _1 := copy_arguments_for_constructor_20_object_C_54() let _1 := copy_arguments_for_constructor_20_object_C_54()
@ -151,7 +151,7 @@ object \"C_54\" {
object \"C_54_deployed\" { object \"C_54_deployed\" {
code { code {
/// @src 0:79:428 /// @src 0:79:428
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {
@ -551,7 +551,7 @@ object \"C_54\" {
object \"D_72\" { object \"D_72\" {
code { code {
/// @src 1:91:166 /// @src 1:91:166
mstore(64, 160) mstore(64, memoryguard(160))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
let _1 := copy_arguments_for_constructor_71_object_D_72() let _1 := copy_arguments_for_constructor_71_object_D_72()
@ -755,7 +755,7 @@ object \"D_72\" {
object \"D_72_deployed\" { object \"D_72_deployed\" {
code { code {
/// @src 1:91:166 /// @src 1:91:166
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
object \"C_11\" { object \"C_11\" {
code { code {
/// @src 0:78:164 /// @src 0:78:164
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_11() constructor_C_11()
@ -40,7 +40,7 @@ object \"C_11\" {
object \"C_11_deployed\" { object \"C_11_deployed\" {
code { code {
/// @src 0:78:164 /// @src 0:78:164
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -10,7 +10,7 @@
object \"C_11\" { object \"C_11\" {
code { code {
/// @src 0:78:158 /// @src 0:78:158
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_11() constructor_C_11()
@ -40,7 +40,7 @@ object \"C_11\" {
object \"C_11_deployed\" { object \"C_11_deployed\" {
code { code {
/// @src 0:78:158 /// @src 0:78:158
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -10,7 +10,7 @@
object \"C_11\" { object \"C_11\" {
code { code {
/// @src 0:78:159 /// @src 0:78:159
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_11() constructor_C_11()
@ -40,7 +40,7 @@ object \"C_11\" {
object \"C_11_deployed\" { object \"C_11_deployed\" {
code { code {
/// @src 0:78:159 /// @src 0:78:159
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -10,7 +10,7 @@
object \"C_11\" { object \"C_11\" {
code { code {
/// @src 0:78:243 /// @src 0:78:243
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_11() constructor_C_11()
@ -40,7 +40,7 @@ object \"C_11\" {
object \"C_11_deployed\" { object \"C_11_deployed\" {
code { code {
/// @src 0:78:243 /// @src 0:78:243
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -10,7 +10,7 @@
object \"C_11\" { object \"C_11\" {
code { code {
/// @src 0:78:159 /// @src 0:78:159
mstore(64, 128) mstore(64, memoryguard(128))
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_C_11() constructor_C_11()
@ -40,7 +40,7 @@ object \"C_11\" {
object \"C_11_deployed\" { object \"C_11_deployed\" {
code { code {
/// @src 0:78:159 /// @src 0:78:159
mstore(64, 128) mstore(64, memoryguard(128))
if iszero(lt(calldatasize(), 4)) if iszero(lt(calldatasize(), 4))
{ {

View File

@ -14,7 +14,7 @@ object "object" {
Binary representation: Binary representation:
612000515061616002600055 61200051506161600260005500
Text representation: Text representation:
/* "yul_verbatim_msize/input.yul":125:131 */ /* "yul_verbatim_msize/input.yul":125:131 */
@ -30,3 +30,4 @@ Text representation:
0x00 0x00
/* "yul_verbatim_msize/input.yul":162:174 */ /* "yul_verbatim_msize/input.yul":162:174 */
sstore sstore
stop

View File

@ -17,13 +17,13 @@ contract C {
// optimize-yul: true // optimize-yul: true
// ---- // ----
// creation: // creation:
// codeDepositCost: 680600 // codeDepositCost: 634400
// executionCost: 715 // executionCost: 670
// totalCost: 681315 // totalCost: 635070
// external: // external:
// a(): 2285 // a(): 2285
// b(uint256): 4652 // b(uint256): 4641
// f1(uint256): 307 // f1(uint256): 296
// f2(uint256[],string[],uint16,address): infinite // f2(uint256[],string[],uint16,address): infinite
// f3(uint16[],string[],uint16,address): infinite // f3(uint16[],string[],uint16,address): infinite
// f4(uint32[],string[12],bytes[2][],address): infinite // f4(uint32[],string[12],bytes[2][],address): infinite

View File

@ -27,29 +27,29 @@ contract Large {
// optimize-runs: 2 // optimize-runs: 2
// ---- // ----
// creation: // creation:
// codeDepositCost: 232800 // codeDepositCost: 232400
// executionCost: 275 // executionCost: 275
// totalCost: 233075 // totalCost: 232675
// external: // external:
// a(): 2283 // a(): 2283
// b(uint256): 4937 // b(uint256): 4926
// f0(uint256): 366 // f0(uint256): 355
// f1(uint256): 47006 // f1(uint256): 46995
// f2(uint256): 24972 // f2(uint256): 24961
// f3(uint256): 25060 // f3(uint256): 25049
// f4(uint256): 25038 // f4(uint256): 25027
// f5(uint256): 25016 // f5(uint256): 25005
// f6(uint256): 24928 // f6(uint256): 24917
// f7(uint256): 24708 // f7(uint256): 24697
// f8(uint256): 24840 // f8(uint256): 24829
// f9(uint256): 24862 // f9(uint256): 24851
// g0(uint256): 606 // g0(uint256): 595
// g1(uint256): 46718 // g1(uint256): 46707
// g2(uint256): 24706 // g2(uint256): 24695
// g3(uint256): 24794 // g3(uint256): 24783
// g4(uint256): 24772 // g4(uint256): 24761
// g5(uint256): 24860 // g5(uint256): 24849
// g6(uint256): 24640 // g6(uint256): 24629
// g7(uint256): 24750 // g7(uint256): 24739
// g8(uint256): 24728 // g8(uint256): 24717
// g9(uint256): 24574 // g9(uint256): 24563

View File

@ -14,16 +14,16 @@ contract Medium {
// optimize-runs: 2 // optimize-runs: 2
// ---- // ----
// creation: // creation:
// codeDepositCost: 131600 // codeDepositCost: 131200
// executionCost: 177 // executionCost: 177
// totalCost: 131777 // totalCost: 131377
// external: // external:
// a(): 2283 // a(): 2283
// b(uint256): 4695 // b(uint256): 4684
// f1(uint256): 46786 // f1(uint256): 46775
// f2(uint256): 24730 // f2(uint256): 24719
// f3(uint256): 24774 // f3(uint256): 24763
// g0(uint256): 364 // g0(uint256): 353
// g7(uint256): 24640 // g7(uint256): 24629
// g8(uint256): 24618 // g8(uint256): 24607
// g9(uint256): 24574 // g9(uint256): 24563

View File

@ -9,11 +9,11 @@ contract Small {
// optimize-runs: 2 // optimize-runs: 2
// ---- // ----
// creation: // creation:
// codeDepositCost: 60800 // codeDepositCost: 60400
// executionCost: 111 // executionCost: 111
// totalCost: 60911 // totalCost: 60511
// external: // external:
// fallback: 118 // fallback: 118
// a(): 2261 // a(): 2261
// b(uint256): 4585 // b(uint256): 4574
// f1(uint256): 46720 // f1(uint256): 46709

View File

@ -19,11 +19,11 @@ contract C {
// optimize-yul: true // optimize-yul: true
// ---- // ----
// creation: // creation:
// codeDepositCost: 37200 // codeDepositCost: 36600
// executionCost: 87 // executionCost: 87
// totalCost: 37287 // totalCost: 36687
// external: // external:
// exp_neg_one(uint256): 1917 // exp_neg_one(uint256): 1906
// exp_one(uint256): 1870 // exp_one(uint256): 1859
// exp_two(uint256): 1848 // exp_two(uint256): 1837
// exp_zero(uint256): 1892 // exp_zero(uint256): 1881

View File

@ -15,10 +15,10 @@ contract C {
// optimize-yul: true // optimize-yul: true
// ---- // ----
// creation: // creation:
// codeDepositCost: 27200 // codeDepositCost: 26600
// executionCost: 81 // executionCost: 81
// totalCost: 27281 // totalCost: 26681
// external: // external:
// readX(): 2290 // readX(): 2290
// resetX(): 5116 // resetX(): 5116
// setX(uint256): 22312 // setX(uint256): 22301

View File

@ -24,6 +24,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb // f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb
// gas irOptimized: 203556 // gas irOptimized: 203374
// gas legacy: 206126 // gas legacy: 206126
// gas legacyOptimized: 203105 // gas legacyOptimized: 202860

View File

@ -60,10 +60,10 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test_bytes() -> // test_bytes() ->
// gas irOptimized: 394829 // gas irOptimized: 377941
// gas legacy: 423563 // gas legacy: 423563
// gas legacyOptimized: 331391 // gas legacyOptimized: 319727
// test_uint256() -> // test_uint256() ->
// gas irOptimized: 553331 // gas irOptimized: 528609
// gas legacy: 591392 // gas legacy: 591392
// gas legacyOptimized: 456137 // gas legacyOptimized: 440627

View File

@ -26,6 +26,6 @@ contract C {
// ---- // ----
// library: L // library: L
// f() -> 8, 7, 1, 2, 7, 12 // f() -> 8, 7, 1, 2, 7, 12
// gas irOptimized: 167615 // gas irOptimized: 167580
// gas legacy: 169475 // gas legacy: 169475
// gas legacyOptimized: 167397 // gas legacyOptimized: 167346

View File

@ -61,10 +61,10 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test_bytes() -> // test_bytes() ->
// gas irOptimized: 394829 // gas irOptimized: 377941
// gas legacy: 423563 // gas legacy: 423563
// gas legacyOptimized: 331391 // gas legacyOptimized: 319727
// test_uint256() -> // test_uint256() ->
// gas irOptimized: 553331 // gas irOptimized: 528609
// gas legacy: 591392 // gas legacy: 591392
// gas legacyOptimized: 456137 // gas legacyOptimized: 440627

View File

@ -53,6 +53,6 @@ contract C {
// f2() -> 0x20, 0xa0, 0x1, 0x60, 0x2, 0x3, "abc" // f2() -> 0x20, 0xa0, 0x1, 0x60, 0x2, 0x3, "abc"
// f3() -> 0x20, 0xa0, 0x1, 0x60, 0x2, 0x3, "abc" // f3() -> 0x20, 0xa0, 0x1, 0x60, 0x2, 0x3, "abc"
// f4() -> 0x20, 0x160, 0x1, 0x80, 0xc0, 0x2, 0x3, "abc", 0x7, 0x40, 0x2, 0x2, 0x3 // f4() -> 0x20, 0x160, 0x1, 0x80, 0xc0, 0x2, 0x3, "abc", 0x7, 0x40, 0x2, 0x2, 0x3
// gas irOptimized: 113296 // gas irOptimized: 113355
// gas legacy: 114728 // gas legacy: 114728
// gas legacyOptimized: 112606 // gas legacyOptimized: 112680

View File

@ -32,6 +32,6 @@ contract C is B {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 77 // test() -> 77
// gas irOptimized: 120952 // gas irOptimized: 120077
// gas legacy: 155249 // gas legacy: 155249
// gas legacyOptimized: 111743 // gas legacyOptimized: 111111

View File

@ -40,5 +40,5 @@ contract C is B {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 5, 10 // test() -> 5, 10
// gas irOptimized: 88225 // gas irOptimized: 87578
// gas legacy: 99137 // gas legacy: 99137

View File

@ -21,6 +21,6 @@ contract C {
// f(uint256[][1]): 32, 32, 0 -> true // f(uint256[][1]): 32, 32, 0 -> true
// 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: 177719 // gas irOptimized: 172326
// gas legacy: 141900 // gas legacy: 141900
// gas legacyOptimized: 121788 // gas legacyOptimized: 119022

View File

@ -19,10 +19,10 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// h(uint256[2][]): 0x20, 3, 123, 124, 223, 224, 323, 324 -> 32, 256, 0x20, 3, 123, 124, 223, 224, 323, 324 // h(uint256[2][]): 0x20, 3, 123, 124, 223, 224, 323, 324 -> 32, 256, 0x20, 3, 123, 124, 223, 224, 323, 324
// gas irOptimized: 181123 // gas irOptimized: 180925
// gas legacy: 184929 // gas legacy: 184929
// gas legacyOptimized: 181504 // gas legacyOptimized: 181363
// i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224 // i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224
// gas irOptimized: 112627 // gas irOptimized: 112535
// gas legacy: 115468 // gas legacy: 115468
// gas legacyOptimized: 112988 // gas legacyOptimized: 112923

View File

@ -11,6 +11,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// 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: 135996 // gas irOptimized: 135918
// gas legacy: 137190 // gas legacy: 137190
// gas legacyOptimized: 136082 // gas legacyOptimized: 135951

View File

@ -14,9 +14,9 @@ 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: 189567 // gas irOptimized: 189351
// gas legacy: 211485 // gas legacy: 211485
// gas legacyOptimized: 206394 // gas legacyOptimized: 206229
// data(uint256,uint256): 0x02, 0x02 -> 0x09 // data(uint256,uint256): 0x02, 0x02 -> 0x09
// data(uint256,uint256): 0x05, 0x01 -> 0x11 // data(uint256,uint256): 0x05, 0x01 -> 0x11
// data(uint256,uint256): 0x06, 0x00 -> FAILURE // data(uint256,uint256): 0x06, 0x00 -> FAILURE

View File

@ -44,14 +44,14 @@ contract c {
// storageEmpty -> 1 // storageEmpty -> 1
// test_short() -> 1780731860627700044960722568376587075150542249149356309979516913770823710 // test_short() -> 1780731860627700044960722568376587075150542249149356309979516913770823710
// gas legacy: 59838 // gas legacy: 59838
// gas legacyOptimized: 58606 // gas legacyOptimized: 58291
// storageEmpty -> 0 // storageEmpty -> 0
// test_long() -> 67 // test_long() -> 67
// gas irOptimized: 90759 // gas irOptimized: 89148
// gas legacy: 103590 // gas legacy: 103590
// gas legacyOptimized: 101044 // gas legacyOptimized: 100341
// storageEmpty -> 0 // storageEmpty -> 0
// test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020 // test_pop() -> 1780731860627700044960722568376592200742329637303199754547598369979433020
// gas legacy: 61930 // gas legacy: 61930
// gas legacyOptimized: 59404 // gas legacyOptimized: 58714
// storageEmpty -> 0 // storageEmpty -> 0

View File

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

View File

@ -15,7 +15,7 @@ contract c {
// ---- // ----
// getLength() -> 0 // getLength() -> 0
// set(): 1, 2 -> true // set(): 1, 2 -> true
// gas irOptimized: 110439 // gas irOptimized: 110433
// gas legacy: 110726 // gas legacy: 110726
// gas legacyOptimized: 110567 // gas legacyOptimized: 110563
// 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: 650971 // gas irOptimized: 650705
// gas legacy: 694515 // gas legacy: 694515
// gas legacyOptimized: 694013 // gas legacyOptimized: 693942
// retrieve() -> 9, 28, 9, 28, 4, 3, 32 // retrieve() -> 9, 28, 9, 28, 4, 3, 32

View File

@ -23,6 +23,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> true // f() -> true
// gas irOptimized: 92843 // gas irOptimized: 92740
// gas legacy: 93035 // gas legacy: 93035
// gas legacyOptimized: 92257 // gas legacyOptimized: 92257

View File

@ -48,6 +48,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> true // f() -> true
// gas irOptimized: 153927 // gas irOptimized: 153263
// gas legacy: 155961 // gas legacy: 155961
// gas legacyOptimized: 153588 // gas legacyOptimized: 153588

View File

@ -15,6 +15,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 0 // f() -> 0
// gas irOptimized: 135145 // gas irOptimized: 135098
// gas legacy: 135313 // gas legacy: 135313
// gas legacyOptimized: 134548 // gas legacyOptimized: 134548

View File

@ -42,11 +42,11 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 0 // f() -> 0
// gas irOptimized: 92855 // gas irOptimized: 92773
// gas legacy: 93006 // gas legacy: 93006
// gas legacyOptimized: 92261 // gas legacyOptimized: 92261
// g() -> 0 // g() -> 0
// h() -> 0 // h() -> 0
// gas irOptimized: 92922 // gas irOptimized: 92838
// gas legacy: 93028 // gas legacy: 93028
// gas legacyOptimized: 92303 // gas legacyOptimized: 92303

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: 212669 // gas irOptimized: 212623
// gas legacy: 221883 // gas legacy: 221883
// gas legacyOptimized: 220734 // gas legacyOptimized: 220653

View File

@ -37,12 +37,12 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0x02000202 // test() -> 0x02000202
// gas irOptimized: 4660920 // gas irOptimized: 4652092
// gas legacy: 4578341 // gas legacy: 4578341
// gas legacyOptimized: 4548354 // gas legacyOptimized: 4548285
// storageEmpty -> 1 // storageEmpty -> 1
// clear() -> 0, 0 // clear() -> 0, 0
// gas irOptimized: 4491908 // gas irOptimized: 4483169
// gas legacy: 4410769 // gas legacy: 4410769
// gas legacyOptimized: 4382531 // gas legacyOptimized: 4382489
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -15,6 +15,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10 // test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10
// gas irOptimized: 690506 // gas irOptimized: 690205
// gas legacy: 686268 // gas legacy: 686268
// gas legacyOptimized: 685688 // gas legacyOptimized: 685638

View File

@ -19,6 +19,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 5, 4 // test() -> 5, 4
// gas irOptimized: 226130 // gas irOptimized: 226020
// gas legacy: 233801 // gas legacy: 233801
// gas legacyOptimized: 232816 // gas legacyOptimized: 232816

View File

@ -24,6 +24,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 3, 4 // test() -> 3, 4
// gas irOptimized: 190944 // gas irOptimized: 190510
// gas legacy: 195353 // gas legacy: 195353
// gas legacyOptimized: 192441 // gas legacyOptimized: 192441

View File

@ -17,7 +17,7 @@ contract c {
// ---- // ----
// setData1(uint256,uint256,uint256): 10, 5, 4 -> // setData1(uint256,uint256,uint256): 10, 5, 4 ->
// copyStorageStorage() -> // copyStorageStorage() ->
// gas irOptimized: 111487 // gas irOptimized: 111426
// gas legacy: 109278 // gas legacy: 109278
// gas legacyOptimized: 109268 // gas legacyOptimized: 109268
// getData2(uint256): 5 -> 10, 4 // getData2(uint256): 5 -> 10, 4

View File

@ -20,6 +20,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 5, 4 // test() -> 5, 4
// gas irOptimized: 272806 // gas irOptimized: 272736
// gas legacy: 270834 // gas legacy: 270834
// gas legacyOptimized: 269960 // gas legacyOptimized: 269960

View File

@ -14,6 +14,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 9, 4 // test() -> 9, 4
// gas irOptimized: 123172 // gas irOptimized: 123162
// gas legacy: 123579 // gas legacy: 123579
// gas legacyOptimized: 123208 // gas legacyOptimized: 123208

View File

@ -15,4 +15,4 @@ contract C {
// ---- // ----
// test() -> left(0x01), left(0x02) // test() -> left(0x01), left(0x02)
// gas legacy: 90001 // gas legacy: 90001
// gas legacyOptimized: 89085 // gas legacyOptimized: 89055

View File

@ -18,6 +18,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 8, 0 // test() -> 8, 0
// gas irOptimized: 236016 // gas irOptimized: 236090
// gas legacy: 234695 // gas legacy: 234695
// gas legacyOptimized: 234103 // gas legacyOptimized: 234103

View File

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

View File

@ -17,6 +17,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 0x20, 2, 0x40, 0xa0, 2, 0, 1, 2, 2, 3 // f() -> 0x20, 2, 0x40, 0xa0, 2, 0, 1, 2, 2, 3
// gas irOptimized: 161746 // gas irOptimized: 161704
// gas legacy: 162278 // gas legacy: 162278
// gas legacyOptimized: 159955 // gas legacyOptimized: 160029

View File

@ -20,6 +20,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000 // test() -> 0xffffffff, 0x0000000000000000000000000a00090008000700060005000400030002000100, 0x0000000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 132180 // gas irOptimized: 129197
// gas legacy: 186406 // gas legacy: 186406
// gas legacyOptimized: 166126 // gas legacyOptimized: 163309

View File

@ -22,6 +22,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0x04000000000000000000000000000000000000000000000000, 0x0, 0x0 // test() -> 0x04000000000000000000000000000000000000000000000000, 0x0, 0x0
// gas irOptimized: 93855 // gas irOptimized: 93867
// gas legacy: 97451 // gas legacy: 97451
// gas legacyOptimized: 94200 // gas legacyOptimized: 94110

View File

@ -22,6 +22,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0 // test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0
// gas irOptimized: 294958 // gas irOptimized: 294772
// gas legacy: 303653 // gas legacy: 303653
// gas legacyOptimized: 301999 // gas legacyOptimized: 301918

View File

@ -22,6 +22,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00 // test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00
// gas irOptimized: 274022 // gas irOptimized: 273963
// gas legacy: 276381 // gas legacy: 276381
// gas legacyOptimized: 275453 // gas legacyOptimized: 275390

View File

@ -38,10 +38,10 @@ contract c {
// compileViaYul: true // compileViaYul: true
// ---- // ----
// test1(uint256[][]): 0x20, 2, 0x40, 0x40, 2, 23, 42 -> 2, 65 // test1(uint256[][]): 0x20, 2, 0x40, 0x40, 2, 23, 42 -> 2, 65
// gas irOptimized: 181755 // gas irOptimized: 181314
// test2(uint256[][2]): 0x20, 0x40, 0x40, 2, 23, 42 -> 2, 65 // test2(uint256[][2]): 0x20, 0x40, 0x40, 2, 23, 42 -> 2, 65
// gas irOptimized: 158111 // gas irOptimized: 157895
// test3(uint256[2][]): 0x20, 2, 23, 42, 23, 42 -> 2, 65 // test3(uint256[2][]): 0x20, 2, 23, 42, 23, 42 -> 2, 65
// gas irOptimized: 135282 // gas irOptimized: 135108
// test4(uint256[2][2]): 23, 42, 23, 42 -> 65 // test4(uint256[2][2]): 23, 42, 23, 42 -> 65
// gas irOptimized: 111460 // gas irOptimized: 111428

View File

@ -40,12 +40,12 @@ contract Test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test() -> 24 // test() -> 24
// gas irOptimized: 227254 // gas irOptimized: 227187
// gas legacy: 227133 // gas legacy: 227133
// gas legacyOptimized: 226547 // gas legacyOptimized: 226529
// test1() -> 3 // test1() -> 3
// test2() -> 6 // test2() -> 6
// test3() -> 24 // test3() -> 24
// gas irOptimized: 133742 // gas irOptimized: 133621
// gas legacy: 134295 // gas legacy: 134295
// gas legacyOptimized: 133383 // gas legacyOptimized: 133365

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: 121194 // gas irOptimized: 121048

View File

@ -19,4 +19,4 @@ contract C {
// compileViaYul: true // compileViaYul: true
// ---- // ----
// f() -> 10, 11, 12 // f() -> 10, 11, 12
// gas irOptimized: 119201 // gas irOptimized: 119149

View File

@ -23,4 +23,4 @@ contract C {
// compileViaYul: true // compileViaYul: true
// ---- // ----
// f((uint256[])[]): 0x20, 3, 0x60, 0x60, 0x60, 0x20, 3, 1, 2, 3 -> 3, 1 // f((uint256[])[]): 0x20, 3, 0x60, 0x60, 0x60, 0x20, 3, 1, 2, 3 -> 3, 1
// gas irOptimized: 330384 // gas irOptimized: 328640

View File

@ -26,4 +26,4 @@ contract C {
// compileViaYul: true // compileViaYul: true
// ---- // ----
// f() -> 3, 3, 3, 1 // f() -> 3, 3, 3, 1
// gas irOptimized: 183411 // gas irOptimized: 183382

View File

@ -15,6 +15,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 1, 2, 3 // f() -> 1, 2, 3
// gas irOptimized: 132580 // gas irOptimized: 132298
// gas legacy: 134619 // gas legacy: 134619
// gas legacyOptimized: 131940 // gas legacyOptimized: 131940

View File

@ -12,9 +12,9 @@ contract Test {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// set(uint24[]): 0x20, 18, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 -> 18 // set(uint24[]): 0x20, 18, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 -> 18
// gas irOptimized: 100066 // gas irOptimized: 100010
// gas legacy: 103815 // gas legacy: 103815
// gas legacyOptimized: 101614 // gas legacyOptimized: 101382
// data(uint256): 7 -> 8 // data(uint256): 7 -> 8
// data(uint256): 15 -> 16 // data(uint256): 15 -> 16
// data(uint256): 18 -> FAILURE // data(uint256): 18 -> FAILURE

View File

@ -7,13 +7,13 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// set(uint256): 1, 2 -> true // set(uint256): 1, 2 -> true
// gas irOptimized: 110678 // gas irOptimized: 110699
// gas legacy: 111091 // gas legacy: 111091
// gas legacyOptimized: 110736 // gas legacyOptimized: 110721
// set(uint256): 2, 2, 3, 4, 5 -> true // set(uint256): 2, 2, 3, 4, 5 -> true
// gas irOptimized: 177635 // gas irOptimized: 177659
// gas legacy: 178021 // gas legacy: 178021
// gas legacyOptimized: 177666 // gas legacyOptimized: 177651
// storageEmpty -> 0 // storageEmpty -> 0
// copy(uint256,uint256): 1, 2 -> true // copy(uint256,uint256): 1, 2 -> true
// storageEmpty -> 0 // storageEmpty -> 0

View File

@ -19,25 +19,25 @@ 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: 125470 // gas irOptimized: 121741
// gas legacy: 124364 // gas legacy: 124364
// gas legacyOptimized: 119898 // gas legacyOptimized: 118790
// f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671 // f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671
// gas irOptimized: 134121 // gas irOptimized: 130736
// gas legacy: 135431 // gas legacy: 135431
// gas legacyOptimized: 130829 // gas legacyOptimized: 129004
// f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000 // f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000
// gas irOptimized: 141217 // gas irOptimized: 137735
// gas legacy: 142238 // gas legacy: 142238
// gas legacyOptimized: 137518 // gas legacyOptimized: 135634
// f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992 // f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992
// gas irOptimized: 158957 // gas irOptimized: 152355
// gas legacy: 160728 // gas legacy: 160728
// gas legacyOptimized: 152168 // gas legacyOptimized: 148634
// f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000 // f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000
// gas legacy: 59345 // gas legacy: 59345
// gas legacyOptimized: 57279 // gas legacyOptimized: 56816
// f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968 // f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968
// gas irOptimized: 419485 // gas irOptimized: 406101
// gas legacy: 423017 // gas legacy: 423017
// gas legacyOptimized: 406021 // gas legacyOptimized: 398889

View File

@ -11,6 +11,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f(uint256[]): 0x20, 0x03, 0x1, 0x2, 0x3 -> 0x1 // f(uint256[]): 0x20, 0x03, 0x1, 0x2, 0x3 -> 0x1
// gas irOptimized: 111204 // gas irOptimized: 111161
// gas legacy: 111565 // gas legacy: 111565
// gas legacyOptimized: 111347 // gas legacyOptimized: 111297

View File

@ -37,12 +37,12 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000 // f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000
// gas irOptimized: 179963 // gas irOptimized: 179952
// gas legacy: 180694 // gas legacy: 180694
// gas legacyOptimized: 180088 // gas legacyOptimized: 180079
// g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000 // g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000
// gas irOptimized: 107332 // gas irOptimized: 107318
// gas legacy: 107895 // gas legacy: 107895
// gas legacyOptimized: 107254 // gas legacyOptimized: 107235
// h() -> 0x40, 0x60, 0x00, 0x00 // h() -> 0x40, 0x60, 0x00, 0x00
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -48,6 +48,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 0xff // f() -> 0xff
// gas irOptimized: 121438 // gas irOptimized: 121145
// gas legacy: 126745 // gas legacy: 126745
// gas legacyOptimized: 123476 // gas legacyOptimized: 123436

View File

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

View File

@ -9,9 +9,9 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// set(): 1, 2, 3, 4, 5 -> true // set(): 1, 2, 3, 4, 5 -> true
// gas irOptimized: 177396 // gas irOptimized: 177417
// gas legacy: 177656 // gas legacy: 177656
// gas legacyOptimized: 177496 // gas legacyOptimized: 177492
// storageEmpty -> 0 // storageEmpty -> 0
// reset() -> true // reset() -> true
// storageEmpty -> 1 // storageEmpty -> 1

View File

@ -20,6 +20,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 3 // f() -> 3
// gas irOptimized: 131095 // gas irOptimized: 129943
// gas legacy: 130307 // gas legacy: 130307
// gas legacyOptimized: 129363 // gas legacyOptimized: 129130

View File

@ -19,6 +19,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 1, 2, 3, 4, 5, 6, 7 // f() -> 1, 2, 3, 4, 5, 6, 7
// gas irOptimized: 207030 // gas irOptimized: 207164
// gas legacy: 212325 // gas legacy: 212325
// gas legacyOptimized: 211486 // gas legacyOptimized: 211450

View File

@ -13,6 +13,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// 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: 202750 // gas irOptimized: 202727
// gas legacy: 204459 // gas legacy: 204459
// gas legacyOptimized: 203437 // gas legacyOptimized: 203479

View File

@ -20,6 +20,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 1, 2, 3, 4, 5, 6, 7 // f() -> 1, 2, 3, 4, 5, 6, 7
// gas irOptimized: 207030 // gas irOptimized: 207164
// gas legacy: 212330 // gas legacy: 212330
// gas legacyOptimized: 211491 // gas legacyOptimized: 211455

View File

@ -26,6 +26,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 11, 0x0c, 1, 0x15, 22, 4 // f() -> 11, 0x0c, 1, 0x15, 22, 4
// gas irOptimized: 291923 // gas irOptimized: 292381
// gas legacy: 293516 // gas legacy: 293516
// gas legacyOptimized: 290263 // gas legacyOptimized: 290263

View File

@ -15,6 +15,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 2, 3, 4 // f() -> 2, 3, 4
// gas irOptimized: 114568 // gas irOptimized: 113828
// gas legacy: 126449 // gas legacy: 126449
// gas legacyOptimized: 120902 // gas legacyOptimized: 120605

View File

@ -20,6 +20,6 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> "A", 8, 4, "B" // f() -> "A", 8, 4, "B"
// gas irOptimized: 140716 // gas irOptimized: 130594
// gas legacy: 121398 // gas legacy: 121398
// gas legacyOptimized: 115494 // gas legacyOptimized: 115494

View File

@ -18,6 +18,6 @@ contract c {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// test1() -> true // test1() -> true
// gas irOptimized: 230748 // gas irOptimized: 225903
// gas legacy: 255577 // gas legacy: 255577
// gas legacyOptimized: 248611 // gas legacyOptimized: 244795

View File

@ -16,4 +16,4 @@ contract C {
// compileViaYul: also // compileViaYul: also
// ---- // ----
// f() -> 0, 0, 0 // f() -> 0, 0, 0
// gas irOptimized: 91245 // gas irOptimized: 91098

View File

@ -16,9 +16,9 @@ contract c {
// ---- // ----
// storageEmpty -> 1 // storageEmpty -> 1
// fill() -> // fill() ->
// gas irOptimized: 520360 // gas irOptimized: 519848
// gas legacy: 521773 // gas legacy: 521773
// gas legacyOptimized: 517048 // gas legacyOptimized: 516733
// storageEmpty -> 0 // storageEmpty -> 0
// halfClear() -> // halfClear() ->
// storageEmpty -> 0 // storageEmpty -> 0

View File

@ -44,9 +44,9 @@ contract c {
// ---- // ----
// getLengths() -> 0, 0 // getLengths() -> 0, 0
// setLengths(uint256,uint256): 48, 49 -> // setLengths(uint256,uint256): 48, 49 ->
// gas irOptimized: 104851 // gas irOptimized: 104355
// gas legacy: 108571 // gas legacy: 108571
// gas legacyOptimized: 100417 // gas legacyOptimized: 100401
// getLengths() -> 48, 49 // getLengths() -> 48, 49
// setIDStatic(uint256): 11 -> // setIDStatic(uint256): 11 ->
// getID(uint256): 2 -> 11 // getID(uint256): 2 -> 11

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