decomp(bs2): BS2Tick data TOC and banner locals (71 -> 57) #1295

Merged
coah80 merged 1 commits from agent/w0929/sol-m7b-land into main 2026-10-09 00:32:31 +00:00
coah80 commented 2026-10-09 00:32:28 +00:00 (Migrated from github.com)

worker 3aedfb87. instruction-exact functions: 27/29 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d

worker 3aedfb87. instruction-exact functions: 27/29 gate: 0 regressions, 0 forbidden, 0 readability, dol sha1 26116613f624061ba99c8d1a299aaa6efa85670d
graphify-labs[bot] (Migrated from github.com) reviewed 2026-10-09 00:36:42 +00:00
graphify-labs[bot] (Migrated from github.com) left a comment

Graphify reviewed this change.

Looks safe to merge — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment).


Graphify review — findings

Refactors BS2Tick for codegen matching without changing behaviour. The data TOC pointer and aligned banner address now go through the new locals dataToc and bannerAddress before being stored to DataToc and BannerBuffer, and readInterruptsEnabled is scoped to the two apploader-main cases. Adds sol-m7.attempts.md, which logs the baseline, every trial with per-function difference counts (BS2Tick going from 71 to 60 differing instructions), and the source shapes ruled out for CheckBS2CommandStatus.

No blocking issues surfaced.

Analysis details — impact, health, verification

Impact & health

Graphify review

Impact — 50 functions depend on the 43 functions this change touches.

Health — grade C; 10 existing hotspot(s) in the area this change touches (pre-existing, not introduced here):

  • BS2Tick() — 1 callers, 36 callees (high)
  • BS2StartGame() — 1 callers, 30 callees (high)
  • BS2StartGCGame() — 1 callers, 29 callees (high)
  • BS2SelectUpdateEntries() — 1 callers, 19 callees (high)
  • BS2BootIRD() — 1 callers, 13 callees (high)
  • BS2TickIRD() — 1 callers, 13 callees (high)
  • UpdateStateFlagsAndBootCache() — 1 callers, 12 callees (high)
  • BS2Reboot() — 1 callers, 7 callees (medium)
  • …and 2 more

Verification — 50 functions in the blast radius were not formally verified this run (proofs are advisory here).

Gate & verification

graphify gate

PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.

Advisory (not blocking):

  • verification_scope: 50 function(s) in the blast radius were not formally verified this run
<!-- graphify-inline:2da3db64d4285c8793f3ce1ba1ba1a24963deba6 --> **Graphify reviewed this change.** **Looks safe to merge** — no coupling regressions and no blocking issues, checked against the code graph (not a self-assessment). --- ## Graphify review — findings Refactors `BS2Tick` for codegen matching without changing behaviour. The data TOC pointer and aligned banner address now go through the new locals `dataToc` and `bannerAddress` before being stored to `DataToc` and `BannerBuffer`, and `readInterruptsEnabled` is scoped to the two apploader-main cases. Adds `sol-m7.attempts.md`, which logs the baseline, every trial with per-function difference counts (`BS2Tick` going from 71 to 60 differing instructions), and the source shapes ruled out for `CheckBS2CommandStatus`. _No blocking issues surfaced._ <details> <summary>Analysis details — impact, health, verification</summary> ### Impact & health ## Graphify review **Impact** — 50 functions depend on the 43 functions this change touches. **Health** — grade C; 10 existing hotspot(s) in the area this change touches (pre-existing, not introduced here): - `BS2Tick()` — 1 callers, 36 callees (high) - `BS2StartGame()` — 1 callers, 30 callees (high) - `BS2StartGCGame()` — 1 callers, 29 callees (high) - `BS2SelectUpdateEntries()` — 1 callers, 19 callees (high) - `BS2BootIRD()` — 1 callers, 13 callees (high) - `BS2TickIRD()` — 1 callers, 13 callees (high) - `UpdateStateFlagsAndBootCache()` — 1 callers, 12 callees (high) - `BS2Reboot()` — 1 callers, 7 callees (medium) - …and 2 more **Verification** — 50 functions in the blast radius were not formally verified this run (proofs are advisory here). ### Gate & verification ## graphify gate **PASS** — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed. Advisory (not blocking): - verification_scope: 50 function(s) in the blast radius were not formally verified this run </details>
Sign in to join this conversation.