mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
na
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
96f10b8c1c
commit
03276b12b1
|
@ -253,13 +253,13 @@ namespace smt {
|
||||||
context & ctx = get_context();
|
context & ctx = get_context();
|
||||||
TRACE("arith_eq_adapter", tout << "restart\n";);
|
TRACE("arith_eq_adapter", tout << "restart\n";);
|
||||||
enode_pair_vector tmp(m_restart_pairs);
|
enode_pair_vector tmp(m_restart_pairs);
|
||||||
enode_pair_vector::iterator it = tmp.begin();
|
|
||||||
enode_pair_vector::iterator end = tmp.end();
|
|
||||||
m_restart_pairs.reset();
|
m_restart_pairs.reset();
|
||||||
for (; it != end && !ctx.inconsistent(); ++it) {
|
for (auto const& p : tmp) {
|
||||||
TRACE("arith_eq_adapter", tout << "creating arith_eq_adapter axioms at the base level #" << it->first->get_owner_id() << " #" <<
|
if (ctx.inconsistent())
|
||||||
it->second->get_owner_id() << "\n";);
|
break;
|
||||||
mk_axioms(it->first, it->second);
|
TRACE("arith_eq_adapter", tout << "creating arith_eq_adapter axioms at the base level #" << p.first->get_owner_id() << " #" <<
|
||||||
|
p.second->get_owner_id() << "\n";);
|
||||||
|
mk_axioms(p.first, p.second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,11 +268,9 @@ namespace smt {
|
||||||
}
|
}
|
||||||
|
|
||||||
void arith_eq_adapter::display_already_processed(std::ostream & out) const {
|
void arith_eq_adapter::display_already_processed(std::ostream & out) const {
|
||||||
obj_pair_map<enode, enode, data>::iterator it = m_already_processed.begin();
|
for (auto const& d : m_already_processed) {
|
||||||
obj_pair_map<enode, enode, data>::iterator end = m_already_processed.end();
|
enode * n1 = d.get_key1();
|
||||||
for (; it != end; ++it) {
|
enode * n2 = d.get_key2();
|
||||||
enode * n1 = it->get_key1();
|
|
||||||
enode * n2 = it->get_key2();
|
|
||||||
out << "eq_adapter: #" << n1->get_owner_id() << " #" << n2->get_owner_id() << "\n";
|
out << "eq_adapter: #" << n1->get_owner_id() << " #" << n2->get_owner_id() << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,10 +209,10 @@ namespace {
|
||||||
}
|
}
|
||||||
|
|
||||||
void user_propagate_init(
|
void user_propagate_init(
|
||||||
void* ctx,
|
void* ctx,
|
||||||
std::function<void(void*)>& push_eh,
|
solver::push_eh_t& push_eh,
|
||||||
std::function<void(void*, unsigned)>& pop_eh,
|
solver::pop_eh_t& pop_eh,
|
||||||
solver::fresh_eh_t& fresh_eh) override {
|
solver::fresh_eh_t& fresh_eh) override {
|
||||||
m_context.user_propagate_init(ctx, push_eh, pop_eh, fresh_eh);
|
m_context.user_propagate_init(ctx, push_eh, pop_eh, fresh_eh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue