[clang] [llvm] [analyzer] Correct Z3 test cases, fix exposed crashes (PR #146597)

Balazs Benics via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 3 07:27:07 PDT 2025


================
@@ -932,7 +932,8 @@ class Z3Statistics final : public SMTSolverStatistics {
   };
   unsigned getUnsigned(StringRef Key) const override {
     auto It = UnsignedValues.find(Key.str());
-    assert(It != UnsignedValues.end());
+    if (It == UnsignedValues.end())
+      return 0;
----------------
steakhal wrote:

@vabridgers Could you investigate this question?

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


More information about the llvm-commits mailing list