about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2009-07-10 21:13:15 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2009-07-10 21:13:15 +0000
commit3951254da613913829b2419b05cb7c3758570e98 (patch)
treedb59cd04fcaa5ac0a1680fa719294b8702dec405 /lib
parentf0a7f0d1b929424776b103cde45b2b60d98f5f48 (diff)
downloadklee-3951254da613913829b2419b05cb7c3758570e98.tar.gz
Updated the Not operation for constants. Added extra test case for this.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@75282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Expr/Expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp
index 763a4be1..4d9e5abe 100644
--- a/lib/Expr/Expr.cpp
+++ b/lib/Expr/Expr.cpp
@@ -423,7 +423,7 @@ ref<ConstantExpr> ConstantExpr::AShr(const ref<ConstantExpr> &RHS) {
 }
 
 ref<ConstantExpr> ConstantExpr::Not() {
-  return ConstantExpr::alloc(value == 0, Expr::Bool);
+  return ConstantExpr::alloc(~value);
 }
 
 ref<ConstantExpr> ConstantExpr::Eq(const ref<ConstantExpr> &RHS) {