Implements a two-pass solution for issue #1648 where statically linked
library functions (like __divdc3) were incorrectly filtered out even
when directly called by user code.
Changes:
- Add collectReferencedFunctions() method that scans assembly for function calls
- Modify binary filtering logic to keep functions that are either:
- User functions (existing behavior), OR
- Referenced by user functions (new behavior)
- Add comprehensive test case with __divdc3 usage
The fix ensures that functions like __divdc3 are now visible when called
from user code, while still filtering out unreferenced library functions
to avoid excessive output.
Fixes#1648🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>