Skip to content

Commit 9eccba5

Browse files
committed
small fix
1 parent 1bc3fc5 commit 9eccba5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/KleeRunner.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ namespace {
3535
for (const auto &key: keys) {
3636
if (!CollectionUtils::containsKey(parsedCSV, key)) {
3737
LOG_S(WARNING) << StringUtils::stringFormat("Key %s not found in klee-stats report", key);
38+
return {};
3839
}
3940
std::chrono::milliseconds totalTime((int)(1000 * std::stof(parsedCSV[key].back())));
4041
timeValues.emplace_back(totalTime);
4142
}
42-
return StatsUtils::KleeStats(timeValues[0], timeValues[1], timeValues[2]);
43+
return { timeValues[0], timeValues[1], timeValues[2] };
4344
}
4445

4546
StatsUtils::KleeStats writeKleeStats(const fs::path &kleeOut) {
@@ -50,6 +51,7 @@ namespace {
5051
if (status != 0) {
5152
LOG_S(ERROR) << "klee-stats call failed:";
5253
LOG_S(ERROR) << out;
54+
return {};
5355
} else {
5456
LOG_S(DEBUG) << "klee-stats report:";
5557
LOG_S(DEBUG) << '\n' << out;

0 commit comments

Comments
 (0)