solidity/test/libyul/yulOptimizerTests/disambiguator/switch_statement.yul

24 lines
388 B
Plaintext
Raw Normal View History

2018-10-10 13:15:38 +00:00
{
{ let a:u256, b:u256, c:u256 }
{
let a:u256
switch a
case 0:u256 { let b:u256 := a }
default { let c:u256 := a }
}
}
2019-04-01 14:33:46 +00:00
// ====
// dialect: yul
2018-10-10 13:15:38 +00:00
// ----
// step: disambiguator
//
2018-10-10 13:15:38 +00:00
// {
2020-01-16 19:27:33 +00:00
// { let a, b, c }
2018-10-10 13:15:38 +00:00
// {
2020-01-16 19:27:33 +00:00
// let a_1
2018-10-10 13:15:38 +00:00
// switch a_1
2020-01-16 19:27:33 +00:00
// case 0 { let b_2 := a_1 }
// default { let c_3 := a_1 }
2018-10-10 13:15:38 +00:00
// }
// }