mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
44da8507b1
Co-authored-by: Rodrigo Q. Saramago <rodrigoqsaramago@gmail.com>
46 lines
920 B
Plaintext
46 lines
920 B
Plaintext
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)
|
|
}
|
|
}
|
|
}
|
|
// ====
|
|
// optimizationPreset: full
|
|
// ----
|
|
// Assembly:
|
|
// /* "source":48:49 */
|
|
// 0x00
|
|
// /* "source":35:50 */
|
|
// dup1
|
|
// calldataload
|
|
// /* "source":107:127 */
|
|
// sstore
|
|
// /* "source":20:131 */
|
|
// stop
|
|
// stop
|
|
//
|
|
// sub_0: assembly {
|
|
// /* "source":188:189 */
|
|
// 0x00
|
|
// /* "source":175:190 */
|
|
// dup1
|
|
// calldataload
|
|
// /* "source":253:273 */
|
|
// sstore
|
|
// /* "source":158:279 */
|
|
// stop
|
|
// }
|
|
// Bytecode: 5f80355500fe
|
|
// Opcodes: PUSH0 DUP1 CALLDATALOAD SSTORE STOP INVALID
|
|
// SourceMappings: 48:1:0:-:0;35:15;;107:20;20:111
|