solidity/test/cmdlineTests/ir_compiler_subobjects/output

120 lines
4.5 KiB
Plaintext
Raw Normal View History

Optimized IR:
/*=====================================================*
* WARNING *
* Solidity to Yul compilation is still EXPERIMENTAL *
* It can result in LOSS OF FUNDS or worse *
* !USE AT YOUR OWN RISK! *
*=====================================================*/
2021-08-31 10:57:13 +00:00
/// @use-src 0:"ir_compiler_subobjects/input.sol"
object "C_3" {
code {
{
/// @src 0:82:95 "contract C {}"
mstore(64, 128)
if callvalue() { revert(0, 0) }
let _1 := datasize("C_3_deployed")
2021-04-29 09:43:27 +00:00
codecopy(128, dataoffset("C_3_deployed"), _1)
return(128, _1)
}
}
2021-08-31 10:57:13 +00:00
/// @use-src 0:"ir_compiler_subobjects/input.sol"
object "C_3_deployed" {
code {
{
/// @src 0:82:95 "contract C {}"
mstore(64, 128)
revert(0, 0)
}
}
2021-06-08 14:35:37 +00:00
data ".metadata" hex"<BYTECODE REMOVED>"
}
}
Optimized IR:
/*=====================================================*
* WARNING *
* Solidity to Yul compilation is still EXPERIMENTAL *
* It can result in LOSS OF FUNDS or worse *
* !USE AT YOUR OWN RISK! *
*=====================================================*/
2021-08-31 10:57:13 +00:00
/// @use-src 0:"ir_compiler_subobjects/input.sol"
object "D_16" {
code {
{
/// @src 0:96:165 "contract D {..."
mstore(64, 128)
if callvalue() { revert(0, 0) }
let _1 := datasize("D_16_deployed")
2021-04-29 09:43:27 +00:00
codecopy(128, dataoffset("D_16_deployed"), _1)
return(128, _1)
}
}
2021-08-31 10:57:13 +00:00
/// @use-src 0:"ir_compiler_subobjects/input.sol"
object "D_16_deployed" {
code {
{
/// @src 0:96:165 "contract D {..."
mstore(64, 128)
if iszero(lt(calldatasize(), 4))
{
let _1 := 0
if eq(0x26121ff0, shr(224, calldataload(_1)))
{
if callvalue() { revert(_1, _1) }
if slt(add(calldatasize(), not(3)), _1) { revert(_1, _1) }
/// @src 0:149:156 "new C()"
let _2 := datasize("C_3")
let _3 := add(/** @src 0:96:165 "contract D {..." */ 128, /** @src 0:149:156 "new C()" */ _2)
if or(gt(_3, 0xffffffffffffffff), lt(_3, /** @src 0:96:165 "contract D {..." */ 128))
/// @src 0:149:156 "new C()"
{
/// @src 0:96:165 "contract D {..."
mstore(_1, shl(224, 0x4e487b71))
mstore(4, 0x41)
revert(_1, 0x24)
}
/// @src 0:149:156 "new C()"
datacopy(/** @src 0:96:165 "contract D {..." */ 128, /** @src 0:149:156 "new C()" */ dataoffset("C_3"), _2)
if iszero(create(/** @src 0:96:165 "contract D {..." */ _1, 128, /** @src 0:149:156 "new C()" */ _2))
2020-11-24 16:02:02 +00:00
{
/// @src 0:96:165 "contract D {..."
2021-04-29 13:06:33 +00:00
let pos := mload(64)
returndatacopy(pos, _1, returndatasize())
revert(pos, returndatasize())
2020-11-24 16:02:02 +00:00
}
return(mload(64), _1)
}
}
revert(0, 0)
}
}
2021-08-31 10:57:13 +00:00
/// @use-src 0:"ir_compiler_subobjects/input.sol"
object "C_3" {
code {
{
/// @src 0:82:95 "contract C {}"
mstore(64, 128)
if callvalue() { revert(0, 0) }
let _1 := datasize("C_3_deployed")
2021-04-29 09:43:27 +00:00
codecopy(128, dataoffset("C_3_deployed"), _1)
return(128, _1)
}
}
2021-08-31 10:57:13 +00:00
/// @use-src 0:"ir_compiler_subobjects/input.sol"
object "C_3_deployed" {
code {
{
/// @src 0:82:95 "contract C {}"
mstore(64, 128)
revert(0, 0)
}
}
2021-06-08 14:35:37 +00:00
data ".metadata" hex"<BYTECODE REMOVED>"
}
}
2021-06-08 14:35:37 +00:00
data ".metadata" hex"<BYTECODE REMOVED>"
}
}