Repository navigation
objc: [f(x) a:1] keyword send to call receiver; ObjC call-graph oracle and licensed-port rescan (Part of #5639) - #5828
Merged
Conversation
…l-graph body oracle (Part of #5639) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 21, 2026 05:46
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 21, 2026 05:46
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 #5639
What
callgraph_oracle.py) is C/C++ only, so this addstests/tools/doom_speedrun/objc_callgraph_oracle.py: a tree-sitterobjcbody oracle independent of the engine's regexes (Ccall_expression+message_expressionselector = unary selector or first keyword; restricted to names the port defines; self-edges dropped both sides, as the Call-graph validation for C/C++: independent body oracle + family consensus on the DOOM corpus (the Graph Accuracy Audit only covers Python/TS/Java) #5630 oracle does; a unit tree-sitter cannot parse, e.g. ObjC++ members, is read by a text fallback and counted separately). It refuses any port outside the licensed set.[f(x) a:1]gap closed. A keyword send to a call receiver (calls_outgroup 4, a[-only lookahead sof(is still a C call; detector readssend_group3 or 4). Unary[f(x) a]was already handled.Rescan (current engine at this branch,
--db-only, ports at the doom_speedrun pins; the 4 licensed ports with ObjC)Acceptance (recall >= 0.95 under the oracle) is met on all four; gzdoom moved 0.892 -> 1.000 since #5689 (#5691/#5795 unit-extent fixes). The numbers are identical before and after the
[f(x) a:1]change (no such send in these ports). gzdoom's oracle reads 68 of 125 calls through the text fallback (ObjC++), so its number rests on a weaker oracle than the other three. The 7 engine-only edges are not classified here.Class
Objective-C message sends as calls. Covered: unary, keyword,
super, nested, in C call,@selector(not a call), receiver qualifier, and now keyword-to-call-receiver.Sibling gaps: a call receiver whose arguments hold a
[...]send or nest calls more than two deep ([f([a b]) c:1]): still unrecorded (pattern's one-level-nested-args bound; rare); in-class bare ctor/dtor with init list (from #5795, no licensed miss found).Gates
pr_gates --fast7/7;--ratchets8/8 (ground-truth, completeness, fact-crosscheck, ports ... all PASS); golden blessed viacrucible_check.py --update --yes: no drift on either leg, no fixture changed; tree-wide guards + the changed tests pass (134 tests, none over the time limit);audit_check.pyclear. Tests:test_calls_out_objc_messages_5639.py(+5 shapes, +2 qualifier, +ReDoS inputs),test_objectivec_strict.py(group count 4).Remaining
None for the issue's acceptance beyond review; the oracle is not yet wired into a baseline/CI (no committed ObjC baseline; scans are by hand).
Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code