Skip to content

Commit

Permalink
Add missing SMT solver option: MathSAT
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-larraz committed Apr 19, 2023
1 parent 91503a2 commit 91002eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {
}

dependencies {
implementation 'edu.uiowa.cs.clc:kind2-java-api:0.3.2'
implementation 'edu.uiowa.cs.clc:kind2-java-api:0.3.3'
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.13.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/edu/uiowa/kind2/lsp/Kind2LanguageServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ private SolverOption stringToSolver(String solver) {
return SolverOption.BITWUZLA;
case "CVC5":
return SolverOption.CVC5;
case "MATHSAT":
return SolverOption.MATHSAT;
case "YICES":
return SolverOption.YICES;
case "YICES2":
Expand Down Expand Up @@ -464,6 +466,11 @@ private void setSmtSolverPath(Kind2Api api, SolverOption solver,
api.setcvc5Bin(smtConfigs.get("cvc5_bin").getAsString());
}
break;
case MATHSAT:
if (!smtConfigs.get("mathsat_bin").getAsString().equals("mathsat")) {
api.setMathSATBin(smtConfigs.get("mathsat_bin").getAsString());
}
break;
case YICES:
if (!smtConfigs.get("yices_bin").getAsString().equals("yices")) {
api.setYicesBin(smtConfigs.get("yices_bin").getAsString());
Expand Down

0 comments on commit 91002eb

Please sign in to comment.