Repository navigation
C++ a case label is not a function; oracle: statement-in-head misparse; edge-classic callgraph passes (Part of #6266) - #6771
Merged
Conversation
…isparsed head stay the caller's; edge-classic callgraph passes (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
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 #6266. Slice: edge-classic (1 miss, 8 scored engine-only) now passes DOOM-rosetta check 7;
callgraphdropped from itsexpected_fails.Checklist: partial [c:9e7fe6a3] -- edge-classic's shapes fixed; eternity, odamex, gzdoom, doom3-bfg, srb2, helion, doomsday, kocoa-doom still have shapes
Checklist: partial [c:0254d813] -- edge-classic done; 8 ports still list
callgraphChecklist: partial [c:84996f5e] -- count not posted until the last port lands
File count: 5 hand-written (
cpp.py,callgraph_oracle.py,test_callgraph_oracle.py,test_func_start_case_label_6266.py,manifest.csv). The 3tests/golden_doom_rosetta/*.json.gzare regenerated bydoom_rosetta_check.py --update(goldens do not count).Shapes (engine vs oracle)
case uint32_t(kX):before a block read as a function nameduint32_t(cppfunc_start), cuttingEnableCustomEnvironmentshort (1 miss) and making everyuint32_t(..)cast an edge (1 absent)casejoins the leading keyword guard incpp.py(C already passed: tests cover both)test_func_start_case_label_6266.pyCLEAR_MEMORY(a, bool, 16);read by tree-sitter as a definition head holding the following statements: counted as a real nested function, so its calls vanished from the oracle (Reset,FillSpriteFrames: 7 absent)_is_real_nested_functionrejects a head with a top-level;(a lambda;inside a ctor initializer does not count)test_callgraph_oracle.py(2 tests)Evidence
;, now pinned by a test).doom_rosetta_checkgoldens re-blessed for gzdoom, srb2, edge-classic only.pr_gates --fast9/9,--ratchets9 pass.callgraph_baseline.jsonis not regenerated (numbers only improved).Class / Sibling gaps
Class: C/C++ statements that look like a definition to the head regex or to tree-sitter. Handled here:
case X(..):label (cpp; c verified already fine), statement-in-head misparse in the oracle. Sibling gaps (not in this PR): eternity (13 absent, 5 statement + 3 unparsed misses), odamex (30 absent, 21 misses), gzdoom (6 misses, 20 absent), doom3-bfg (3 unparsed, 5 absent), srb2 (2 unparsed, 19-> 14 absent, 28 macro), doomsday (59 misses, 230 absent), helion and kocoa-doom (no baseline row; ts oracle). Each is a different shape list; start fromcallgraph.mdafter a scan.Remaining slices
Per-port shape breakdown per remaining port, smallest first: doom3-bfg, srb2, eternity, gzdoom, odamex, doomsday; then helion, kocoa-doom.
🤖 Generated with Claude Code