Repository navigation
Calls: prefix -- is not a comment; Java synchronized/try() and C# comparison calls are not units (Part of #5633) - #5686
Merged
Conversation
… C# comparison calls are not units (Part of #5633) WIP: golden bless pending. 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 20, 2026 00:17
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 #5633 (all three shapes; sibling gaps below).
Root causes
--(C--x[f()], Javafor(;;--i, x.f())):detector._apply_literal_shieldtreated--as a line-comment marker in every language except a few, so--v; R();blanked the rest of the line. Fix:_DECREMENT_OPERATOR_LANGS(//-comment languages with a--operator) use#|//only.synchronized (X.class) {: the bare-name branch offunc_start(name(...) {) matchedsynchronized (...) {(andtry (R r = ...) {) as a method, splitting the block off the enclosing method. Trigger issynchronizeditself (not.class, not the try/catch). Fix: both name lookaheads injava.pyexcludesynchronized|try.PathTraversal.cs:71: not a call-regex bug. The multi-lineif (a > Fixed.FromInt(16) || ...)matched C#func_startBranch B as<type tokens> Fixed.FromInt(, because the return-type token loop accepted a lone>/<(a comparison operator). The phantom unitFixed.FromInttook the rest ofAddLineIntercepts, including line 71. Fix: a token cannot start with</>+ whitespace (csharp.py, both loops).Class table
--before a call--synchronized (..) {,try (..) {as unit>/<in return-type runEvidence
callcheck.pychocolate-doom: misses 3 -> 0 (p_acs.c:1389/1395/1401), engine calls 12129 -> 12132, precision 1.000.callcheck_jvm.py: mochadoom misses 8 -> 0 (Engine.java:147 getEngine, :42 main, Blocks.java:126), functions 3744 -> 3741 (phantomsynchronizedunits gone); managed-doom miss 1 -> 0, functions 1301 -> 1300 (phantomFixed.FromInt). kocoa-doom, helion and dsda-doom not rescanned.tests/extraction/languages/test_calls_out_decrement_sync_5633.py(51 cases; 46 fail without the fix). Extraction suites for the touched languages +test_source_reads: 4330 passed.crucible_check.py(both legs): PASS, zero drift, no re-bless.pr_gates --fast: 6/6.--ratchetsnot run.Sibling gaps
*token (a * F(x)could match like>): not reproduced, left (int * F()unsafe return types); none needed by a burned estate.--is not a comment but is not in the set (perl, rust has none): not checked.--cases not rescanned (same mechanism as chocolate-doom).🤖 Generated with Claude Code