decomp(fat): align MBR traversal declarations #1064

Merged
coah80 merged 1 commits from agent/bittle/mbr-declarations-review into main 2026-10-03 06:15:49 +00:00
coah80 commented 2026-10-03 06:14:23 +00:00 (Migrated from github.com)

Small declaration-order gain

Move only the two existing, genuinely used, uninitialized pointer declarations before the existing traversal scalars. Scope, executable statements, endian helper, initialization and evaluation order are unchanged. No new locals, casts, register hints or archived expression changes.

  • MBR classifier: 86.5% → 87.39286%, 86 source / 84 original instructions
  • Unit: 98.779335% → 98.86006%; all 19 exact functions and data preserved

This is a partial fuzzy gain using the repository's declaration-order workflow, not a new exact function or linking claim. The older 88.583336% result belonged to a different expression seed and is not claimed here.

Independent verification

Base b7a06e9d82e35cda3de92a6135db491000722791; tested tree 851a2fd588.

  • Full 43U build/report/DOL passed; all 1,027 units compared, only MBR fuzzy changes, zero regressions
  • Source proof: removing the moved declarations leaves identical executable text
  • 3,800 actual PPC/oracle cases cover every MBR source/original instruction and every MBR branch edge
  • All 336 original MBR bytes agree directly with verified DOL
  • All 19 exact functions independently instruction-exact; all other code and allocated nontext content/metadata unchanged
  • Pool empty/identical; literal audit 19 functions, no candidates/errors; MBR skipped for unequal extent
  • DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; worktree/diff checks pass

No source-helper, compiler-setting, header or linking change.

Note

Align MBR partition declarations in pdm_part_is_master_boot_sector

Moves the declarations of the partition start and count pointer variables ahead of the other locals in pdm_partition.c. No executable code or logic changed.

Macroscope summarized a309989.

## Small declaration-order gain Move only the two existing, genuinely used, uninitialized pointer declarations before the existing traversal scalars. Scope, executable statements, endian helper, initialization and evaluation order are unchanged. No new locals, casts, register hints or archived expression changes. - MBR classifier: 86.5% → 87.39286%, 86 source / 84 original instructions - Unit: 98.779335% → 98.86006%; all 19 exact functions and data preserved This is a partial fuzzy gain using the repository's declaration-order workflow, not a new exact function or linking claim. The older 88.583336% result belonged to a different expression seed and is not claimed here. ## Independent verification Base b7a06e9d82e35cda3de92a6135db491000722791; tested tree 851a2fd588ba51775f15f9d65a1503b75775267b. - Full 43U build/report/DOL passed; all 1,027 units compared, only MBR fuzzy changes, zero regressions - Source proof: removing the moved declarations leaves identical executable text - 3,800 actual PPC/oracle cases cover every MBR source/original instruction and every MBR branch edge - All 336 original MBR bytes agree directly with verified DOL - All 19 exact functions independently instruction-exact; all other code and allocated nontext content/metadata unchanged - Pool empty/identical; literal audit 19 functions, no candidates/errors; MBR skipped for unequal extent - DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d; worktree/diff checks pass No source-helper, compiler-setting, header or linking change. <!-- 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] > ### Align MBR partition declarations in `pdm_part_is_master_boot_sector` > Moves the declarations of the partition start and count pointer variables ahead of the other locals in [pdm_partition.c](https://github.com/coah80/wii-ipl/pull/1064/files#diff-3e69bca91f014a5a9674620e21e6c970746fa4dcf9b75a18c3014a40791f9df3). No executable code or logic changed. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized a309989.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-03 06:15:47 +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.