Repository navigation
C/C++: a backslash-continued directive is blanked to its last line (Part of #6266) - #6793
Conversation
… local multi-line #define no longer leaks calls (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…e bodies drop (Part of #6266) Drift is only the continued-directive leak fixed in the previous commit: cpython ceval.c/compile.c, godot object.cpp/gdscript_vm.cpp, racket eval.c lose macro-body callees (defined, Py_STRINGIFY, SCHEME_*). 165324 -> 165305 call pairs; both fixtures move identically. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #6793 @ f54a551: 1 failed check(s) == call-graph-accuracy-audit (failure) -- real |
|
No description provided. |
|
No description provided. |
|
PR #6793 @ d21906f: 1 failed check(s) == call-graph-accuracy-audit (failure) -- real |
…ter #6793 (Part of #6266) (#6799) * Call-graph accuracy baseline: accept the C++ destructor-name and conversion-operator decisions (Part of #6266) cpp recall 99.7 -> 99.0 (FN 24 -> 77), precision 96.6 -> 98.2 (FP 271 -> 137). Bisected on the language-crucible: 25 -> 38 FN at #6762 (x->~T() is the unit ~T, tree-sitter says T), 38 -> 77 at #6776 (String(operator Vector2()) names a conversion operator, not the Vector2 type; read in godot variant.cpp). Neither PR refreshed this baseline; #6793 does not move it (the pre-#6793 parent measures the same 99.0). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-bless DOOM-rosetta: #6793 continued-define leak lowers engine-only callgraph on 6 ports (Part of #6266) Only callgraph fields move: woof, odamex, doom3-bfg, srb2, doomsday, nugget-doom gain precision (nugget-doom unscored 21 -> 0, srb2 55 -> 27). Cost: 4 misses (srb2 2 -> 4, odamex 21 -> 23) where a macro defined inside a function is invoked in it (HWR_RenderPlane SETUP3DVERT, md5_process H): the oracle credits the body to the invoking function, the engine no longer does. Macro expansion is a sibling gap. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-bless DOOM-rosetta: #6796 dead_code prose/URL fix drops 1-2 DEAD_CODE findings on 4 ports (Part of #6266) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-bless DOOM-rosetta: #6796 dead_code fix drops 1 DEAD_CODE finding on chocolate-doom, crispy-doom, doo-cr (Part of #6266) Full 44-port doom_rosetta_check at this head: only these three drift, summary counts only (by_level, by_rule, sarif_total); the other 41 match. Co-Authored-By: Claude Opus 5.5 <[email protected]> * affected gate: run the pytest on PATH when the interpreter has none (precheck 6 s red on #6799) Churn's precheck runs pr_gates under /usr/bin/python3, which has no pytest, so `sys.executable -m pytest` failed `affected` in 6 s on every branch whose change reaches a test; under the selfscan venv it passed, so earlier runs could not reproduce it. Fall back to the `pytest` on PATH with this checkout first on PYTHONPATH (the same trap pr_gates' _tool_bin_dir closes for ruff). Part of #6266. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #6266 (DOOM-rosetta check 7,
callgraph).What
Fix location: engine (
gitgalaxy/core/detector.py,_apply_literal_shield). The shield treats#///as a line comment ending at the first newline, so a backslash-continued#definekept its 2nd..nth lines live and every call in the macro body leaked into the enclosing function's call list. For C/C++/Objective-C a directive or//comment now ends at the first newline not escaped by\; the blanked span keeps its newlines, so line numbers do not move.This was the largest remaining scored shape class: engine-only
macroedges (~46 across srb2, doomsday, odamex, doom3-bfg).Tests
tests/extraction/languages/test_c_family_continued_directive_6266.py(5 tests): continued define blanked, line numbers preserved, lone backslash not a continuation, CRLF continuation (C), and a plain single-line define unchanged.Golden re-bless (both fixtures,
golden-lock.sh crucible_check.py --update --yes)Drift is only this leak: 19 call pairs drop (165324 -> 165305) in cpython
ceval.c/compile.c, godotobject.cpp/gdscript_vm.cpp, racketeval.c(defined,Py_STRINGIFY,_PyObject_ASSERT_FAILED_MSG,SCHEME_*, ...). Both fixtures move identically; no other section changed.Verification
pr_gates --fast9/9,pr_gates --ratchets9 pass, tree-wide guard tests + new tests 334 passed. Merge with main is clean.Class / Sibling gaps
Class: a C-family directive or comment whose continuation the shield does not follow.
\-continued//comment is covered here;/* */is handled by the prism splitter).expected_failsis unchanged. Remaining misses per port (burned-estate program needing each: none, DOOM ports are not mainframe): srb2absent14 (hw_main.c:356 HWR_RenderPlane,lua_hudlib.c:878 libd_drawString) andunparsed(win_dbg.c,p_user.c FixedAngle); doomsday ~35 misses / 28 absent; odamex ~21 / 27; gzdoom ~22; eternity ~12; doom3-bfg ~12; kocoa-doom not examined.Remaining slices
absentclass (srb2, doomsday, odamex): next largest scored class.unparsedmisses (functions the engine does not open).callgraph_baseline.jsonrefresh (not done here; no baseline row was hand-edited).Checklist: partial [c:0254d813] -- continued-define macro class fixed; absent/unparsed classes and the per-port 0/0 +
expected_failsdrops remain.Lessons for agents
git diff --staton golden-master JSON showsBin/-(diff attribute unset): usegit diff -a -U0to read the real drift.🤖 Generated with Claude Code