3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 03:45:51 +00:00

avoid some bignum overhead in addmul

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-06-14 11:20:05 -07:00
parent 53e49eb428
commit 7387fc9dec
2 changed files with 10 additions and 2 deletions

View file

@ -335,6 +335,10 @@ public:
operator+=(k);
else if (c.is_minus_one())
operator-=(k);
else if (k.is_one())
operator+=(c);
else if (k.is_minus_one())
operator-=(c);
else {
rational tmp(k);
tmp *= c;