fix(odh): represent Huffman trees as halfword nodes #1025
Reference in New Issue
Block a user
Delete Branch "agent/bittle/odh-node-type-review"
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?
Source type reconstruction
Represent each of the two Huffman trees as 24 explicit const u16 nodes, and use const u16 pointers in the local tree record. The decoder actually loads halfword nodes and relative halfword indices; the former packed-u32 representation required mismatched object accesses.
Both original 48-byte big-endian tree payloads are preserved. No algorithm, public decoder signature, caller ABI, field offset, forced alignment or padding changes.
Independent parent verification
Existing malformed overlong zero-run behavior is shared with the original and excluded from the bounded harness; no new validation or complete-image/Wii runtime equivalence claimed. No percentage gain or new exact function. Only owned source types plus evidence log change.
Base:
a5e49ea578Tested tree:
26bb4c3450DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d
No merge performed or requested by this author.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.