From 9d58fccd4174301d3f55b06bc60955239420e5f3 Mon Sep 17 00:00:00 2001 From: Lev Nachmanson Date: Fri, 3 Apr 2020 12:43:20 -0700 Subject: [PATCH] fix in random_update() Signed-off-by: Lev Nachmanson --- src/math/lp/lar_solver.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/math/lp/lar_solver.cpp b/src/math/lp/lar_solver.cpp index 5d87217d4..7e9795a06 100644 --- a/src/math/lp/lar_solver.cpp +++ b/src/math/lp/lar_solver.cpp @@ -1330,8 +1330,10 @@ void lar_solver::fill_var_set_for_random_update(unsigned sz, var_index const * v TRACE("lar_solver_rand", tout << "sz = " << sz << "\n";); for (unsigned i = 0; i < sz; i++) { var_index var = vars[i]; - if (tv::is_term(var) && term_is_used_as_row(tv::unmask_term(var))) { - column_list.push_back(map_term_index_to_column_index(var)); + if (tv::is_term(var)) { + if (term_is_used_as_row(tv::unmask_term(var))) { + column_list.push_back(map_term_index_to_column_index(var)); + } } else { column_list.push_back(var); }