3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-18 02:16:40 +00:00

debug new monomials on order lemmas

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-04-24 10:14:05 -07:00
parent 02379417a6
commit 150d3769fb
3 changed files with 33 additions and 29 deletions

View file

@ -61,10 +61,10 @@ void order::order_lemma_on_rmonomial(const monomial& m) {
// a > b && c > 0 => ac > bc,
// with either variable of ac playing the role of c
void order::order_lemma_on_binomial(const monomial& ac) {
TRACE("nla_solver", tout << pp_mon(c(), ac););
TRACE("nla_solver", tout << pp_rmon(c(), ac););
SASSERT(!check_monomial(ac) && ac.size() == 2);
const rational mult_val = val(ac.vars()[0]) * val(ac.vars()[1]);
const rational acv = val(ac);
const rational mult_val = val(ac.rvars()[0]) * val(ac.rvars()[1]);
const rational acv = val(ac)*ac.rsign();
bool gt = acv > mult_val;
bool k = false;
do {