3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

add ability to multiply term

This commit is contained in:
Nikolaj Bjorner 2024-01-22 15:48:03 -08:00
parent 0ebd8d655b
commit 839b7101ae

View file

@ -138,6 +138,12 @@ public:
}
return ret;
}
lar_term& operator*=(mpq const& k) {
for (auto & t : m_coeffs)
t.m_value *= k;
return *this;
}
void clear() {
m_coeffs.reset();