mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
213 lines
6.6 KiB
JSON
213 lines
6.6 KiB
JSON
{"contracts":{"A":{"C":{"evm":{"bytecode":{"generatedSources":[],"linkReferences":{},"object":"<BYTECODE REMOVED>","opcodes":"<OPCODES REMOVED>","sourceMap":""},"deployedBytecode":{"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""}},"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_2\" {
|
|
code {
|
|
mstore(64, 128)
|
|
if callvalue() { revert(0, 0) }
|
|
|
|
constructor_C_2()
|
|
|
|
codecopy(0, dataoffset(\"C_2_deployed\"), datasize(\"C_2_deployed\"))
|
|
|
|
return(0, datasize(\"C_2_deployed\"))
|
|
|
|
function constructor_C_2() {
|
|
|
|
}
|
|
|
|
}
|
|
object \"C_2_deployed\" {
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"},"D":{"evm":{"bytecode":{"generatedSources":[],"linkReferences":{},"object":"<BYTECODE REMOVED>","opcodes":"<OPCODES REMOVED>","sourceMap":""},"deployedBytecode":{"generatedSources":[],"immutableReferences":{},"linkReferences":{},"object":"","opcodes":"","sourceMap":""}},"ir":"/*******************************************************
|
|
* WARNING *
|
|
* Solidity to Yul compilation is still EXPERIMENTAL *
|
|
* It can result in LOSS OF FUNDS or worse *
|
|
* !USE AT YOUR OWN RISK! *
|
|
*******************************************************/
|
|
|
|
|
|
object \"D_15\" {
|
|
code {
|
|
mstore(64, 128)
|
|
if callvalue() { revert(0, 0) }
|
|
|
|
constructor_D_15()
|
|
|
|
codecopy(0, dataoffset(\"D_15_deployed\"), datasize(\"D_15_deployed\"))
|
|
|
|
return(0, datasize(\"D_15_deployed\"))
|
|
|
|
function constructor_D_15() {
|
|
|
|
}
|
|
|
|
}
|
|
object \"D_15_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())
|
|
fun_f_14()
|
|
let memPos := allocateMemory(0)
|
|
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)
|
|
|
|
}
|
|
|
|
function allocateMemory(size) -> memPtr {
|
|
memPtr := mload(64)
|
|
let newFreePtr := add(memPtr, size)
|
|
// protect against overflow
|
|
if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }
|
|
mstore(64, newFreePtr)
|
|
}
|
|
|
|
function allocateTemporaryMemory() -> memPtr {
|
|
memPtr := mload(64)
|
|
}
|
|
|
|
function fun_f_14() {
|
|
|
|
let _1 := allocateTemporaryMemory()
|
|
let _2 := add(_1, datasize(\"C_2\"))
|
|
if or(gt(_2, 0xffffffffffffffff), lt(_2, _1)) { panic_error_0x41() }
|
|
datacopy(_1, dataoffset(\"C_2\"), datasize(\"C_2\"))
|
|
_2 := abi_encode_tuple__to__fromStack(_2)
|
|
|
|
let expr_11_address := create(0, _1, sub(_2, _1))
|
|
|
|
releaseTemporaryMemory()
|
|
let vloc_c_7_address := expr_11_address
|
|
|
|
}
|
|
|
|
function panic_error_0x41() {
|
|
mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)
|
|
mstore(4, 0x41)
|
|
revert(0, 0x24)
|
|
}
|
|
|
|
function releaseTemporaryMemory() {
|
|
}
|
|
|
|
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! *
|
|
*******************************************************/
|
|
|
|
object \"C_2\" {
|
|
code {
|
|
mstore(64, 128)
|
|
if callvalue() { revert(0, 0) }
|
|
|
|
constructor_C_2()
|
|
|
|
codecopy(0, dataoffset(\"C_2_deployed\"), datasize(\"C_2_deployed\"))
|
|
|
|
return(0, datasize(\"C_2_deployed\"))
|
|
|
|
function constructor_C_2() {
|
|
|
|
}
|
|
|
|
}
|
|
object \"C_2_deployed\" {
|
|
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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"}}},"errors":[{"component":"general","errorCode":"2072","formattedMessage":"A:2:73: Warning: Unused local variable.
|
|
pragma solidity >=0.0; contract C {} contract D { function f() public { C c = new C(); } }
|
|
^-^
|
|
","message":"Unused local variable.","severity":"warning","sourceLocation":{"end":111,"file":"A","start":108},"type":"Warning"}],"sources":{"A":{"id":0}}}
|