add inital smoothing of the circuit

This commit is contained in:
Tiago Gomes
2012-10-24 21:22:49 +01:00
parent 0cfc64d068
commit eac6b954a8
4 changed files with 295 additions and 81 deletions

View File

@@ -20,6 +20,8 @@ class Literal
lid_(lit.lid_), logVars_(lit.logVars_), weight_(lit.weight_), negated_(negated) { }
LiteralId lid (void) const { return lid_; }
LogVars logVars (void) const { return logVars_; }
double weight (void) const { return weight_; }
@@ -102,9 +104,11 @@ class LiftedWCNF
const Clauses& clauses (void) const { return clauses_; }
Clause createClauseForLiteral (LiteralId lid) const;
void printClauses (void) const;
void printFormulasToIndicators (void) const;
void printFormulaIndicators (void) const;
private:
void addIndicatorClauses (const ParfactorList& pfList);
@@ -119,7 +123,7 @@ class LiftedWCNF
Clauses clauses_;
unordered_map<PrvGroup,vector<LiteralId>> map_;
unordered_map<PrvGroup, vector<LiteralId>> map_;
const ParfactorList& pfList_;
@@ -127,3 +131,4 @@ class LiftedWCNF
};
#endif // HORUS_LIFTEDWCNF_H