2018-12-05 11:02:49 +00:00
|
|
|
object "a" {
|
|
|
|
code {
|
|
|
|
let x := calldataload(0)
|
|
|
|
let y := calldataload(0)
|
|
|
|
let z := sub(y, x)
|
|
|
|
sstore(add(x, 0), z)
|
|
|
|
}
|
|
|
|
object "sub" {
|
|
|
|
code {
|
|
|
|
let x := calldataload(0)
|
|
|
|
let y := calldataload(0)
|
|
|
|
let z := sub(y, x)
|
|
|
|
sstore(add(x, 0), z)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-11 12:11:27 +00:00
|
|
|
// ====
|
2021-04-26 20:18:52 +00:00
|
|
|
// optimizationPreset: full
|
2018-12-05 11:02:49 +00:00
|
|
|
// ----
|
|
|
|
// Assembly:
|
2019-06-11 12:11:27 +00:00
|
|
|
// /* "source":48:49 */
|
2018-12-05 11:02:49 +00:00
|
|
|
// 0x00
|
2019-06-11 12:11:27 +00:00
|
|
|
// /* "source":35:50 */
|
2021-09-15 15:01:40 +00:00
|
|
|
// dup1
|
2018-12-05 11:02:49 +00:00
|
|
|
// calldataload
|
2019-06-11 12:11:27 +00:00
|
|
|
// /* "source":107:127 */
|
2018-12-05 11:02:49 +00:00
|
|
|
// sstore
|
2021-09-15 15:01:40 +00:00
|
|
|
// /* "source":20:131 */
|
|
|
|
// stop
|
2018-12-05 11:02:49 +00:00
|
|
|
// stop
|
|
|
|
//
|
|
|
|
// sub_0: assembly {
|
2019-06-11 12:11:27 +00:00
|
|
|
// /* "source":188:189 */
|
2018-12-05 11:02:49 +00:00
|
|
|
// 0x00
|
2019-06-11 12:11:27 +00:00
|
|
|
// /* "source":175:190 */
|
2021-09-15 15:01:40 +00:00
|
|
|
// dup1
|
2018-12-05 11:02:49 +00:00
|
|
|
// calldataload
|
2019-06-11 12:11:27 +00:00
|
|
|
// /* "source":253:273 */
|
2018-12-05 11:02:49 +00:00
|
|
|
// sstore
|
2021-09-15 15:01:40 +00:00
|
|
|
// /* "source":158:279 */
|
|
|
|
// stop
|
2018-12-05 11:02:49 +00:00
|
|
|
// }
|
2023-04-26 11:03:17 +00:00
|
|
|
// Bytecode: 5f80355500fe
|
|
|
|
// Opcodes: PUSH0 DUP1 CALLDATALOAD SSTORE STOP INVALID
|
2021-09-15 15:01:40 +00:00
|
|
|
// SourceMappings: 48:1:0:-:0;35:15;;107:20;20:111
|