|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface SATProver.Clause
A clause in a proof of unsatisfiability.
some antecedents =>
this.literals = { lit: antecedents.literals | -lit !in antecedents.literals } |
prover = antecedents.prover |
prover: SATProver \\ sat prover containing this clause |
literals: set int \\ clause literals |
antecedents: set Clause \\ the clauses from which this clause was derived |
Method Summary | |
---|---|
java.util.Set<SATProver.Clause> |
antecedents()
Returns an unmodifiable set view of this.antecedents. |
int |
index()
Returns a non-negative integer indicating when this clause was first seen by this.prover. |
boolean |
learned()
Returns true if this clause was learned during solving. |
IntSet |
literals()
Returns an unmodifiable IntSet view of this.literals. |
Method Detail |
---|
int index()
SATSolver.addClause(int[])
will have
index 0, the next one will have index 1, the first
learned clause will have index SATSolver.numberOfClauses()
, etc.
IntSet literals()
java.util.Set<SATProver.Clause> antecedents()
boolean learned()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |