diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-06-07 14:37:33 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-06-07 14:37:33 +0200 |
commit | 56b593b91cc693849e3b3b3de0666f6ec9a597f6 (patch) | |
tree | ccaa7c501a228f4056b887370682f054c81aea48 /libs/ezsat/ezsat.h | |
parent | 46fbe9d26299a7b6197463b3056d778f525658fb (diff) | |
download | yosys-56b593b91cc693849e3b3b3de0666f6ec9a597f6.tar.gz yosys-56b593b91cc693849e3b3b3de0666f6ec9a597f6.tar.bz2 yosys-56b593b91cc693849e3b3b3de0666f6ec9a597f6.zip |
Improved sat generator and sat_solve pass
Diffstat (limited to 'libs/ezsat/ezsat.h')
-rw-r--r-- | libs/ezsat/ezsat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ezsat/ezsat.h b/libs/ezsat/ezsat.h index 29b7aca71..ea873a859 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(); |