2020-04-09 19:59:17 +00:00
|
|
|
Optimized IR:
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_subobjects/input.sol"
|
2020-11-26 21:33:36 +00:00
|
|
|
object "C_3" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:82:95 "contract C {}"
|
2021-09-15 15:01:40 +00:00
|
|
|
let _1 := memoryguard(0x80)
|
|
|
|
mstore(64, _1)
|
2020-04-09 19:59:17 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
2021-09-15 15:01:40 +00:00
|
|
|
let _2 := datasize("C_3_deployed")
|
|
|
|
codecopy(_1, dataoffset("C_3_deployed"), _2)
|
|
|
|
return(_1, _2)
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_subobjects/input.sol"
|
2020-11-26 21:33:36 +00:00
|
|
|
object "C_3_deployed" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:82:95 "contract C {}"
|
2020-04-09 19:59:17 +00:00
|
|
|
revert(0, 0)
|
|
|
|
}
|
|
|
|
}
|
2021-06-08 14:35:37 +00:00
|
|
|
data ".metadata" hex"<BYTECODE REMOVED>"
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Optimized IR:
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_subobjects/input.sol"
|
2020-12-09 14:24:49 +00:00
|
|
|
object "D_16" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:96:165 "contract D {..."
|
2021-09-15 15:01:40 +00:00
|
|
|
let _1 := memoryguard(0x80)
|
|
|
|
mstore(64, _1)
|
2020-04-09 19:59:17 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
2021-09-15 15:01:40 +00:00
|
|
|
let _2 := datasize("D_16_deployed")
|
|
|
|
codecopy(_1, dataoffset("D_16_deployed"), _2)
|
|
|
|
return(_1, _2)
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_subobjects/input.sol"
|
2020-12-09 14:24:49 +00:00
|
|
|
object "D_16_deployed" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:96:165 "contract D {..."
|
2021-09-15 15:01:40 +00:00
|
|
|
let _1 := memoryguard(0x80)
|
|
|
|
mstore(64, _1)
|
2020-04-09 19:59:17 +00:00
|
|
|
if iszero(lt(calldatasize(), 4))
|
|
|
|
{
|
2021-09-15 15:01:40 +00:00
|
|
|
let _2 := 0
|
|
|
|
if eq(0x26121ff0, shr(224, calldataload(_2)))
|
2020-04-09 19:59:17 +00:00
|
|
|
{
|
2021-09-15 15:01:40 +00:00
|
|
|
if callvalue() { revert(_2, _2) }
|
|
|
|
if slt(add(calldatasize(), not(3)), _2) { revert(_2, _2) }
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:149:156 "new C()"
|
2021-09-15 15:01:40 +00:00
|
|
|
let _3 := datasize("C_3")
|
|
|
|
let _4 := add(_1, _3)
|
|
|
|
if or(gt(_4, 0xffffffffffffffff), lt(_4, _1))
|
2021-04-08 12:57:18 +00:00
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:96:165 "contract D {..."
|
2021-09-15 15:01:40 +00:00
|
|
|
mstore(_2, shl(224, 0x4e487b71))
|
2021-04-08 12:57:18 +00:00
|
|
|
mstore(4, 0x41)
|
2021-09-15 15:01:40 +00:00
|
|
|
revert(_2, 0x24)
|
2021-04-08 12:57:18 +00:00
|
|
|
}
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:149:156 "new C()"
|
2021-09-15 15:01:40 +00:00
|
|
|
datacopy(_1, dataoffset("C_3"), _3)
|
|
|
|
if iszero(create(/** @src 0:96:165 "contract D {..." */ _2, /** @src 0:149:156 "new C()" */ _1, sub(_4, _1)))
|
2020-11-24 16:02:02 +00:00
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:96:165 "contract D {..."
|
2021-04-29 13:06:33 +00:00
|
|
|
let pos := mload(64)
|
2021-09-15 15:01:40 +00:00
|
|
|
returndatacopy(pos, _2, returndatasize())
|
2021-04-29 13:06:33 +00:00
|
|
|
revert(pos, returndatasize())
|
2020-11-24 16:02:02 +00:00
|
|
|
}
|
2022-08-10 16:45:38 +00:00
|
|
|
return(_2, _2)
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
revert(0, 0)
|
|
|
|
}
|
|
|
|
}
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_subobjects/input.sol"
|
2020-11-26 21:33:36 +00:00
|
|
|
object "C_3" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:82:95 "contract C {}"
|
2021-09-15 15:01:40 +00:00
|
|
|
let _1 := memoryguard(0x80)
|
|
|
|
mstore(64, _1)
|
2020-04-09 19:59:17 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
2021-09-15 15:01:40 +00:00
|
|
|
let _2 := datasize("C_3_deployed")
|
|
|
|
codecopy(_1, dataoffset("C_3_deployed"), _2)
|
|
|
|
return(_1, _2)
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_subobjects/input.sol"
|
2020-11-26 21:33:36 +00:00
|
|
|
object "C_3_deployed" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:82:95 "contract C {}"
|
2020-04-09 19:59:17 +00:00
|
|
|
revert(0, 0)
|
|
|
|
}
|
|
|
|
}
|
2021-06-08 14:35:37 +00:00
|
|
|
data ".metadata" hex"<BYTECODE REMOVED>"
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-08 14:35:37 +00:00
|
|
|
data ".metadata" hex"<BYTECODE REMOVED>"
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|