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

Small polysat fixes (#5183)

* Add some display functions

* Add new variables to free vars
This commit is contained in:
Jakob Rath 2021-04-14 19:29:58 +02:00 committed by GitHub
parent 3730a0373d
commit 8a260d89cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 0 deletions

View file

@ -76,5 +76,21 @@ public:
var min_var() { SASSERT(!empty()); return m_queue.min_value(); }
bool more_active(var v1, var v2) const { return m_queue.less_than(v1, v2); }
std::ostream& display(std::ostream& out) const {
bool first = true;
for (auto v : m_queue) {
if (first) {
first = false;
} else {
out << " ";
}
out << v;
}
return out;
}
};
inline std::ostream& operator<<(std::ostream& out, var_queue const& queue) {
return queue.display(out);
}