3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-14 03:04:44 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-04-15 12:11:33 -07:00
parent 55a908e357
commit 0d78a10630
3 changed files with 28 additions and 28 deletions

View file

@ -15,16 +15,13 @@ Author:
namespace polysat {
constraint* constraint::eq(unsigned lvl, pdd const& p, p_dependency_ref& d) {
return alloc(eq_constraint, lvl, p, dep);
}
std::ostream& constraint::display(std::ostream& out) const {
switch (kind()) {
case ckind_t::eq_t:
return out << p() << " == 0";
case ckind_t::ule_t:
return out << lhs() << " <=u " << rhs();
case ckind_t::sle_t:
return out << lhs() << " <=s " << rhs();
}
return out;
return out << p() << " == 0";
}
}