3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-21 12:16:20 +00:00

add new polynomials from handle_nullified to m_todo

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2026-02-18 10:54:39 -10:00
parent df419c137d
commit d8f2b5ca01
4 changed files with 31 additions and 162 deletions

View file

@ -112,6 +112,27 @@ namespace nlsat {
return x;
}
unsigned todo_set::extract_polys_at_level(var x, polynomial_ref_vector& out) {
pmanager& pm = m_set.m();
unsigned sz = m_set.size();
unsigned j = 0;
unsigned count = 0;
for (unsigned i = 0; i < sz; i++) {
poly* p = m_set.get(i);
if (pm.max_var(p) == x) {
out.push_back(p);
m_in_set[pm.id(p)] = false;
++count;
}
else {
m_set.set(j, p);
j++;
}
}
m_set.shrink(j);
return count;
}
/**
\brief Wrapper for factorization
*/