Skip to content

C++ a case label is not a function; oracle: statement-in-head misparse; edge-classic callgraph passes (Part of #6266) - #6771

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6266-20261027T0641Z
Oct 27, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6266-20261027T0641Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Part of #6266. Slice: edge-classic (1 miss, 8 scored engine-only) now passes DOOM-rosetta check 7; callgraph dropped from its expected_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 callgraph
Checklist: 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 3 tests/golden_doom_rosetta/*.json.gz are regenerated by doom_rosetta_check.py --update (goldens do not count).

Shapes (engine vs oracle)

Shape Kind Fix Test
case uint32_t(kX): before a block read as a function named uint32_t (cpp func_start), cutting EnableCustomEnvironment short (1 miss) and making every uint32_t(..) cast an edge (1 absent) ENGINE case joins the leading keyword guard in cpp.py (C already passed: tests cover both) test_func_start_case_label_6266.py
CLEAR_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) ORACLE _is_real_nested_function rejects a head with a top-level ; (a lambda ; inside a ctor initializer does not count) test_callgraph_oracle.py (2 tests)

Evidence

  • edge-classic: misses 1 -> 0, scored engine-only 8 -> 0, verdict 6/7 -> PERFECT. gzdoom misses 10 -> 6, srb2 engine-only 19 -> 14 (same causes); doomsday unchanged (59 misses; a first draft of the oracle fix moved it +2 through a ctor-lambda ;, now pinned by a test).
  • crucible_check (both legs): zero diff. doom_rosetta_check goldens re-blessed for gzdoom, srb2, edge-classic only. pr_gates --fast 9/9, --ratchets 9 pass.
  • Not run: the full-suite, and the nightly callgraph_baseline.json is 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 from callgraph.md after 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

…isparsed head stay the caller's; edge-classic callgraph passes (Part of #6266)

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 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 27, 2026 07:15
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 27, 2026 07:15
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit cc52ddb into main Oct 27, 2026
123 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6266-20261027T0641Z branch October 27, 2026 07:24
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

Development

Successfully merging this pull request may close these issues.

1 participant