3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-03 00:45:15 +00:00

debug dio

This commit is contained in:
Lev Nachmanson 2024-08-24 13:03:25 -10:00 committed by Lev Nachmanson
parent cd13890650
commit df18885f97
5 changed files with 206 additions and 110 deletions

View file

@ -171,12 +171,19 @@ public:
friend lar_term operator*(const mpq& k, const lar_term& term) {
lar_term result;
for (const auto& p : term) {
result.add_monomial(p.coeff()*k, p.j());
}
return result;
lar_term r;
for (const auto& p : term) {
r.add_monomial(p.coeff()*k, p.j());
}
return r;
}
lar_term& operator+=(const lar_term& a) {
for (const auto& p : a) {
add_monomial(p.coeff(), p.j());
}
return *this;
}
lar_term& operator*=(mpq const& k) {
for (auto & t : m_coeffs)