decomp(jpeg): improve RGBA422 edge declaration order to 91.95% #1087

Merged
coah80 merged 1 commits from agent/bittle/rgba422edge-final into main 2026-10-03 09:21:12 +00:00
coah80 commented 2026-10-03 09:19:32 +00:00 (Migrated from github.com)

Scope

Reorders only 24 existing uninitialized leading declarations in TMCJPEGDEC_converterYUV422toRGBA8edge. No expressions, initializers, types, scopes, helpers, data or linking changes. Honest partial improvement, not exact.

Independent parent verification on b25e0377

  • Function fuzzy 90.08849% → 91.9469%; unit 90.45967% → 90.58702%
  • 113/113 instructions, raw differences 68 → 51
  • All 12 sibling instruction streams unchanged; exact 2/13, matched code 660 and empty data preserved
  • Full 1027-unit report has no regression; only this function improves. Allocated-object comparison shows only owned text changes, with all 24 relocations and nontext data unchanged
  • Parent freshly rebuilt and reran independent horizontal-2:1 edge model against original/current-main/candidate: 11,420 vectors / 34,260 executions, including 4,107 contained aligned input/output overlaps, edge sizes, dimension branches and saturation. All 113 instructions covered in each object; output and guard checks pass. Bounded interpreter checks, not formal equivalence or Wii hardware testing
  • Worker additionally passed repository 9,456-case differential audit
  • Empty identical pool; literal audit 12 functions / 0 arguments, no candidates/errors; pre-existing unequal-size setter skipped
  • Full default progress / 43U/ok, worktree and diff gates pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d

The current post-OR expression context had no recorded official fixed point after the old 250-evaluation cap. One unchanged official declsearch run, lines 444–467, max 1600, naturally stopped after 1392 evaluations, improving (6,68) to (6,51). All 782 immediate swap/move neighbors of the final order were checked. This is a local fixed point for the tool comparator, not all permutations or plateau paths. No restart or continuation.

Candidate object SHA256 104a45c6cc931c11987bce9d6547a1407fb178d39b912df11e25849a3474b872 is unchanged after rebase. Uploaded tree c2a0fe13c3 equals independently tested tree. Evidence and limitations included. No merge or auto-merge requested.

Note

Reorder local declarations in TMCJPEGDEC_converterYUV422toRGBA8edge

Reorders variable declarations in TMCJPEGDEC_converterYUV422toRGBA8edge to match the original declaration order, raising context match to 91.95%. No executable logic changes. Also adds an attempt log documenting the search and verification in rgba422edge-declaration-context.attempts.md.

Macroscope summarized 83bdd69.

## Scope Reorders only 24 existing uninitialized leading declarations in TMCJPEGDEC_converterYUV422toRGBA8edge. No expressions, initializers, types, scopes, helpers, data or linking changes. Honest partial improvement, not exact. ## Independent parent verification on b25e0377 - Function fuzzy 90.08849% → 91.9469%; unit 90.45967% → 90.58702% - 113/113 instructions, raw differences 68 → 51 - All 12 sibling instruction streams unchanged; exact 2/13, matched code 660 and empty data preserved - Full 1027-unit report has no regression; only this function improves. Allocated-object comparison shows only owned text changes, with all 24 relocations and nontext data unchanged - Parent freshly rebuilt and reran independent horizontal-2:1 edge model against original/current-main/candidate: 11,420 vectors / 34,260 executions, including 4,107 contained aligned input/output overlaps, edge sizes, dimension branches and saturation. All 113 instructions covered in each object; output and guard checks pass. Bounded interpreter checks, not formal equivalence or Wii hardware testing - Worker additionally passed repository 9,456-case differential audit - Empty identical pool; literal audit 12 functions / 0 arguments, no candidates/errors; pre-existing unequal-size setter skipped - Full default progress / 43U/ok, worktree and diff gates pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d ## Finite current-context search The current post-OR expression context had no recorded official fixed point after the old 250-evaluation cap. One unchanged official declsearch run, lines 444–467, max 1600, naturally stopped after 1392 evaluations, improving (6,68) to (6,51). All 782 immediate swap/move neighbors of the final order were checked. This is a local fixed point for the tool comparator, not all permutations or plateau paths. No restart or continuation. Candidate object SHA256 104a45c6cc931c11987bce9d6547a1407fb178d39b912df11e25849a3474b872 is unchanged after rebase. Uploaded tree c2a0fe13c3f52a5376e43a4d705ef3612411faf3 equals independently tested tree. Evidence and limitations included. No merge or auto-merge requested. <!-- 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] > ### Reorder local declarations in `TMCJPEGDEC_converterYUV422toRGBA8edge` > Reorders variable declarations in `TMCJPEGDEC_converterYUV422toRGBA8edge` to match the original declaration order, raising context match to 91.95%. No executable logic changes. Also adds an attempt log documenting the search and verification in [rgba422edge-declaration-context.attempts.md](https://github.com/coah80/wii-ipl/pull/1087/files#diff-83b84975d6727722a48c935f4f1d61423b5f4d287610425a1156b574e7f92d2f). > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 83bdd69.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 09:21:10 +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.