decomp(ezitext): pair current and best phonetic restoration #1024

Merged
coah80 merged 1 commits from agent/bittle/phonetic-restore-review into main 2026-10-03 02:29:22 +00:00
coah80 commented 2026-10-03 02:28:39 +00:00 (Migrated from github.com)

Source data flow

Recover the paired fallback restore of current/best initial and final phonetic values. The six variables are distinct halfword locals, with no intervening calls or volatile access. Separate loop-increment trials regressed and were excluded.

Independent parent verification

  • Zi8PrepareMatch: 96.319145% → 96.802124%; 939 → 936 instructions against 940
  • The restored six-instruction block is byte-identical to original DOL at 0x81485D24–0x81485D38
  • All 22 ordered direct-call identities agree
  • Parent reran 165536 source-extracted restore cases under UBSan, checking all outputs, snapshots and adjacent guard halfwords against an independent reference
  • Entire 1027-unit report has no regressions; unit remains 0/1 exact and data remains 8/68
  • Allocated object comparison changes only owned .text and corresponding relocation positions; no non-text data change
  • Empty pool identical; literal advisory explicitly skips the unequal extent, so no literal coverage claimed
  • Full 43U all_source/report/progress/DOL and worktree/diff checks pass

Partial reconstruction only. Register/layout differences remain, and this is not full dictionary-engine or Wii runtime equivalence. No dummy flags/storage, new helper, header, metadata, compiler or linking changes.

Base: 5e0816c3f1
Tested tree: bbacf4ed39
DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

No merge performed or requested by this author.

Note

Pair current and best phonetic restoration in Zi8PrepareMatch

Simplifies the failed Bopomofo separator restoration block in zprepare.c. The previous initial and final phonetics are now assigned directly to both the current and best output locals, replacing separate best-output assignments followed by reloads into the current outputs. Also adds a reconstruction and validation audit log at zprepare-phonetic-restore-20261003.md.

Macroscope summarized 0eeffe5.

## Source data flow Recover the paired fallback restore of current/best initial and final phonetic values. The six variables are distinct halfword locals, with no intervening calls or volatile access. Separate loop-increment trials regressed and were excluded. ## Independent parent verification - Zi8PrepareMatch: 96.319145% → 96.802124%; 939 → 936 instructions against 940 - The restored six-instruction block is byte-identical to original DOL at 0x81485D24–0x81485D38 - All 22 ordered direct-call identities agree - Parent reran 165536 source-extracted restore cases under UBSan, checking all outputs, snapshots and adjacent guard halfwords against an independent reference - Entire 1027-unit report has no regressions; unit remains 0/1 exact and data remains 8/68 - Allocated object comparison changes only owned .text and corresponding relocation positions; no non-text data change - Empty pool identical; literal advisory explicitly skips the unequal extent, so no literal coverage claimed - Full 43U all_source/report/progress/DOL and worktree/diff checks pass Partial reconstruction only. Register/layout differences remain, and this is not full dictionary-engine or Wii runtime equivalence. No dummy flags/storage, new helper, header, metadata, compiler or linking changes. Base: 5e0816c3f138027ced9240c617641ded5d4bcc78 Tested tree: bbacf4ed3961934b8516c3684b91c94d6541aa7a DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d No merge performed or requested by this author. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Pair current and best phonetic restoration in `Zi8PrepareMatch` > Simplifies the failed Bopomofo separator restoration block in [zprepare.c](https://github.com/coah80/wii-ipl/pull/1024/files#diff-770b0e8815420bfecd3dd9ba01d723c22e0a91f3a297eb360d782350a2a61a56). The previous initial and final phonetics are now assigned directly to both the current and best output locals, replacing separate best-output assignments followed by reloads into the current outputs. Also adds a reconstruction and validation audit log at [zprepare-phonetic-restore-20261003.md](https://github.com/coah80/wii-ipl/pull/1024/files#diff-4ffd9604fd74f9e99df781b2019e8191d025f687ab315154e7daca652a34d986). > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 0eeffe5.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 02:29:20 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.