mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
parent
bfca26b972
commit
3499fa7f0b
2 changed files with 4 additions and 3 deletions
|
@ -587,8 +587,9 @@ namespace nlsat {
|
||||||
var max = null_var;
|
var max = null_var;
|
||||||
for (unsigned i = 0; i < sz; i++) {
|
for (unsigned i = 0; i < sz; i++) {
|
||||||
p = m_pm.flip_sign_if_lm_neg(ps[i]);
|
p = m_pm.flip_sign_if_lm_neg(ps[i]);
|
||||||
if (p.get() != ps[i])
|
if (p.get() != ps[i] && !is_even[i]) {
|
||||||
sign = -sign;
|
sign = -sign;
|
||||||
|
}
|
||||||
var curr_max = max_var(p.get());
|
var curr_max = max_var(p.get());
|
||||||
if (curr_max > max || max == null_var)
|
if (curr_max > max || max == null_var)
|
||||||
max = curr_max;
|
max = curr_max;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue