Created
March 13, 2020 14:09
-
-
Save ekpyron/41f43961838274ad5f5dfb99c4b387e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /tmp/with_ptr 2020-03-13 14:53:35.666537168 +0100 | |
+++ /tmp/without_ptr 2020-03-13 14:53:56.476630832 +0100 | |
@@ -11,11 +11,11 @@ | |
value := calldataload(offset) | |
validator_revert_t_address(value) | |
} | |
- function abi_decode_t_array$_t_address_$dyn_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_address_$dyn_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := calldataload(offset) | |
- array := allocateMemory(array_allocation_size_t_array$_t_address_$dyn_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_address_$dyn_memory(length)) | |
let dst := array | |
mstore(array, length) | |
offset := add(offset, 0x20) | |
@@ -30,11 +30,11 @@ | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_array$_t_bytes_memory_ptr_$2_memory_ptr_$dyn_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_array$_t_bytes_memory_$2_memory_$dyn_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := calldataload(offset) | |
- array := allocateMemory(array_allocation_size_t_array$_t_array$_t_bytes_memory_ptr_$2_memory_ptr_$dyn_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_array$_t_bytes_memory_$2_memory_$dyn_memory(length)) | |
let dst := array | |
mstore(array, length) | |
offset := add(offset, 0x20) | |
@@ -43,61 +43,61 @@ | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
let elementPos := add(offset, calldataload(src)) | |
- mstore(dst, abi_decode_t_array$_t_bytes_memory_ptr_$2_memory_ptr(elementPos, end)) | |
+ mstore(dst, abi_decode_t_array$_t_bytes_memory_$2_memory(elementPos, end)) | |
dst := add(dst, 0x20) | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_bytes_memory_ptr_$2_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_bytes_memory_$2_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := 0x02 | |
- array := allocateMemory(array_allocation_size_t_array$_t_bytes_memory_ptr_$2_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_bytes_memory_$2_memory(length)) | |
let dst := array | |
let src := offset | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
let elementPos := add(offset, calldataload(src)) | |
- mstore(dst, abi_decode_t_bytes_memory_ptr(elementPos, end)) | |
+ mstore(dst, abi_decode_t_bytes_memory(elementPos, end)) | |
dst := add(dst, 0x20) | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_string_memory_ptr_$12_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_string_memory_$12_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := 0x0c | |
- array := allocateMemory(array_allocation_size_t_array$_t_string_memory_ptr_$12_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_string_memory_$12_memory(length)) | |
let dst := array | |
let src := offset | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
let elementPos := add(offset, calldataload(src)) | |
- mstore(dst, abi_decode_t_string_memory_ptr(elementPos, end)) | |
+ mstore(dst, abi_decode_t_string_memory(elementPos, end)) | |
dst := add(dst, 0x20) | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_string_memory_ptr_$20_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_string_memory_$20_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := 0x14 | |
- array := allocateMemory(array_allocation_size_t_array$_t_string_memory_ptr_$20_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_string_memory_$20_memory(length)) | |
let dst := array | |
let src := offset | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
let elementPos := add(offset, calldataload(src)) | |
- mstore(dst, abi_decode_t_string_memory_ptr(elementPos, end)) | |
+ mstore(dst, abi_decode_t_string_memory(elementPos, end)) | |
dst := add(dst, 0x20) | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_string_memory_ptr_$dyn_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_string_memory_$dyn_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := calldataload(offset) | |
- array := allocateMemory(array_allocation_size_t_array$_t_string_memory_ptr_$dyn_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_string_memory_$dyn_memory(length)) | |
let dst := array | |
mstore(array, length) | |
offset := add(offset, 0x20) | |
@@ -106,16 +106,16 @@ | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
let elementPos := add(offset, calldataload(src)) | |
- mstore(dst, abi_decode_t_string_memory_ptr(elementPos, end)) | |
+ mstore(dst, abi_decode_t_string_memory(elementPos, end)) | |
dst := add(dst, 0x20) | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_uint16_$dyn_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_uint16_$dyn_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := calldataload(offset) | |
- array := allocateMemory(array_allocation_size_t_array$_t_uint16_$dyn_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_uint16_$dyn_memory(length)) | |
let dst := array | |
mstore(array, length) | |
offset := add(offset, 0x20) | |
@@ -130,11 +130,11 @@ | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_uint256_$30_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_uint256_$30_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := 0x1e | |
- array := allocateMemory(array_allocation_size_t_array$_t_uint256_$30_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_uint256_$30_memory(length)) | |
let dst := array | |
let src := offset | |
if gt(add(src, mul(length, 0x20)), end) { revert(0, 0) } | |
@@ -146,11 +146,11 @@ | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_uint256_$31_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_uint256_$31_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := 0x1f | |
- array := allocateMemory(array_allocation_size_t_array$_t_uint256_$31_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_uint256_$31_memory(length)) | |
let dst := array | |
let src := offset | |
if gt(add(src, mul(length, 0x20)), end) { revert(0, 0) } | |
@@ -162,11 +162,11 @@ | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_uint256_$32_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_uint256_$32_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := 0x20 | |
- array := allocateMemory(array_allocation_size_t_array$_t_uint256_$32_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_uint256_$32_memory(length)) | |
let dst := array | |
let src := offset | |
if gt(add(src, mul(length, 0x20)), end) { revert(0, 0) } | |
@@ -178,11 +178,11 @@ | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_uint256_$dyn_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_uint256_$dyn_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := calldataload(offset) | |
- array := allocateMemory(array_allocation_size_t_array$_t_uint256_$dyn_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_uint256_$dyn_memory(length)) | |
let dst := array | |
mstore(array, length) | |
offset := add(offset, 0x20) | |
@@ -197,11 +197,11 @@ | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_array$_t_uint32_$dyn_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_array$_t_uint32_$dyn_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := calldataload(offset) | |
- array := allocateMemory(array_allocation_size_t_array$_t_uint32_$dyn_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_array$_t_uint32_$dyn_memory(length)) | |
let dst := array | |
mstore(array, length) | |
offset := add(offset, 0x20) | |
@@ -216,11 +216,11 @@ | |
src := add(src, 0x20) | |
} | |
} | |
- function abi_decode_t_bytes_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_bytes_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := calldataload(offset) | |
- array := allocateMemory(array_allocation_size_t_bytes_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_bytes_memory(length)) | |
mstore(array, length) | |
let src := add(offset, 0x20) | |
let dst := add(array, 0x20) | |
@@ -232,11 +232,11 @@ | |
value := calldataload(offset) | |
validator_revert_t_contract$_C_$164(value) | |
} | |
- function abi_decode_t_string_memory_ptr(offset, end) -> array | |
+ function abi_decode_t_string_memory(offset, end) -> array | |
{ | |
if iszero(slt(add(offset, 0x1f), end)) { revert(0, 0) } | |
let length := calldataload(offset) | |
- array := allocateMemory(array_allocation_size_t_string_memory_ptr(length)) | |
+ array := allocateMemory(array_allocation_size_t_string_memory(length)) | |
mstore(array, length) | |
let src := add(offset, 0x20) | |
let dst := add(array, 0x20) | |
@@ -258,41 +258,41 @@ | |
value := calldataload(offset) | |
validator_revert_t_uint32(value) | |
} | |
- function abi_decode_tuple_t_array$_t_address_$dyn_memory_ptrt_array$_t_string_memory_ptr_$dyn_memory_ptrt_bytes_memory_ptrt_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
+ function abi_decode_tuple_t_array$_t_address_$dyn_memoryt_array$_t_string_memory_$dyn_memoryt_bytes_memoryt_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
{ | |
if slt(sub(dataEnd, headStart), 128) { revert(0, 0) } | |
{ | |
let offset := calldataload(add(headStart, 0)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value0 := abi_decode_t_array$_t_address_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value0 := abi_decode_t_array$_t_address_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 32)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value1 := abi_decode_t_array$_t_string_memory_ptr_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value1 := abi_decode_t_array$_t_string_memory_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 64)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value2 := abi_decode_t_bytes_memory_ptr(add(headStart, offset), dataEnd) | |
+ value2 := abi_decode_t_bytes_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := 96 | |
value3 := abi_decode_t_address(add(headStart, offset), dataEnd) | |
} | |
} | |
- function abi_decode_tuple_t_array$_t_uint16_$dyn_memory_ptrt_array$_t_string_memory_ptr_$dyn_memory_ptrt_uint16t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
+ function abi_decode_tuple_t_array$_t_uint16_$dyn_memoryt_array$_t_string_memory_$dyn_memoryt_uint16t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
{ | |
if slt(sub(dataEnd, headStart), 128) { revert(0, 0) } | |
{ | |
let offset := calldataload(add(headStart, 0)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value0 := abi_decode_t_array$_t_uint16_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value0 := abi_decode_t_array$_t_uint16_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 32)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value1 := abi_decode_t_array$_t_string_memory_ptr_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value1 := abi_decode_t_array$_t_string_memory_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := 64 | |
@@ -303,17 +303,17 @@ | |
value3 := abi_decode_t_address(add(headStart, offset), dataEnd) | |
} | |
} | |
- function abi_decode_tuple_t_array$_t_uint256_$30_memory_ptrt_array$_t_string_memory_ptr_$dyn_memory_ptrt_uint16t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
+ function abi_decode_tuple_t_array$_t_uint256_$30_memoryt_array$_t_string_memory_$dyn_memoryt_uint16t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
{ | |
if slt(sub(dataEnd, headStart), 1056) { revert(0, 0) } | |
{ | |
let offset := 0 | |
- value0 := abi_decode_t_array$_t_uint256_$30_memory_ptr(add(headStart, offset), dataEnd) | |
+ value0 := abi_decode_t_array$_t_uint256_$30_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 960)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value1 := abi_decode_t_array$_t_string_memory_ptr_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value1 := abi_decode_t_array$_t_string_memory_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := 992 | |
@@ -324,17 +324,17 @@ | |
value3 := abi_decode_t_address(add(headStart, offset), dataEnd) | |
} | |
} | |
- function abi_decode_tuple_t_array$_t_uint256_$31_memory_ptrt_array$_t_string_memory_ptr_$20_memory_ptrt_contract$_C_$164t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
+ function abi_decode_tuple_t_array$_t_uint256_$31_memoryt_array$_t_string_memory_$20_memoryt_contract$_C_$164t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
{ | |
if slt(sub(dataEnd, headStart), 1088) { revert(0, 0) } | |
{ | |
let offset := 0 | |
- value0 := abi_decode_t_array$_t_uint256_$31_memory_ptr(add(headStart, offset), dataEnd) | |
+ value0 := abi_decode_t_array$_t_uint256_$31_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 992)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value1 := abi_decode_t_array$_t_string_memory_ptr_$20_memory_ptr(add(headStart, offset), dataEnd) | |
+ value1 := abi_decode_t_array$_t_string_memory_$20_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := 1024 | |
@@ -345,17 +345,17 @@ | |
value3 := abi_decode_t_address(add(headStart, offset), dataEnd) | |
} | |
} | |
- function abi_decode_tuple_t_array$_t_uint256_$32_memory_ptrt_array$_t_string_memory_ptr_$dyn_memory_ptrt_uint32t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
+ function abi_decode_tuple_t_array$_t_uint256_$32_memoryt_array$_t_string_memory_$dyn_memoryt_uint32t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
{ | |
if slt(sub(dataEnd, headStart), 1120) { revert(0, 0) } | |
{ | |
let offset := 0 | |
- value0 := abi_decode_t_array$_t_uint256_$32_memory_ptr(add(headStart, offset), dataEnd) | |
+ value0 := abi_decode_t_array$_t_uint256_$32_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 1024)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value1 := abi_decode_t_array$_t_string_memory_ptr_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value1 := abi_decode_t_array$_t_string_memory_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := 1056 | |
@@ -366,18 +366,18 @@ | |
value3 := abi_decode_t_address(add(headStart, offset), dataEnd) | |
} | |
} | |
- function abi_decode_tuple_t_array$_t_uint256_$dyn_memory_ptrt_array$_t_string_memory_ptr_$dyn_memory_ptrt_uint16t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
+ function abi_decode_tuple_t_array$_t_uint256_$dyn_memoryt_array$_t_string_memory_$dyn_memoryt_uint16t_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
{ | |
if slt(sub(dataEnd, headStart), 128) { revert(0, 0) } | |
{ | |
let offset := calldataload(add(headStart, 0)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value0 := abi_decode_t_array$_t_uint256_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value0 := abi_decode_t_array$_t_uint256_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 32)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value1 := abi_decode_t_array$_t_string_memory_ptr_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value1 := abi_decode_t_array$_t_string_memory_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := 64 | |
@@ -388,23 +388,23 @@ | |
value3 := abi_decode_t_address(add(headStart, offset), dataEnd) | |
} | |
} | |
- function abi_decode_tuple_t_array$_t_uint32_$dyn_memory_ptrt_array$_t_string_memory_ptr_$12_memory_ptrt_array$_t_array$_t_bytes_memory_ptr_$2_memory_ptr_$dyn_memory_ptrt_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
+ function abi_decode_tuple_t_array$_t_uint32_$dyn_memoryt_array$_t_string_memory_$12_memoryt_array$_t_array$_t_bytes_memory_$2_memory_$dyn_memoryt_address(headStart, dataEnd) -> value0, value1, value2, value3 | |
{ | |
if slt(sub(dataEnd, headStart), 128) { revert(0, 0) } | |
{ | |
let offset := calldataload(add(headStart, 0)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value0 := abi_decode_t_array$_t_uint32_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value0 := abi_decode_t_array$_t_uint32_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 32)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value1 := abi_decode_t_array$_t_string_memory_ptr_$12_memory_ptr(add(headStart, offset), dataEnd) | |
+ value1 := abi_decode_t_array$_t_string_memory_$12_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := calldataload(add(headStart, 64)) | |
if gt(offset, 0xffffffffffffffff) { revert(0, 0) } | |
- value2 := abi_decode_t_array$_t_array$_t_bytes_memory_ptr_$2_memory_ptr_$dyn_memory_ptr(add(headStart, offset), dataEnd) | |
+ value2 := abi_decode_t_array$_t_array$_t_bytes_memory_$2_memory_$dyn_memory(add(headStart, offset), dataEnd) | |
} | |
{ | |
let offset := 96 | |
@@ -419,9 +419,9 @@ | |
value0 := abi_decode_t_uint256(add(headStart, offset), dataEnd) | |
} | |
} | |
- function abi_encodeUpdatedPos_t_bytes_memory_ptr_to_t_bytes_memory_ptr(value0, pos) -> updatedPos | |
+ function abi_encodeUpdatedPos_t_bytes_memory_to_t_bytes_memory(value0, pos) -> updatedPos | |
{ | |
- updatedPos := abi_encode_t_bytes_memory_ptr_to_t_bytes_memory_ptr(value0, pos) | |
+ updatedPos := abi_encode_t_bytes_memory_to_t_bytes_memory(value0, pos) | |
} | |
function abi_encodeUpdatedPos_t_uint16_to_t_uint16(value0, pos) -> updatedPos | |
{ | |
@@ -433,70 +433,70 @@ | |
abi_encode_t_uint256_to_t_uint256(value0, pos) | |
updatedPos := add(pos, 0x20) | |
} | |
- function abi_encode_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_to_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_fromStack(value, pos) -> end | |
+ function abi_encode_t_array$_t_bytes_memory_$dyn_memory_to_t_array$_t_bytes_memory_$dyn_memory_fromStack(value, pos) -> end | |
{ | |
- let length := array_length_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr(value) | |
- pos := array_storeLengthForEncoding_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_fromStack(pos, length) | |
+ let length := array_length_t_array$_t_bytes_memory_$dyn_memory(value) | |
+ pos := array_storeLengthForEncoding_t_array$_t_bytes_memory_$dyn_memory_fromStack(pos, length) | |
let headStart := pos | |
let tail := add(pos, mul(length, 0x20)) | |
- let baseRef := array_dataslot_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr(value) | |
+ let baseRef := array_dataslot_t_array$_t_bytes_memory_$dyn_memory(value) | |
let srcPtr := baseRef | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
mstore(pos, sub(tail, headStart)) | |
let elementValue0 := mload(srcPtr) | |
- tail := abi_encodeUpdatedPos_t_bytes_memory_ptr_to_t_bytes_memory_ptr(elementValue0, tail) | |
- srcPtr := array_nextElement_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr(srcPtr) | |
+ tail := abi_encodeUpdatedPos_t_bytes_memory_to_t_bytes_memory(elementValue0, tail) | |
+ srcPtr := array_nextElement_t_array$_t_bytes_memory_$dyn_memory(srcPtr) | |
pos := add(pos, 0x20) | |
} | |
pos := tail | |
end := pos | |
} | |
- function abi_encode_t_array$_t_uint16_$200_memory_ptr_to_t_array$_t_uint16_$200_memory_ptr_fromStack(value, pos) | |
+ function abi_encode_t_array$_t_uint16_$200_memory_to_t_array$_t_uint16_$200_memory_fromStack(value, pos) | |
{ | |
- let length := array_length_t_array$_t_uint16_$200_memory_ptr(value) | |
- pos := array_storeLengthForEncoding_t_array$_t_uint16_$200_memory_ptr_fromStack(pos, length) | |
- let baseRef := array_dataslot_t_array$_t_uint16_$200_memory_ptr(value) | |
+ let length := array_length_t_array$_t_uint16_$200_memory(value) | |
+ pos := array_storeLengthForEncoding_t_array$_t_uint16_$200_memory_fromStack(pos, length) | |
+ let baseRef := array_dataslot_t_array$_t_uint16_$200_memory(value) | |
let srcPtr := baseRef | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
let elementValue0 := mload(srcPtr) | |
pos := abi_encodeUpdatedPos_t_uint16_to_t_uint16(elementValue0, pos) | |
- srcPtr := array_nextElement_t_array$_t_uint16_$200_memory_ptr(srcPtr) | |
+ srcPtr := array_nextElement_t_array$_t_uint16_$200_memory(srcPtr) | |
} | |
} | |
- function abi_encode_t_array$_t_uint16_$dyn_memory_ptr_to_t_array$_t_uint16_$dyn_memory_ptr_fromStack(value, pos) -> end | |
+ function abi_encode_t_array$_t_uint16_$dyn_memory_to_t_array$_t_uint16_$dyn_memory_fromStack(value, pos) -> end | |
{ | |
- let length := array_length_t_array$_t_uint16_$dyn_memory_ptr(value) | |
- pos := array_storeLengthForEncoding_t_array$_t_uint16_$dyn_memory_ptr_fromStack(pos, length) | |
- let baseRef := array_dataslot_t_array$_t_uint16_$dyn_memory_ptr(value) | |
+ let length := array_length_t_array$_t_uint16_$dyn_memory(value) | |
+ pos := array_storeLengthForEncoding_t_array$_t_uint16_$dyn_memory_fromStack(pos, length) | |
+ let baseRef := array_dataslot_t_array$_t_uint16_$dyn_memory(value) | |
let srcPtr := baseRef | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
let elementValue0 := mload(srcPtr) | |
pos := abi_encodeUpdatedPos_t_uint16_to_t_uint16(elementValue0, pos) | |
- srcPtr := array_nextElement_t_array$_t_uint16_$dyn_memory_ptr(srcPtr) | |
+ srcPtr := array_nextElement_t_array$_t_uint16_$dyn_memory(srcPtr) | |
} | |
end := pos | |
} | |
- function abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value, pos) -> end | |
+ function abi_encode_t_array$_t_uint256_$dyn_memory_to_t_array$_t_uint256_$dyn_memory_fromStack(value, pos) -> end | |
{ | |
- let length := array_length_t_array$_t_uint256_$dyn_memory_ptr(value) | |
- pos := array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr_fromStack(pos, length) | |
- let baseRef := array_dataslot_t_array$_t_uint256_$dyn_memory_ptr(value) | |
+ let length := array_length_t_array$_t_uint256_$dyn_memory(value) | |
+ pos := array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_fromStack(pos, length) | |
+ let baseRef := array_dataslot_t_array$_t_uint256_$dyn_memory(value) | |
let srcPtr := baseRef | |
for { let i := 0 } lt(i, length) { i := add(i, 1) } | |
{ | |
let elementValue0 := mload(srcPtr) | |
pos := abi_encodeUpdatedPos_t_uint256_to_t_uint256(elementValue0, pos) | |
- srcPtr := array_nextElement_t_array$_t_uint256_$dyn_memory_ptr(srcPtr) | |
+ srcPtr := array_nextElement_t_array$_t_uint256_$dyn_memory(srcPtr) | |
} | |
end := pos | |
} | |
- function abi_encode_t_bytes_memory_ptr_to_t_bytes_memory_ptr(value, pos) -> end | |
+ function abi_encode_t_bytes_memory_to_t_bytes_memory(value, pos) -> end | |
{ | |
- let length := array_length_t_bytes_memory_ptr(value) | |
- pos := array_storeLengthForEncoding_t_bytes_memory_ptr(pos, length) | |
+ let length := array_length_t_bytes_memory(value) | |
+ pos := array_storeLengthForEncoding_t_bytes_memory(pos, length) | |
copy_memory_to_memory(add(value, 0x20), pos, length) | |
end := add(pos, round_up_to_mul_of_32(length)) | |
} | |
@@ -512,28 +512,28 @@ | |
{ | |
mstore(pos, cleanup_t_uint256(value)) | |
} | |
- function abi_encode_tuple_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_t_array$_t_uint16_$dyn_memory_ptr__to_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_t_array$_t_uint16_$dyn_memory_ptr__fromStack(headStart, value1, value0) -> tail | |
+ function abi_encode_tuple_t_array$_t_bytes_memory_$dyn_memory_t_array$_t_uint16_$dyn_memory__to_t_array$_t_bytes_memory_$dyn_memory_t_array$_t_uint16_$dyn_memory__fromStack(headStart, value1, value0) -> tail | |
{ | |
tail := add(headStart, 64) | |
mstore(add(headStart, 0), sub(tail, headStart)) | |
- tail := abi_encode_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_to_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_fromStack(value0, tail) | |
+ tail := abi_encode_t_array$_t_bytes_memory_$dyn_memory_to_t_array$_t_bytes_memory_$dyn_memory_fromStack(value0, tail) | |
mstore(add(headStart, 32), sub(tail, headStart)) | |
- tail := abi_encode_t_array$_t_uint16_$dyn_memory_ptr_to_t_array$_t_uint16_$dyn_memory_ptr_fromStack(value1, tail) | |
+ tail := abi_encode_t_array$_t_uint16_$dyn_memory_to_t_array$_t_uint16_$dyn_memory_fromStack(value1, tail) | |
} | |
- function abi_encode_tuple_t_array$_t_uint16_$200_memory_ptr_t_array$_t_uint16_$dyn_memory_ptr__to_t_array$_t_uint16_$200_memory_ptr_t_array$_t_uint16_$dyn_memory_ptr__fromStack(headStart, value1, value0) -> tail | |
+ function abi_encode_tuple_t_array$_t_uint16_$200_memory_t_array$_t_uint16_$dyn_memory__to_t_array$_t_uint16_$200_memory_t_array$_t_uint16_$dyn_memory__fromStack(headStart, value1, value0) -> tail | |
{ | |
tail := add(headStart, 6432) | |
- abi_encode_t_array$_t_uint16_$200_memory_ptr_to_t_array$_t_uint16_$200_memory_ptr_fromStack(value0, add(headStart, 0)) | |
+ abi_encode_t_array$_t_uint16_$200_memory_to_t_array$_t_uint16_$200_memory_fromStack(value0, add(headStart, 0)) | |
mstore(add(headStart, 6400), sub(tail, headStart)) | |
- tail := abi_encode_t_array$_t_uint16_$dyn_memory_ptr_to_t_array$_t_uint16_$dyn_memory_ptr_fromStack(value1, tail) | |
+ tail := abi_encode_t_array$_t_uint16_$dyn_memory_to_t_array$_t_uint16_$dyn_memory_fromStack(value1, tail) | |
} | |
- function abi_encode_tuple_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint16_$dyn_memory_ptr__to_t_array$_t_uint256_$dyn_memory_ptr_t_array$_t_uint16_$dyn_memory_ptr__fromStack(headStart, value1, value0) -> tail | |
+ function abi_encode_tuple_t_array$_t_uint256_$dyn_memory_t_array$_t_uint16_$dyn_memory__to_t_array$_t_uint256_$dyn_memory_t_array$_t_uint16_$dyn_memory__fromStack(headStart, value1, value0) -> tail | |
{ | |
tail := add(headStart, 64) | |
mstore(add(headStart, 0), sub(tail, headStart)) | |
- tail := abi_encode_t_array$_t_uint256_$dyn_memory_ptr_to_t_array$_t_uint256_$dyn_memory_ptr_fromStack(value0, tail) | |
+ tail := abi_encode_t_array$_t_uint256_$dyn_memory_to_t_array$_t_uint256_$dyn_memory_fromStack(value0, tail) | |
mstore(add(headStart, 32), sub(tail, headStart)) | |
- tail := abi_encode_t_array$_t_uint16_$dyn_memory_ptr_to_t_array$_t_uint16_$dyn_memory_ptr_fromStack(value1, tail) | |
+ tail := abi_encode_t_array$_t_uint16_$dyn_memory_to_t_array$_t_uint16_$dyn_memory_fromStack(value1, tail) | |
} | |
function abi_encode_tuple_t_uint256__to_t_uint256__fromStack(headStart, value0) -> tail | |
{ | |
@@ -547,137 +547,137 @@ | |
if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { revert(0, 0) } | |
mstore(64, newFreePtr) | |
} | |
- function array_allocation_size_t_array$_t_address_$dyn_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_address_$dyn_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
size := add(size, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_array$_t_bytes_memory_ptr_$2_memory_ptr_$dyn_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_array$_t_bytes_memory_$2_memory_$dyn_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
size := add(size, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_bytes_memory_ptr_$2_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_bytes_memory_$2_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_string_memory_ptr_$12_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_string_memory_$12_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_string_memory_ptr_$20_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_string_memory_$20_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_string_memory_ptr_$dyn_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_string_memory_$dyn_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
size := add(size, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_uint16_$dyn_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_uint16_$dyn_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
size := add(size, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_uint256_$30_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_uint256_$30_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_uint256_$31_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_uint256_$31_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_uint256_$32_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_uint256_$32_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_uint256_$dyn_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_uint256_$dyn_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
size := add(size, 0x20) | |
} | |
- function array_allocation_size_t_array$_t_uint32_$dyn_memory_ptr(length) -> size | |
+ function array_allocation_size_t_array$_t_uint32_$dyn_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := mul(length, 0x20) | |
size := add(size, 0x20) | |
} | |
- function array_allocation_size_t_bytes_memory_ptr(length) -> size | |
+ function array_allocation_size_t_bytes_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := and(add(length, 0x1f), not(0x1f)) | |
size := add(size, 0x20) | |
} | |
- function array_allocation_size_t_string_memory_ptr(length) -> size | |
+ function array_allocation_size_t_string_memory(length) -> size | |
{ | |
if gt(length, 0xffffffffffffffff) { revert(0, 0) } | |
size := and(add(length, 0x1f), not(0x1f)) | |
size := add(size, 0x20) | |
} | |
- function array_dataslot_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr(ptr) -> data | |
+ function array_dataslot_t_array$_t_bytes_memory_$dyn_memory(ptr) -> data | |
{ | |
data := ptr | |
data := add(ptr, 0x20) | |
} | |
- function array_dataslot_t_array$_t_uint16_$200_memory_ptr(ptr) -> data | |
+ function array_dataslot_t_array$_t_uint16_$200_memory(ptr) -> data | |
{ data := ptr } | |
- function array_dataslot_t_array$_t_uint16_$dyn_memory_ptr(ptr) -> data | |
+ function array_dataslot_t_array$_t_uint16_$dyn_memory(ptr) -> data | |
{ | |
data := ptr | |
data := add(ptr, 0x20) | |
} | |
- function array_dataslot_t_array$_t_uint256_$dyn_memory_ptr(ptr) -> data | |
+ function array_dataslot_t_array$_t_uint256_$dyn_memory(ptr) -> data | |
{ | |
data := ptr | |
data := add(ptr, 0x20) | |
} | |
- function array_length_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr(value) -> length | |
+ function array_length_t_array$_t_bytes_memory_$dyn_memory(value) -> length | |
{ length := mload(value) } | |
- function array_length_t_array$_t_uint16_$200_memory_ptr(value) -> length | |
+ function array_length_t_array$_t_uint16_$200_memory(value) -> length | |
{ length := 0xc8 } | |
- function array_length_t_array$_t_uint16_$dyn_memory_ptr(value) -> length | |
+ function array_length_t_array$_t_uint16_$dyn_memory(value) -> length | |
{ length := mload(value) } | |
- function array_length_t_array$_t_uint256_$dyn_memory_ptr(value) -> length | |
+ function array_length_t_array$_t_uint256_$dyn_memory(value) -> length | |
{ length := mload(value) } | |
- function array_length_t_bytes_memory_ptr(value) -> length | |
+ function array_length_t_bytes_memory(value) -> length | |
{ length := mload(value) } | |
- function array_nextElement_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr(ptr) -> next | |
+ function array_nextElement_t_array$_t_bytes_memory_$dyn_memory(ptr) -> next | |
{ next := add(ptr, 0x20) } | |
- function array_nextElement_t_array$_t_uint16_$200_memory_ptr(ptr) -> next | |
+ function array_nextElement_t_array$_t_uint16_$200_memory(ptr) -> next | |
{ next := add(ptr, 0x20) } | |
- function array_nextElement_t_array$_t_uint16_$dyn_memory_ptr(ptr) -> next | |
+ function array_nextElement_t_array$_t_uint16_$dyn_memory(ptr) -> next | |
{ next := add(ptr, 0x20) } | |
- function array_nextElement_t_array$_t_uint256_$dyn_memory_ptr(ptr) -> next | |
+ function array_nextElement_t_array$_t_uint256_$dyn_memory(ptr) -> next | |
{ next := add(ptr, 0x20) } | |
- function array_storeLengthForEncoding_t_array$_t_bytes_memory_ptr_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos | |
+ function array_storeLengthForEncoding_t_array$_t_bytes_memory_$dyn_memory_fromStack(pos, length) -> updated_pos | |
{ | |
mstore(pos, length) | |
updated_pos := add(pos, 0x20) | |
} | |
- function array_storeLengthForEncoding_t_array$_t_uint16_$200_memory_ptr_fromStack(pos, length) -> updated_pos | |
+ function array_storeLengthForEncoding_t_array$_t_uint16_$200_memory_fromStack(pos, length) -> updated_pos | |
{ updated_pos := pos } | |
- function array_storeLengthForEncoding_t_array$_t_uint16_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos | |
+ function array_storeLengthForEncoding_t_array$_t_uint16_$dyn_memory_fromStack(pos, length) -> updated_pos | |
{ | |
mstore(pos, length) | |
updated_pos := add(pos, 0x20) | |
} | |
- function array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_ptr_fromStack(pos, length) -> updated_pos | |
+ function array_storeLengthForEncoding_t_array$_t_uint256_$dyn_memory_fromStack(pos, length) -> updated_pos | |
{ | |
mstore(pos, length) | |
updated_pos := add(pos, 0x20) | |
} | |
- function array_storeLengthForEncoding_t_bytes_memory_ptr(pos, length) -> updated_pos | |
+ function array_storeLengthForEncoding_t_bytes_memory(pos, length) -> updated_pos | |
{ | |
mstore(pos, length) | |
updated_pos := add(pos, 0x20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment