Repository navigation
ObjC: message sends recorded as calls by selector; @selector is not a call (Part of #5639) - #5689
Conversation
… call (Part of #5639) WIP: golden bless pending. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5689 @ 0d1e996: 2 failed check(s) == Call resolution (Level 2, vs pyan3) (failure) -- real == graph-accuracy-audit (failure) -- real |
Part of #5639
What
Objective-C message sends are now recorded as calls, by selector (first keyword for a keyword selector):
[self initialize],[mOwner updateParameters:p], nested[[Foo alloc] init],[super awakeFromNib], a send inside a C call's arguments,[arr[i] count],[(Foo *)obj bar:1],[Lookup(x) fetch]. C calls are unchanged.Decision:
@selector(x:)does not count as a call (it names a selector, it does not send). The old:lookahead recorded everylabel:(@selector(dataReady:), ternary colons, later keywords,case X:) as a call; that is gone, as is@synchronized(/@selector(read as C calls. Receiver is not kept as a qualifier: the objccalls_outstays in the non-qualified family (no receiver capture); noted as a gap below.Changes (4 hand-written files)
languages/objectivec.py:calls_outhas two groups (C call | message selector).core/detector.py: a multi-groupcalls_outtakes whichever group matched (3 lines; no other language has >1 group).test_calls_out_objc_messages_5639.py(new): one case per shape plus ReDoS;test_objectivec_strict.pyupdated for the two-group pattern.Class table
[[A b] c],[x[i] y], cast receiver, call receiver (unary only)[super x]@selector,@synchronized[f(x) a:1]) label:false hits)Evidence (doom-study oracle
callcheck_all.py, objective-c rows, this branch's scan)Remaining misses are unit-extent bugs, not call-pattern ones (see Sibling gaps). Engine-only edges in the oracle are nested
] initsends the oracle's regex cannot see (the engine is right).Gates:
pr_gates --fast6/6; tree-wide guards pass; golden masters re-blessed (both legs, objective-c sections only: new selectors, droppedselector/makeObjectsPerformlabel phantoms).Sibling gaps
- (void)m;then{(header ending in;) gives a 1-line unit: doom-iosUICustomSwitch.m setOn, eternityELTextFieldDelegate.m controlTextDidChange(extent mechanism).i_video.mmin-class inline methods (GetWindow, ...): unit extents/attribution in.mmclass bodies.🤖 Generated with Claude Code