Files
hakorune/apps/tests/phase143_loop_true_if_break_min.hako
tomoaki 845ae70cb7 chore: Remove unused imports in normalized_shadow modules
Cleaned up unused imports after Phase 143 execution fix (5e662eaaf).

**Priority files (Phase 143)**:
- if_as_last_join_k.rs: removed ValueId, BTreeMap
- loop_true_break_once.rs: added #[cfg(test)] for test-only imports
- post_if_post_k.rs: removed ValueId, BTreeMap
- normalized_helpers.rs: added #[cfg(test)] for Span

**Additional cleanup**:
- contract_checks.rs: removed BasicBlockId
- joinir/mod.rs: removed Info struct re-exports (functions kept)
- patterns/mod.rs: removed Info struct re-exports (functions kept)
- ast_feature_extractor.rs: removed EscapeSkipPatternInfo
- plan_box.rs: added #[cfg(test)] for PlanKind

**Verification**:
- 0 unused import warnings (was 20+)
- All 69 normalized_shadow tests pass
- Clean build with --release

Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-19 08:36:45 +09:00

26 lines
542 B
Plaintext

// Phase 143 P0: loop(true) + if + break minimal test
//
// Pattern: loop(true) { if(cond_pure) break }
// Expected: exit code 7 (cond is true immediately, break, return 7)
//
// This test verifies:
// - loop(true) is recognized
// - Pure condition (flag == 1) is lowerable
// - Break exits loop immediately
// - Return after loop is processed normally
static box Main {
main() {
local flag
flag = 1
loop(true) {
if flag == 1 {
break
}
}
return 7
}
}