Repository navigation
Nested macro names leave Calls Out To; re-bless against main (Part of #6770) - #6903
squid-protocol wants to merge 6 commits into
Conversation
…acro name (#6770) A function-like macro another macro's body invokes (micropython `BLOCK_SHIFT(b)`, a pure arithmetic macro) was added to the caller's calls_out_to: the compiler calls no macro. The repo table now keeps every function-like macro (empty set when it calls nothing or two files disagree), and the expansion recurses through those instead of listing them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…6770) Goldens re-blessed with golden-lock/crucible_check on current main (calls_out_to, graph_sqlite, llm_brief); DOOM rosetta callgraph_unscored drops on five ports; call_graph_accuracy baseline refreshed (main alone already moved c/cpp/tcl; this change adds c precision 97.4 -> 97.7). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No description provided. |
…#6770) Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
CI shepherd: the head of this PR (0d4915d) is not the one a maintainer labelled |
|
No description provided. |
|
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push. |
|
No description provided. |
Pull request was closed
…6770) (#6922) * Nested macro names leave Calls Out To (Part of #6770) Macro expansion in calls_out_to lists the functions a macro reaches, never a nested macro name. Regraft of #6903 onto current main. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Re-bless goldens, DOOM rosetta and call-graph baseline for nested macro names (Part of #6770) Co-Authored-By: Claude Opus 5.5 <[email protected]> * Re-bless fastdoom/srb2 and call-graph baseline on top of #6908 (Part of #6770) Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Part of #6770. Lands the 3 commits of
churn/6770-macro-body-callsthat #6881 merged without (cherry-picked f7b5bcb, 5d1ee9f; the bless commit 2451127 redone on current main). Branchchurn/6770-20261028T0707Zheld only 76553f7, already in #6881: nothing to take.Checklist: partial [c:93af939e] -- libclang reference
static inlineheader edges (clang_callgraph.py) not touched hereChange
Macro expansion in
calls_out_tolists the functions a macro reaches, never a nested macro name (detector.py,test_macro_body_calls_6770.py).Baseline refresh, traced per PR
golden_master_audit,zero_dep): re-blessed viagolden-lock.sh crucible_check.py --update --yes; onlycalls_out_to,graph_sqlite,llm_briefmove.summary.callgraph_unscored(e.g. srb2 2531 -> 2049). Control with main's detector: chocolate-doom/fastdoomok, so the drift is this PR's.call_graph_accuracy_baseline.json: the control on main's detector already fails the gate (c precision 99.4 -> 97.4, c recall 99.3 -> 96.4, cpp recall 99.0 -> 97.6, tcl recall 71.2 -> 69.3; the baseline was last refreshed in Re-bless DOOM-rosetta and refresh the call-graph accuracy baseline after #6793 (Part of #6266) #6799, so calls_out_to: drop calls in dead preprocessor branches (#6770) #6870/calls_out: tcl switch arm bodies and scheme let binders (Closes #5909) #6864/calls_out_to: expand function-like macro bodies at the use site (Part of #6770) #6881 never refreshed it). This PR's own effect: c precision 97.4 -> 97.7. Not separated between calls_out_to: drop calls in dead preprocessor branches (#6770) #6870/calls_out: tcl switch arm bodies and scheme let binders (Closes #5909) #6864/calls_out_to: expand function-like macro bodies at the use site (Part of #6770) #6881 individually.Class / Sibling gaps
Class: names a macro expansion can put in Calls Out To (function names vs nested function-like/object-like macro names). Member handled: nested macro names are dropped, functions they reach are listed (tests cover nested depth). Sibling gaps:
tests/tools/doom_speedrun/callgraph_baseline.json(nightly C/C++ oracle, needs--clangand fetched ports) not refreshed here; refresh on the nightly run. libclangstatic inlineheader blind spot (c:93af939e) remains.Re-merge with main (2026-10-28, after #6894/#6895/#6878)
Merged
origin/main(no rebase). Took main's side on the 3 conflicting generated files, then regenerated them with their tools:crucible_check.py --update --yesmoved onlyllm_brief(both fixtures);doom_rosetta_checkon the five ports: only doomsday drifted,summary.callgraph_unscored4669 -> 4642 (same drift class as above, on top of #6895's re-bless), blessed.call_graph_accuracy --ciOK.pr_gates --fast9/9,--ratchets9/9.Gates
pr_gates --fast9/9;--ratchets9/9;call_graph_accuracy --regenerate;doom_rosetta_checkfull run: only the five drifts above, blessed.🤖 Generated with Claude Code