From f870aa1e0723e9203df495020ee2bf2bc47a6246 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 4 Jun 2009 08:31:20 +0000 Subject: Finish removing uses of Expr::isConstant. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72859 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Core/SpecialFunctionHandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Core/SpecialFunctionHandler.cpp') diff --git a/lib/Core/SpecialFunctionHandler.cpp b/lib/Core/SpecialFunctionHandler.cpp index e1182cf0..0ec9a5ac 100644 --- a/lib/Core/SpecialFunctionHandler.cpp +++ b/lib/Core/SpecialFunctionHandler.cpp @@ -376,7 +376,8 @@ void SpecialFunctionHandler::handleIsSymbolic(ExecutionState &state, assert(arguments.size()==1 && "invalid number of arguments to klee_is_symbolic"); executor.bindLocal(target, state, - ConstantExpr::create(!arguments[0]->isConstant(), Expr::Int32)); + ConstantExpr::create(!isa(arguments[0]), + Expr::Int32)); } void SpecialFunctionHandler::handlePreferCex(ExecutionState &state, @@ -415,7 +416,7 @@ void SpecialFunctionHandler::handleUnderConstrained(ExecutionState &state, // XXX should type check args assert(arguments.size()==1 && "invalid number of arguments to klee_under_constrained()."); - assert(arguments[0]->isConstant() && + assert(isa(arguments[0]) && "symbolic argument given to klee_under_constrained!"); unsigned v = arguments[0]->getConstantValue(); -- cgit 1.4.1