3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

a bug fix in simple sign lemma

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2019-02-10 15:55:41 -08:00 committed by Lev Nachmanson
parent 286cebd9db
commit 4243bd3e2a

View file

@ -2312,7 +2312,7 @@ struct solver::imp {
}
}
mk_ineq(m.var(), (sign.is_pos()? llc::GT : llc ::LT), current_lemma());
TRACE("nla_solver", print_lemma_and_expl(tout););
TRACE("nla_solver", print_lemma_and_expl(tout););
}
bool generate_simple_tangent_lemma(const rooted_mon* rm) {
@ -2325,7 +2325,7 @@ struct solver::imp {
SASSERT(!mv.is_zero() && !v.is_zero());
rational sign = rational(rat_sign(mv));
if (sign != rat_sign(v)) {
generate_simple_sign_lemma(sign, m);
generate_simple_sign_lemma(-sign, m);
return true;
}
bool gt = abs(mv) > abs(v);