3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-11 10:18:06 +00:00

fix some warnings

This commit is contained in:
Lev Nachmanson 2025-01-20 12:44:05 -10:00 committed by Lev Nachmanson
parent abac52e1d7
commit 7bba8bc0c9
2 changed files with 4 additions and 4 deletions

View file

@ -1652,8 +1652,8 @@ namespace lp {
const auto& row = m_e_matrix.m_rows[ei];
auto it = std::find_if (row.begin(), row.end(), [j](const auto& p) {return p.var() == j;} );
if (it == row.end()) return false;
return it->coeff() == mpq(1)&& j_sign == 1 ||
it->coeff() == mpq(-1) && j_sign == -1;
return (it->coeff() == mpq(1) && j_sign == 1) ||
(it->coeff() == mpq(-1) && j_sign == -1);
}
// j is the variable to eliminate, it appears in row ei of m_e_matrix with
// a coefficient equal to j_sign which is +-1