@@ -218,36 +218,37 @@ public <T> void nonlocalInterpolationTest() throws InterruptedException, Executi
218
218
(InterpolatingProverEnvironment <T >) context .newProverEnvironmentWithInterpolation ()) {
219
219
T id1 = prover .push (f1 );
220
220
221
- Future <?> task1 = executor .submit (
222
- () -> {
223
- try {
224
- // FIXME: Exception for CVC5
225
- // java.lang.IllegalStateException:
226
- // You tried to use push() on an CVC5 assertion stack illegally.
227
- // at org.sosy_lab.java_smt.solvers.cvc5.CVC5AbstractProver.pushImpl
228
- // (CVC5AbstractProver.java:89)
229
- // at org.sosy_lab.java_smt.basicimpl.AbstractProver.push
230
- // (AbstractProver.java:88)
231
- // at ..
232
- prover .push (f2 );
233
-
234
- // FIXME: Exception for MathSAT (bug #339)
235
- // java.lang.StackOverflowError
236
- // at org.sosy_lab.java_smt.solvers.mathsat5.Mathsat5NativeApi.msat_solve
237
- // (Native Method)
238
- // at org.sosy_lab.java_smt.solvers.mathsat5.Mathsat5NativeApi.msat_check_sat
239
- // (Mathsat5NativeApi.java:156)
240
- // at org.sosy_lab.java_smt.solvers.mathsat5.Mathsat5AbstractProver.isUnsat
241
- // (Mathsat5AbstractProver.java:106)
242
- // at org.sosy_lab.java_smt.test.ProverEnvironmentSubject.isUnsatisfiable
243
- // (ProverEnvironmentSubject.java:67)
244
- // at ..
245
- assertThat (prover ).isUnsatisfiable ();
246
-
247
- } catch (SolverException | InterruptedException pE ) {
248
- throw new RuntimeException (pE );
249
- }
250
- });
221
+ Future <?> task1 =
222
+ executor .submit (
223
+ () -> {
224
+ try {
225
+ // FIXME: Exception for CVC5
226
+ // java.lang.IllegalStateException:
227
+ // You tried to use push() on an CVC5 assertion stack illegally.
228
+ // at org.sosy_lab.java_smt.solvers.cvc5.CVC5AbstractProver.pushImpl
229
+ // (CVC5AbstractProver.java:89)
230
+ // at org.sosy_lab.java_smt.basicimpl.AbstractProver.push
231
+ // (AbstractProver.java:88)
232
+ // at ..
233
+ prover .push (f2 );
234
+
235
+ // FIXME: Exception for MathSAT (bug #339)
236
+ // java.lang.StackOverflowError
237
+ // at org.sosy_lab.java_smt.solvers.mathsat5.Mathsat5NativeApi.msat_solve
238
+ // (Native Method)
239
+ // at org.sosy_lab.java_smt.solvers.mathsat5.Mathsat5NativeApi.msat_check_sat
240
+ // (Mathsat5NativeApi.java:156)
241
+ // at org.sosy_lab.java_smt.solvers.mathsat5.Mathsat5AbstractProver.isUnsat
242
+ // (Mathsat5AbstractProver.java:106)
243
+ // at org.sosy_lab.java_smt.test.ProverEnvironmentSubject.isUnsatisfiable
244
+ // (ProverEnvironmentSubject.java:67)
245
+ // at ..
246
+ assertThat (prover ).isUnsatisfiable ();
247
+
248
+ } catch (SolverException | InterruptedException pE ) {
249
+ throw new RuntimeException (pE );
250
+ }
251
+ });
251
252
252
253
assert task1 .get () == null ;
253
254
@@ -271,19 +272,20 @@ public <T> void nonlocalInterpolationTest() throws InterruptedException, Executi
271
272
executor .awaitTermination (100 , TimeUnit .MILLISECONDS );
272
273
prover .pop ();
273
274
274
- Future <?> task3 = executor .submit (
275
- () -> {
276
- try {
277
- prover .pop ();
275
+ Future <?> task3 =
276
+ executor .submit (
277
+ () -> {
278
+ try {
279
+ prover .pop ();
278
280
279
- prover .push (itp .get ());
280
- prover .push (f2 );
281
+ prover .push (itp .get ());
282
+ prover .push (f2 );
281
283
282
- assertThat (prover ).isUnsatisfiable ();
283
- } catch (SolverException | InterruptedException | ExecutionException pE ) {
284
- throw new RuntimeException (pE );
285
- }
286
- });
284
+ assertThat (prover ).isUnsatisfiable ();
285
+ } catch (SolverException | InterruptedException | ExecutionException pE ) {
286
+ throw new RuntimeException (pE );
287
+ }
288
+ });
287
289
288
290
assert task3 .get () == null ;
289
291
}
0 commit comments