Repository navigation
DOOM call-graph: triage the libclang clean-file disagreements, puredoom first (Part of #5630, slice 3) - #6769
Merged
Conversation
…reference (Part of #5630, slice 3) Classifies puredoom's 61 (and the other ports' 17) by shape in the doom_speedrun README. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
3 tasks done
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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, slice 3 of 3 (after #6768). Docs only: the README of
tests/tools/doom_speedrun/gains a triage table of the libclang reference's clean-file disagreements (puredoom 61, nugget-doom 6, woof 6, inter-doom 3, doomretro 2), each read in source at scan2ac09c8ae; and the stale "#if 0 counts on both sides" line is corrected.Triage (puredoom 61 = 27 + 34)
#if 0(13) or#if defined(I_NET_ENABLED), macro never defined (14,i_net.c)calls_out_tocounts the dead branchZ_ChangeTag->Z_ChangeTag2/I_Error/doom_*: 28;FTOM/MTOF/CXMTOF->FixedMul: 6)static inlinefunction in a header (p_saveg.h,m_array.h: 14 edges, nugget-doom, woof, doomretro)stbiw__sbgrowmacro ->stbiw__sbgrowf(inter-doom)Baseline (
callgraph_baseline.json,clangsection, as committed by #6768)Class / Sibling gaps
Class: clean-file disagreements between the engine's
calls_out_toand the libclang reference on the C ports; all 78 members classified above (the 10 other ports have none). Nothing in this PR changes the engine, so no golden moves. Sibling gaps (for the orchestrator to file):calls_out_to(#if 0,#if defined(X)with X never defined): 27 engine-only edges on puredoom (e.g.D_DoomLoop -> I_InitGraphics,R_StoreWallRange -> FixedDiv,i_net.c). Different mechanism from Dead C preprocessor branches (#if 0) are counted at file and function level; the macro shield only serves brace matching #2814 (closed; file/function signals): the call lists still read the dead text. Source: puredoomsrc/DOOM/d_main.c:305-385,r_segs.c:418-431,i_net.c:280.Z_ChangeTagandFTOM/MTOF, inter-doomstbiw__sbgrow). Needs a decision (expand at the use site, or accept as a by-design limit); not fixable by a regex tweak alone.static inlinefunctions defined in a header (nugget-doom/woofp_saveg.h, doomretrom_array.h: 14 edges); candidate forclang_callgraph.py.Evidence / gates
doom_clang_calls.py --sha 2ac09c8aereproduced the committed numbers (puredoom 61; the other four as listed). The scan is from 2ac09c8, not HEAD (HEAD adds only the #6767 def/function/include rule, which none of these edges touch).test_callgraph_oracle.py56 passed;test_change_classifier,test_sweep_plan,test_source_reads132 passed.pr_gates --fast/--ratchetsnot run: README-only change (skipped, not passed). Remaining slices: none for triage; fixes are the sibling gaps.🤖 Generated with Claude Code