diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-14 04:52:10 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-14 04:52:10 +0000 |
commit | d15a30cc0ce2579747ae4c2e919af54c6b06af70 (patch) | |
tree | e25631888e0f5dcebf9f0c657ca8b1d8f42cf244 /lib/Expr | |
parent | 380ca8863db645f0c00843af2fef575b655783ff (diff) | |
download | klee-d15a30cc0ce2579747ae4c2e919af54c6b06af70.tar.gz |
Rewrite ImpliedValue to use ConstantExpr operations.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Expr')
-rw-r--r-- | lib/Expr/Expr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index 72514aec..be9051ab 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -445,6 +445,11 @@ ref<ConstantExpr> ConstantExpr::AShr(const ref<ConstantExpr> &RHS) { getWidth()); } +ref<ConstantExpr> ConstantExpr::Not() { + return ConstantExpr::create(ints::eq(getConstantValue(), 0, getWidth()), + Expr::Bool); +} + ref<ConstantExpr> ConstantExpr::Eq(const ref<ConstantExpr> &RHS) { return ConstantExpr::create(ints::eq(getConstantValue(), RHS->getConstantValue(), getWidth()), |