3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-25 23:19:32 +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

@ -46,6 +46,7 @@ typedef vector<column_cell> column_strip;
template <typename T>
using row_strip = vector<row_cell<T>>;
template <typename K> mpq get_denominators_lcm(const K & row) {
SASSERT(row.size() > 0);
mpq r = mpq(1);
for (const auto & c : row)
r = lcm(r, denominator(c.coeff()));