3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-13 09:31:14 +00:00

add utility to count clauses

This commit is contained in:
Nikolaj Bjorner 2023-04-02 16:12:26 -07:00
parent 3302ab9dc5
commit 9d751576bc
2 changed files with 8 additions and 0 deletions

View file

@ -106,6 +106,13 @@ namespace polysat {
bool watch(clause& cl);
void unwatch(clause& cl);
unsigned num_clauses() const {
unsigned n = 0;
for (auto const& lvl : m_clauses)
n += lvl.size();
return n;
}
constraint* lookup(sat::bool_var var) const;
signed_constraint lookup(sat::literal lit) const;