2323import org .sosy_lab .java_smt .api .BooleanFormula ;
2424import org .sosy_lab .java_smt .api .ProverEnvironment ;
2525import org .sosy_lab .java_smt .api .SolverContext .ProverOptions ;
26+ import org .sosy_lab .java_smt .api .SolverException ;
2627import org .sosy_lab .java_smt .api .UserPropagator ;
2728
2829class Z3TheoremProver extends Z3AbstractProver implements ProverEnvironment {
@@ -82,7 +83,7 @@ protected void assertContraintAndTrack(long constraint, long symbol) {
8283 }
8384
8485 @ Override
85- public boolean isUnsat () throws Z3SolverException , InterruptedException {
86+ public boolean isUnsat () throws SolverException , InterruptedException {
8687 Preconditions .checkState (!closed );
8788 logSolverStack ();
8889 int result ;
@@ -97,7 +98,7 @@ public boolean isUnsat() throws Z3SolverException, InterruptedException {
9798
9899 @ Override
99100 public boolean isUnsatWithAssumptions (Collection <BooleanFormula > assumptions )
100- throws Z3SolverException , InterruptedException {
101+ throws SolverException , InterruptedException {
101102 Preconditions .checkState (!closed );
102103
103104 int result ;
@@ -116,7 +117,7 @@ public boolean isUnsatWithAssumptions(Collection<BooleanFormula> assumptions)
116117 }
117118
118119 private void undefinedStatusToException (int solverStatus )
119- throws Z3SolverException , InterruptedException {
120+ throws SolverException , InterruptedException {
120121 if (solverStatus == Z3_lbool .Z3_L_UNDEF .toInt ()) {
121122 creator .shutdownNotifier .shutdownIfNecessary ();
122123 final String reason = Native .solverGetReasonUnknown (z3context , z3solver );
@@ -126,7 +127,7 @@ private void undefinedStatusToException(int solverStatus)
126127 case "interrupted from keyboard" : // see Z3: src/solver/check_sat_result.cpp
127128 throw new InterruptedException (reason );
128129 default :
129- throw new Z3SolverException ( "Solver returned 'unknown' status, reason: " + reason );
130+ throw new SolverException ( "Z3 returned 'unknown' status, reason: " + reason );
130131 }
131132 }
132133 }
0 commit comments