decomp(jpeg): refine Lumi n/o declaration allocation #1095

Merged
coah80 merged 1 commits from agent/bittle/lumi-neighbor-order into main 2026-10-03 11:38:37 +00:00
coah80 commented 2026-10-03 11:38:05 +00:00 (Migrated from github.com)

Minimal fixed-neighborhood result

Swap only the existing uninitialized n/o declaration positions in Lumi. All arithmetic, assignments, scopes, types, accesses, inner declarations, tmp/dst and siblings remain unchanged.

  • Lumi: 86.15953% → 86.178986%; 257/257 instructions
  • Unit: 90.19269% → 90.19972%
  • Current-main global: 99.7289% → 99.72892%
  • Col remains 92.47577%, byte-identical; exact/code/data/link totals unchanged

Unlike the previous capped adaptive run, this audit compiled a fixed center plus all 1,247 distinct immediate swap/move neighbors exactly once. No adaptive steps. Snapshot 0256 is the sole strict improvement. Parent independently rebuilt all 1,248 official reports, checked snapshot hashes, and independently enumerated the full neighborhood to verify coverage. The new winner has only 5/1,247 neighbors observed, so no fixed-point or global-optimum claim is made for it.

Independent parent verification

Rebased and rebuilt on 5a2bf89d0c. Tested tree 70ac35d636.

  • All 1,027 units/functions checked with no regressions
  • Exact/code/data/link, sibling bytes and allocated non-code sections preserved
  • Pool identical; both-function literal audit has zero errors/skips
  • Separate scalar integer/alias model: 6,569 vectors / 19,707 object executions, including 2,208 fitting input/output overlaps; full 257-instruction coverage
  • JPEG differential suite: 9,456 paired cases passes with ABI checks
  • Full default build/progress, explicit 43U/ok, main/leaf/diff checks pass
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

These are bounded interpreter diagnostics, not formal proof or hardware execution. No original binary/disassembly is included. Evidence: tools/decomp-assist/allhands-jpeg-lumi-fixed-neighbors.attempts.md. Draft for human review; no merge or auto-merge requested.

Note

Reorder n/o declarations in TMCJPEGDEC_IdctBlock_Lumi

Swaps the declaration order of the two uninitialized local scalars in TMCJPEGDEC_IdctBlock_Lumi so n comes before o. Types, assignments, and all executable code are unchanged. Adds an audit record in allhands-jpeg-lumi-fixed-neighbors.attempts.md covering the 1,247 single declaration-order neighbors scored and the selected swap.

Macroscope summarized 8f3173b.

## Minimal fixed-neighborhood result Swap only the existing uninitialized n/o declaration positions in Lumi. All arithmetic, assignments, scopes, types, accesses, inner declarations, tmp/dst and siblings remain unchanged. - Lumi: 86.15953% → 86.178986%; 257/257 instructions - Unit: 90.19269% → 90.19972% - Current-main global: 99.7289% → 99.72892% - Col remains 92.47577%, byte-identical; exact/code/data/link totals unchanged Unlike the previous capped adaptive run, this audit compiled a fixed center plus all 1,247 distinct immediate swap/move neighbors exactly once. No adaptive steps. Snapshot 0256 is the sole strict improvement. Parent independently rebuilt all 1,248 official reports, checked snapshot hashes, and independently enumerated the full neighborhood to verify coverage. The new winner has only 5/1,247 neighbors observed, so no fixed-point or global-optimum claim is made for it. ## Independent parent verification Rebased and rebuilt on 5a2bf89d0c590bbc5996636cb8cfa0c791287caf. Tested tree 70ac35d6367b2d45f88d2a0b6d1061d4223d1bb8. - All 1,027 units/functions checked with no regressions - Exact/code/data/link, sibling bytes and allocated non-code sections preserved - Pool identical; both-function literal audit has zero errors/skips - Separate scalar integer/alias model: 6,569 vectors / 19,707 object executions, including 2,208 fitting input/output overlaps; full 257-instruction coverage - JPEG differential suite: 9,456 paired cases passes with ABI checks - Full default build/progress, explicit 43U/ok, main/leaf/diff checks pass - DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d These are bounded interpreter diagnostics, not formal proof or hardware execution. No original binary/disassembly is included. Evidence: tools/decomp-assist/allhands-jpeg-lumi-fixed-neighbors.attempts.md. Draft for human review; 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 `n`/`o` declarations in `TMCJPEGDEC_IdctBlock_Lumi` > Swaps the declaration order of the two uninitialized local scalars in `TMCJPEGDEC_IdctBlock_Lumi` so `n` comes before `o`. Types, assignments, and all executable code are unchanged. Adds an audit record in [allhands-jpeg-lumi-fixed-neighbors.attempts.md](https://github.com/coah80/wii-ipl/pull/1095/files#diff-8e6fb1c445c1e2f08acee80691d928c8df2f6140f4f5927f57468c5b8fc71c40) covering the 1,247 single declaration-order neighbors scored and the selected swap. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 8f3173b.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 11:38:34 +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.