Skip to content

Commit 2541973

Browse files
committed
ci test fix
1 parent 892c9b0 commit 2541973

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

lib/Core/ExecutionState.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "klee/Support/CompilerWarning.h"
2424
DISABLE_WARNING_PUSH
2525
DISABLE_WARNING_DEPRECATED_DECLARATIONS
26+
#include "klee/Support/ErrorHandling.h"
2627
#include "llvm/IR/Function.h"
2728
#include "llvm/Support/CommandLine.h"
2829
#include "llvm/Support/raw_ostream.h"

lib/Core/Executor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,9 @@ Executor::Executor(LLVMContext &ctx, const InterpreterOptions &opts,
454454
InterpreterHandler *ih)
455455
: Interpreter(opts), interpreterHandler(ih), searcher(nullptr),
456456
externalDispatcher(new ExternalDispatcher(ctx)), statsTracker(0),
457-
pathWriter(0), symPathWriter(0), specialFunctionHandler(0),
458-
timers{time::Span(TimerInterval)}, guidanceKind(opts.Guidance),
459-
codeGraphDistance(new CodeGraphDistance()),
457+
pathWriter(0), symPathWriter(0),
458+
specialFunctionHandler(0), timers{time::Span(TimerInterval)},
459+
guidanceKind(opts.Guidance), codeGraphDistance(new CodeGraphDistance()),
460460
distanceCalculator(new DistanceCalculator(*codeGraphDistance)),
461461
targetCalculator(new TargetCalculator(*codeGraphDistance)),
462462
targetManager(new TargetManager(guidanceKind, *distanceCalculator,

lib/Core/Executor.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -729,15 +729,15 @@ class Executor : public Interpreter {
729729
replayPosition = 0;
730730
}
731731

732-
llvm::Module *
733-
setModule(std::vector<std::unique_ptr<llvm::Module>> &userModules,
734-
std::vector<std::unique_ptr<llvm::Module>> &libsModules,
735-
const ModuleOptions &opts,
736-
const std::unordered_set<std::string> &mainModuleFunctions,
737-
const std::unordered_set<std::string> &mainModuleGlobals,
738-
std::unique_ptr<InstructionInfoTable> origInfos,
739-
const std::set<std::string> &ignoredExternals,
740-
std::vector<std::pair<std::string, std::string>> redefinitions) override;
732+
llvm::Module *setModule(
733+
std::vector<std::unique_ptr<llvm::Module>> &userModules,
734+
std::vector<std::unique_ptr<llvm::Module>> &libsModules,
735+
const ModuleOptions &opts,
736+
const std::unordered_set<std::string> &mainModuleFunctions,
737+
const std::unordered_set<std::string> &mainModuleGlobals,
738+
std::unique_ptr<InstructionInfoTable> origInfos,
739+
const std::set<std::string> &ignoredExternals,
740+
std::vector<std::pair<std::string, std::string>> redefinitions) override;
741741

742742
void useSeeds(const std::vector<struct KTest *> *seeds) override {
743743
usingSeeds = seeds;

tools/klee/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "klee/Core/Context.h"
1616
#include "klee/Core/Interpreter.h"
1717
#include "klee/Core/TargetedExecutionReporter.h"
18+
#include "klee/Expr/Expr.h"
1819
#include "klee/Module/SarifReport.h"
1920
#include "klee/Module/TargetForest.h"
2021
#include "klee/Solver/SolverCmdLine.h"
@@ -35,6 +36,7 @@ DISABLE_WARNING_DEPRECATED_DECLARATIONS
3536
#include "llvm/IR/IRBuilder.h"
3637
#include "llvm/IR/InstrTypes.h"
3738
#include "llvm/IR/Instruction.h"
39+
#include "llvm/IR/Instructions.h"
3840
#include "llvm/IR/LLVMContext.h"
3941
#include "llvm/IR/Type.h"
4042
#include "llvm/Support/CommandLine.h"
@@ -51,6 +53,7 @@ DISABLE_WARNING_DEPRECATED_DECLARATIONS
5153
DISABLE_WARNING_POP
5254

5355
#include <dirent.h>
56+
#include <signal.h>
5457
#include <sys/stat.h>
5558
#include <sys/wait.h>
5659
#include <thread>
@@ -1229,7 +1232,7 @@ createLibCWrapper(std::vector<std::unique_ptr<llvm::Module>> &userModules,
12291232
args.push_back(llvm::ConstantExpr::getBitCast(
12301233
cast<llvm::Constant>(inModuleReference.getCallee()),
12311234
ft->getParamType(0)));
1232-
args.push_back(&*(stub->arg_begin())); // argc
1235+
args.push_back(&*(stub->arg_begin())); // argc
12331236
auto arg_it = stub->arg_begin();
12341237
args.push_back(&*(++arg_it)); // argv
12351238
args.push_back(Constant::getNullValue(ft->getParamType(3))); // app_init

0 commit comments

Comments
 (0)