3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Remove clause methods that should not be used

This commit is contained in:
Jakob Rath 2022-12-12 11:47:27 +01:00
parent 5a27ae6b53
commit 9feefa4c0a
2 changed files with 0 additions and 18 deletions

View file

@ -28,20 +28,6 @@ namespace polysat {
return alloc(clause, std::move(literals));
}
bool clause::is_always_false(solver& s) const {
return all_of(m_literals, [&s](sat::literal lit) {
signed_constraint c = s.m_constraints.lookup(lit);
return c.is_always_false();
});
}
bool clause::is_currently_false(solver& s) const {
return all_of(m_literals, [&s](sat::literal lit) {
signed_constraint c = s.m_constraints.lookup(lit);
return c.is_currently_false(s);
});
}
std::ostream& clause::display(std::ostream& out) const {
bool first = true;
for (auto lit : *this) {

View file

@ -68,10 +68,6 @@ 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;
std::ostream& display(std::ostream& out) const;
void set_redundant(bool r) { m_redundant = r; }