mirror of
https://github.com/Z3Prover/z3
synced 2025-05-04 06:15:46 +00:00
move sorting of nex expressions to nex_creator
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
8cd9989dcf
commit
090851559b
9 changed files with 134 additions and 429 deletions
|
@ -26,8 +26,11 @@ nla_grobner::nla_grobner(core *c
|
|||
common(c),
|
||||
m_nl_gb_exhausted(false),
|
||||
m_dep_manager(m_val_manager, m_alloc),
|
||||
m_nex_creator([this](const nex* a, const nex* b) { return
|
||||
this->less_than_on_expr(a, b); }) {}
|
||||
m_nex_creator([this](lpvar a, lpvar b) {
|
||||
if (m_active_vars_weights[a] != m_active_vars_weights[b])
|
||||
return m_active_vars_weights[a] < m_active_vars_weights[b];
|
||||
return a < b;
|
||||
}) {}
|
||||
|
||||
// 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue