Skip to content

Call graph: calls missed after a prefix ++/-- in the same expression (C --x[f()], Java for(;;--i, x.f())) and inside Java synchronized blocks #5633

Closed

Description

@squid-protocol

Problem

Small, cross-language call-extraction shapes found by the independent body oracle (engine 0e2bf4ade):

  1. A call after a prefix --/++ in the same expression is missed.
    • C, chocolate-doom src/hexen/p_acs.c:1389-1401: --ACScript->vars[ReadScriptVar()], --MapVars[ReadMapVar()], --WorldVars[ReadWorldVar()] (also 3 in dsda-doom).
    • Java, mochadoom src/v/graphics/Blocks.java:129: for (; times > 0; --times, rel.shift(blockWidth)) (and Rectangles.java:47).
  2. Java: functions whose body is a synchronized (X.class) { ... } block record no calls (2 of the 6 such functions in mochadoom): src/mochadoom/Engine.java:147 getEngine has new Engine(), Logger.getLogger(Engine.class.getName()).log(...), new Error(...) and records []; also src/awt/DoomFrame.java:145 getGraphics2D. Determine whether synchronized, the .class literal or the nested try/catch is the trigger.
  3. One isolated C# miss to explain: managed-doom ManagedDoom/src/Doom/World/PathTraversal.cs:71 s1 = Geometry.PointOnDivLineSide(...) inside AddLineIntercepts.

Acceptance

Found by the DOOM corpus call-graph checks (independent body oracle + mochadoom/kocoa-doom pairwise consensus; #5630, #5457). Licensed ports only.

🤖 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 21, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 5633-20261021T0421Z (host nyx) ended without a PR. Already fixed by merged PR #5686 (2026-10-20); issue still open, C# AddLineIntercepts unconfirmed by worker; owner/next tick to close if acceptance met

  3. squid-protocol commented on Oct 21, 2026

    @squid-protocol
    OwnerAuthor

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

  4. added
    scope:frontier
    and removed
    scope:core
    on Oct 21, 2026
  5. squid-protocol commented on Oct 21, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance met: PR #5686 fixed all three shapes (prefix --/++, Java synchronized/try( units, C# comparison-as-return-type) with 51 tests; callcheck rescans show misses 0 on chocolate-doom, mochadoom, managed-doom; goldens zero drift. PR #5872 fixed the last class member (Objective-C registry id). Remaining unscanned ports (dsda-doom, kocoa-doom, helion) share the same mechanism; remaining sibling gaps (GLSL no func units) are frontier, not needed by a burned estate.

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:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions