3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-04 06:15:46 +00:00

port Grobner: do not derive intervals from common

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-10-28 14:29:51 -07:00
parent 738165f0e7
commit 033d8a332f
3 changed files with 20 additions and 19 deletions

View file

@ -21,13 +21,11 @@
#include "math/lp/nla_core.h"
#include "math/lp/factorization_factory_imp.h"
namespace nla {
nla_grobner::nla_grobner(core *c
) :
common(c),
m_nl_gb_exhausted(false),
m_dep_manager(m_val_manager, m_alloc),
m_changed_leading_term(false)
{}
nla_grobner::nla_grobner(core *c)
: common(c),
m_nl_gb_exhausted(false),
m_dep_manager(m_val_manager, m_alloc),
m_changed_leading_term(false) {}
// Scan the grobner basis eqs for equations of the form x - k = 0 or x = 0 is found, and x is not fixed,
// then assert bounds for x, and continue
@ -301,7 +299,7 @@ bool nla_grobner::simplify_target_monomials_sum(equation * source,
simplify_target_monomials_sum_j(source, target, targ_sum, high_mon, j);
}
target->exp() = m_nex_creator.simplify(targ_sum);
target->dep = m_dep_manager.mk_join(source->dep, target->dep);
target->dep() = m_dep_manager.mk_join(source->dep(), target->dep());
TRACE("grobner", tout << "target = "; display_equation(tout, *target););
return true;
}