Skip to content

Commit

Permalink
adjust trace output
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jun 29, 2022
1 parent 5afcb48 commit ff26523
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/math/grobner/grobner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,13 @@ void grobner::reset() {
}

void grobner::display_var(std::ostream & out, expr * var) const {
out << "#" << var->get_id();
#if 0
if (is_app(var) && to_app(var)->get_num_args() > 0)
out << mk_bounded_pp(var, m_manager);
else
out << mk_pp(var, m_manager);
#endif
}

void grobner::display_vars(std::ostream & out, unsigned num_vars, expr * const * vars) const {
Expand Down
7 changes: 4 additions & 3 deletions src/smt/theory_arith_nl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2154,13 +2154,14 @@ void theory_arith<Ext>::set_gb_exhausted() {
// Scan the grobner basis eqs, and look for inconsistencies.
template<typename Ext>
bool theory_arith<Ext>::get_gb_eqs_and_look_for_conflict(ptr_vector<grobner::equation>& eqs, grobner& gb) {
TRACE("grobner", );

eqs.reset();
gb.get_equations(eqs);
TRACE("grobner_bug", tout << "after gb\n";);
TRACE("grobner", tout << "after gb\n";
for (grobner::equation* eq : eqs)
gb.display_equation(tout, *eq);
);
for (grobner::equation* eq : eqs) {
TRACE("grobner_bug", gb.display_equation(tout, *eq););
if (is_inconsistent(eq, gb) || is_inconsistent2(eq, gb)) {
TRACE("grobner", tout << "inconsistent: "; gb.display_equation(tout, *eq););
return true;
Expand Down

0 comments on commit ff26523

Please sign in to comment.