* @param POSLITS positive literals
* @param NEGLITS negative literals
* @return true if the clause has been added to the clause store
*/
public static boolean addClauses(BoolVar[] POSLITS, BoolVar[] NEGLITS) {
Solver solver = POSLITS.length > 0 ? POSLITS[0].getSolver() : NEGLITS[0].getSolver();
PropSat sat = solver.getMinisat().getPropSat();
TIntList lits = new TIntArrayList(POSLITS.length + NEGLITS.length);
for (int i = 0; i < POSLITS.length; i++) {
lits.add(sat.Literal(POSLITS[i]));
}
for (int i = 0; i < NEGLITS.length; i++) {