mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
fixmul negative case
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8128ae8109
commit
437e83f6de
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ namespace polysat {
|
|||
pdd r(m);
|
||||
v = p - p.offset();
|
||||
r = p - v;
|
||||
if (p.leading_coefficient() < 0) {
|
||||
auto const& lc = p.leading_coefficient();
|
||||
if (mod(-lc, m.two_to_N()) < lc) {
|
||||
v = -v;
|
||||
r -= m.mk_var(max_var);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue