You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Perl: a ternary counts twice, and regex-literal and string text count toward branch, bitwise_ops and decorators #8908
Perl branch (and, from the same tokens, decorators and bitwise_ops) fires on ordinary Perl that has no decision. Found with a Perl oracle on bugzilla (2,633 functions matched; args 1.00 / 1.00 and branch recall 1.00, so the oracle reads functions correctly; branch precision 0.96):
Count the ternary once at its ?, anchored on operator position; do not read the contents of a regex literal (m//, s///, qr//) as code for branch, bitwise_ops and decorators.
Part of #8863. Time the change; rosetta:rebless-owed if counts move; add each case as a test.
Claimed by promoter-bot host melek, lease renewed 2026-11-24T12:53Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.
Closing: the fix landed in #9111 (ternary counted once at its ?, regex-literal (?:...) text no longer counts toward branch/bitwise_ops/decorators); tests/extraction/languages/test_perl_branch_literals_8908.py pins all four repros (17 pass). Note: the string-colon case also scores (0,0,0) now, differing from the issue's Expected text.
Activity
Re-bless golden masters: Perl branch/bitwise/decorators drift (#8908)
Re-bless golden masters after merging main (#8908)
Re-bless DOOM-rosetta prboom-plus: lmpwatch.pl func_hash moves with t…
squid-protocol commentedon Nov 23, 2026
This issue's PR content landed via #9111 (merged as fcc440b). It was a 'Part of' change, so the issue stays open for the remaining work.
squid-protocol commentedon Nov 24, 2026
Claimed by promoter-bot host
melek, lease renewed 2026-11-24T12:53Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.squid-protocol commentedon Nov 24, 2026
Closing: the fix landed in #9111 (ternary counted once at its ?, regex-literal (?:...) text no longer counts toward branch/bitwise_ops/decorators); tests/extraction/languages/test_perl_branch_literals_8908.py pins all four repros (17 pass). Note: the string-colon case also scores (0,0,0) now, differing from the issue's Expected text.
squid-protocol commentedon Nov 24, 2026
Churn run
8908-20261124T1310Z(host melek) ended without a PR. fix already on main via #9111; issue closed