Skip to content

Analysis: Use stricter function terminator checks in prologue detection#135

Merged
encounter merged 1 commit into
encounter:mainfrom
bluisblu:main
Feb 23, 2026
Merged

Analysis: Use stricter function terminator checks in prologue detection#135
encounter merged 1 commit into
encounter:mainfrom
bluisblu:main

Conversation

@bluisblu

Copy link
Copy Markdown
Contributor

Fixes #111

Tested against GQPE78 and R42P69 with identical dol info output.

@encounter

Copy link
Copy Markdown
Owner

Thanks!

@encounter encounter merged commit aa635e1 into encounter:main Feb 23, 2026
15 of 16 checks passed
freeqaz added a commit to freeqaz/jeff that referenced this pull request Jun 9, 2026
Cherry-picked from encounter/decomp-toolkit aa635e1 (encounter#135, by bluisblu).
Swaps the prologue-split heuristic from is_end_of_seq to a stricter
is_function_terminator (blr / b / rfi / addi r1,r1 / lwz r1,d(rN!=r1)), so two
prologue-like sequences are only split when a real function terminator separates
them. Applies cleanly to jeff's prologue loop; builds green.

Skipped the companion upstream jump-table clamp (89106d0): jeff already clamps
independently (analysis/mod.rs: available.min(requested)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Analyzer finding false start of a function, causing a symbol collision

2 participants