solidity/test/libyul/yulOptimizerTests/expressionSimplifier/inside_for.yul

13 lines
210 B
Plaintext
Raw Normal View History

2018-10-11 16:35:13 +00:00
{
let a := 10
for { } iszero(eq(a, 0)) { a := add(a, 1) } {}
2018-10-11 16:35:13 +00:00
}
2019-04-01 14:33:46 +00:00
// ====
// step: expressionSimplifier
2018-10-11 16:35:13 +00:00
// ----
// {
// let a := 10
// for { } iszero(iszero(a)) { a := add(a, 1) }
// { }
2018-10-11 16:35:13 +00:00
// }