Skip to content

Commit

Permalink
Log warning when there are problems with bounds file
Browse files Browse the repository at this point in the history
Signed-off-by: Hernan Ponce de Leon <[email protected]>
  • Loading branch information
hernanponcedeleon committed Oct 26, 2024
1 parent b88bd72 commit bf1d312
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dartagnan/src/main/java/com/dat3m/dartagnan/Dartagnan.java
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public static String generateResultSummary(VerificationTask task, ProverEnvironm
try {
increaseBoundAndDump(reachedBounds, task.getConfig());
} catch (IOException e) {
e.printStackTrace();
logger.warn("Failed to save bounds file: {}", e.getLocalizedMessage());
}
}
summary.append(result).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private Map<Function, Map<CondJump, Integer>> loadLoopBoundsMapFromFile(Program
.put(loopJump, bound);
}
} catch (IOException e) {
e.printStackTrace();
// Nothing to be done, filePath is guaranteed to exists when the FileReader is called.
}

return loopBoundsMapPerFunction;
Expand All @@ -313,7 +313,7 @@ private void dumpLoopBoundsMapToFile(Program program, Map<Function, Map<CondJump
}
csvPrinter.flush();
} catch (IOException e) {
e.printStackTrace();
logger.warn("Failed to save bounds file: {}", e.getLocalizedMessage());
}
}

Expand Down

0 comments on commit bf1d312

Please sign in to comment.