3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-02-26 02:06:15 -08:00
parent 56e4ee3273
commit ea1089e980
5 changed files with 27 additions and 6 deletions

View file

@ -736,6 +736,14 @@ namespace smt {
}
bool theory_datatype::include_func_interp(func_decl* f) {
if (!m_util.is_accessor(f))
return false;
func_decl* con = m_util.get_accessor_constructor(f);
for (enode* app : ctx.enodes_of(f)) {
enode* arg = app->get_arg(0)->get_root();
if (is_constructor(arg) && arg->get_decl() != con)
return true;
}
return false;
}