[clang] [dataflow] Add global condition to DataflowAnalysisContext (PR #65949)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 13 07:01:24 PDT 2023


================
@@ -108,6 +108,16 @@ class DataflowAnalysisContext {
   /// A null `PointeeType` can be used for the pointee of `std::nullptr_t`.
   PointerValue &getOrCreateNullPointerValue(QualType PointeeType);
 
+  /// Adds `Constraint` to current and future flow conditions in this context.
+  ///
+  /// The global condition must contain only flow-insensitive information, i.e.
----------------
ymand wrote:

perhaps just `addInvariant`. The term "invariant" kind of says it all and (at least in the literature) types are frequently referrered to as specifying program invariants.

https://github.com/llvm/llvm-project/pull/65949


More information about the cfe-commits mailing list