[clang] [analyzer] Fix unary/binary op support for SMT symbolic execution (PR #205078)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 30 02:52:39 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)))
----------------
steakhal wrote:
```suggestion
const llvm::APSInt *Value;
if (!(Value = getSymVal(State, USE->getOperand())))
```
https://github.com/llvm/llvm-project/pull/205078
More information about the cfe-commits
mailing list