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

23 lines
424 B
Plaintext
Raw Normal View History

2018-10-10 13:15:38 +00:00
{
{ let a:u256, b:u256 }
{
2020-01-22 19:11:33 +00:00
function eq(x: u256, y: u256) -> z: bool {}
for { let a:u256 } eq(a, a) { a := a } {
2018-10-10 13:15:38 +00:00
let b:u256 := a
}
}
}
2019-04-01 14:33:46 +00:00
// ====
// dialect: yul
2020-01-16 19:27:33 +00:00
// step: disambiguator
2018-10-10 13:15:38 +00:00
// ----
// {
2020-01-16 19:27:33 +00:00
// { let a, b }
2018-10-10 13:15:38 +00:00
// {
2020-01-22 19:11:33 +00:00
// function eq(x, y) -> z:bool
// { }
// for { let a_1 } eq(a_1, a_1) { a_1 := a_1 }
2020-01-16 19:27:33 +00:00
// { let b_2 := a_1 }
2018-10-10 13:15:38 +00:00
// }
// }