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

20 lines
294 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
}
// ----
// step: rematerialiser
//
2018-10-11 15:59:45 +00:00
// {
// 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
// }