Repository navigation
Perl calls_out: m( s( tr( y( x ( operators are not calls; validate 34 Perl ledger shapes (Part of #6433) - #9351
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…Part of #6433) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
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.
Part of #6433
What changed
Perl
calls_out: the name-then-paren alternative ofCALLS_OUT_PERLread operators that take a parenthesised operand as calls:m(..),s(a)(b),tr(a)(b),y(a)(b)and the repetition operator"-" x ($n - 1). A_PERL_OP_WORDlookahead now refuses those five words there;->x(..)/->y/->s(..)method calls still count (they use the->alternative). Paren-less calls (the issue's original examples) were already extracted by slices 1-7.The Perl call comparison now reads 94.2% precision / 97.7% recall (was 93.9% / 96.3% in the issue thread); the 11
x/m/s/trledger shapes no longer reproduce.Class
Class: a callee name followed by
(taken without checking for operator words.m(match operators(substitutiontr(/y(transliterationx (repetitionq qq qw qr_calls_out_ignore->x(->y->s(methodsLedger (Perl, 41 unvalidated shapes)
Validated 34 with source-read verdicts:
time/wantarray/map/grep/sort/undef/evalare built-ins invoked by name, so calls by C3 (GitGalaxy right, credit), same ruling as the earlierundefandshiftverdicts; the fixedx/m/s/trshapes are GitGalaxy wrong, no credit. Ledger changes are Perl entries only.Left unvalidated:
function_call_expression/function(12, a recall miss:Image::ExifTool::XMP::FullEscapeXML(style calls in the extensionlessexiftoolscript not attributed),scalar<replacement -> _,string_literal -> MIE/hex(do not reproduce on a single-line splice; need a real-file read), and 3 import shapes (Plack.t).Golden
Both goldens re-blessed with
golden-lock.sh crucible_check.py --update --yes; drift is onlycalls_out_to/ graph / brief in the self-scan snapshot from removed operator-word calls.Gates
pytest tests/extraction/languages -k perl406 passed;test_graph_ledger.py+test_tri_comparison_ledger.py17 passed;audit_check.pyall clear;ruff format --checkclean.Sibling gaps
function_call_expression/functionmiss (12), cause not yet found (span or extractor), no burned-estate program needs it: frontier.string_literal/scalar<replacementcallee shapes: need a real-file trace.Lessons for agents
crucible_check.pywaits on a shared golden lock another worker may hold; start it early and wait on the PID.call_graph_accuracy.py --ledgermerges every language's shapes; narrow the ledger diff to your language before committing.Cross-repo
None.
🤖 Generated with Claude Code