* (non-Javadoc)
*
* @see org.sat4j.minisat.DataStructureFactory#createClause(org.sat4j.datatype.VecInt)
*/
public Constr createClause(IVecInt literals) throws ContradictionException {
IVecInt v = Clauses.sanityCheck(literals, lits, solver);
if (v == null)
return null;
if (v.size() == 2) {
lits.binaryClauses(v.get(0), v.get(1));
return null;
}
if (v.size() == 3) {
lits.ternaryClauses(v.get(0), v.get(1), v.get(2));
return null;
}
return OriginalHTClause.brandNewClause(solver, lits, v);
}