Skip to content

DOOM call-graph oracle: nested function calls credited to the nested function (Part of #5630) - #5906

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5630-20261021T2001Z
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5630-20261021T2001Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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: Body skips a real nested function_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-split else if that tree-sitter reads as a nested definition (type/name is a keyword) still stays with the enclosing body (text fallback).
  • Test pins both cases; README states the convention.

Not done (needs owner/orchestrator)

Gates: pr_gates.py --fast 7/7; tests/tools/test_callgraph_oracle.py 13 passed. Ratchets not run (no engine/golden change).

🤖 Generated with Claude Code

… 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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 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 21, 2026 20:12
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 20:14
@squid-protocol
squid-protocol merged commit 09d8871 into main Oct 21, 2026
52 checks passed
@squid-protocol
squid-protocol deleted the churn/5630-20261021T2001Z branch October 21, 2026 20:41
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

1 participant