Skip to content

Commit 78a4c44

Browse files
authored
Merge pull request #522 from sosy-lab/519-cvc5-fails-while-calculating-an-interpolant-sequence
fix invalid interpolation query for CVC5.
2 parents 0dbe836 + a9589ec commit 78a4c44

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/org/sosy_lab/java_smt/solvers/cvc5/CVC5InterpolatingProver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public List<BooleanFormula> getSeqInterpolants(List<? extends Collection<String>
105105
Collection<Term> formulasA =
106106
FluentIterable.from(partitions.get(i - 1))
107107
.transform(assertedTerms.peek()::get)
108-
.append(previousItp)
108+
.append(new Term[] {previousItp}) // class Term is Iterable<Term>, be careful here
109109
.toSet();
110110
Collection<Term> formulasB =
111111
FluentIterable.concat(partitions.subList(i, n))

src/org/sosy_lab/java_smt/test/InterpolatingProverTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,6 @@ public <T> void sequentialInterpolation() throws SolverException, InterruptedExc
262262
InterpolatingProverEnvironment<T> stack = newEnvironmentForTest();
263263
requireIntegers();
264264

265-
assume()
266-
.withMessage("Solver %s runs into timeout on this test", solverToUse())
267-
.that(solverToUse())
268-
.isNotEqualTo(Solvers.CVC5);
269-
270265
int i = index.getFreshId();
271266

272267
IntegerFormula zero = imgr.makeNumber(0);
@@ -426,11 +421,6 @@ public <T> void sequentialInterpolationWithFewPartitions()
426421
public <T> void sequentialBVInterpolation() throws SolverException, InterruptedException {
427422
requireBitvectors();
428423

429-
assume()
430-
.withMessage("Solver %s runs into timeout on this test", solverToUse())
431-
.that(solverToUse())
432-
.isNotEqualTo(Solvers.CVC5);
433-
434424
InterpolatingProverEnvironment<T> stack = newEnvironmentForTest();
435425

436426
int i = index.getFreshId();

0 commit comments

Comments
 (0)