Repository navigation
Fortran: function references and argument-less CALL are calls, early RETURN does not end a unit (Part of #5638) - #5688
Conversation
…RETURN does not end a unit (Part of #5638) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…(Part of #5638) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5688 @ 7033686: 2 failed check(s) == full-suite (failure) -- real == full-suite part 1/3 (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (7fa5a7e) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
Part of #5638
What changed
Fortran writes an array element and a function reference the same way,
NAME(...), so the verb regex missed function references and argument-lessCALL. A new statement scanner (gitgalaxy/core/fortran_calls.py) now feedscalls_out_tofor Fortran (opt-in viacalls_out_function_refs), and an earlyRETURNno longer ends the unit.X = F(A)function reference (F77 and F90)CALL G_NEW/CALL S_STARTwithout argumentsREAL W(3,3),DIMENSION,COMMON,DIMENSION(n) ::)A(I) = ...element store,F(X) = ...statement functionobj%part(2)componentNAME(1:3)IF/WHERE/FORALL (c) stmtguard&) continuationsRETURNinsideIF ... ENDIFNames defined nowhere in the repo are still dropped by
call_resolver.py.Evidence
doomf77 rescan under the #5630 oracle: recall 0.47 before, 0.892 with the call-site fix alone (units were cut at the last
RETURN), 1.000 after (327 of 327 calls, 146 units, precision 1.000).Tests:
tests/extraction/languages/test_fortran_calls_out_5638.py(F77 and F90 fixtures, our own code); existing Fortran suites pass (142 total).Golden drift
Re-blessed through
golden-lock.sh(both legs).scope_check.py --expect fortran: Fortran accounts for 361 of 433 differences (morecalls_out_to, fan-out and fan-in, and the z-scores and PageRank that follow). The rest is last-digit PageRank rounding in other languages (27 entries) and repo-wide rollup digests, from the changed global graph. No file was excluded by timeout.Gates:
pr_gates --fast6/6,--ratchets8/8.Sibling gaps
obj%method(...)type-bound calls are not recorded.RETURNunit cut (not checked).Lessons for agents
assembly_returnsmatch; for languages whereRETURNis an early exit add it to_NON_TERMINATING_KEYWORDS_BY_LANG.crucible_check.pyneedsLANGUAGE_CRUCIBLE_PATHwhen the corpus is not a sibling of the worktree (/srv/storage_16tb/projects/gitgalaxy/language-crucible)."...".split()on a literal; assign the string to a name first.🤖 Generated with Claude Code