feat(phi): Phase 25.1 - LoopForm v2 テスト・最小再現ケース追加
- ✅ 最小再現ケース作成 - apps/tests/minimal_ssa_skip_ws.hako: 確実に再現する10-30行ケース - apps/tests/minimal_ssa_bug*.hako: 段階的簡略化版 - apps/tests/loopform_*.hako: LoopForm v2 各ケーステスト - ✅ Rustテストスイート追加 - src/tests/mir_loopform_conditional_reassign.rs: 4ケース(Case A/B/C/D) - src/tests/mir_loopform_complex.rs: 複雑なパターン - 全テストPASS確認済み - ✅ SSAバグ分析ドキュメント - docs/development/analysis/minimal_ssa_bug_analysis.md - エラー詳細・原因・ワークアラウンド記録 🎯 成果: SSAバグの構造を完全特定、デバッグ準備完了
This commit is contained in:
15
apps/tests/test_loop_conditional_assign.hako
Normal file
15
apps/tests/test_loop_conditional_assign.hako
Normal file
@ -0,0 +1,15 @@
|
||||
static box Main {
|
||||
main(args) {
|
||||
local str = "foo/bar/baz"
|
||||
local idx = -1
|
||||
local t = 0
|
||||
loop(t < str.length()) {
|
||||
if str.substring(t, t+1) == "/" {
|
||||
idx = t
|
||||
}
|
||||
t = t + 1
|
||||
}
|
||||
print("Last slash at: " + ("" + idx))
|
||||
return 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user