[clang] [analyzer] Fix unary/binary op support for SMT symbolic execution (PR #205078)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 30 03:31:50 PDT 2026


================
@@ -171,6 +182,15 @@ class SMTConstraintManager : public clang::ento::SimpleConstraintManager {
       return BVF.Convert(SC->getType(), *Value).get();
     }
 
+    if (const UnarySymExpr *USE = dyn_cast<UnarySymExpr>(Sym)) {
+      SymbolRef Operand = USE->getOperand();
+      const llvm::APSInt *Value;
+      if (!(Value = getSymVal(State, Operand)))
----------------
rdevshp wrote:

I have applied the suggestion.

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


More information about the cfe-commits mailing list