aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/yulOptimizerTests/fullSuite/abi_example1.yul
diff options
context:
space:
mode:
Diffstat (limited to 'test/libyul/yulOptimizerTests/fullSuite/abi_example1.yul')
-rw-r--r--test/libyul/yulOptimizerTests/fullSuite/abi_example1.yul93
1 files changed, 45 insertions, 48 deletions
diff --git a/test/libyul/yulOptimizerTests/fullSuite/abi_example1.yul b/test/libyul/yulOptimizerTests/fullSuite/abi_example1.yul
index a8cac6c6..05a35673 100644
--- a/test/libyul/yulOptimizerTests/fullSuite/abi_example1.yul
+++ b/test/libyul/yulOptimizerTests/fullSuite/abi_example1.yul
@@ -460,12 +460,12 @@
// {
// let _1 := 0x20
// let _2 := 0
-// let _268 := mload(_2)
+// let _218 := mload(_2)
// let abi_encode_pos := _1
-// let abi_encode_length_68 := mload(_268)
+// let abi_encode_length_68 := mload(_218)
// mstore(_1, abi_encode_length_68)
// abi_encode_pos := 64
-// let abi_encode_srcPtr := add(_268, _1)
+// let abi_encode_srcPtr := add(_218, _1)
// let abi_encode_i_69 := _2
// for {
// }
@@ -474,66 +474,65 @@
// abi_encode_i_69 := add(abi_encode_i_69, 1)
// }
// {
-// let _668 := mload(abi_encode_srcPtr)
-// let abi_encode_pos_71_760 := abi_encode_pos
-// let abi_encode_srcPtr_73_762 := _668
-// let abi_encode_i_74_763 := _2
+// let _580 := mload(abi_encode_srcPtr)
+// let abi_encode_pos_71_672 := abi_encode_pos
+// let abi_encode_srcPtr_73_674 := _580
+// let abi_encode_i_74_675 := _2
// for {
// }
-// lt(abi_encode_i_74_763, 0x3)
+// lt(abi_encode_i_74_675, 0x3)
// {
-// abi_encode_i_74_763 := add(abi_encode_i_74_763, 1)
+// abi_encode_i_74_675 := add(abi_encode_i_74_675, 1)
// }
// {
-// mstore(abi_encode_pos_71_760, and(mload(abi_encode_srcPtr_73_762), 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))
-// abi_encode_srcPtr_73_762 := add(abi_encode_srcPtr_73_762, _1)
-// abi_encode_pos_71_760 := add(abi_encode_pos_71_760, _1)
+// mstore(abi_encode_pos_71_672, and(mload(abi_encode_srcPtr_73_674), 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))
+// abi_encode_srcPtr_73_674 := add(abi_encode_srcPtr_73_674, _1)
+// abi_encode_pos_71_672 := add(abi_encode_pos_71_672, _1)
// }
// abi_encode_srcPtr := add(abi_encode_srcPtr, _1)
// abi_encode_pos := add(abi_encode_pos, 0x60)
// }
-// let _270 := mload(64)
-// let _271 := mload(_1)
-// if slt(sub(_270, _271), 128)
+// let _220 := mload(64)
+// let _221 := mload(_1)
+// if slt(sub(_220, _221), 128)
// {
// revert(_2, _2)
// }
-// let abi_decode_offset_64 := calldataload(add(_271, 64))
+// let abi_decode_offset_64 := calldataload(add(_221, 64))
// let abi_decode__74 := 0xffffffffffffffff
// if gt(abi_decode_offset_64, abi_decode__74)
// {
// revert(_2, _2)
// }
-// let abi_decode_value2_367 := abi_decode_t_array$_t_uint256_$dyn_memory_ptr(add(_271, abi_decode_offset_64), _270)
-// let abi_decode_offset_65 := calldataload(add(_271, 96))
+// let abi_decode_value2_317 := abi_decode_t_array$_t_uint256_$dyn_memory_ptr(add(_221, abi_decode_offset_64), _220)
+// let abi_decode_offset_65 := calldataload(add(_221, 96))
// if gt(abi_decode_offset_65, abi_decode__74)
// {
// revert(_2, _2)
// }
-// let abi_decode_value3_368 := abi_decode_t_array$_t_array$_t_uint256_$2_memory_$dyn_memory_ptr(add(_271, abi_decode_offset_65), _270)
-// sstore(calldataload(_271), calldataload(add(_271, _1)))
-// sstore(abi_decode_value2_367, abi_decode_value3_368)
+// let abi_decode_value3_318 := abi_decode_t_array$_t_array$_t_uint256_$2_memory_$dyn_memory_ptr(add(_221, abi_decode_offset_65), _220)
+// sstore(calldataload(_221), calldataload(add(_221, _1)))
+// sstore(abi_decode_value2_317, abi_decode_value3_318)
// sstore(_2, abi_encode_pos)
// function abi_decode_t_array$_t_array$_t_uint256_$2_memory_$dyn_memory_ptr(offset_3, end_4) -> array_5
// {
// if iszero(slt(add(offset_3, 0x1f), end_4))
// {
-// revert(0, 0)
+// revert(array_5, array_5)
// }
// let length_6 := calldataload(offset_3)
-// let array_5_115 := allocateMemory(array_allocation_size_t_array$_t_address_$dyn_memory(length_6))
-// array_5 := array_5_115
-// let dst_7 := array_5_115
-// mstore(array_5_115, length_6)
+// array_5 := allocateMemory(array_allocation_size_t_array$_t_address_$dyn_memory(length_6))
+// let dst_7 := array_5
+// mstore(array_5, length_6)
// let _16 := 0x20
-// dst_7 := add(array_5_115, _16)
+// dst_7 := add(array_5, _16)
// let src_8 := add(offset_3, _16)
// if gt(add(add(offset_3, mul(length_6, 0x40)), _16), end_4)
// {
// revert(0, 0)
// }
-// let i_9_346 := 0
-// let i_9 := i_9_346
+// let i_9_296 := 0
+// let i_9 := i_9_296
// for {
// }
// lt(i_9, length_6)
@@ -543,17 +542,17 @@
// {
// if iszero(slt(add(src_8, 0x1f), end_4))
// {
-// revert(i_9_346, i_9_346)
+// revert(i_9_296, i_9_296)
// }
-// let abi_decode_array_13_124 := allocateMemory(array_allocation_size_t_array$_t_uint256_$2_memory(0x2))
-// let abi_decode_dst_15 := abi_decode_array_13_124
+// let abi_decode_array_13_300 := allocateMemory(array_allocation_size_t_array$_t_uint256_$2_memory(0x2))
+// let abi_decode_dst_15 := abi_decode_array_13_300
// let abi_decode_src_16 := src_8
-// let abi_decode__289 := add(src_8, 0x40)
-// if gt(abi_decode__289, end_4)
+// let abi_decode__239 := add(src_8, 0x40)
+// if gt(abi_decode__239, end_4)
// {
-// revert(i_9_346, i_9_346)
+// revert(i_9_296, i_9_296)
// }
-// let abi_decode_i_17 := i_9_346
+// let abi_decode_i_17 := i_9_296
// for {
// }
// lt(abi_decode_i_17, 0x2)
@@ -565,24 +564,23 @@
// abi_decode_dst_15 := add(abi_decode_dst_15, _16)
// abi_decode_src_16 := add(abi_decode_src_16, _16)
// }
-// mstore(dst_7, abi_decode_array_13_124)
+// mstore(dst_7, abi_decode_array_13_300)
// dst_7 := add(dst_7, _16)
-// src_8 := abi_decode__289
+// src_8 := abi_decode__239
// }
// }
// function abi_decode_t_array$_t_uint256_$dyn_memory_ptr(offset_27, end_28) -> array_29
// {
// if iszero(slt(add(offset_27, 0x1f), end_28))
// {
-// revert(0, 0)
+// revert(array_29, array_29)
// }
// let length_30 := calldataload(offset_27)
-// let array_29_131 := allocateMemory(array_allocation_size_t_array$_t_address_$dyn_memory(length_30))
-// array_29 := array_29_131
-// let dst_31 := array_29_131
-// mstore(array_29_131, length_30)
+// array_29 := allocateMemory(array_allocation_size_t_array$_t_address_$dyn_memory(length_30))
+// let dst_31 := array_29
+// mstore(array_29, length_30)
// let _52 := 0x20
-// dst_31 := add(array_29_131, _52)
+// dst_31 := add(array_29, _52)
// let src_32 := add(offset_27, _52)
// if gt(add(add(offset_27, mul(length_30, _52)), _52), end_28)
// {
@@ -603,10 +601,9 @@
// }
// function allocateMemory(size) -> memPtr
// {
-// let memPtr_157 := mload(64)
-// memPtr := memPtr_157
-// let newFreePtr := add(memPtr_157, size)
-// if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr_157))
+// memPtr := mload(64)
+// let newFreePtr := add(memPtr, size)
+// if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr))
// {
// revert(0, 0)
// }