solidity/test/libyul/yulOptimizerTests/rematerialiser/reassign.yul
2019-04-03 14:58:20 +02:00

23 lines
349 B
Plaintext

{
let a := extcodesize(0)
let b := a
let c := b
a := 2
let d := add(b, c)
pop(a) pop(b) pop(c) pop(d)
}
// ====
// step: rematerialiser
// ----
// {
// let a := extcodesize(0)
// let b := a
// let c := a
// a := 2
// let d := add(b, c)
// pop(2)
// pop(b)
// pop(c)
// pop(add(b, c))
// }