mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
fix #4938
This commit is contained in:
parent
56e4ee3273
commit
ea1089e980
5 changed files with 27 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue