From 7890555455282917b36a6ef647caf3c2bfbcf3ca Mon Sep 17 00:00:00 2001 From: Lev Nachmanson Date: Fri, 3 Apr 2020 12:36:48 -0700 Subject: [PATCH] fix in random_update() Signed-off-by: Lev Nachmanson --- src/math/lp/lar_solver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/lp/lar_solver.cpp b/src/math/lp/lar_solver.cpp index 1e0395d57..5d87217d4 100644 --- a/src/math/lp/lar_solver.cpp +++ b/src/math/lp/lar_solver.cpp @@ -1330,7 +1330,7 @@ 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)) { + 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)); } else { column_list.push_back(var);