{"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_11\" { code { mstore(64, 128) if callvalue() { revert(0, 0) } constructor_C_11() codecopy(0, dataoffset(\"C_11_deployed\"), datasize(\"C_11_deployed\")) return(0, datasize(\"C_11_deployed\")) function constructor_C_11() { } } object \"C_11_deployed\" { code { mstore(64, 128) 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_10() let memPos := allocate_memory(0) let memEnd := abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack(memPos , ret_0) return(memPos, sub(memEnd, memPos)) } default {} } if iszero(calldatasize()) { } 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 allocate_memory(size) -> memPtr { memPtr := allocate_unbounded() finalize_allocation(memPtr, size) } function allocate_memory_array_t_string_memory_ptr(length) -> memPtr { let allocSize := array_allocation_size_t_string_memory_ptr(length) memPtr := allocate_memory(allocSize) mstore(memPtr, length) } function allocate_unbounded() -> memPtr { memPtr := mload(64) } function array_allocation_size_t_string_memory_ptr(length) -> size { // Make sure we can allocate memory without overflow if gt(length, 0xffffffffffffffff) { panic_error_0x41() } size := round_up_to_mul_of_32(length) // add length slot size := add(size, 0x20) } 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_9f0adad0a59b05d2e04a1373342b10b9eb16c57c164c8a3bfcbf46dccee39a21_to_t_string_memory_ptr() -> converted { converted := copy_literal_to_memory_9f0adad0a59b05d2e04a1373342b10b9eb16c57c164c8a3bfcbf46dccee39a21() } function copy_literal_to_memory_9f0adad0a59b05d2e04a1373342b10b9eb16c57c164c8a3bfcbf46dccee39a21() -> memPtr { memPtr := allocate_memory_array_t_string_memory_ptr(6) store_literal_in_memory_9f0adad0a59b05d2e04a1373342b10b9eb16c57c164c8a3bfcbf46dccee39a21(add(memPtr, 32)) } 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) } } function finalize_allocation(memPtr, size) { let newFreePtr := add(memPtr, round_up_to_mul_of_32(size)) // protect against overflow if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() } mstore(64, newFreePtr) } function fun_f_10() -> var__5_mpos { let zero_t_string_memory_ptr_1_mpos := zero_value_for_split_t_string_memory_ptr() var__5_mpos := zero_t_string_memory_ptr_1_mpos var__5_mpos := convert_t_stringliteral_9f0adad0a59b05d2e04a1373342b10b9eb16c57c164c8a3bfcbf46dccee39a21_to_t_string_memory_ptr() leave } function panic_error_0x41() { mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856) mstore(4, 0x41) revert(0, 0x24) } 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) } function store_literal_in_memory_9f0adad0a59b05d2e04a1373342b10b9eb16c57c164c8a3bfcbf46dccee39a21(memPtr) { mstore(add(memPtr, 0), \"abcabc\") } function zero_value_for_split_t_string_memory_ptr() -> ret { ret := 96 } } } } "}}},"sources":{"A":{"id":0}}}