3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

remove recursive expansion of else-case

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-11-02 23:08:10 +00:00
parent be9d5c7088
commit c0fb2eafe5

View file

@ -451,19 +451,6 @@ struct evaluator_cfg : public default_rewriter_cfg {
TRACE("model_evaluator", tout << "non-ground else case " << mk_pp(a, m()) << "\n" << else_case << "\n";);
return false;
}
if (m_ar.is_as_array(else_case)) {
bool are_unique1 = true;
expr_ref tmp(m());
unsigned num_stores = stores.size();
if (!extract_array_func_interp(else_case, stores, tmp, are_unique1)) {
stores.shrink(num_stores);
}
else {
sort* srt = m().get_sort(else_case);
else_case = m_ar.mk_const_array(srt, tmp);
are_unique &= are_unique1;
}
}
for (unsigned i = stores.size(); are_values && i > 0; ) {
--i;
if (m().are_equal(else_case, stores[i].back())) {