mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
count
This commit is contained in:
parent
3d27ec41d0
commit
9cc9d1fac4
5 changed files with 14 additions and 5 deletions
|
@ -50,7 +50,7 @@ namespace polysat {
|
|||
|
||||
clause(sat::literal_vector literals):
|
||||
m_literals(std::move(literals)) {
|
||||
SASSERT(std::count(m_literals.begin(), m_literals.end(), sat::null_literal) == 0);
|
||||
SASSERT(count(m_literals, sat::null_literal) == 0);
|
||||
}
|
||||
|
||||
public:
|
||||
|
@ -69,6 +69,7 @@ namespace polysat {
|
|||
const_iterator begin() const { return m_literals.begin(); }
|
||||
const_iterator end() const { return m_literals.end(); }
|
||||
|
||||
// evaluates under pvar assignment
|
||||
bool is_always_false(solver& s) const;
|
||||
bool is_currently_false(solver& s) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue