Skip to content

call_resolver: bare f( in Scope::f reaches the free f, not recursion (Part of #5628) - #5788

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5628-call-resolver-20261020T2152Z
Oct 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5628-call-resolver-20261020T2152Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5628 (part 3: the call_resolver gap left by #5698).

What

resolve_calls: a bare f( inside Scope::f resolved on the class rung to Scope::f itself and was dropped as recursion, so the resolved fcall_data edge to the free f was missing even though the detector (#5698) kept the call. When a bare call (no qualifier / empty qualifier) resolves to the caller itself and a free f exists, it is now re-resolved through the free ladder. this->f / Scope::f( never reach the resolver (the detector drops them); true recursion is dropped by the detector, so nothing changes there.

Files (2): gitgalaxy/core/call_resolver.py (+14), tests/core_engine/test_call_resolver_scoped_same_name_5628.py.

Class

member status
C++ Scope::f -> free f (same file) fixed, test
C# explicit interface impl IEnumerable.GetEnumerator -> GetEnumerator already resolved (class rung, line of the class method); pinned by test
true recursion (C++ free, Scope::f alone) kept dropped, test
this->f / Scope::f( kept dropped, test
free f gaining an edge from a scoped namesake none, test

Evidence

  • Real scan, gzdoom + odamex (doom_speedrun pinned SHAs), engine main vs this branch: gzdoom fcall_data 46594 -> 46762 (+168); Scope::x -> x call rows 363 -> 531, all with a resolved destination; 0 edges point at their own source. odamex unchanged (20311 both; 90 such rows). DOOM body oracle on this branch: odamex recall 0.9981 / precision 0.9673, gzdoom recall 0.9865 / precision 0.9483 (oracle scores calls_out_to, ignores self-edges).
  • Direct self-recursion counts in the issue table are by design: owner ruling 2026-10-19 keeps recursion dropped (#3265 step 0: state the calls_out contract (what counts as a call) #3327, DOOM call-graph oracle: pin that self-edges are ignored, not scored as misses (Part of #5630) #5700). Not a miss; not changed.
  • Goldens: crucible_check.py (both legs, golden-lock) PASS, zero diff, no bless. pr_gates --fast 6/6, --ratchets 8/8. 96 resolver/detector tests pass.

Sibling gaps

member status why not here
cross-file free f called from Scope::f in another file still missing: the detector drops the bare call unless a same-named unit is in the SAME file (_drop_own_leaf_recursion); the resolver would resolve it detector change, golden-affecting
languages whose scoped unit names are bare (no Scope:: prefix; Python/Ruby/Java methods named by leaf) unverified: leaf==caller leaf is dropped as recursion before the resolver, so a method calling a same-named free function is not separable needs per-language probe
gzdoom unparsed/statement oracle misses (261/165) other classes not #5628

Cross-repo: none.

🤖 Generated with Claude Code

…ping as recursion (Part of #5628)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 20, 2026 22:17
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 22:21
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant