mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
Fix bug in sprem
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
7711146d23
commit
551d0b7de0
1 changed files with 1 additions and 1 deletions
|
@ -2931,7 +2931,7 @@ namespace realclosure {
|
|||
unsigned d;
|
||||
prem(sz1, p1, sz2, p2, d, r);
|
||||
// We should not flip the sign if d is odd and leading coefficient of p2 is negative.
|
||||
if (d % 2 == 0 || (sz2 > 0 && sign(p2[sz2-1]) < 0))
|
||||
if (d % 2 == 0 || (sz2 > 0 && sign(p2[sz2-1]) > 0))
|
||||
neg(r);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue