Repository navigation
DOOM call-graph oracle: nested function calls credited to the nested function (Part of #5630) - #5906
Merged
Merged
Conversation
… not the outer (Part of #5630) Owner ruling nyx-o8. GNU C nested functions were folded into the enclosing body; the #ifdef-split `else if` misparse stays with the enclosing body. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 21, 2026 20:12
squid-protocol
enabled auto-merge (squash)
October 21, 2026 20:14
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 #5630. Does not close #5634 (see below).
Owner decisions
nyx-o8 (2026-10-21, owner via Claude): "Credit nested-function calls to the outer function?" -> no. "Change the checker: queue a fix so the call-graph oracle credits calls inside nested functions to the nested function (engine convention stays), re-run the #5630 oracle, and close #5634 if 0 misses remain. Note the convention in the oracle README."
Changes
callgraph_oracle.py:Bodyskips a real nestedfunction_definition(GNU C nested function) so its calls go to the nested function, as the engine does. A C++ local-class method was already its own unit. The#ifdef-splitelse ifthat tree-sitter reads as a nested definition (type/name is a keyword) still stays with the enclosing body (text fallback).Not done (needs owner/orchestrator)
--only allre-run andcallgraph_baseline.jsonrefresh not done. No scan exists at the baseline's engine sha (42488957a); a re-run needs a fetch plus a 20-port scan at current main. I ran the oracle on the 2 ports available in the old study scans atb81b19f78, before and after the change: identical numbers (the change touches only GNU C nested functions, which the C/C++ DOOM ports do not use). Refreshing the baseline from a new scan would also fold in unrelated engine drift, so it should be its own step.doom-study/study-prototype/callcheck_*.py,consensus_xlang.py, outside the worktree); the in-repo oracle is C/C++ only. The two nested-function edges from Call graph (Rust/Go): Rust macro invocations linked to a same-named fn, calls inside Rust struct literals / vec![] args missed, Go generic instantiation call missed #5634 come fromcallcheck_rustgo2.pyand need that prototype changed outside this repo.Gates:
pr_gates.py --fast7/7;tests/tools/test_callgraph_oracle.py13 passed. Ratchets not run (no engine/golden change).🤖 Generated with Claude Code