Improve RGB565420 fuzzy score with texture/yEnd declaration order #1111

Merged
coah80 merged 1 commits from agent/bittle/rgb420-texture-yend into main 2026-10-03 15:13:13 +00:00
coah80 commented 2026-10-03 15:12:34 +00:00 (Migrated from github.com)

Scope

43U only. Swap two existing uninitialized declarations in normal TMCJPEGDEC_converterYUV420toRGB565; types, scope, assignments, uses and all remaining source bytes are unchanged. No compiler, symbol, split, data, or linking changes.

Verified result

  • Function: 95.28369% → 95.35461%; unit: 96.89909% → 96.90556%
  • 141 instructions; structural/positional differences remain (6,81)
  • All twelve sibling bodies and seven exact functions preserved; exact code 2648/6184 and all code/data/link counts unchanged
  • Current main global fuzzy remains 99.73153% at report precision; this is a small local fuzzy improvement, not an exact match or a completion claim

Independent parent verification

Rebuilt on 636f8eb03a with explicit cached toolchain. Full default build, explicit43U/ok, all1027 current-main object/report nonregression checks passed. Only owned object/unit changed. Selected object and raw function/section/unit report match immutable snapshot0108. Exact tested tree:328ec2043175b73d42a52a5c02f2518e274406be.

Independently regenerated official scores for all783 genuinely compiled snapshots and enumerated the complete fixed-center set: baseline+782neighbors. Three improvements,220ties,560losses; first maximum0108 retained. Six exact prior-manifest overlaps reproduce. Winner coverage is only5/782neighbors; no new fixed-point claim.

Empty pools identical; literal audit12functions/no candidates or errors, unchanged size-mismatched setter explicitly skipped. Pixel oracle passes15260vectors/45780executions including7068contained aliases, full141instruction coverage and preserved ABI. Repository JPEG suite passes9456paired cases. Bounded interpreter diagnostics, not formal equivalence or hardware tests.

DOL SHA1:26116613f624061ba99c8d1a299aaa6efa85670d. Worktree and diff checks pass. Committed log/CSV describe experiment limits and historical scoring context; original objects/evidence archive remain local. No merge performed or requested.

Note

Reorder declarations in TMCJPEGDEC_converterYUV420toRGB565 to improve fuzzy score

Moves the yEnd declaration before chromaSkip and the texture declaration after height in Texture_MCUtoRGB565.c. No statements or expressions change — this only matches the original source layout for decompilation scoring. Also adds the supporting evidence report and results CSV in tools/decomp-assist/.

Macroscope summarized 8c6d12b.

## Scope 43U only. Swap two existing uninitialized declarations in normal TMCJPEGDEC_converterYUV420toRGB565; types, scope, assignments, uses and all remaining source bytes are unchanged. No compiler, symbol, split, data, or linking changes. ## Verified result - Function: 95.28369% → 95.35461%; unit: 96.89909% → 96.90556% - 141 instructions; structural/positional differences remain (6,81) - All twelve sibling bodies and seven exact functions preserved; exact code 2648/6184 and all code/data/link counts unchanged - Current main global fuzzy remains 99.73153% at report precision; this is a small local fuzzy improvement, not an exact match or a completion claim ## Independent parent verification Rebuilt on 636f8eb03a7d3f314d9cb32912230c61d932fd5b with explicit cached toolchain. Full default build, explicit43U/ok, all1027 current-main object/report nonregression checks passed. Only owned object/unit changed. Selected object and raw function/section/unit report match immutable snapshot0108. Exact tested tree:328ec2043175b73d42a52a5c02f2518e274406be. Independently regenerated official scores for all783 genuinely compiled snapshots and enumerated the complete fixed-center set: baseline+782neighbors. Three improvements,220ties,560losses; first maximum0108 retained. Six exact prior-manifest overlaps reproduce. Winner coverage is only5/782neighbors; no new fixed-point claim. Empty pools identical; literal audit12functions/no candidates or errors, unchanged size-mismatched setter explicitly skipped. Pixel oracle passes15260vectors/45780executions including7068contained aliases, full141instruction coverage and preserved ABI. Repository JPEG suite passes9456paired cases. Bounded interpreter diagnostics, not formal equivalence or hardware tests. DOL SHA1:26116613f624061ba99c8d1a299aaa6efa85670d. Worktree and diff checks pass. Committed log/CSV describe experiment limits and historical scoring context; original objects/evidence archive remain local. No merge performed or 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_converterYUV420toRGB565` to improve fuzzy score > Moves the `yEnd` declaration before `chromaSkip` and the `texture` declaration after `height` in [Texture_MCUtoRGB565.c](https://github.com/coah80/wii-ipl/pull/1111/files#diff-5c9e5cd4d235724c9e4882611e36ba794e9821ede7e7396a48272a942676ee86). No statements or expressions change — this only matches the original source layout for decompilation scoring. Also adds the supporting evidence report and results CSV in `tools/decomp-assist/`. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 8c6d12b.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 15:13:11 +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.