1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
| /// @use-src 0:"sample.sol" object "Sample_35" { code { /// @src 0:58:358 "contract Sample {..." mstore(64, memoryguard(128)) if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
constructor_Sample_35()
let _1 := allocate_unbounded() codecopy(_1, dataoffset("Sample_35_deployed"), datasize("Sample_35_deployed"))
return(_1, datasize("Sample_35_deployed"))
function allocate_unbounded() -> memPtr { memPtr := mload(64) } function update_storage_value_offset_0_t_address_to_t_address(slot, value_0) { let convertedValue_0 := convert_t_address_to_t_address(value_0) sstore(slot, update_byte_slice_20_shift_0(sload(slot), prepare_store_t_address(convertedValue_0))) }
/// @ast-id 12 /// @src 0:106:155 "constructor() {..." function constructor_Sample_35() {
/// @src 0:106:155 "constructor() {..."
/// @src 0:138:148 "msg.sender" let expr_8 := caller() /// @src 0:130:148 "owner = msg.sender" update_storage_value_offset_0_t_address_to_t_address(0x00, expr_8) let expr_9 := expr_8
} /// @src 0:58:358 "contract Sample {..."
} /// @use-src 0:"sample.sol" object "Sample_35_deployed" { code { /// @src 0:58:358 "contract Sample {..." mstore(64, memoryguard(128)) if iszero(lt(calldatasize(), 4)) { let selector := shift_right_224_unsigned(calldataload(0)) switch selector case 0x13af4035 { // setOwner(address) external_fun_setOwner_34() } case 0x893d20e8 { // getOwner() external_fun_getOwner_20() } case 0x8da5cb5b { // owner() external_fun_owner_3() } default {} } revert_error_42b3090547df1d2001c96683413b8cf91c1b902ef5e3cb8d9f6f304cf7446f74()
function allocate_unbounded() -> memPtr { memPtr := mload(64) }
function external_fun_setOwner_34() {
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } let param_0 := abi_decode_tuple_t_address(4, calldatasize()) let ret_0 := fun_setOwner_34(param_0) let memPos := allocate_unbounded() let memEnd := abi_encode_tuple_t_bool__to_t_bool__fromStack(memPos , ret_0) return(memPos, sub(memEnd, memPos))
}
function abi_encode_t_address_to_t_address_fromStack(value, pos) { mstore(pos, cleanup_t_address(value)) }
function abi_encode_tuple_t_address__to_t_address__fromStack(headStart , value0) -> tail { tail := add(headStart, 32)
abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))
}
function external_fun_getOwner_20() { if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } abi_decode_tuple_(4, calldatasize()) let ret_0 := fun_getOwner_20() let memPos := allocate_unbounded() let memEnd := abi_encode_tuple_t_address__to_t_address__fromStack(memPos , ret_0) return(memPos, sub(memEnd, memPos))
}
function read_from_storage_split_dynamic_t_address(slot, offset) -> value { value := extract_from_storage_value_dynamict_address(sload(slot), offset)
}
/// @ast-id 3 /// @src 0:80:100 "address public owner" function getter_fun_owner_3() -> ret {
let slot := 0 let offset := 0
ret := read_from_storage_split_dynamic_t_address(slot, offset)
} /// @src 0:58:358 "contract Sample {..."
function external_fun_owner_3() {
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() } abi_decode_tuple_(4, calldatasize()) let ret_0 := getter_fun_owner_3() let memPos := allocate_unbounded() let memEnd := abi_encode_tuple_t_address__to_t_address__fromStack(memPos , ret_0) return(memPos, sub(memEnd, memPos))
} function update_byte_slice_20_shift_0(value, toInsert) -> result { let mask := 0xffffffffffffffffffffffffffffffffffffffff toInsert := shift_left_0(toInsert) value := and(value, not(mask)) result := or(value, and(toInsert, mask)) } function update_storage_value_offset_0_t_address_to_t_address(slot, value_0) { let convertedValue_0 := convert_t_address_to_t_address(value_0) sstore(slot, update_byte_slice_20_shift_0(sload(slot), prepare_store_t_address(convertedValue_0))) }
/// @ast-id 34 /// @src 0:248:356 "function setOwner(address _owner) public returns (bool) {..." function fun_setOwner_34(var__owner_22) -> var__25 { /// @src 0:298:302 "bool" let zero_t_bool_1 := zero_value_for_split_t_bool() var__25 := zero_t_bool_1
/// @src 0:322:328 "_owner" let _2 := var__owner_22 let expr_28 := _2 /// @src 0:314:328 "owner = _owner" update_storage_value_offset_0_t_address_to_t_address(0x00, expr_28) let expr_29 := expr_28 /// @src 0:345:349 "true" let expr_31 := 0x01 /// @src 0:338:349 "return true" var__25 := expr_31 leave
}
/// @ast-id 20 /// @src 0:161:242 "function getOwner() external view returns (address) {..." function fun_getOwner_20() -> var__15 { /// @src 0:204:211 "address" let zero_t_address_3 := zero_value_for_split_t_address() var__15 := zero_t_address_3
/// @src 0:230:235 "owner" let _4 := read_from_storage_split_offset_0_t_address(0x00) let expr_17 := _4 /// @src 0:223:235 "return owner" var__15 := expr_17 leave
} /// @src 0:58:358 "contract Sample {..."
}
data ".metadata" hex"a2646970667358221220c3c7bfea64093019fdb0e0aaf2f6130bb86c98f28ea301dcc40713fb9f64853964736f6c634300081c0033" }
}
|