Skip to content

Commit

Permalink
Remove use of "synchornized" in Mathsat5AbstractProver. Mathsat only …
Browse files Browse the repository at this point in the history
…support one thread per ProverEnvironment anyway.
  • Loading branch information
daniel-raffler committed Dec 19, 2023
1 parent 389af9f commit 010ddc2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ private <T> T exec(Callable<T> closure) throws SolverException, InterruptedExcep
}

@Override
public synchronized boolean isUnsat() throws InterruptedException, SolverException {
public boolean isUnsat() throws InterruptedException, SolverException {
Preconditions.checkState(!closed);
return exec(() -> !msat_check_sat(curEnv));
}

@Override
public synchronized boolean isUnsatWithAssumptions(Collection<BooleanFormula> pAssumptions)
public boolean isUnsatWithAssumptions(Collection<BooleanFormula> pAssumptions)
throws SolverException, InterruptedException {
Preconditions.checkState(!closed);
checkForLiterals(pAssumptions);
Expand Down Expand Up @@ -238,7 +238,7 @@ protected boolean isClosed() {
}

@Override
public synchronized <T> T allSat(AllSatCallback<T> callback, List<BooleanFormula> important)
public <T> T allSat(AllSatCallback<T> callback, List<BooleanFormula> important)
throws InterruptedException, SolverException {
Preconditions.checkState(!closed);
checkGenerateAllSat();
Expand Down

0 comments on commit 010ddc2

Please sign in to comment.