|
| 1 | +Optimized IR: |
| 2 | +/// @use-src 0:"ir_subobject_order/input.sol" |
| 3 | +object "A_13" { |
| 4 | + code { { revert(0, 0) } } |
| 5 | + /// @use-src 0:"ir_subobject_order/input.sol" |
| 6 | + object "A_13_deployed" { |
| 7 | + code { { revert(0, 0) } } |
| 8 | + data ".metadata" hex"<BYTECODE REMOVED>" |
| 9 | + } |
| 10 | +} |
| 11 | + |
| 12 | +Optimized IR: |
| 13 | +/// @use-src 0:"ir_subobject_order/input.sol" |
| 14 | +object "B_7" { |
| 15 | + code { { revert(0, 0) } } |
| 16 | + /// @use-src 0:"ir_subobject_order/input.sol" |
| 17 | + object "B_7_deployed" { |
| 18 | + code { { revert(0, 0) } } |
| 19 | + data ".metadata" hex"<BYTECODE REMOVED>" |
| 20 | + } |
| 21 | +} |
| 22 | + |
| 23 | +Optimized IR: |
| 24 | +/// @use-src 0:"ir_subobject_order/input.sol" |
| 25 | +object "C_33" { |
| 26 | + code { |
| 27 | + { |
| 28 | + let _1 := memoryguard(0x80) |
| 29 | + mstore(64, _1) |
| 30 | + if callvalue() { revert(0, 0) } |
| 31 | + let _2 := datasize("A_13") |
| 32 | + let _3 := add(_1, _2) |
| 33 | + if or(gt(_3, sub(shl(64, 1), 1)), lt(_3, _1)) |
| 34 | + { |
| 35 | + mstore(0, shl(224, 0x4e487b71)) |
| 36 | + mstore(4, 0x41) |
| 37 | + revert(0, 0x24) |
| 38 | + } |
| 39 | + datacopy(_1, dataoffset("A_13"), _2) |
| 40 | + let expr_address := create(0, _1, sub(_3, _1)) |
| 41 | + if iszero(expr_address) |
| 42 | + { |
| 43 | + let pos := mload(64) |
| 44 | + returndatacopy(pos, 0, returndatasize()) |
| 45 | + revert(pos, returndatasize()) |
| 46 | + } |
| 47 | + sstore(0, or(and(sload(0), not(sub(shl(160, 1), 1))), and(expr_address, sub(shl(160, 1), 1)))) |
| 48 | + let _4 := mload(64) |
| 49 | + let _5 := datasize("B_7") |
| 50 | + let _6 := add(_4, _5) |
| 51 | + if or(gt(_6, sub(shl(64, 1), 1)), lt(_6, _4)) |
| 52 | + { |
| 53 | + mstore(0, shl(224, 0x4e487b71)) |
| 54 | + mstore(4, 0x41) |
| 55 | + revert(0, 0x24) |
| 56 | + } |
| 57 | + datacopy(_4, dataoffset("B_7"), _5) |
| 58 | + let expr_address_1 := create(0, _4, sub(_6, _4)) |
| 59 | + if iszero(expr_address_1) |
| 60 | + { |
| 61 | + let pos_1 := mload(64) |
| 62 | + returndatacopy(pos_1, 0, returndatasize()) |
| 63 | + revert(pos_1, returndatasize()) |
| 64 | + } |
| 65 | + sstore(0x01, or(and(sload(0x01), not(sub(shl(160, 1), 1))), and(expr_address_1, sub(shl(160, 1), 1)))) |
| 66 | + let _7 := mload(64) |
| 67 | + let _8 := datasize("C_33_deployed") |
| 68 | + codecopy(_7, dataoffset("C_33_deployed"), _8) |
| 69 | + return(_7, _8) |
| 70 | + } |
| 71 | + } |
| 72 | + /// @use-src 0:"ir_subobject_order/input.sol" |
| 73 | + object "C_33_deployed" { |
| 74 | + code { { revert(0, 0) } } |
| 75 | + data ".metadata" hex"<BYTECODE REMOVED>" |
| 76 | + } |
| 77 | + /// @use-src 0:"ir_subobject_order/input.sol" |
| 78 | + object "A_13" { |
| 79 | + code { { revert(0, 0) } } |
| 80 | + /// @use-src 0:"ir_subobject_order/input.sol" |
| 81 | + object "A_13_deployed" { |
| 82 | + code { { revert(0, 0) } } |
| 83 | + data ".metadata" hex"<BYTECODE REMOVED>" |
| 84 | + } |
| 85 | + } |
| 86 | + /// @use-src 0:"ir_subobject_order/input.sol" |
| 87 | + object "B_7" { |
| 88 | + code { { revert(0, 0) } } |
| 89 | + /// @use-src 0:"ir_subobject_order/input.sol" |
| 90 | + object "B_7_deployed" { |
| 91 | + code { { revert(0, 0) } } |
| 92 | + data ".metadata" hex"<BYTECODE REMOVED>" |
| 93 | + } |
| 94 | + } |
| 95 | +} |
0 commit comments