Phase 33 NORM canon test: enforce normalized dev route for P1/P2/JP mini

This commit is contained in:
nyash-codex
2025-12-11 20:54:33 +09:00
parent 59a985b7fa
commit af6f95cd4b
170 changed files with 4423 additions and 1897 deletions

View File

@ -61,11 +61,7 @@ impl LoopViewBuilder {
///
/// - `Some(JoinModule)`: Lowering成功
/// - `None`: 未サポートパターン(フォールバック経路へ)
pub fn build(
&self,
scope: LoopScopeShape,
func_name: Option<&str>,
) -> Option<JoinModule> {
pub fn build(&self, scope: LoopScopeShape, func_name: Option<&str>) -> Option<JoinModule> {
let name = func_name.unwrap_or("");
// Phase 188-Impl-1: Pattern 1 (Simple While Loop) detection
@ -139,7 +135,10 @@ impl LoopViewBuilder {
&mut join_value_space,
) {
if self.debug {
eprintln!("[LoopViewBuilder] Pattern 1 lowering succeeded for {:?}", name);
eprintln!(
"[LoopViewBuilder] Pattern 1 lowering succeeded for {:?}",
name
);
}
return Some(result);
}
@ -181,7 +180,9 @@ impl LoopViewBuilder {
}
CaseALoweringShape::IterationWithAccumulation => {
if self.debug {
eprintln!("[LoopViewBuilder] Shape: IterationWithAccumulation → stage1 lowerer");
eprintln!(
"[LoopViewBuilder] Shape: IterationWithAccumulation → stage1 lowerer"
);
}
generic_case_a::lower_case_a_stage1_usingresolver_with_scope(scope)
}