[PATCH] D116370: [clang][dataflow] Add multi-variable constant propagation example.

Stanislav Gatev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 29 07:23:58 PST 2021


sgatev added inline comments.


================
Comment at: clang/unittests/Analysis/FlowSensitive/MultiVarConstantPropagationTest.cpp:375-376
+                  Pair("p2", HoldsCPLattice(UnorderedElementsAre(
+                                 Pair(Var("target"), HasConstantVal(2)),
+                                 Pair(Var("other"), HasConstantVal(3)))))));
+}
----------------
This seems incorrect. The lattice elements for `target` and `other` should be `top` at `p2`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116370/new/

https://reviews.llvm.org/D116370



More information about the cfe-commits mailing list