[PATCH] D128363: [clang][dataflow] Implement functionality for flow condition variable substitution.
Dmitri Gribenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 24 15:22:28 PDT 2022
gribozavr2 accepted this revision.
gribozavr2 added inline comments.
================
Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h:209
+ /// `Substitutions`, it will be substituted with the value it maps to.
+ BoolValue &buildAndSubstituteFlowCondition(
+ AtomicBoolValue &Token,
----------------
Could you copy the example from the commit description into the doc comment?
================
Comment at: clang/unittests/Analysis/FlowSensitive/DataflowAnalysisContextTest.cpp:319
+ EXPECT_TRUE(Context.equivalentBoolValues(FCWithXFalse, False));
+}
+
----------------
Could you also add a test for negations?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128363/new/
https://reviews.llvm.org/D128363
More information about the cfe-commits
mailing list