mirror of
https://github.com/Z3Prover/z3
synced 2025-07-03 11:25:40 +00:00
fix pp
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
0900ea8f72
commit
c202779f52
1 changed files with 6 additions and 3 deletions
|
@ -370,12 +370,15 @@ 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;
|
||||||
|
@ -384,7 +387,7 @@ std::ostream& EGaussian::display(std::ostream& out) const {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!first)
|
if (!first)
|
||||||
out << ")";
|
out << "\n";
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue