Skip to content

C++ a default-argument call in a parameter list is not a call of the unit; re-bless doomsday, eternity, odamex, godot (Part of #6266) - #6773

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/6266-20261027T0726Z
Oct 27, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/6266-20261027T0726Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6266 (Track D: finish the DOOM call-graph study).

What changed

Engine fix. A C++ default argument is evaluated at the caller, so a call written in a unit's parameter list is not a call of the unit. ActionItem(..., RefArg<Action> a = RefArg<Action>()) recorded ActionItem -> RefArg; Status(..., const Time &t = Time::invalidTime()) recorded Status -> invalidTime; List mid(size_t c = std::numeric_limits<size_t>::max()) recorded mid -> max. The oracle (tree-sitter body walk) never sees them, so each was a scored "absent" engine-only edge.

gitgalaxy/core/detector.py: _default_arg_spans finds each top-level = expr of the first parameter list (skipping operator()), and the C++ call loop skips a callee inside one. C++ only (C has no defaults). Test: tests/extraction/languages/test_calls_out_default_arg_6266.py, one case per shape (inline ctor with a template default, namespaced call default, template-comma default plus a later default, out-of-line definition) and three that must stay calls (body call, operator() with a default, function-pointer parameter).

Moves (goldens re-blessed; callgraph_baseline.json entries for the 3 moved ports regenerated)

port scored engine-only precision
doomsday 87 -> 63 (baseline row was stale: 233 -> 63, misses 144 -> 59, earlier PRs never refreshed it) 0.9674 -> 0.9677
eternity 13 -> 6 0.9869 -> 0.9873
odamex 30 -> 29 0.9811 -> 0.9812

Crucible: one function-hash drift, cpp/godot/rendering_server_default.h, with its calls_out_to and LLM-brief lines (both fixtures, blessed via golden-lock.sh crucible_check.py --update --yes). No port reaches 0/0, so manifest.csv expected_fails is unchanged.

Class / Sibling gaps

Class: a call expression in a function's declaration (not body) read as a call of the unit. Handled here: C++ default arguments. Siblings, each needing a different mechanism:

  • Same shape in other languages with defaults (Python def f(a=g()), Kotlin, C# optional params, JS): not measured here; check each port's engine-only list.
  • Conversion operators operator String() const read as a call to String (doomsday, 11 rows): engine, needs the operator-name rule in the call loop.
  • Constructor mem-initializer d(new Impl(this)) -> Impl (doomsday AboutDialog etc.): oracle/engine boundary, new of a class is a type call.
  • Base-class initializer-list edges (PackagesWidget -> GuiWidget, idStrStatic -> idStr), inline-body member reads (PPTexture -> Data): engine.
  • DE_PIMPL macro classes (doomsday, ~15 rows of the remaining scored edges + 1085 misses earlier).
  • srb2 HWR_RenderPlane/libd_drawString (9+5 rows, one function each, long body, other mechanism).

Burned-estate programs needing each: none (these are DOOM-port C++ sources, not COBOL).

Remaining slices

Next largest scored shape: doomsday operator X() conversion operators (11), then base-class initializer-list names (~8), DE_PIMPL bodies; doomsday misses 59 (after-operator 8, nested-argument 8, statement 10, unparsed 15).

Gates

pr_gates --fast 9/9, --ratchets 9/9 (via heavy-run.sh), tree-wide guards + tests/tools/doom_speedrun: 272 pass. git merge-tree vs origin/main: clean. Fresh scans of the 7 C++ ports at this HEAD; doom_rosetta_check.py on the whole manifest differed only on the three blessed ports.

Checklist: partial [c:9e7fe6a3] -- C++ default-argument class fixed; conversion-operator, initializer-list, DE_PIMPL and remaining oracle classes are left

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 27, 2026 03:34
@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 08:04
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

angle = max(angle - 1, 0)
elif ch == "=" and not angle and text[i - 1] not in "=!<>" and text[i + 1 : i + 2] != "=":
start = i
elif depth == 1 and ch == "," and start >= 0 and not angle:
elif depth == 1 and ch == "," and start >= 0 and not angle:
spans.append((start, i))
start = -1
elif depth == 1 and start >= 0 and ch == "<":
start = -1
elif depth == 1 and start >= 0 and ch == "<":
angle += 1
elif depth == 1 and start >= 0 and ch == ">" and angle:
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6773 @ 311116a: 1 failed check(s)

== measure (shard 1/2) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40471087925/job/122078202030
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
cobol-stub:unsupported 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:pass 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
cobol-stub:unsupported 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
cobol-stub:pass 4, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 4, java-ported:pass 4, java:fail 4
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:unsupported 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:pass 7, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 7, java-ported:fail 7, java:fail 7
cobol-stub:pass 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 2, java-ported:pass 2, java:fail 2
cobol-stub:unsupported 4, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 4, java-ported:fail 4, java:fail 4
cobol-stub:pass 5, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 5, java-ported:pass 5, java:fail 5
cobol-stub:fail 2, cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:pass 9, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 9, java-ported:fail 9, java:fail 9
cobol-stub:unsupported 6, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 6, java-ported:fail 6, java:fail 6
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:pass 3, java:fail 3
cobol-stub:pass 6, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 6, java-ported:pass 6, java:fail 6
CICS crucible: 174 pass, 225 fail, 19 unsupported (418 cells)
##[error]Process completed with exit code 1.
log tail:
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: cics-crucible-shard-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 16963
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 24b5432ef07331aebd8b240a0887f095e03cf5e754ad71c5ca191a781c39a378
Finalizing artifact upload
Artifact cics-crucible-shard-1 successfully finalized. Artifact ID 12718542910
Artifact cics-crucible-shard-1 has been successfully uploaded! Final size is 16963 bytes. Artifact ID is 12718542910
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40471087925/artifacts/12718542910
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/8093ebf9-aac0-47a6-a28a-223ceaecb7b6' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6773 @ 311116a: 1 failed check(s)

== measure (shard 1/2) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40471087925/job/122078202030
repro: python tests/tools/pr_gates.py --fast
errors:
fail-on-cache-miss: false
cobol-stub:unsupported 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:pass 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
cobol-stub:unsupported 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
cobol-stub:pass 4, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 4, java-ported:pass 4, java:fail 4
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:unsupported 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
cobol-stub:pass 7, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 7, java-ported:fail 7, java:fail 7
cobol-stub:pass 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 2, java-ported:pass 2, java:fail 2
cobol-stub:unsupported 4, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 4, java-ported:fail 4, java:fail 4
cobol-stub:pass 5, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 5, java-ported:pass 5, java:fail 5
cobol-stub:fail 2, cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
cobol-stub:pass 9, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 9, java-ported:fail 9, java:fail 9
cobol-stub:unsupported 6, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 6, java-ported:fail 6, java:fail 6
cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:pass 3, java:fail 3
cobol-stub:pass 6, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 6, java-ported:pass 6, java:fail 6
CICS crucible: 174 pass, 225 fail, 19 unsupported (418 cells)
##[error]Process completed with exit code 1.
log tail:
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: cics-crucible-shard-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 16963
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 24b5432ef07331aebd8b240a0887f095e03cf5e754ad71c5ca191a781c39a378
Finalizing artifact upload
Artifact cics-crucible-shard-1 successfully finalized. Artifact ID 12718542910
Artifact cics-crucible-shard-1 has been successfully uploaded! Final size is 16963 bytes. Artifact ID is 12718542910
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/40471087925/artifacts/12718542910
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/8093ebf9-aac0-47a6-a28a-223ceaecb7b6' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants