Skip to content

Commit

Permalink
fix #7053
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Dec 14, 2023
1 parent c20b8cb commit b40e301
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/opt/opt_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace opt {
if (m_params.m_case_split_strategy == CS_ACTIVITY_DELAY_NEW) {
m_params.m_relevancy_lvl = 0;
}
m_params.m_arith_auto_config_simplex = false;
m_params.m_arith_auto_config_simplex = true;
m_params.m_threads = 1; // need to interact with the solver that created model so can't have threads
// m_params.m_auto_config = false;
}
Expand All @@ -67,7 +67,7 @@ namespace opt {
m_dump_benchmarks = p.dump_benchmarks();
m_params.updt_params(_p);
m_context.updt_params(_p);
m_params.m_arith_auto_config_simplex = false;
m_params.m_arith_auto_config_simplex = true;
}

solver* opt_solver::translate(ast_manager& m, params_ref const& p) {
Expand Down
6 changes: 4 additions & 2 deletions src/smt/theory_arith_pp.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ namespace smt {

template<typename Ext>
void theory_arith<Ext>::display_row(std::ostream & out, row const & r, bool compact) const {

if (static_cast<unsigned>(r.get_base_var()) >= m_columns.size())
return;
column const & c = m_columns[r.get_base_var()];
out << "(v" << r.get_base_var() << " r" << c[0].m_row_id << ") : ";
if (c.size() > 0)
out << "(v" << r.get_base_var() << " r" << c[0].m_row_id << ") : ";
bool first = true;
for (auto const& e : r) {
if (!e.is_dead()) {
Expand Down

0 comments on commit b40e301

Please sign in to comment.