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

28 lines
434 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)
switch d
case 3 {
let x := mload(3)
let y := add(x, 3)
}
default {
sstore(1, 0)
}
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
// {
// switch add(mload(7), sload(mload(3)))
// case 3 { let y := add(mload(3), 3) }
// default { sstore(1, 0) }
// let t := add(3, 9)
// }
2018-10-01 16:27:07 +00:00
// }