Skip to content

Commit

Permalink
fix #7101
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jan 29, 2024
1 parent 2b68394 commit 908aaa0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/model/model_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,20 @@ struct evaluator_cfg : public default_rewriter_cfg {

struct has_redex {};
struct has_redex_finder {
array_util& au;
has_redex_finder(array_util& au): au(au) {}
evaluator_cfg& ev;
has_redex_finder(evaluator_cfg& ev): ev(ev) {}
void operator()(var* v) {}
void operator()(quantifier* q) {}
void operator()(app* a) {
if (au.is_as_array(a->get_decl()))
if (ev.m_ar.is_as_array(a->get_decl()))
throw has_redex();
if (au.get_manager().is_eq(a))
if (ev.m_ar.get_manager().is_eq(a))
throw has_redex();
if (ev.m_fpau.is_fp(a))
throw has_redex();
}
};
has_redex_finder ha(m_ar);
has_redex_finder ha(*this);
try {
for_each_expr(ha, e);
}
Expand Down

0 comments on commit 908aaa0

Please sign in to comment.