Skip to content

Commit b40e301

Browse files
fix #7053
1 parent c20b8cb commit b40e301

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/opt/opt_solver.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace opt {
5252
if (m_params.m_case_split_strategy == CS_ACTIVITY_DELAY_NEW) {
5353
m_params.m_relevancy_lvl = 0;
5454
}
55-
m_params.m_arith_auto_config_simplex = false;
55+
m_params.m_arith_auto_config_simplex = true;
5656
m_params.m_threads = 1; // need to interact with the solver that created model so can't have threads
5757
// m_params.m_auto_config = false;
5858
}
@@ -67,7 +67,7 @@ namespace opt {
6767
m_dump_benchmarks = p.dump_benchmarks();
6868
m_params.updt_params(_p);
6969
m_context.updt_params(_p);
70-
m_params.m_arith_auto_config_simplex = false;
70+
m_params.m_arith_auto_config_simplex = true;
7171
}
7272

7373
solver* opt_solver::translate(ast_manager& m, params_ref const& p) {

src/smt/theory_arith_pp.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ namespace smt {
8383

8484
template<typename Ext>
8585
void theory_arith<Ext>::display_row(std::ostream & out, row const & r, bool compact) const {
86-
86+
if (static_cast<unsigned>(r.get_base_var()) >= m_columns.size())
87+
return;
8788
column const & c = m_columns[r.get_base_var()];
88-
out << "(v" << r.get_base_var() << " r" << c[0].m_row_id << ") : ";
89+
if (c.size() > 0)
90+
out << "(v" << r.get_base_var() << " r" << c[0].m_row_id << ") : ";
8991
bool first = true;
9092
for (auto const& e : r) {
9193
if (!e.is_dead()) {

0 commit comments

Comments
 (0)