From 3951254da613913829b2419b05cb7c3758570e98 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Fri, 10 Jul 2009 21:13:15 +0000 Subject: 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 --- 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 763a4be1..4d9e5abe 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -423,7 +423,7 @@ ref ConstantExpr::AShr(const ref &RHS) { } ref ConstantExpr::Not() { - return ConstantExpr::alloc(value == 0, Expr::Bool); + return ConstantExpr::alloc(~value); } ref ConstantExpr::Eq(const ref &RHS) { -- cgit 1.4.1