Repository navigation
Objective-C: end-to-end tests for #8907 repros; dispatch_after/afterDelay kept as sleeps - #9196
Merged
Merged
Conversation
…address-of, NSThread sleep) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
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.
Closes #8907
What this is
The engine fix for #8907 already landed in #9111 (stacked rebless; the issue stayed open as "Part of").
objectivec.pyon main anchors&/^inbitwise_opson binary position andthread_sleepsacceptsNSThread sleepForTimeInterval:/sleepUntilDate:. This PR adds the missing end-to-end proof: the issue's three repros, sliced as functions by the extractor, assertblockCaretandaddrOfhave nobitwise_opshit andsleeperhas exactly onethread_sleepshit. I also scanned the three repros with galaxyscope:bitwise_ops0 / 0 andstate_halt_hits1 per function (function_data).Judgement call: dispatch_after and performSelector:afterDelay:
Kept in
thread_sleeps. The contract reads "a sleep, a timed wait, a timeout-driven deferral", and both are timeout-driven deferrals; #9111 already counts them and its tests pin them.Class
Class: C-family unary-vs-binary
&/^(address-of, block caret) read as bitwise, and Foundation sleep forms missing from a sleep rule.Siblings:
c.pybitwise_opscounts every^and has no&rule (no block caret in plain C, so no issue there).cpp/objectivec++not checked in this slice.Sibling gaps: C++
&references /^(C++/CLI) inbitwise_ops; no burned-estate program needs it (core engine only).Verification
test_objectivec_strict.py+test_objectivec.py: 248 passedaudit_check.py: all clearrosetta:rebless-owed(counts moved in Rebless once for nine stacked engine fixes (supersedes #9053 #9054 #9055 #9056 #9057 #9058 #9059 #9061 #9067) #9111).Lessons for agents
ruff formatfrom the selfscan venv rewrites\"string quotes in this test file; revert unrelated reformatting before committing.🤖 Generated with Claude Code