macro_via: disjunctive #undef terminators leave dead macros live
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Start with src/database/macro_via.rs and read the deferred change in commit a2fe71e, focusing on guard overlap and how #undef terminators are handled. Use the C reproducer to check callers of target; done means the query no longer reports a via RUN edge when the combined #undef RUN guards cover every build.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When a function-like macro is #undef'd across multiple complementary preprocessor branches, macro_via treats each terminator independently and leaves the macro live, producing a false caller edge.
Reproducer
int target(void) { return 1; }
#define RUN(f) f()
#define FLAG 1
#if BRANCH
#undef RUN
#undef FLAG
#endif
#ifdef FLAG
#undef RUN
#endif
int caller(void) { return RUN(target); }
Querying callers of target reports caller via RUN, even though RUN is undefined in every build (BRANCH undefines RUN and FLAG; !BRANCH keeps FLAG defined and undefines RUN).
Cause
Deferred in a2fe71e: each #undef is uncertain on its own, and the guard overlap engine in src/database/macro_via.rs does not yet prove disjunctive terminator coverage across branches.
Expected behavior
callers target should not report a via RUN edge when the union of #undef RUN guards covers every build.
- Lenguaje dominante
- Rust
- Estrellas
- 187
- Forks
- 53
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 79
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de facebookexperimental/semcode
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 71/100
facebookexperimental/semcode#195 ·
Los mantenedores suelen responder en 2 días
-
extract: namespaced C++ this->m and parameter p->m accesses file under different container typesAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
facebookexperimental/semcode#198 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
facebookexperimental/semcode#197 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
facebookexperimental/semcode#196 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
facebookexperimental/semcode#194 ·
Los mantenedores suelen responder en 2 días
Todos los issues de facebookexperimental/semcode
Issues similares
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
marketing
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Los mantenedores suelen responder en 1 día
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothAbiertoarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Apich-Organization/rssn#383 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día