mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
more streamlined diagnostics to prepare for #5106
This commit is contained in:
parent
d03fdf5fed
commit
ff0de59a70
|
@ -1252,6 +1252,15 @@ namespace lp {
|
|||
|
||||
// ********** print region start
|
||||
|
||||
std::ostream& lar_solver::display(std::ostream& out) const {
|
||||
out << constraints();
|
||||
print_terms(out);
|
||||
pp(out).print();
|
||||
for (unsigned j = 0; j < number_of_vars(); j++)
|
||||
print_column_info(j, out);
|
||||
return out;
|
||||
}
|
||||
|
||||
std::ostream& lar_solver::print_terms(std::ostream& out) const {
|
||||
for (auto it : m_terms) {
|
||||
print_term(*it, out) << "\n";
|
||||
|
|
|
@ -525,6 +525,8 @@ public:
|
|||
std::ostream& print_constraint_indices_only(const lar_base_constraint * c, std::ostream & out) const;
|
||||
std::ostream& print_implied_bound(const implied_bound& be, std::ostream & out) const;
|
||||
std::ostream& print_values(std::ostream& out) const;
|
||||
std::ostream& display(std::ostream& out) const;
|
||||
|
||||
bool init_model() const;
|
||||
mpq get_value(column_index const& j) const;
|
||||
mpq get_tv_value(tv const& t) const;
|
||||
|
|
|
@ -23,13 +23,7 @@ namespace arith {
|
|||
|
||||
|
||||
std::ostream& solver::display(std::ostream& out) const {
|
||||
out << lp().constraints();
|
||||
lp().print_terms(out);
|
||||
// the tableau
|
||||
lp().pp(out).print();
|
||||
for (unsigned j = 0; j < lp().number_of_vars(); j++) {
|
||||
lp().print_column_info(j, out);
|
||||
}
|
||||
lp().display(out);
|
||||
|
||||
if (m_nla) {
|
||||
m_nla->display(out);
|
||||
|
|
|
@ -3659,13 +3659,7 @@ public:
|
|||
|
||||
void display(std::ostream & out) {
|
||||
if (m_solver) {
|
||||
out << lp().constraints();
|
||||
lp().print_terms(out);
|
||||
// the tableau
|
||||
lp().pp(out).print();
|
||||
for (unsigned j = 0; j < lp().number_of_vars(); j++) {
|
||||
lp().print_column_info(j, out);
|
||||
}
|
||||
m_solver->display(out);
|
||||
}
|
||||
if (m_nla) {
|
||||
m_nla->display(out);
|
||||
|
|
Loading…
Reference in a new issue