solidity/test/libyul/yulOptimizerTests/expressionJoiner/if_condition.yul

20 lines
309 B
Plaintext
Raw Normal View History

2018-10-01 16:27:07 +00:00
{
let a := mload(3)
let b := sload(a)
let c := mload(7)
let d := add(c, b)
if d {
let x := mload(3)
let y := add(x, 3)
}
let z := 3
let t := add(z, 9)
}
// ----
// step: expressionJoiner
//
2018-10-01 16:27:07 +00:00
// {
// if add(mload(7), sload(mload(3))) { let y := add(mload(3), 3) }
2018-10-01 16:27:07 +00:00
// let t := add(3, 9)
// }