mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
reset zero before resetting nlsat #4493b
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2da7a8dd70
commit
48f07932f7
|
@ -52,6 +52,7 @@ struct solver::imp {
|
|||
*/
|
||||
lbool check() {
|
||||
SASSERT(need_check());
|
||||
m_zero = nullptr;
|
||||
m_nlsat = alloc(nlsat::solver, m_limit, m_params, false);
|
||||
m_zero = alloc(scoped_anum, am());
|
||||
m_term_set.clear();
|
||||
|
|
|
@ -3389,14 +3389,14 @@ public:
|
|||
if (t.is_term()) {
|
||||
|
||||
m_todo_terms.push_back(std::make_pair(t, rational::one()));
|
||||
|
||||
TRACE("nl_value", tout << t.to_string() << "\n";);
|
||||
TRACE("nl_value", tout << "v" << v << " := w" << t.to_string() << "\n";
|
||||
lp().print_term(lp().get_term(t), tout) << "\n";);
|
||||
|
||||
m_nla->am().set(r, 0);
|
||||
while (!m_todo_terms.empty()) {
|
||||
rational wcoeff = m_todo_terms.back().second;
|
||||
t = m_todo_terms.back().first;
|
||||
t = m_todo_terms.back().first;
|
||||
m_todo_terms.pop_back();
|
||||
lp::lar_term const& term = lp().get_term(t);
|
||||
TRACE("nl_value", lp().print_term(term, tout) << "\n";);
|
||||
|
|
Loading…
Reference in a new issue