diff options
Diffstat (limited to 'lib/Core/SpecialFunctionHandler.cpp')
-rw-r--r-- | lib/Core/SpecialFunctionHandler.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/Core/SpecialFunctionHandler.cpp b/lib/Core/SpecialFunctionHandler.cpp index 2e423785..3f7c442e 100644 --- a/lib/Core/SpecialFunctionHandler.cpp +++ b/lib/Core/SpecialFunctionHandler.cpp @@ -74,7 +74,6 @@ HandlerInfo handlerInfo[] = { add("klee_is_symbolic", handleIsSymbolic, true), add("klee_make_symbolic", handleMakeSymbolic, false), add("klee_mark_global", handleMarkGlobal, false), - add("klee_malloc_n", handleMallocN, true), add("klee_merge", handleMerge, false), add("klee_prefer_cex", handlePreferCex, false), add("klee_print_expr", handlePrintExpr, false), @@ -348,31 +347,6 @@ void SpecialFunctionHandler::handleMalloc(ExecutionState &state, executor.executeAlloc(state, arguments[0], false, target); } -void SpecialFunctionHandler::handleMallocN(ExecutionState &state, - KInstruction *target, - std::vector<ref<Expr> > &arguments) { - - // XXX should type check args - assert(arguments.size() == 3 && "invalid number of arguments to malloc"); - - // mallocn(number, size, alignment) - ref<Expr> numElems = executor.toUnique(state, arguments[0]); - ref<Expr> elemSize = executor.toUnique(state, arguments[1]); - ref<Expr> elemAlignment = executor.toUnique(state, arguments[2]); - - assert(numElems.isConstant() && - elemSize.isConstant() && - elemAlignment.isConstant() && - "symbolic arguments passed to klee_mallocn"); - - executor.executeAllocN(state, - numElems.getConstantValue(), - elemSize.getConstantValue(), - elemAlignment.getConstantValue(), - false, - target); -} - void SpecialFunctionHandler::handleAssume(ExecutionState &state, KInstruction *target, std::vector<ref<Expr> > &arguments) { |