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

22 lines
335 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
// {
2021-11-09 12:25:25 +00:00
// {
// if add(mload(7), sload(mload(3))) { let y := add(mload(3), 3) }
// let t := add(3, 9)
// }
2018-10-01 16:27:07 +00:00
// }