From d15a30cc0ce2579747ae4c2e919af54c6b06af70 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sun, 14 Jun 2009 04:52:10 +0000 Subject: Rewrite ImpliedValue to use ConstantExpr operations. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73325 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Expr/Expr.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Expr') 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::AShr(const ref &RHS) { getWidth()); } +ref ConstantExpr::Not() { + return ConstantExpr::create(ints::eq(getConstantValue(), 0, getWidth()), + Expr::Bool); +} + ref ConstantExpr::Eq(const ref &RHS) { return ConstantExpr::create(ints::eq(getConstantValue(), RHS->getConstantValue(), getWidth()), -- cgit 1.4.1