From a4a468660ddd4c6fe1436f6224e06e426096068f Mon Sep 17 00:00:00 2001 From: Lev Date: Tue, 10 Jul 2018 12:05:23 -0700 Subject: [PATCH] remove an assert Signed-off-by: Lev --- src/test/lp/lp.cpp | 1 - src/util/lp/hnf_cutter.h | 3 +-- src/util/lp/lar_solver.cpp | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/lp/lp.cpp b/src/test/lp/lp.cpp index e5375a0df..6e418fe68 100644 --- a/src/test/lp/lp.cpp +++ b/src/test/lp/lp.cpp @@ -320,7 +320,6 @@ void test_small_lu(lp_settings & settings) { auto columns_to_replace = l.get_set_of_columns_to_replace_for_add_last_rows(heading); l.add_last_rows_to_B(heading, columns_to_replace); - std::cout << "here" << std::endl; lp_assert(l.is_correct(basis)); } diff --git a/src/util/lp/hnf_cutter.h b/src/util/lp/hnf_cutter.h index 90cdd5a6d..dff0b8ef8 100644 --- a/src/util/lp/hnf_cutter.h +++ b/src/util/lp/hnf_cutter.h @@ -162,8 +162,7 @@ public: vector transform_to_local_columns(const vector & x) const { vector ret; for (unsigned j = 0; j < vars().size(); j++) { - lp_assert(is_zero(x[m_var_register.local_to_external(j)].y)); - ret.push_back(x[m_var_register.local_to_external(j)].x); + ret.push_back(x[m_var_register.local_to_external(j)].x); } return ret; } diff --git a/src/util/lp/lar_solver.cpp b/src/util/lp/lar_solver.cpp index 2cf0c214d..99a0c5883 100644 --- a/src/util/lp/lar_solver.cpp +++ b/src/util/lp/lar_solver.cpp @@ -2233,7 +2233,7 @@ bool lar_solver::get_equality_and_right_side_for_term_on_current_x(unsigned term unsigned j; bool is_int; if (m_var_register.external_is_used(tj, j, is_int) == false) - return false; // the term does not have bound because it does not correspond to a column + return false; // the term does not have a bound because it does not correspond to a column if (!is_int) // todo - allow for the next version of hnf return false; impq term_val;