diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/util/Assignment.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/klee/util/Assignment.h b/include/klee/util/Assignment.h index 36f4739d..051a84f9 100644 --- a/include/klee/util/Assignment.h +++ b/include/klee/util/Assignment.h @@ -90,7 +90,8 @@ namespace klee { AssignmentEvaluator v(*this); for (; begin!=end; ++begin) { ref<Expr> res = v.visit(*begin); - if (!res->isConstant() || !res->getConstantValue()) + ConstantExpr *CE = dyn_cast<ConstantExpr>(res); + if (!CE || !CE->getConstantValue()) return false; } return true; |