Skip to content

Commit

Permalink
ci test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ladisgin committed Aug 14, 2023
1 parent 892c9b0 commit 3a97454
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions lib/Core/ExecutionState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cassert>
Expand Down
6 changes: 3 additions & 3 deletions lib/Core/Executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
18 changes: 9 additions & 9 deletions lib/Core/Executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,15 +729,15 @@ class Executor : public Interpreter {
replayPosition = 0;
}

llvm::Module *
setModule(std::vector<std::unique_ptr<llvm::Module>> &userModules,
std::vector<std::unique_ptr<llvm::Module>> &libsModules,
const ModuleOptions &opts,
const std::unordered_set<std::string> &mainModuleFunctions,
const std::unordered_set<std::string> &mainModuleGlobals,
std::unique_ptr<InstructionInfoTable> origInfos,
const std::set<std::string> &ignoredExternals,
std::vector<std::pair<std::string, std::string>> redefinitions) override;
llvm::Module *setModule(
std::vector<std::unique_ptr<llvm::Module>> &userModules,
std::vector<std::unique_ptr<llvm::Module>> &libsModules,
const ModuleOptions &opts,
const std::unordered_set<std::string> &mainModuleFunctions,
const std::unordered_set<std::string> &mainModuleGlobals,
std::unique_ptr<InstructionInfoTable> origInfos,
const std::set<std::string> &ignoredExternals,
std::vector<std::pair<std::string, std::string>> redefinitions) override;

void useSeeds(const std::vector<struct KTest *> *seeds) override {
usingSeeds = seeds;
Expand Down
5 changes: 4 additions & 1 deletion tools/klee/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -51,6 +53,7 @@ DISABLE_WARNING_DEPRECATED_DECLARATIONS
DISABLE_WARNING_POP

#include <dirent.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <thread>
Expand Down Expand Up @@ -1229,7 +1232,7 @@ createLibCWrapper(std::vector<std::unique_ptr<llvm::Module>> &userModules,
args.push_back(llvm::ConstantExpr::getBitCast(
cast<llvm::Constant>(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
Expand Down

0 comments on commit 3a97454

Please sign in to comment.