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

@ -20,11 +20,19 @@ pub fn optimize_boxfield_operations(
let mut i = 0usize;
while i < block.instructions.len() {
// Get span for current instruction (or unknown if missing)
let span_i = block.instruction_spans.get(i).copied().unwrap_or_else(Span::unknown);
let span_i = block
.instruction_spans
.get(i)
.copied()
.unwrap_or_else(Span::unknown);
// Look ahead for simple store-followed-by-load on same box/index
if i + 1 < block.instructions.len() {
let span_i1 = block.instruction_spans.get(i + 1).copied().unwrap_or_else(Span::unknown);
let span_i1 = block
.instruction_spans
.get(i + 1)
.copied()
.unwrap_or_else(Span::unknown);
match (&block.instructions[i], &block.instructions[i + 1]) {
(
I::BoxCall {