Skip to content

Commit

Permalink
assumptions triggered a runtimeexception
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi authored and mondokm committed Aug 5, 2024
1 parent 13c9ad3 commit 6c948eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ public void installSolver() {
if (solverString.contains("Z3") || solverString.contains("JavaSMT")) {
return;
}
Assume.assumeTrue(OsHelper.getOs() == OsHelper.OperatingSystem.LINUX); // chc solvers are only properly on linux
try (final var solverManager = SmtLibSolverManager.create(SMTLIB_HOME, new ConsoleLogger(Level.DETAIL))) {
Assume.assumeTrue(OsHelper.getOs() == OsHelper.OperatingSystem.LINUX); // chc solvers are only properly on linux
String solverVersion = SmtLibSolverManager.getSolverVersion(solverString);
String solverName = SmtLibSolverManager.getSolverName(solverString);
if (solverManager.managesSolver(solverString) && !solverManager.getInstalledVersions(solverName).contains(solverManager.getVersionString(solverName, solverVersion, false))) {
Expand Down

0 comments on commit 6c948eb

Please sign in to comment.