From 7c27c8a6a7c233c3c6162d9b86942351fe5f42b3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 14 Jun 2009 06:07:30 +0000 Subject: Add ConstantExpr::{getLimitedValue,getZExtValue}. - For use in situations where the range of the constant is known to fit in a uint64 (or smaller), or the extra bits don't matter. - No (intended) functionality change. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73326 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Expr/Expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Expr/Expr.cpp') diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index be9051ab..fd43018f 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -815,7 +815,7 @@ static ref MulExpr_createPartialR(const ref &cl, Expr *r) { if (type == Expr::Bool) { return AndExpr_createPartialR(cl, r); - } else if (cl->getConstantValue() == 1) { + } else if (cl->isOne()) { return r; } else if (cl->isZero()) { return cl; -- cgit 1.4.1