Repository navigation
calls_out: keep a scoped unit's call to a different same-named unit (Part of #5628) - #5698
Merged
Merged
Conversation
…Part of #5628) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
4 tasks done
squid-protocol
marked this pull request as ready for review
October 20, 2026 07:23
squid-protocol
enabled auto-merge (squash)
October 20, 2026 07:23
Owner
Author
|
No description provided. |
Contributor
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5628 (part 2 only; part 1, self-edges in the DOOM oracle, is #5630).
Owner decisions
Owner ruling 2026-10-19 (#5628 part 2): self-recursion stays dropped per #3327; a call to a different same-named unit in another scope (
Scope::X-> freeX, C# explicit interface implIEnumerable.GetEnumerator() => GetEnumerator()) is a real bug: keep the edge when a distinct unit of that name exists in another scope; still drop when the only candidate is the caller itself or resolution is ambiguous; keep #3360 nested-declaration drops. Tests: C++Scope::f-> freef, the C# explicit-interface case, direct recursion still dropped, #3360 shapes. One clarifying line in the contract doc. Golden re-bless with the drift explained.What changed
detector.py: in aClass::leaf/Iface.leafunit, a bareleaf((calls_out (cpp/ts/c#): generic callsname<T>(missed; cpp ownClass::method(header andType var(args)counted as calls #3644's own-leaf drop) is now kept tentatively;_drop_own_leaf_recursion(run after slicing, with the file's units known) drops it unless the file has a different unit named exactlyleaf.this->f(,Scope::f(, and the unit's own header stay dropped.Other::fis not a candidate (a bare name cannot reach it). Thec != self_namecheck needed no change: a scoped unit's name never equals the bare callee.docs/calls_out_rule_contract.md: one clarifying sentence on the Recursion row.tests/extraction/languages/test_calls_out_scoped_same_name_5628.py: C, C++, C#, plus #3327 follow-up: nested declarations captured as calls (contract C5) #3360 shapes.Class table
Scope::f-> freef(same file)Iface.M-> same-classMthis->f,Scope::f(,Other::fEvidence
Scope::f-> same-file freefedges gained over ~600.cppfiles of the local DOOM ports (e.g.FDecalLib::AddDecal,DFloor::StartFloorSound,Operator::keyOn).crucible_check.py, both legs): PASS with zero diff, so no re-bless: the crucible corpus has no unit of this shape. No fixture changed.pr_gates --fast6/6,--ratchets8/8 (0 skipped), tree-wide guards 184 passed, the five calls_out test files 113 passed.Cross-repo
None.
🤖 Generated with Claude Code