2020-11-17 13:13:51 +00:00
|
|
|
{"contracts":{"A":{"C":{"evm":{"bytecode":{"generatedSources":[],"object":"<BYTECODE REMOVED>"},"deployedBytecode":{"object":"<BYTECODE REMOVED>"}},"ir":"/*******************************************************
|
2020-11-12 01:31:06 +00:00
|
|
|
* WARNING *
|
|
|
|
* Solidity to Yul compilation is still EXPERIMENTAL *
|
|
|
|
* It can result in LOSS OF FUNDS or worse *
|
|
|
|
* !USE AT YOUR OWN RISK! *
|
|
|
|
*******************************************************/
|
|
|
|
|
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
object \"C_3\" {
|
2020-11-12 01:31:06 +00:00
|
|
|
code {
|
|
|
|
mstore(64, 128)
|
|
|
|
if callvalue() { revert(0, 0) }
|
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
constructor_C_3()
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
codecopy(0, dataoffset(\"C_3_deployed\"), datasize(\"C_3_deployed\"))
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
return(0, datasize(\"C_3_deployed\"))
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
function constructor_C_3() {
|
2020-11-12 01:31:06 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-11-26 21:33:36 +00:00
|
|
|
object \"C_3_deployed\" {
|
2020-11-12 01:31:06 +00:00
|
|
|
code {
|
|
|
|
mstore(64, 128)
|
|
|
|
|
|
|
|
if iszero(lt(calldatasize(), 4))
|
|
|
|
{
|
|
|
|
let selector := shift_right_224_unsigned(calldataload(0))
|
|
|
|
switch selector
|
|
|
|
|
|
|
|
default {}
|
|
|
|
}
|
|
|
|
if iszero(calldatasize()) { }
|
|
|
|
revert(0, 0)
|
|
|
|
|
|
|
|
function shift_right_224_unsigned(value) -> newValue {
|
|
|
|
newValue :=
|
|
|
|
|
|
|
|
shr(224, value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-11-17 13:13:51 +00:00
|
|
|
"},"D":{"evm":{"bytecode":{"generatedSources":[],"object":"<BYTECODE REMOVED>"},"deployedBytecode":{"object":"<BYTECODE REMOVED>"}},"ir":"/*******************************************************
|
2020-11-12 01:31:06 +00:00
|
|
|
* WARNING *
|
|
|
|
* Solidity to Yul compilation is still EXPERIMENTAL *
|
|
|
|
* It can result in LOSS OF FUNDS or worse *
|
|
|
|
* !USE AT YOUR OWN RISK! *
|
|
|
|
*******************************************************/
|
|
|
|
|
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
object \"D_16\" {
|
2020-11-12 01:31:06 +00:00
|
|
|
code {
|
|
|
|
mstore(64, 128)
|
|
|
|
if callvalue() { revert(0, 0) }
|
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
constructor_D_16()
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
codecopy(0, dataoffset(\"D_16_deployed\"), datasize(\"D_16_deployed\"))
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
return(0, datasize(\"D_16_deployed\"))
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
function constructor_D_16() {
|
2020-11-12 01:31:06 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-12-09 14:24:49 +00:00
|
|
|
object \"D_16_deployed\" {
|
2020-11-12 01:31:06 +00:00
|
|
|
code {
|
|
|
|
mstore(64, 128)
|
|
|
|
|
|
|
|
if iszero(lt(calldatasize(), 4))
|
|
|
|
{
|
|
|
|
let selector := shift_right_224_unsigned(calldataload(0))
|
|
|
|
switch selector
|
|
|
|
|
|
|
|
case 0x26121ff0
|
|
|
|
{
|
|
|
|
// f()
|
2021-01-04 16:18:09 +00:00
|
|
|
|
2020-11-12 01:31:06 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
|
|
|
abi_decode_tuple_(4, calldatasize())
|
2020-12-09 14:24:49 +00:00
|
|
|
fun_f_15()
|
2021-01-14 16:27:55 +00:00
|
|
|
let memPos := allocate_memory(0)
|
2020-11-12 01:31:06 +00:00
|
|
|
let memEnd := abi_encode_tuple__to__fromStack(memPos )
|
|
|
|
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_tuple__to__fromStack(headStart ) -> tail {
|
|
|
|
tail := add(headStart, 0)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-01-14 16:27:55 +00:00
|
|
|
function allocate_memory(size) -> memPtr {
|
|
|
|
memPtr := allocate_unbounded()
|
|
|
|
finalize_allocation(memPtr, size)
|
|
|
|
}
|
|
|
|
|
|
|
|
function allocate_unbounded() -> memPtr {
|
2020-11-12 01:31:06 +00:00
|
|
|
memPtr := mload(64)
|
2021-01-14 16:27:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function finalize_allocation(memPtr, size) {
|
2021-01-14 18:42:07 +00:00
|
|
|
let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))
|
2020-11-12 01:31:06 +00:00
|
|
|
// protect against overflow
|
2020-11-17 17:59:15 +00:00
|
|
|
if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }
|
2020-11-12 01:31:06 +00:00
|
|
|
mstore(64, newFreePtr)
|
|
|
|
}
|
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
function fun_f_15() {
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2021-01-14 16:27:55 +00:00
|
|
|
let _1 := allocate_unbounded()
|
2020-11-26 21:33:36 +00:00
|
|
|
let _2 := add(_1, datasize(\"C_3\"))
|
2020-11-17 17:59:15 +00:00
|
|
|
if or(gt(_2, 0xffffffffffffffff), lt(_2, _1)) { panic_error_0x41() }
|
2020-11-26 21:33:36 +00:00
|
|
|
datacopy(_1, dataoffset(\"C_3\"), datasize(\"C_3\"))
|
2020-11-12 01:31:06 +00:00
|
|
|
_2 := abi_encode_tuple__to__fromStack(_2)
|
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
let expr_12_address := create(0, _1, sub(_2, _1))
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
if iszero(expr_12_address) { revert_forward_1() }
|
2020-11-24 16:02:02 +00:00
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
let vloc_c_8_address := expr_12_address
|
2020-11-12 01:31:06 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-11-17 17:59:15 +00:00
|
|
|
function panic_error_0x41() {
|
|
|
|
mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)
|
|
|
|
mstore(4, 0x41)
|
|
|
|
revert(0, 0x24)
|
2020-11-12 01:31:06 +00:00
|
|
|
}
|
|
|
|
|
2020-11-24 16:02:02 +00:00
|
|
|
function revert_forward_1() {
|
|
|
|
returndatacopy(0, 0, returndatasize())
|
|
|
|
revert(0, returndatasize())
|
|
|
|
}
|
|
|
|
|
2021-01-14 18:42:07 +00:00
|
|
|
function round_up_to_mul_of_32(value) -> result {
|
|
|
|
result := and(add(value, 31), not(31))
|
|
|
|
}
|
|
|
|
|
2020-11-12 01:31:06 +00:00
|
|
|
function shift_right_224_unsigned(value) -> newValue {
|
|
|
|
newValue :=
|
|
|
|
|
|
|
|
shr(224, value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
/*******************************************************
|
|
|
|
* WARNING *
|
|
|
|
* Solidity to Yul compilation is still EXPERIMENTAL *
|
|
|
|
* It can result in LOSS OF FUNDS or worse *
|
|
|
|
* !USE AT YOUR OWN RISK! *
|
|
|
|
*******************************************************/
|
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
object \"C_3\" {
|
2020-11-12 01:31:06 +00:00
|
|
|
code {
|
|
|
|
mstore(64, 128)
|
|
|
|
if callvalue() { revert(0, 0) }
|
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
constructor_C_3()
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
codecopy(0, dataoffset(\"C_3_deployed\"), datasize(\"C_3_deployed\"))
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
return(0, datasize(\"C_3_deployed\"))
|
2020-11-12 01:31:06 +00:00
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
function constructor_C_3() {
|
2020-11-12 01:31:06 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-11-26 21:33:36 +00:00
|
|
|
object \"C_3_deployed\" {
|
2020-11-12 01:31:06 +00:00
|
|
|
code {
|
|
|
|
mstore(64, 128)
|
|
|
|
|
|
|
|
if iszero(lt(calldatasize(), 4))
|
|
|
|
{
|
|
|
|
let selector := shift_right_224_unsigned(calldataload(0))
|
|
|
|
switch selector
|
|
|
|
|
|
|
|
default {}
|
|
|
|
}
|
|
|
|
if iszero(calldatasize()) { }
|
|
|
|
revert(0, 0)
|
|
|
|
|
|
|
|
function shift_right_224_unsigned(value) -> newValue {
|
|
|
|
newValue :=
|
|
|
|
|
|
|
|
shr(224, value)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-12-09 14:24:49 +00:00
|
|
|
"}}},"errors":[{"component":"general","errorCode":"2072","formattedMessage":"Warning: Unused local variable.
|
|
|
|
--> A:2:93:
|
|
|
|
|
|
|
|
|
2 | pragma solidity >=0.0; pragma abicoder v2; contract C {} contract D { function f() public { C c = new C(); } }
|
|
|
|
| ^^^
|
|
|
|
|
2020-11-26 21:33:36 +00:00
|
|
|
","message":"Unused local variable.","severity":"warning","sourceLocation":{"end":131,"file":"A","start":128},"type":"Warning"}],"sources":{"A":{"id":0}}}
|