diff --git a/lib/Core/ExecutionState.cpp b/lib/Core/ExecutionState.cpp index 90a2c9ac457..cd7971df8ed 100644 --- a/lib/Core/ExecutionState.cpp +++ b/lib/Core/ExecutionState.cpp @@ -26,6 +26,7 @@ DISABLE_WARNING_DEPRECATED_DECLARATIONS #include "llvm/IR/Function.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/raw_ostream.h" +#include "klee/Support/ErrorHandling.h" DISABLE_WARNING_POP #include diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index 5af31e942bd..3830ffb3fba 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -454,9 +454,9 @@ Executor::Executor(LLVMContext &ctx, const InterpreterOptions &opts, InterpreterHandler *ih) : Interpreter(opts), interpreterHandler(ih), searcher(nullptr), externalDispatcher(new ExternalDispatcher(ctx)), statsTracker(0), - pathWriter(0), symPathWriter(0), specialFunctionHandler(0), - timers{time::Span(TimerInterval)}, guidanceKind(opts.Guidance), - codeGraphDistance(new CodeGraphDistance()), + pathWriter(0), symPathWriter(0), + specialFunctionHandler(0), timers{time::Span(TimerInterval)}, + guidanceKind(opts.Guidance), codeGraphDistance(new CodeGraphDistance()), distanceCalculator(new DistanceCalculator(*codeGraphDistance)), targetCalculator(new TargetCalculator(*codeGraphDistance)), targetManager(new TargetManager(guidanceKind, *distanceCalculator, diff --git a/lib/Core/Executor.h b/lib/Core/Executor.h index ad0e3019f10..34b8b7bba34 100644 --- a/lib/Core/Executor.h +++ b/lib/Core/Executor.h @@ -729,15 +729,15 @@ class Executor : public Interpreter { replayPosition = 0; } - llvm::Module * - setModule(std::vector> &userModules, - std::vector> &libsModules, - const ModuleOptions &opts, - const std::unordered_set &mainModuleFunctions, - const std::unordered_set &mainModuleGlobals, - std::unique_ptr origInfos, - const std::set &ignoredExternals, - std::vector> redefinitions) override; + llvm::Module *setModule( + std::vector> &userModules, + std::vector> &libsModules, + const ModuleOptions &opts, + const std::unordered_set &mainModuleFunctions, + const std::unordered_set &mainModuleGlobals, + std::unique_ptr origInfos, + const std::set &ignoredExternals, + std::vector> redefinitions) override; void useSeeds(const std::vector *seeds) override { usingSeeds = seeds; diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 4fa32ca7221..bed3fc6db67 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -15,6 +15,7 @@ #include "klee/Core/Context.h" #include "klee/Core/Interpreter.h" #include "klee/Core/TargetedExecutionReporter.h" +#include "klee/Expr/Expr.h" #include "klee/Module/SarifReport.h" #include "klee/Module/TargetForest.h" #include "klee/Solver/SolverCmdLine.h" @@ -35,6 +36,7 @@ DISABLE_WARNING_DEPRECATED_DECLARATIONS #include "llvm/IR/IRBuilder.h" #include "llvm/IR/InstrTypes.h" #include "llvm/IR/Instruction.h" +#include "llvm/IR/Instructions.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Type.h" #include "llvm/Support/CommandLine.h" @@ -51,6 +53,7 @@ DISABLE_WARNING_DEPRECATED_DECLARATIONS DISABLE_WARNING_POP #include +#include #include #include #include @@ -1229,7 +1232,7 @@ createLibCWrapper(std::vector> &userModules, args.push_back(llvm::ConstantExpr::getBitCast( cast(inModuleReference.getCallee()), ft->getParamType(0))); - args.push_back(&*(stub->arg_begin())); // argc + args.push_back(&*(stub->arg_begin())); // argc auto arg_it = stub->arg_begin(); args.push_back(&*(++arg_it)); // argv args.push_back(Constant::getNullValue(ft->getParamType(3))); // app_init