solidity/test/libyul/yulOptimizerTests/rematerialiser/reassign.yul
2018-10-15 11:52:35 +02:00

22 lines
335 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)
}
// ----
// 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))
// }