macro_via: disjunctive #undef terminators leave dead macros live
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 187
- フォーク
- 53
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 79
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
facebookexperimental/semcode のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
facebookexperimental/semcode#195 ·
メンテナーはふだん 2 日以内に返信
-
extract: namespaced C++ this->m and parameter p->m accesses file under different container typesオープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
facebookexperimental/semcode#198 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
facebookexperimental/semcode#197 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
facebookexperimental/semcode#196 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
facebookexperimental/semcode#194 ·
メンテナーはふだん 2 日以内に返信
facebookexperimental/semcode の issue をすべて見る
似ている issue
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 1/5 1〜3時間 初心者へのやさしさ 95/100
メンテナーはふだん 1 日以内に返信
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothオープンarea/ode-pde good first issue help wanted kind/contract severity/4-minor
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Apich-Organization/rssn#383 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信