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

@@ -25,8 +25,10 @@ class Literal
LiteralId lid (void) const { return lid_; }
LogVars logVars (void) const { return logVars_; }
LogVarSet logVarSet (void) const { return LogVarSet (logVars_); }
// FIXME not log aware :(
// FIXME this is not log aware :(
double weight (void) const { return weight_ < 0.0 ? 1.0 : weight_; }
void negate (void) { negated_ = !negated_; }
@@ -96,8 +98,9 @@ class Clause
friend std::ostream& operator<< (ostream &os, const Clause& clause);
private:
void removeLiteral (size_t idx);
private:
LogVarSet getLogVarSetExcluding (size_t idx) const;