mirror of
https://github.com/Z3Prover/z3
synced 2025-08-20 18:20:22 +00:00
preparing for more efficient asymmetric branching
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7e56d05dcf
commit
a4dc68766d
11 changed files with 47 additions and 27 deletions
|
@ -635,10 +635,8 @@ struct aig_manager::imp {
|
|||
}
|
||||
|
||||
bool check_cache() const {
|
||||
obj_map<expr, aig_lit>::iterator it = m_cache.begin();
|
||||
obj_map<expr, aig_lit>::iterator end = m_cache.end();
|
||||
for (; it != end; ++it) {
|
||||
SASSERT(ref_count(it->m_value) > 0);
|
||||
for (auto const& kv : m_cache) {
|
||||
SASSERT(ref_count(kv.m_value) > 0);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ public:
|
|||
virtual solver* translate(ast_manager& dst_m, params_ref const& p) {
|
||||
flush_assertions();
|
||||
solver* result = alloc(pb2bv_solver, dst_m, p, m_solver->translate(dst_m, p));
|
||||
model_converter_ref mc = concat(mc0(), m_solver->get_model_converter().get());
|
||||
model_converter_ref mc = mc0();
|
||||
if (mc) {
|
||||
ast_translation tr(m, dst_m);
|
||||
result->set_model_converter(mc->translate(tr));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue