decomp(jpeg): improve RGBA211 edge declaration order to 92.17% #1083

Merged
coah80 merged 1 commits from agent/bittle/rgba211edge-final into main 2026-10-03 08:59:15 +00:00
coah80 commented 2026-10-03 08:57:40 +00:00 (Migrated from github.com)

Scope

Only reorders 24 existing uninitialized leading declarations in TMCJPEGDEC_converterYUV211toRGBA8edge. All types (including s8 crValue/u8 value), expressions, initializers, scopes, helpers and linking flags remain unchanged. Honest partial improvement, not exact.

Independent parent verification on 7b324519

  • Function fuzzy 92.0% → 92.17391%; 115/115 instructions, raw differences49 →47
  • All12 sibling instruction streams unchanged; exact2/13, matched code660 and empty data preserved
  • Full1027-unit report has no regression and only this function improves; all allocated objects compared, only owned text changes,24 relocations/nontext data unchanged
  • Parent independently rebuilt and reran vertical-2:1 edge model against original/current-main/candidate:12,591 vectors /37,773 executions, including5,214 contained aligned input/output overlaps, edge dimensions, absolute row-parity branches and saturation. All115 instructions covered in each object, outputs and guards pass. Bounded machine-level interpreter checks, not formal equivalence or Wii hardware testing
  • Worker additionally passed repository9,456-case differential audit
  • Pool empty/identical; literal audit12 functions /0 arguments, no candidates/errors; pre-existing unequal-size setter skipped
  • Full default progress build and43U/ok, worktree and diff checks pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d

Current expression context postdates the old250-evaluation search by one retained OR-expression change; no expression changed here. One unchanged official declsearch run on lines770–793, max1600, naturally stopped after1080 evaluations: (6,49) → (6,48) → (6,47). All782 immediate swap/move neighbors of the final order were checked. Local fixed point applies to the tool comparator, not all permutations/plateau paths. No restart or continuation.

Candidate object SHA256 820ea2eb48716a8bd707ec9b27826bb7057f4c45da905aa56b4454bd58e36d78. Uploaded tree9478524c9558f88e8847c62dc31d9693861b9951 equals independently tested tree. Detailed evidence and limits in attempts log. No merge or auto-merge requested.

Note

Reorder local declarations in TMCJPEGDEC_converterYUV211toRGBA8edge to 92.17% match

Moves tileRow to the start of the declaration block, tileWidth before blueOffset, and lumaSkip to the end in Texture_MCUtoRGBA8.c. This matches the original decompiled declaration order. Types, initializers, and function logic are unchanged.

Adds a search report with baseline/candidate hashes and verification commands in rgba211edge-declaration-context.attempts.md.

Macroscope summarized dece327.

## Scope Only reorders 24 existing uninitialized leading declarations in TMCJPEGDEC_converterYUV211toRGBA8edge. All types (including s8 crValue/u8 value), expressions, initializers, scopes, helpers and linking flags remain unchanged. Honest partial improvement, not exact. ## Independent parent verification on 7b324519 - Function fuzzy 92.0% → 92.17391%; 115/115 instructions, raw differences49 →47 - All12 sibling instruction streams unchanged; exact2/13, matched code660 and empty data preserved - Full1027-unit report has no regression and only this function improves; all allocated objects compared, only owned text changes,24 relocations/nontext data unchanged - Parent independently rebuilt and reran vertical-2:1 edge model against original/current-main/candidate:12,591 vectors /37,773 executions, including5,214 contained aligned input/output overlaps, edge dimensions, absolute row-parity branches and saturation. All115 instructions covered in each object, outputs and guards pass. Bounded machine-level interpreter checks, not formal equivalence or Wii hardware testing - Worker additionally passed repository9,456-case differential audit - Pool empty/identical; literal audit12 functions /0 arguments, no candidates/errors; pre-existing unequal-size setter skipped - Full default progress build and43U/ok, worktree and diff checks pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d ## Finite search Current expression context postdates the old250-evaluation search by one retained OR-expression change; no expression changed here. One unchanged official declsearch run on lines770–793, max1600, naturally stopped after1080 evaluations: (6,49) → (6,48) → (6,47). All782 immediate swap/move neighbors of the final order were checked. Local fixed point applies to the tool comparator, not all permutations/plateau paths. No restart or continuation. Candidate object SHA256 820ea2eb48716a8bd707ec9b27826bb7057f4c45da905aa56b4454bd58e36d78. Uploaded tree9478524c9558f88e8847c62dc31d9693861b9951 equals independently tested tree. Detailed evidence and limits in attempts log. 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_converterYUV211toRGBA8edge` to 92.17% match > Moves `tileRow` to the start of the declaration block, `tileWidth` before `blueOffset`, and `lumaSkip` to the end in [Texture_MCUtoRGBA8.c](https://github.com/coah80/wii-ipl/pull/1083/files#diff-43f833baadaffaadab5e93ae34189875e88de77afa5d1f996fdd17d91497cf70). This matches the original decompiled declaration order. Types, initializers, and function logic are unchanged. > > Adds a search report with baseline/candidate hashes and verification commands in [rgba211edge-declaration-context.attempts.md](https://github.com/coah80/wii-ipl/pull/1083/files#diff-ac03faa4e959105fbe058640e980c39ad63932fe08166e4bfedb2c527f690901). > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized dece327.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 08:59:13 +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.