Skip to content

Commit c2f36a0

Browse files
committed
Temp
1 parent fd3ad0d commit c2f36a0

File tree

6 files changed

+375
-283
lines changed

6 files changed

+375
-283
lines changed

server/src/KleeRunner.cpp

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -138,35 +138,35 @@ static void processMethod(MethodKtests &ktestChunk,
138138
bool hasError = false;
139139
for (auto const &entry : fs::directory_iterator(kleeOut)) {
140140
auto const &path = entry.path();
141-
if (Paths::isKtestJson(path)) {
141+
if (Paths::isKtest(path)) {
142142
if (Paths::hasEarly(path)) {
143143
hasTimeout = true;
144144
} else if (Paths::hasInternalError(path)) {
145145
hasError = true;
146146
} else {
147-
std::unique_ptr<TestCase, decltype(&TestCase_free)> ktestData{
148-
TC_fromFile(path.c_str()), TestCase_free
147+
std::unique_ptr<KTest, decltype(&kTest_free)> ktestData{
148+
kTest_fromFile(path.c_str()), kTest_free
149149
};
150150
if (ktestData == nullptr) {
151-
LOG_S(WARNING) << "Unable to open .ktestjson file";
151+
LOG_S(WARNING) << "Unable to open .ktest file";
152152
continue;
153153
}
154154
const std::vector<fs::path> &errorDescriptorFiles =
155-
Paths::getErrorDescriptors(path);
155+
Paths::getErrorDescriptors(path);
156156

157157
UTBotKTest::Status status = errorDescriptorFiles.empty()
158-
? UTBotKTest::Status::SUCCESS
159-
: UTBotKTest::Status::FAILED;
160-
std::vector<ConcretizedObject> kTestObjects(
161-
ktestData->objects, ktestData->objects + ktestData->n_objects);
158+
? UTBotKTest::Status::SUCCESS
159+
: UTBotKTest::Status::FAILED;
160+
std::vector<KTestObject> kTestObjects(ktestData->objects,
161+
ktestData->objects + ktestData->numObjects);
162162

163-
std::vector<UTBotKTestObject> objects = CollectionUtils::transform(
164-
kTestObjects, [](const ConcretizedObject &kTestObject) {
163+
std::vector<UTBotKTestObject> objects =
164+
CollectionUtils::transform(kTestObjects, [](const KTestObject &kTestObject) {
165165
return UTBotKTestObject{ kTestObject };
166166
});
167167

168-
std::vector<std::string> errorDescriptors = CollectionUtils::transform(
169-
errorDescriptorFiles, [](const fs::path &errorFile) {
168+
std::vector<std::string> errorDescriptors =
169+
CollectionUtils::transform(errorDescriptorFiles, [](const fs::path &errorFile) {
170170
std::ifstream fileWithError(errorFile.c_str(), std::ios_base::in);
171171
std::string content((std::istreambuf_iterator<char>(fileWithError)),
172172
std::istreambuf_iterator<char>());
@@ -219,18 +219,19 @@ KleeRunner::createKleeParams(const tests::TestMethod &testMethod,
219219
"--libc=klee",
220220
"--utbot",
221221
"--posix-runtime",
222+
"--skip-not-lazy-initialized",
222223
"--type-system=CXX",
223224
"--fp-runtime",
224225
"--only-output-states-covering-new",
225226
"--allocate-determ",
226227
"--external-calls=all",
227228
"--timer-interval=1000ms",
228-
"--bcov-check-interval=8s",
229+
"--use-cov-check=instruction-based",
229230
"-istats-write-interval=5s",
230231
"--disable-verify",
231232
"--check-div-zero=false",
232233
"--check-overshift=false",
233-
"--skip-not-lazy-and-symbolic-pointers",
234+
"--skip-not-symbolic-objects",
234235
"--output-dir=" + kleeOut.string()};
235236
if (settingsContext.useDeterministicSearcher) {
236237
argvData.emplace_back("--search=dfs");

0 commit comments

Comments
 (0)