solidity/test/libyul/objectCompiler/simple_optimizer.yul
2021-07-05 13:46:53 +02:00

21 lines
413 B
Plaintext

{
let x := calldataload(0)
let y := calldataload(0)
let z := sub(y, x)
sstore(add(x, 0), z)
}
// ====
// optimizationPreset: full
// ----
// Assembly:
// /* "source":26:27 */
// 0x00
// dup1
// /* "source":13:28 */
// calldataload
// /* "source":79:99 */
// sstore
// Bytecode: 6000803555
// Opcodes: PUSH1 0x0 DUP1 CALLDATALOAD SSTORE
// SourceMappings: 26:1:0:-:0;;13:15;79:20