2020-04-09 19:59:17 +00:00
|
|
|
Optimized IR:
|
2021-05-27 20:05:21 +00:00
|
|
|
/*=====================================================*
|
2020-04-09 19:59:17 +00:00
|
|
|
* WARNING *
|
|
|
|
* Solidity to Yul compilation is still EXPERIMENTAL *
|
|
|
|
* It can result in LOSS OF FUNDS or worse *
|
|
|
|
* !USE AT YOUR OWN RISK! *
|
2021-05-27 20:05:21 +00:00
|
|
|
*=====================================================*/
|
2020-04-09 19:59:17 +00:00
|
|
|
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_inheritance_nosubobjects/input.sol"
|
2020-11-26 21:33:36 +00:00
|
|
|
object "C_7" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:82:117 "contract C {..."
|
2020-10-15 14:25:15 +00:00
|
|
|
mstore(64, 128)
|
2020-04-09 19:59:17 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
2020-11-26 21:33:36 +00:00
|
|
|
let _1 := datasize("C_7_deployed")
|
2021-04-29 09:43:27 +00:00
|
|
|
codecopy(128, dataoffset("C_7_deployed"), _1)
|
|
|
|
return(128, _1)
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_inheritance_nosubobjects/input.sol"
|
2020-11-26 21:33:36 +00:00
|
|
|
object "C_7_deployed" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:82:117 "contract C {..."
|
2020-10-15 14:25:15 +00:00
|
|
|
mstore(64, 128)
|
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-05-27 20:05:21 +00:00
|
|
|
/*=====================================================*
|
2020-04-09 19:59:17 +00:00
|
|
|
* WARNING *
|
|
|
|
* Solidity to Yul compilation is still EXPERIMENTAL *
|
|
|
|
* It can result in LOSS OF FUNDS or worse *
|
|
|
|
* !USE AT YOUR OWN RISK! *
|
2021-05-27 20:05:21 +00:00
|
|
|
*=====================================================*/
|
2020-04-09 19:59:17 +00:00
|
|
|
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_inheritance_nosubobjects/input.sol"
|
2020-11-26 21:33:36 +00:00
|
|
|
object "D_10" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:118:137 "contract D is C {..."
|
2020-10-15 14:25:15 +00:00
|
|
|
mstore(64, 128)
|
2020-04-09 19:59:17 +00:00
|
|
|
if callvalue() { revert(0, 0) }
|
2020-11-26 21:33:36 +00:00
|
|
|
let _1 := datasize("D_10_deployed")
|
2021-04-29 09:43:27 +00:00
|
|
|
codecopy(128, dataoffset("D_10_deployed"), _1)
|
|
|
|
return(128, _1)
|
2020-04-09 19:59:17 +00:00
|
|
|
}
|
|
|
|
}
|
2021-08-31 10:57:13 +00:00
|
|
|
/// @use-src 0:"ir_compiler_inheritance_nosubobjects/input.sol"
|
2020-11-26 21:33:36 +00:00
|
|
|
object "D_10_deployed" {
|
2020-04-09 19:59:17 +00:00
|
|
|
code {
|
|
|
|
{
|
2021-08-31 13:10:40 +00:00
|
|
|
/// @src 0:118:137 "contract D is C {..."
|
2020-10-15 14:25:15 +00:00
|
|
|
mstore(64, 128)
|
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
|
|
|
}
|
|
|
|
}
|