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

20 lines
299 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
}
2019-04-01 14:33:46 +00:00
// ====
// 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
// }