3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-03 11:25:40 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-12-08 14:13:43 -08:00
parent 0900ea8f72
commit c202779f52

View file

@ -370,21 +370,24 @@ std::ostream& PackedMatrix::display_dense(std::ostream& out) const {
} }
std::ostream& EGaussian::display(std::ostream& out) const { std::ostream& EGaussian::display(std::ostream& out) const {
if (m_mat.num_rows() == 0)
return out;
out << "xors\n";
for (auto const& row : m_mat) { for (auto const& row : m_mat) {
bool first = true; bool first = true;
for (int i = 0; i < row.get_size() * 64; ++i) { for (int i = 0; i < row.get_size() * 64; ++i) {
if (row[i]) { if (row[i]) {
if (first) if (first)
out << "(x"; out << "x";
int v = m_column_to_var[i]; int v = m_column_to_var[i];
if (first && !row.rhs()) if (first && !row.rhs())
v = -v; v = -v;
out << " " << v; out << " " << v;
first = false; first = false;
} }
} }
if (!first) if (!first)
out << ")"; out << "\n";
} }
return out; return out;
} }