3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-18 09:12:16 +00:00

reset zero before resetting nlsat #4493b

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-06-02 00:40:54 -07:00
parent 2da7a8dd70
commit 48f07932f7
2 changed files with 3 additions and 2 deletions

View file

@ -52,6 +52,7 @@ struct solver::imp {
*/ */
lbool check() { lbool check() {
SASSERT(need_check()); SASSERT(need_check());
m_zero = nullptr;
m_nlsat = alloc(nlsat::solver, m_limit, m_params, false); m_nlsat = alloc(nlsat::solver, m_limit, m_params, false);
m_zero = alloc(scoped_anum, am()); m_zero = alloc(scoped_anum, am());
m_term_set.clear(); m_term_set.clear();

View file

@ -3389,7 +3389,7 @@ public:
if (t.is_term()) { if (t.is_term()) {
m_todo_terms.push_back(std::make_pair(t, rational::one())); 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"; TRACE("nl_value", tout << "v" << v << " := w" << t.to_string() << "\n";
lp().print_term(lp().get_term(t), tout) << "\n";); lp().print_term(lp().get_term(t), tout) << "\n";);