solidity/test/libyul/yulOptimizerTests/forLoopConditionIntoBody/simple.yul

18 lines
331 B
Plaintext
Raw Normal View History

2019-05-18 05:36:29 +00:00
{
let random := 42
for { let a := 1 } iszero(eq(a, 10)) { a := add(a, 1) } {
a := add(a, 1)
}
}
// ====
// step: forLoopConditionIntoBody
// ----
// {
// let random := 42
// for { let a := 1 } 1 { a := add(a, 1) }
// {
// if iszero(iszero(eq(a, 10))) { break }
// a := add(a, 1)
// }
// }