summaryrefslogtreecommitdiff
path: root/libs/ezsat/ezsat.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-06-07 14:37:33 +0200
committerClifford Wolf <clifford@clifford.at>2013-06-07 14:37:33 +0200
commit56b593b91cc693849e3b3b3de0666f6ec9a597f6 (patch)
treeccaa7c501a228f4056b887370682f054c81aea48 /libs/ezsat/ezsat.h
parent46fbe9d26299a7b6197463b3056d778f525658fb (diff)
Improved sat generator and sat_solve pass
Diffstat (limited to 'libs/ezsat/ezsat.h')
-rw-r--r--libs/ezsat/ezsat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ezsat/ezsat.h b/libs/ezsat/ezsat.h
index 29b7aca7..ea873a85 100644
--- a/libs/ezsat/ezsat.h
+++ b/libs/ezsat/ezsat.h
@@ -55,7 +55,7 @@ private:
std::vector<std::pair<OpId, std::vector<int>>> expressions;
bool cnfConsumed;
- int cnfVariableCount;
+ int cnfVariableCount, cnfClausesCount;
std::vector<int> cnfLiteralVariables, cnfExpressionVariables;
std::vector<std::vector<int>> cnfClauses;
std::set<int> cnfAssumptions;
@@ -137,6 +137,7 @@ public:
int bound(int id) const;
int numCnfVariables() const { return cnfVariableCount; }
+ int numCnfClauses() const { return cnfClausesCount; }
const std::vector<std::vector<int>> &cnf() const { return cnfClauses; }
void consumeCnf();