decomp(jpeg): improve RGBA420 declaration order to 90.25% #1076

Merged
coah80 merged 1 commits from agent/bittle/rgba420-final into main 2026-10-03 07:25:22 +00:00
coah80 commented 2026-10-03 07:24:43 +00:00 (Migrated from github.com)

Scope

Only reorders the 24 existing uninitialized leading declarations in TMCJPEGDEC_converterYUV420toRGBA8. Expressions, initializers, types, scopes, helpers, and linking flags are unchanged. Honest partial improvement, not an exact match.

Independent parent verification

Rebased onto f710d11f (including #1075), then rebuilt and regenerated the report.

  • Function fuzzy: 89.40523% → 90.254906%; unit: 90.32323% → 90.40206%
  • 153/153 instructions, 84 raw ctxdiff differences remain
  • All 12 sibling instruction streams unchanged; 2/13 exact and 660 matched code bytes preserved
  • All 1,027-unit allocated object sections/relocations compared: only this unit's text changed, with its 24 relocations unchanged; no data changes
  • Complete report comparison has no regressions and only this function improves
  • Full 43U all_source/progress/report/ok build passed, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d
  • Pool identical and empty; literal audit: 12 functions, 0 arguments, no candidates/errors; existing unequal-extent set_converterRGBA8 skipped
  • Parent reran the independent pixel/alias model against freshly built candidate, original, and current-main baseline: 7,265 vectors / 21,795 object executions, including 417 aligned in-buffer overlaps and 6,400 saturation vectors; all 153 instructions covered in all three, all outputs/guards pass. Bounded interpreter tests, not a formal proof or Wii hardware test
  • Worker additionally reran the repository's 9,456-case JPEG differential audit

Unmodified official declsearch.py on lines520–543. A 783-evaluation capped run improved (16,97) → (16,84). One separately authorized continuation naturally stopped after783 evaluations, covering baseline plus all782 immediate swap/move neighbors without improvement. Local fixed point applies to the tool comparator only, not all24! permutations, plateau paths, or the fuzzy objective globally. No extra search was run. Full evidence and limitations recorded in attempts log.

Rebased candidate object SHA256 remains8111813a7cd2bf786719a614b4517a8dc0a43a653c421765ca568b37014b976d, byte-identical to the independently tested candidate. Uploaded tree verified against local tested tree2a73561b0f0fc309d0ba04f4d8a5d602a9e82052. No merge or auto-merge requested.

Note

Reorder declarations in TMCJPEGDEC_converterYUV420toRGBA8 to reach 90.25% match

Reorders local scalar and pointer declarations in TMCJPEGDEC_converterYUV420toRGBA8 in Texture_MCUtoRGBA8.c. Types, names, values, and executable code are unchanged. Also adds a decompilation-search record in rgba420-final-expression.attempts.md with hashes, validation gates, and build results. Risk: none — declaration order only; runtime behavior unchanged.

Macroscope summarized ec7257b.

## Scope Only reorders the 24 existing uninitialized leading declarations in TMCJPEGDEC_converterYUV420toRGBA8. Expressions, initializers, types, scopes, helpers, and linking flags are unchanged. Honest partial improvement, not an exact match. ## Independent parent verification Rebased onto f710d11f (including #1075), then rebuilt and regenerated the report. - Function fuzzy: 89.40523% → 90.254906%; unit: 90.32323% → 90.40206% - 153/153 instructions, 84 raw ctxdiff differences remain - All 12 sibling instruction streams unchanged; 2/13 exact and 660 matched code bytes preserved - All 1,027-unit allocated object sections/relocations compared: only this unit's text changed, with its 24 relocations unchanged; no data changes - Complete report comparison has no regressions and only this function improves - Full 43U all_source/progress/report/ok build passed, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d - Pool identical and empty; literal audit: 12 functions, 0 arguments, no candidates/errors; existing unequal-extent set_converterRGBA8 skipped - Parent reran the independent pixel/alias model against freshly built candidate, original, and current-main baseline: 7,265 vectors / 21,795 object executions, including 417 aligned in-buffer overlaps and 6,400 saturation vectors; all 153 instructions covered in all three, all outputs/guards pass. Bounded interpreter tests, not a formal proof or Wii hardware test - Worker additionally reran the repository's 9,456-case JPEG differential audit ## Bounded search Unmodified official declsearch.py on lines520–543. A 783-evaluation capped run improved (16,97) → (16,84). One separately authorized continuation naturally stopped after783 evaluations, covering baseline plus all782 immediate swap/move neighbors without improvement. Local fixed point applies to the tool comparator only, not all24! permutations, plateau paths, or the fuzzy objective globally. No extra search was run. Full evidence and limitations recorded in attempts log. Rebased candidate object SHA256 remains8111813a7cd2bf786719a614b4517a8dc0a43a653c421765ca568b37014b976d, byte-identical to the independently tested candidate. Uploaded tree verified against local tested tree2a73561b0f0fc309d0ba04f4d8a5d602a9e82052. 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 declarations in `TMCJPEGDEC_converterYUV420toRGBA8` to reach 90.25% match > Reorders local scalar and pointer declarations in `TMCJPEGDEC_converterYUV420toRGBA8` in [Texture_MCUtoRGBA8.c](https://github.com/coah80/wii-ipl/pull/1076/files#diff-43f833baadaffaadab5e93ae34189875e88de77afa5d1f996fdd17d91497cf70). Types, names, values, and executable code are unchanged. Also adds a decompilation-search record in [rgba420-final-expression.attempts.md](https://github.com/coah80/wii-ipl/pull/1076/files#diff-6ece9aef5b800b9ce18a3d09deed69fbc181fc01c9932f84e68a9808dc19bcdf) with hashes, validation gates, and build results. Risk: none — declaration order only; runtime behavior unchanged. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized ec7257b.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 07:25: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.