decomp: reconstruct alpha restriction gates and suffix fallback #966
Reference in New Issue
Block a user
Delete Branch "agent/bittle/alpha-reconstruction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Decompilation-first correction
Fixes five alpha-engine gates that tested completionAllowed instead of currentVowelRestriction, plus a retry condition that tested dictionaryKind instead of dictionaryIndex. Restores target-order suffix-lock/alternate-prefix fallback and language snapshot placement. No headers, helper prototypes, linking flags, metadata, data arrays, assembly or padding changes.
Target evidence
Variable identities are traced through definitions/uses, not assumed from equal stack offsets. Target table-31 bit-4 handling at +0x0798 clears current restriction in stack0x84/primary snapshot0x8C; bit-2 handling at +0x07C8 clears completion in0x88/0x90. Source slots are four bytes lower. The five gates at +0x2114,+0x2214,+0x32F4,+0x3384,+0x3664 read target0x84. Target +0x1430 uses dictionaryIndex at0x64 to load/store dictionaryKind at0x60; +0x3060 retry and subsequent increment use0x64. Parent independently checked these target instructions.
Fresh verification on
580b79f4Larger prototype/layout experiments with data-metric regressions are deliberately excluded. This is a focused semantic/control-flow reconstruction, not a new exact match or runtime equivalence proof. Remote tree6156e190a06db5c411d584eee4cca0e86c457b1a equals tested tree. Left for review; no merge performed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.