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:
parent
0ebd8d655b
commit
839b7101ae
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue