[PATCH] D135397: [clang][dataflow] Add support for a Top value in boolean formulas.

Yitzhak Mandelbaum via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 13 14:50:36 PDT 2022


ymandel marked 6 inline comments as done.
ymandel added inline comments.


================
Comment at: clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp:527-528
+    auto *Prop2 = Val2.getProperty("has_value");
+    return Prop1 == Prop2 || (Prop1 != nullptr && Prop2 != nullptr &&
+                              isTop(*Prop1) && isTop(*Prop2));
   }
----------------
xazax.hun wrote:
> ymandel wrote:
> > xazax.hun wrote:
> > > I feel like this logic is repeated multiple times. I wonder if we should define an `operator==` for `const BoolValue*`.
> > Agreed.  I want to wait until we settle on the representation and then we can consider this operator. But, if we end up with a singleton Top then I think we can hold off.
> We ended up not going with a singleton Top, let's reconsider the overloaded operator.
added FIXME. 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D135397



More information about the cfe-commits mailing list