Skip to content

Commit 908aaa0

Browse files
fix #7101
1 parent 2b68394 commit 908aaa0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/model/model_evaluator.cpp

+7-5
Original file line numberDiff line numberDiff line change
@@ -172,18 +172,20 @@ struct evaluator_cfg : public default_rewriter_cfg {
172172

173173
struct has_redex {};
174174
struct has_redex_finder {
175-
array_util& au;
176-
has_redex_finder(array_util& au): au(au) {}
175+
evaluator_cfg& ev;
176+
has_redex_finder(evaluator_cfg& ev): ev(ev) {}
177177
void operator()(var* v) {}
178178
void operator()(quantifier* q) {}
179179
void operator()(app* a) {
180-
if (au.is_as_array(a->get_decl()))
180+
if (ev.m_ar.is_as_array(a->get_decl()))
181181
throw has_redex();
182-
if (au.get_manager().is_eq(a))
182+
if (ev.m_ar.get_manager().is_eq(a))
183+
throw has_redex();
184+
if (ev.m_fpau.is_fp(a))
183185
throw has_redex();
184186
}
185187
};
186-
has_redex_finder ha(m_ar);
188+
has_redex_finder ha(*this);
187189
try {
188190
for_each_expr(ha, e);
189191
}

0 commit comments

Comments
 (0)