kodkod.engine.satlab
Interface SATProof.Clause

Enclosing interface:
SATProof

public static interface SATProof.Clause

A clause in a proof of unsatisfiability.

specfield:
proof: SATProver
literals: int[] \\ clause literals
antecedents: set Clause \\ the clauses from which this clause was derived

Method Summary
 IntIterator antecedents()
          Returns an iterator over the indices of the clauses from which this was learned.
 int index()
          Returns the index of this clause in the proof.
 boolean learned()
          Returns true if this is a learned clause.
 int literal(int index)
          Returns the literal at the given index.
 int size()
          Returns the number of literals in this clause.
 

Method Detail

index

int index()
Returns the index of this clause in the proof.

Returns:
{i: int | this.proof.trace[i] = this }

size

int size()
Returns the number of literals in this clause.

Returns:
#this.literals

literal

int literal(int index)
Returns the literal at the given index.

Returns:
this.literals[index]

learned

boolean learned()
Returns true if this is a learned clause.

Returns:
some this.antecedents

antecedents

IntIterator antecedents()
Returns an iterator over the indices of the clauses from which this was learned.

Returns:
an iterator over the indices of this.antecedents