Repository navigation
Shell: nameless block after a one-line function does not borrow its name; sqldoom callgraph passes (Part of #6266) - #6759
Conversation
… name; sqldoom callgraph passes; re-bless doomsday (Part of #6266) Mode D's Anonymous_Block name lookback walked back to the previous non-empty line, which for `if ! up; then` below `up() { psql ...; }` (#5640 one-liner) recovered `up` and anchored a second `up` unit over the whole `if` block. A shell one-liner is now a stop in that lookback. sqldoom: 543 -> 542 functions, callgraph engine-only 1 -> 0, drops `callgraph` from expected_fails. doomsday: golden was stale since #6753 (engine-only 480 -> 234). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6759 @ 1de43e7: 3 failed check(s) == shard 1 (1669449 LOC) (failure) -- real == shard 2 (1666363 LOC) (failure) -- real == shard 3 (1667394 LOC) (failure) -- real |
Part of #6266 (DOOM-rosetta check 7).
What
gitgalaxy/core/detector.py, Mode D): anAnonymous_Blockopener (if ! up; then) looks back to the previous non-empty line for a name. Below a Call graph small shapes: shell functions record no calls; Scheme calls inside lambda; Lua call after '..'/not; Tcl command after '}' #5640 one-linerup() { psql ...; }it recoveredupand anchored a secondupunit over the wholeifblock (sqldoomscripts/run_with_server.sh:10, the one scored engine-only edge). A shell one-liner now ends that lookback.test_shell_nameless_block_after_a_one_line_function_does_not_borrow_its_name(if / while / case), intest_calls_out_small_shapes_5640.py(120 pass).expected_failsfunctions callgraph->functions(thefunctionsentry is the ruled counting convention and stays).failsfunctions callgraph->functions, verdict 5/7 -> 6/7, onlyrun_with_server.shchanged) and doomsday (stale since DOOM callgraph: export-macro class_start and nested-qualified ctor owner (Part of #6266) #6753: engine-only 480 -> 234, precision 0.9618 -> 0.9653).Evidence
doom_rosetta_check.pyrescan at this HEAD: every other portok; drift only in doomsday and sqldoom, both blessed.crucible_check.py, both legs): PASS, no bless needed.pr_gates.py --fast9/9; shell/5640 tests 608 pass.callgraphexpected_fails (9): eternity (20 misses / 13 engine-only), odamex (22/53), gzdoom (119/21), doom3-bfg (3/5), srb2 (2/19), helion (59/9), doomsday (144/234), edge-classic (2/8), kocoa-doom (14/0).Class sweep
Class: a nameless block opener's name lookback adopting a self-contained one-line declaration above it. Other languages are already guarded by
oneliner_decl_pattern+end(#2438); shell was the one language whose one-liners (#5640) bypassed it.Sibling gaps: Tcl one-line
proc f {} { x }followed by a top-levelif {..} {was not checked here; none confirmed.Checklist: done [c:ba02333e]
Checklist: partial [c:0254d813] -- sqldoom now passes callgraph; 9 ports still list it (counts above)
Checklist: partial [c:9e7fe6a3] -- the 9 ports' remaining miss / engine-only shape classes
🤖 Generated with Claude Code