diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-06-04 08:31:20 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-04 08:31:20 +0000 |
| commit | f870aa1e0723e9203df495020ee2bf2bc47a6246 (patch) | |
| tree | d15a78c7c6f4106ce141fc92c8dce5dc8217bd84 /lib/Core/SpecialFunctionHandler.cpp | |
| parent | 44e3d58b59099f5fd0e6f88893ce431171b3fef6 (diff) | |
| download | klee-f870aa1e0723e9203df495020ee2bf2bc47a6246.tar.gz | |
Finish removing uses of Expr::isConstant.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/SpecialFunctionHandler.cpp')
| -rw-r--r-- | lib/Core/SpecialFunctionHandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<ConstantExpr>(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<ConstantExpr>(arguments[0]) && "symbolic argument given to klee_under_constrained!"); unsigned v = arguments[0]->getConstantValue(); |
