Skip to content

Commit

Permalink
Update KLEE
Browse files Browse the repository at this point in the history
  • Loading branch information
ladisgin committed Aug 7, 2024
1 parent 1df9b7f commit d92e8e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions server/src/KleeRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ void KleeRunner::runKlee(const std::vector<tests::TestMethod> &testMethods,
LOG_SCOPE_FUNCTION(DEBUG);

fs::path kleeOutDir = Paths::getKleeOutDir(projectContext);
if (fs::exists(kleeOutDir)) {
FileSystemUtils::removeAll(kleeOutDir);
}
// if (fs::exists(kleeOutDir)) {
// FileSystemUtils::removeAll(kleeOutDir);
// }
fs::create_directories(kleeOutDir);
CollectionUtils::MapFileTo<std::vector<TestMethod>> fileToMethods;
for (const auto &method : testMethods) {
Expand Down Expand Up @@ -219,9 +219,9 @@ KleeRunner::createKleeParams(const tests::TestMethod &testMethod,

std::vector<std::string> argvData = {
"klee",
"--entry-point=" + KleeUtils::entryPointFunction(tests, testMethod.methodName, true),
"--entry-points=" + KleeUtils::entryPointFunction(tests, testMethod.methodName, true),
"--libc=klee",
"--utbot",
// "--utbot",
"--posix-runtime",
"--skip-not-lazy-initialized",
"--min-number-elements-li=1",
Expand Down
3 changes: 2 additions & 1 deletion server/src/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ Status Server::TestsGenServiceImpl::ProcessBaseTestRequest(BaseTestGen &testGen,
fetcher.getStructsToDeclare(), testGen.serverBuildDir, typesHandler)
.generateTestHeaders(testGen.tests, stubGen, selectedTargets, testGen.progressWriter);
KleeRunner kleeRunner{testGen.projectContext, testGen.settingsContext};
bool interactiveMode = (dynamic_cast<ProjectTestGen *>(&testGen) != nullptr);
// bool interactiveMode = (dynamic_cast<ProjectTestGen *>(&testGen) != nullptr);
bool interactiveMode = false;
auto generationStartTime = std::chrono::steady_clock::now();
StatsUtils::TestsGenerationStatsFileMap generationStatsMap(testGen.projectContext,
std::chrono::duration_cast<std::chrono::milliseconds>(
Expand Down
2 changes: 1 addition & 1 deletion submodules/klee
Submodule klee updated 1 files
+7 −1 lib/Runner/run_klee.cpp

0 comments on commit d92e8e6

Please sign in to comment.