mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
fix a bug in polarity
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
75005d9077
commit
2ca1187b3a
|
@ -276,10 +276,12 @@ public:
|
||||||
}
|
}
|
||||||
if (is_real(j))
|
if (is_real(j))
|
||||||
real_case_in_gomory_cut(- p.coeff(), j);
|
real_case_in_gomory_cut(- p.coeff(), j);
|
||||||
else if (!p.coeff().is_int()) {
|
else {
|
||||||
|
if (!p.coeff().is_int()) {
|
||||||
m_fj = fractional_part(-p.coeff());
|
m_fj = fractional_part(-p.coeff());
|
||||||
m_one_minus_fj = 1 - m_fj;
|
m_one_minus_fj = 1 - m_fj;
|
||||||
int_case_in_gomory_cut(j);
|
int_case_in_gomory_cut(j);
|
||||||
|
}
|
||||||
if (p.coeff().is_pos()) {
|
if (p.coeff().is_pos()) {
|
||||||
if (at_lower(j))
|
if (at_lower(j))
|
||||||
set_polarity(1);
|
set_polarity(1);
|
||||||
|
|
Loading…
Reference in a new issue