solidity/test/libyul/yulOptimizerTests/rematerialiser/branches_if.yul

19 lines
285 B
Plaintext
Raw Normal View History

2018-10-11 15:59:45 +00:00
{
let a := caller()
let b := address()
2018-10-11 15:59:45 +00:00
if b { pop(b) b := a }
let c := b
}
// ----
// rematerialiser
// {
// let a := caller()
// let b := address()
// if address()
2018-10-11 15:59:45 +00:00
// {
// pop(address())
// b := caller()
2018-10-11 15:59:45 +00:00
// }
// let c := b
// }