fix(test): Phase 131-11-E テスト修正 - is_infinite_loop 初期化追加
## 問題 - src/mir/loop_pattern_detection/tests.rs でビルドエラー - `LoopFeatures` に `is_infinite_loop` フィールドが欠けていた ## 修正 - classify_body() で `is_infinite_loop: false` を追加 - テストでは通常ループ(finite loop)を想定 ## 検証 - ✅ ビルド成功 - ✅ Case C MIR: `%3: Integer = phi [%2, bb0], [%8, bb7]` - ✅ Case C VM: `Result: 3` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@ -116,6 +116,7 @@ fn classify_body(body: &[ASTNode]) -> LoopPatternKind {
|
|||||||
carrier_count: carrier_count(body),
|
carrier_count: carrier_count(body),
|
||||||
break_count: if has_break_flag { 1 } else { 0 },
|
break_count: if has_break_flag { 1 } else { 0 },
|
||||||
continue_count: if has_continue_flag { 1 } else { 0 },
|
continue_count: if has_continue_flag { 1 } else { 0 },
|
||||||
|
is_infinite_loop: false, // テストでは通常ループを想定
|
||||||
update_summary: None,
|
update_summary: None,
|
||||||
};
|
};
|
||||||
classify(&features)
|
classify(&features)
|
||||||
|
|||||||
Reference in New Issue
Block a user