mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix sort_non_basis (#6755)
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
1d62964c58
commit
f7ec5c5c64
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ void lp_primal_core_solver<T, X>::sort_non_basis() {
|
|||
unsigned ca = this->m_A.number_of_non_zeroes_in_column(a);
|
||||
unsigned cb = this->m_A.number_of_non_zeroes_in_column(b);
|
||||
if (ca == 0 && cb != 0) return false;
|
||||
if (ca != 0 && cb == 0) return true;
|
||||
return ca < cb;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue