3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-04 02:10:23 +00:00

beta redex check is used in array theory to filter out safe as-arrays

This commit is contained in:
Nikolaj Bjorner 2022-09-11 05:44:11 -07:00
parent 3900c03b72
commit 7a55bd5687
2 changed files with 5 additions and 3 deletions

View file

@ -825,8 +825,10 @@ namespace smt {
bool theory_array_full::has_non_beta_as_array() {
for (enode* n : m_as_array) {
for (enode* p : n->get_parents())
if (!is_beta_redex(p, n))
if (!ctx.is_beta_redex(p, n)) {
TRACE("array", tout << "not a beta redex " << enode_pp(p, ctx) << "\n");
return true;
}
}
return false;
}