3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-09 00:35:47 +00:00

test that pivoting is correct in dioph_eq.cpp

This commit is contained in:
Lev Nachmanson 2024-10-30 15:09:55 -07:00 committed by Lev Nachmanson
parent 0db0efce9f
commit 36293ac773
10 changed files with 399 additions and 223 deletions

View file

@ -90,7 +90,7 @@ inline void static_matrix<T, X>::pivot_row_to_row_given_cell_with_sign(unsigned
column_cell& c, unsigned pivot_col, int pivot_sign) {
unsigned ii = c.var();
SASSERT(ii != piv_row_index);
T alpha = get_val(c) * pivot_sign;
T alpha = - get_val(c) * pivot_sign;
SASSERT(!is_zero(alpha));
auto & rowii = m_rows[ii];
remove_element(rowii, rowii[c.offset()]);