// Phase 190: Number accumulation test - atoi implementation // Tests: result = result * 10 + i pattern (direct loop variable usage) // Uses Pattern 2 (break) to enable carrier support // // Note: Phase 190-impl-D found that body-local variable support is incomplete. // Using loop variable directly for now. static box AtoiImpl { method main() { local result result = 0 local i i = 0 loop(i < 10) { if i >= 3 { break } // Phase 190-impl-D: Use loop variable directly instead of body-local result = result * 10 + i i = i + 1 } return result } }