Skip to content

Commit 458b8f1

Browse files
CVC5: Removed CVC5 from the blacklist in concurrent tests.
1 parent 5900232 commit 458b8f1

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

Diff for: src/org/sosy_lab/java_smt/test/SolverConcurrencyTest.java

-10
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,6 @@ public void testFormulaTranslationWithConcurrentContexts()
348348
public void testIntConcurrencyWithoutConcurrentContext() throws InvalidConfigurationException {
349349
requireIntegers();
350350

351-
assume()
352-
.withMessage("Solver does not support concurrency without concurrent context.")
353-
.that(solver)
354-
.isNotEqualTo(Solvers.CVC5);
355-
356351
ConcurrentLinkedQueue<SolverContext> contextList = new ConcurrentLinkedQueue<>();
357352
// Initialize contexts before using them in the threads
358353
for (int i = 0; i < NUMBER_OF_THREADS; i++) {
@@ -373,11 +368,6 @@ public void testIntConcurrencyWithoutConcurrentContext() throws InvalidConfigura
373368
public void testBvConcurrencyWithoutConcurrentContext() throws InvalidConfigurationException {
374369
requireBitvectors();
375370

376-
assume()
377-
.withMessage("Solver does not support concurrency without concurrent context.")
378-
.that(solver)
379-
.isNotEqualTo(Solvers.CVC5);
380-
381371
ConcurrentLinkedQueue<SolverContext> contextList = new ConcurrentLinkedQueue<>();
382372
// Initialize contexts before using them in the threads
383373
for (int i = 0; i < NUMBER_OF_THREADS; i++) {

Diff for: src/org/sosy_lab/java_smt/test/SolverThreadLocalityTest.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class SolverThreadLocalityTest extends SolverBasedTest0.ParameterizedSolv
4343
private static final int DEFAULT_PROBLEM_SIZE = 8;
4444

4545
private static final Collection<Solvers> SOLVERS_NOT_SUPPORTING_FORMULA_THREAD_SHARING =
46-
ImmutableList.of(Solvers.CVC5);
46+
ImmutableList.of(); // TODO: Remove this
4747

4848
@Before
4949
public void makeThreads() {
@@ -79,7 +79,6 @@ public void allLocalTest() throws InterruptedException, SolverException {
7979
public void nonLocalContextTest()
8080
throws ExecutionException, InterruptedException, SolverException {
8181
requireIntegers();
82-
assume().that(solverToUse()).isNotEqualTo(Solvers.CVC5);
8382

8483
// generate a new context in another thread, i.e., non-locally
8584
Future<SolverContext> result = executor.submit(() -> factory.generateContext());
@@ -114,7 +113,6 @@ public void nonLocalContextTest()
114113
public void nonLocalFormulaTest()
115114
throws InterruptedException, SolverException, ExecutionException {
116115
requireIntegers();
117-
assume().that(solverToUse()).isNotEqualTo(Solvers.CVC5);
118116

119117
// generate a new formula in another thread, i.e., non-locally
120118
Future<BooleanFormula> result =
@@ -143,8 +141,6 @@ public void nonLocalFormulaTest()
143141
@Test
144142
public void nonLocalProverTest() throws InterruptedException, ExecutionException {
145143
requireIntegers();
146-
assume().that(solverToUse()).isNotEqualTo(Solvers.CVC5);
147-
148144
BooleanFormula formula = hardProblem.generate(DEFAULT_PROBLEM_SIZE);
149145

150146
// generate a new prover in another thread, i.e., non-locally
@@ -264,7 +260,6 @@ public <T> void localInterpolationTest() throws InterruptedException, SolverExce
264260
public <T> void nonLocalInterpolationTest() throws InterruptedException, ExecutionException {
265261
requireIntegers();
266262
requireInterpolation();
267-
assume().that(solverToUse()).isNotEqualTo(Solvers.CVC5);
268263

269264
BooleanFormula f1 = imgr.lessThan(imgr.makeVariable("A"), imgr.makeVariable("B"));
270265
BooleanFormula f2 = imgr.lessThan(imgr.makeVariable("B"), imgr.makeVariable("A"));

0 commit comments

Comments
 (0)