Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#5,633 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
c, csharp, java, python

Línea de trabajo

Start with the call-extraction logic exercised by the independent body oracle in #5630, then inspect the cited examples in p_acs.c, Blocks.java, Rectangles.java, Engine.java, DoomFrame.java, and PathTraversal.cs. Add tests for prefix increment/decrement calls, Java synchronized blocks, and the isolated C# miss across the supported C-family languages. Done means the oracle reports zero misses for these shapes and any golden drift is explained.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug core-engine metrics needs:doom-corpus priority: medium scope:core

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

  • Tests per shape (C, Java, and the C-family languages sharing the call rule); the oracle in #5630 reports 0 for these shapes on the licensed DOOM ports; goldens with drift explained.

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

Lenguaje dominante
Python
Estrellas
57
Forks
11
Merge medio
1 h 41 min
PR fusionados (30 d)
978

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de squid-protocol/gitgalaxy

Todos los issues de squid-protocol/gitgalaxy

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.