3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 03:57:51 +00:00
This commit is contained in:
Jakob Rath 2022-10-04 14:08:44 +02:00
parent 3d27ec41d0
commit 9cc9d1fac4
5 changed files with 14 additions and 5 deletions

View file

@ -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;