3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 19:47:52 +00:00

remove a few unneded mem allocations

This commit is contained in:
Nuno Lopes 2017-11-06 10:36:10 +00:00
parent 0f2b1ae7c8
commit 861a0745c1
5 changed files with 17 additions and 15 deletions

View file

@ -70,8 +70,8 @@ public:
const unsigned sz = g->size();
for (unsigned i = 0; i < sz; i++) flas.push_back(g->form(i));
scoped_ptr<solver> uffree_solver = setup_sat();
scoped_ptr<lackr> imp = alloc(lackr, m, m_p, m_st, flas, uffree_solver.get());
const lbool o = imp->operator()();
lackr imp(m, m_p, m_st, flas, uffree_solver.get());
const lbool o = imp.operator()();
flas.reset();
// report result
goal_ref resg(alloc(goal, *g, true));
@ -79,8 +79,8 @@ public:
if (o != l_undef) result.push_back(resg.get());
// report model
if (g->models_enabled() && (o == l_true)) {
model_ref abstr_model = imp->get_model();
mc = mk_qfufbv_ackr_model_converter(m, imp->get_info(), abstr_model);
model_ref abstr_model = imp.get_model();
mc = mk_qfufbv_ackr_model_converter(m, imp.get_info(), abstr_model);
}
}