1 2 3 4 5 6 7 8 9 10 11 12 13 14
contract test { function f() public returns(uint ret) { ret = 1; for (;;) { ret += 1; if (ret >= 10) break; } } } // ==== // compileToEwasm: also // compileViaYul: also // ---- // f() -> 10