add support for inclusion-exclusion

This commit is contained in:
Tiago Gomes
2012-10-30 00:21:10 +00:00
parent b6df8a66b1
commit 8b77b93a3b
4 changed files with 123 additions and 18 deletions

View File

@@ -203,7 +203,7 @@ std::ostream& operator<< (ostream &os, const Clause& clause)
os << clause.literals_[i].toString (clause.ipgLogVars_);
}
if (clause.constr_.empty() == false) {
ConstraintTree copy = clause.constr_;
ConstraintTree copy (clause.constr_);
copy.moveToTop (copy.logVarSet().elements());
os << " | " << copy.tupleSet();
}