Skip to content

Commit d5162d9

Browse files
committed
add an assert
Signed-off-by: Lev Nachmanson <[email protected]>
1 parent aa0f5db commit d5162d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/math/lp/lar_solver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ void lar_solver::prepare_costs_for_r_solver(const lar_term & term) {
466466
}
467467

468468
void lar_solver::move_non_basic_columns_to_bounds() {
469+
SASSERT(get_status() == lp_status::OPTIMAL || get_status() == lp_status::FEASIBLE);
469470
auto & lcs = m_mpq_lar_core_solver;
470471
bool change = false;
471472
for (unsigned j : lcs.m_r_nbasis) {

0 commit comments

Comments
 (0)