public abstract class Clauses extends Object
Constructor and Description |
---|
Clauses() |
Modifier and Type | Method and Description |
---|---|
static IVecInt |
sanityCheck(IVecInt ps,
ILits voc,
UnitPropagationListener s)
Perform some sanity check before constructing a clause a) if a literal is
assigned true, return null (the clause is satisfied) b) if a literal is
assigned false, remove it c) if a clause contains a literal and its
opposite (tautology) return null d) remove duplicate literals e) if the
clause is empty, return null f) if the clause if unit, transmit it to the
object responsible for unit propagation
|
public static IVecInt sanityCheck(IVecInt ps, ILits voc, UnitPropagationListener s) throws ContradictionException
ps
- the list of literalsvoc
- the vocabulary useds
- the object responsible for unit propagationContradictionException
- if discovered by unit propagationCopyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.