|
2 | 2 | {"sources":["ethdebug_and_ethdebug_runtime/input.sol"]} |
3 | 3 |
|
4 | 4 | ======= ethdebug_and_ethdebug_runtime/input.sol:C ======= |
5 | | -Optimized IR: |
| 5 | +IR: |
6 | 6 | /// ethdebug: enabled |
7 | 7 | /// @use-src 0:"ethdebug_and_ethdebug_runtime/input.sol" |
8 | 8 | object "C_6" { |
9 | 9 | code { |
10 | | - { |
| 10 | + /// @src 0:60:101 "contract C {..." |
| 11 | + mstore(64, memoryguard(128)) |
| 12 | + if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } |
| 13 | + |
| 14 | + constructor_C_6() |
| 15 | + |
| 16 | + let _1 := allocate_unbounded() |
| 17 | + codecopy(_1, dataoffset("C_6_deployed"), datasize("C_6_deployed")) |
| 18 | + |
| 19 | + return(_1, datasize("C_6_deployed")) |
| 20 | + |
| 21 | + function allocate_unbounded() -> memPtr { |
| 22 | + memPtr := mload(64) |
| 23 | + } |
| 24 | + |
| 25 | + function revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() { |
| 26 | + revert(0, 0) |
| 27 | + } |
| 28 | + |
| 29 | + /// @src 0:60:101 "contract C {..." |
| 30 | + function constructor_C_6() { |
| 31 | + |
11 | 32 | /// @src 0:60:101 "contract C {..." |
12 | | - let _1 := memoryguard(0x80) |
13 | | - mstore(64, _1) |
14 | | - if callvalue() { revert(0, 0) } |
15 | | - let _2 := datasize("C_6_deployed") |
16 | | - codecopy(_1, dataoffset("C_6_deployed"), _2) |
17 | | - return(_1, _2) |
| 33 | + |
18 | 34 | } |
| 35 | + /// @src 0:60:101 "contract C {..." |
| 36 | + |
19 | 37 | } |
20 | 38 | /// @use-src 0:"ethdebug_and_ethdebug_runtime/input.sol" |
21 | 39 | object "C_6_deployed" { |
22 | 40 | code { |
| 41 | + /// @src 0:60:101 "contract C {..." |
| 42 | + mstore(64, memoryguard(128)) |
| 43 | + |
| 44 | + if iszero(lt(calldatasize(), 4)) |
23 | 45 | { |
24 | | - /// @src 0:60:101 "contract C {..." |
25 | | - if iszero(lt(calldatasize(), 4)) |
| 46 | + let selector := shift_right_224_unsigned(calldataload(0)) |
| 47 | + switch selector |
| 48 | + |
| 49 | + case 0x26121ff0 |
26 | 50 | { |
27 | | - if eq(0x26121ff0, shr(224, calldataload(0))) |
28 | | - { |
29 | | - if callvalue() { revert(0, 0) } |
30 | | - if slt(add(calldatasize(), not(3)), 0) { revert(0, 0) } |
31 | | - return(0, 0) |
32 | | - } |
| 51 | + // f() |
| 52 | + |
| 53 | + external_fun_f_5() |
33 | 54 | } |
| 55 | + |
| 56 | + default {} |
| 57 | + } |
| 58 | + |
| 59 | + revert_error_42b3090547df1d2001c96683413b8cf91c1b902ef5e3cb8d9f6f304cf7446f74() |
| 60 | + |
| 61 | + function shift_right_224_unsigned(value) -> newValue { |
| 62 | + newValue := |
| 63 | + |
| 64 | + shr(224, value) |
| 65 | + |
| 66 | + } |
| 67 | + |
| 68 | + function allocate_unbounded() -> memPtr { |
| 69 | + memPtr := mload(64) |
| 70 | + } |
| 71 | + |
| 72 | + function revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() { |
34 | 73 | revert(0, 0) |
35 | 74 | } |
| 75 | + |
| 76 | + function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() { |
| 77 | + revert(0, 0) |
| 78 | + } |
| 79 | + |
| 80 | + function abi_decode_tuple_(headStart, dataEnd) { |
| 81 | + if slt(sub(dataEnd, headStart), 0) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() } |
| 82 | + |
| 83 | + } |
| 84 | + |
| 85 | + function abi_encode_tuple__to__fromStack(headStart ) -> tail { |
| 86 | + tail := add(headStart, 0) |
| 87 | + |
| 88 | + } |
| 89 | + |
| 90 | + function external_fun_f_5() { |
| 91 | + |
| 92 | + if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } |
| 93 | + abi_decode_tuple_(4, calldatasize()) |
| 94 | + fun_f_5() |
| 95 | + let memPos := allocate_unbounded() |
| 96 | + let memEnd := abi_encode_tuple__to__fromStack(memPos ) |
| 97 | + return(memPos, sub(memEnd, memPos)) |
| 98 | + |
| 99 | + } |
| 100 | + |
| 101 | + function revert_error_42b3090547df1d2001c96683413b8cf91c1b902ef5e3cb8d9f6f304cf7446f74() { |
| 102 | + revert(0, 0) |
| 103 | + } |
| 104 | + |
| 105 | + /// @ast-id 5 |
| 106 | + /// @src 0:77:99 "function f() public {}" |
| 107 | + function fun_f_5() { |
| 108 | + |
| 109 | + } |
| 110 | + /// @src 0:60:101 "contract C {..." |
| 111 | + |
36 | 112 | } |
| 113 | + |
37 | 114 | data ".metadata" hex"<BYTECODE REMOVED>" |
38 | 115 | } |
| 116 | + |
39 | 117 | } |
40 | 118 |
|
| 119 | + |
41 | 120 | Debug Data (ethdebug/format/program): |
42 | 121 | {} |
43 | 122 | Debug Data of the runtime part (ethdebug/format/program): |
|
0 commit comments