phase29ac(p1): normalize pattern6 reverse scan and flip smoke to PASS

This commit is contained in:
2025-12-28 16:54:01 +09:00
parent 209b04d808
commit 1e1679f361
6 changed files with 112 additions and 64 deletions

View File

@ -1,5 +1,5 @@
// Phase 29ab P7: Pattern6 reverse scan first-fail (step contract violation)
// Expect: JoinIR freeze (reverse step must be i = i - 1)
// Phase 29ac P1: Pattern6 reverse scan OK minimal
// Expect: last_index_bad_step("abc", "b") -> 1
static box Main {
last_index_bad_step(s, ch) {
@ -8,7 +8,7 @@ static box Main {
if s.substring(i, i + 1) == ch {
return i
}
i = i + 1
i = i - 1
}
return -1
}