3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 03:57:51 +00:00

add mode to display to get constraints without wild-card notation

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-09-14 14:13:31 +02:00
parent 15ebbbda2c
commit f9b1b4e65d
3 changed files with 12 additions and 1 deletions

View file

@ -42,6 +42,15 @@ namespace polysat {
return display_extra(out, status);
}
std::ostream& ule_constraint::display(std::ostream& out) const {
out << m_lhs;
if (is_eq())
out << " == ";
else
out << " <= ";
return out << m_rhs;
}
void ule_constraint::narrow(solver& s, bool is_positive) {
LOG_H3("Narrowing " << *this);
LOG("Assignment: " << assignments_pp(s));