if (pos!=null && pos!=Pos.UNKNOWN) k2pos(newFormula, pos);
}
/** Add the given formula to the list of Kodkod formulas, and associate it with the given Expr object (expr can be null if unknown) */
void addFormula(Formula newFormula, Expr expr) throws Err {
if (solved) throw new ErrorFatal("Cannot add an additional formula since solve() has completed.");
if (formulas.size()>0 && formulas.get(0)==Formula.FALSE) return; // If one formula is false, we don't need the others
if (newFormula==Formula.FALSE) formulas.clear(); // If one formula is false, we don't need the others
formulas.add(newFormula);
if (expr!=null) k2pos(newFormula, expr);
}