From 6d0b6d1015adee6f4e4f72b1716e3fce7e19698b Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Sat, 13 Jun 2009 22:09:19 +0000 Subject: Reverted last change that added createIff. Since we only handle bitvectors, we can just use Eq. The parser can distinguish between boolean formulas and bitvector terms. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73309 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/klee/Expr.h | 1 - lib/Expr/Expr.cpp | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/klee/Expr.h b/include/klee/Expr.h index 6d4df12e..878a70ba 100644 --- a/include/klee/Expr.h +++ b/include/klee/Expr.h @@ -222,7 +222,6 @@ public: static ref createCoerceToPointerType(ref e); static ref createNot(ref e); static ref createImplies(ref hyp, ref conc); - static ref createIff(ref e1, ref e2); static ref createIsZero(ref e); /// Create a little endian read of the given type at offset 0 of the diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index 695312ef..7b680567 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -301,11 +301,6 @@ ref Expr::createImplies(ref hyp, ref conc) { return OrExpr::create(Expr::createNot(hyp), conc); } -ref Expr::createIff(ref e1, ref e2) { - return AndExpr::create(Expr::createImplies(e1, e2), - Expr::createImplies(e2, e1)); -} - ref Expr::createIsZero(ref e) { return EqExpr::create(e, ConstantExpr::create(0, e->getWidth())); } -- cgit 1.4.1