mirror of
https://github.com/Z3Prover/z3
synced 2025-08-15 07:15:26 +00:00
Remove clause methods that should not be used
This commit is contained in:
parent
5a27ae6b53
commit
9feefa4c0a
2 changed files with 0 additions and 18 deletions
|
@ -28,20 +28,6 @@ namespace polysat {
|
||||||
return alloc(clause, std::move(literals));
|
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 {
|
std::ostream& clause::display(std::ostream& out) const {
|
||||||
bool first = true;
|
bool first = true;
|
||||||
for (auto lit : *this) {
|
for (auto lit : *this) {
|
||||||
|
|
|
@ -68,10 +68,6 @@ namespace polysat {
|
||||||
const_iterator begin() const { return m_literals.begin(); }
|
const_iterator begin() const { return m_literals.begin(); }
|
||||||
const_iterator end() const { return m_literals.end(); }
|
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;
|
std::ostream& display(std::ostream& out) const;
|
||||||
|
|
||||||
void set_redundant(bool r) { m_redundant = r; }
|
void set_redundant(bool r) { m_redundant = r; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue