Skip to content

Commit ae34371

Browse files
committed
documentation for interpolation.
1 parent 4ee18c7 commit ae34371

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/org/sosy_lab/java_smt/api/InterpolatingProverEnvironment.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ BooleanFormula getInterpolant(Collection<T> formulasOfA)
5858
* the interpolation-strategy of the underlying SMT-solver! Depending on the underlying SMT-solver
5959
* this method might be faster than N direct calls to getInterpolant().
6060
*
61-
* <p>The stack should contain exactly the partitioned formulas, but any order is allowed. For an
62-
* input of N partitions we return N-1 interpolants. Any asserted formula that is not part of the
63-
* partitioned list, will be used for background theory.
61+
* <p>The prover stack should contain the partitioned formulas, but any order is allowed. For an
62+
* input of N partitions we return N-1 interpolants. Any asserted formula that is on the prover
63+
* stack and not part of the partitioned list, will be used for background theory and its symbols
64+
* can appear in any interpolant.
6465
*
6566
* @return a 'inductive sequence' of interpolants, such that the implication {@code AND(I_i, P_i)
6667
* => I_(i+1)} is satisfied for all i, where P_i is the conjunction of all formulas in
@@ -102,6 +103,11 @@ default List<BooleanFormula> getSeqInterpolants0(List<T> formulas)
102103
* startOfSubTree = [0,0,2,2,0,0,6,0] // index of left-most leaf of the current element
103104
* </pre>
104105
*
106+
* <p>The prover stack should contain the partitioned formulas. For an input of N partitions
107+
* (nodes in the tree) we return N-1 interpolants (one interpolant for/below each node except the
108+
* root). Any asserted formula that is on the prover stack and not part of the partitioned list,
109+
* will be used for background theory and its symbols can appear in any interpolant.
110+
*
105111
* @param partitionedFormulas of formulas
106112
* @param startOfSubTree The start of the subtree containing the formula at this index as root.
107113
* @return Tree interpolants respecting the nesting relation.

0 commit comments

Comments
 (0)