Skip to content

Objective-C: end-to-end tests for #8907 repros; dispatch_after/afterDelay kept as sleeps - #9196

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8907-20261124T1312Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8907-20261124T1312Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #8907

What this is

The engine fix for #8907 already landed in #9111 (stacked rebless; the issue stayed open as "Part of"). objectivec.py on main anchors & / ^ in bitwise_ops on binary position and thread_sleeps accepts NSThread sleepForTimeInterval: / sleepUntilDate:. This PR adds the missing end-to-end proof: the issue's three repros, sliced as functions by the extractor, assert blockCaret and addrOf have no bitwise_ops hit and sleeper has exactly one thread_sleeps hit. I also scanned the three repros with galaxyscope: bitwise_ops 0 / 0 and state_halt_hits 1 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.py bitwise_ops counts 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) in bitwise_ops; no burned-estate program needs it (core engine only).

Verification

Lessons for agents

  • ruff format from the selfscan venv rewrites \" string quotes in this test file; revert unrelated reformatting before committing.

🤖 Generated with Claude Code

…address-of, NSThread sleep)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 24, 2026 13:18
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 13:19
@squid-shepherd
squid-shepherd Bot merged commit d0c5f0e into main Nov 24, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8907-20261124T1312Z branch November 24, 2026 13:24
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Objective-C: bitwise_ops counts the block caret and address-of (precision 0.01); thread_sleeps misses NSThread sleepForTimeInterval

1 participant