Skip to content

Fortran: function references and argument-less CALL statements are not recorded as calls (doomf77: recall 0.47) #5638

Closed

Description

@squid-protocol

Problem

Amnibro/doomf77 (GPL-2.0, 1f82e3f4; a FORTRAN 77 DOOM engine, 146 routines): the engine records 153 calls (all correct) but misses 172 of 325. Only CALL NAME(args) is recorded. Missed shapes:

  • Function references (no CALL): d_main.f:16 T0 = I_TICKS(...), d_main.f:189 MO = P_SPAWN(...), MOSEC(PLMO) = R_PSEC(...), m_menu.f:17 IF (M_ANYK(...)) THEN, nested CALL V_TEXT((320 - V_TEXTW(...).
  • CALL without an argument list: CALL G_NEW, CALL S_START, CALL WI_START (m_menu.f, d_main.f).

A reference NAME(...) is a call only when NAME is a FUNCTION (statement function, external or contained), not an array; resolve against the routines defined in the scanned tree (and EXTERNAL declarations).

Acceptance

Found by the DOOM corpus call-graph checks (#5630, #5457); licensed ports only. Prototype: /srv/storage_16tb/projects/gitgalaxy/doom-study/study-prototype/callcheck_all.py.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    metrics
    core-engine
    scope:core
    needs:doom-corpus
    on Oct 19, 2026
  2. squid-protocol commented on Oct 19, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host nyx, lease renewed 2026-10-20T03:20Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:nyx label.

  3. squid-protocol commented on Oct 20, 2026

    @squid-protocol
    OwnerAuthor

    Fixed by #5688: function references and argument-less CALL are recorded (F77 + F90 fixtures, arrays excluded); doomf77 recall 0.47 -> 1.000 under the #5630 oracle; Fortran golden drift explained in the PR. Remaining sibling gaps are listed in the PR body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaim:nyxcore-enginemetricsneeds:doom-corpuspriority: mediumscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions