2019-11-21 17:56:25 +00:00
|
|
|
{"contracts":{"A":{"C":{"ir":"/*******************************************************
|
|
|
|
* WARNING *
|
|
|
|
* Solidity to Yul compilation is still EXPERIMENTAL *
|
|
|
|
* It can result in LOSS OF FUNDS or worse *
|
|
|
|
* !USE AT YOUR OWN RISK! *
|
|
|
|
*******************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
object \"C_10\" {
|
|
|
|
code {
|
2020-10-15 14:25:15 +00:00
|
|
|
mstore(64, 128)
|
2020-04-06 15:26:59 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
2019-11-21 17:56:25 +00:00
|
|
|
|
2020-04-06 15:26:59 +00:00
|
|
|
constructor_C_10()
|
2019-11-21 17:56:25 +00:00
|
|
|
|
|
|
|
codecopy(0, dataoffset(\"C_10_deployed\"), datasize(\"C_10_deployed\"))
|
2020-04-27 17:35:35 +00:00
|
|
|
|
2019-11-21 17:56:25 +00:00
|
|
|
return(0, datasize(\"C_10_deployed\"))
|
|
|
|
|
2020-04-06 15:26:59 +00:00
|
|
|
function constructor_C_10() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-11-21 17:56:25 +00:00
|
|
|
}
|
|
|
|
object \"C_10_deployed\" {
|
|
|
|
code {
|
2020-10-15 14:25:15 +00:00
|
|
|
mstore(64, 128)
|
2019-11-21 17:56:25 +00:00
|
|
|
|
|
|
|
if iszero(lt(calldatasize(), 4))
|
|
|
|
{
|
|
|
|
let selector := shift_right_224_unsigned(calldataload(0))
|
|
|
|
switch selector
|
|
|
|
|
|
|
|
case 0x26121ff0
|
|
|
|
{
|
|
|
|
// f()
|
|
|
|
if callvalue() { revert(0, 0) }
|
|
|
|
abi_decode_tuple_(4, calldatasize())
|
|
|
|
let ret_0 := fun_f_9()
|
|
|
|
let memPos := allocateMemory(0)
|
2020-05-06 23:55:30 +00:00
|
|
|
let memEnd := abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack(memPos , ret_0)
|
2019-11-21 17:56:25 +00:00
|
|
|
return(memPos, sub(memEnd, memPos))
|
|
|
|
}
|
|
|
|
|
|
|
|
default {}
|
|
|
|
}
|
2019-11-26 15:27:07 +00:00
|
|
|
if iszero(calldatasize()) { }
|
2019-11-21 17:56:25 +00:00
|
|
|
revert(0, 0)
|
|
|
|
|
|
|
|
function abi_decode_tuple_(headStart, dataEnd) {
|
|
|
|
if slt(sub(dataEnd, headStart), 0) { revert(0, 0) }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value, pos) -> end {
|
|
|
|
let length := array_length_t_string_memory_ptr(value)
|
|
|
|
pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length)
|
|
|
|
copy_memory_to_memory(add(value, 0x20), pos, length)
|
|
|
|
end := add(pos, round_up_to_mul_of_32(length))
|
|
|
|
}
|
|
|
|
|
|
|
|
function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack(headStart , value0) -> tail {
|
|
|
|
tail := add(headStart, 32)
|
|
|
|
|
|
|
|
mstore(add(headStart, 0), sub(tail, headStart))
|
|
|
|
tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value0, tail)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function allocateMemory(size) -> memPtr {
|
|
|
|
memPtr := mload(64)
|
|
|
|
let newFreePtr := add(memPtr, size)
|
|
|
|
// protect against overflow
|
2020-09-24 13:45:45 +00:00
|
|
|
if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error() }
|
2019-11-21 17:56:25 +00:00
|
|
|
mstore(64, newFreePtr)
|
|
|
|
}
|
|
|
|
|
|
|
|
function array_length_t_string_memory_ptr(value) -> length {
|
|
|
|
|
|
|
|
length := mload(value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {
|
|
|
|
mstore(pos, length)
|
|
|
|
updated_pos := add(pos, 0x20)
|
|
|
|
}
|
|
|
|
|
|
|
|
function convert_t_stringliteral_d6604f85ac07e2b33103a620b3d3d75b0473c7214912beded67b9b624d41c571_to_t_string_memory_ptr() -> converted {
|
|
|
|
converted := allocateMemory(128)
|
|
|
|
mstore(converted, 85)
|
|
|
|
|
|
|
|
mstore(add(converted, 32), \"abcdabcdcafecafeabcdabcdcafecafe\")
|
|
|
|
|
|
|
|
mstore(add(converted, 64), \"ffffzzzzoooo0123456789,.<,>.?:;'\")
|
|
|
|
|
|
|
|
mstore(add(converted, 96), \"[{]}|`~!@#$%^&*()-_=+\")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function copy_memory_to_memory(src, dst, length) {
|
|
|
|
let i := 0
|
|
|
|
for { } lt(i, length) { i := add(i, 32) }
|
|
|
|
{
|
|
|
|
mstore(add(dst, i), mload(add(src, i)))
|
|
|
|
}
|
|
|
|
if gt(i, length)
|
|
|
|
{
|
|
|
|
// clear end
|
|
|
|
mstore(add(dst, length), 0)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-07 15:29:42 +00:00
|
|
|
function fun_f_9() -> vloc__4_mpos {
|
2020-03-02 20:42:46 +00:00
|
|
|
let zero_value_for_type_t_string_memory_ptr_1_mpos := zero_value_for_split_t_string_memory_ptr()
|
|
|
|
vloc__4_mpos := zero_value_for_type_t_string_memory_ptr_1_mpos
|
|
|
|
|
2020-02-06 13:05:25 +00:00
|
|
|
vloc__4_mpos := convert_t_stringliteral_d6604f85ac07e2b33103a620b3d3d75b0473c7214912beded67b9b624d41c571_to_t_string_memory_ptr()
|
2019-11-26 15:27:07 +00:00
|
|
|
leave
|
2019-11-21 17:56:25 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-09-24 13:45:45 +00:00
|
|
|
function panic_error() {
|
|
|
|
invalid()
|
|
|
|
}
|
|
|
|
|
2019-11-21 17:56:25 +00:00
|
|
|
function round_up_to_mul_of_32(value) -> result {
|
|
|
|
result := and(add(value, 31), not(31))
|
|
|
|
}
|
|
|
|
|
|
|
|
function shift_right_224_unsigned(value) -> newValue {
|
|
|
|
newValue :=
|
|
|
|
|
|
|
|
shr(224, value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-03-02 20:42:46 +00:00
|
|
|
function zero_value_for_split_t_string_memory_ptr() -> ret {
|
|
|
|
ret := 96
|
|
|
|
}
|
|
|
|
|
2019-11-21 17:56:25 +00:00
|
|
|
}
|
2020-04-09 19:59:17 +00:00
|
|
|
|
2019-11-21 17:56:25 +00:00
|
|
|
}
|
2020-04-09 19:59:17 +00:00
|
|
|
|
2019-11-21 17:56:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
"}}},"sources":{"A":{"id":0}}}
|