3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

patch to fix #5110

This commit is contained in:
Nikolaj Bjorner 2021-04-08 11:25:20 -07:00
parent d91eac24b7
commit 44156f9f55
2 changed files with 11 additions and 6 deletions

View file

@ -641,13 +641,13 @@ namespace datatype {
}
bool util::is_considered_uninterpreted(func_decl * f, unsigned n, expr* const* args) {
if (is_accessor(f)) {
func_decl* c = get_accessor_constructor(f);
SASSERT(n == 1);
if (is_constructor(args[0]))
return to_app(args[0])->get_decl() != c;
if (!is_accessor(f))
return false;
}
func_decl* c = get_accessor_constructor(f);
SASSERT(n == 1);
std::cout << f->get_name() << " " << mk_pp(args[0], m) << "\n";
if (is_constructor(args[0]))
return to_app(args[0])->get_decl() != c;
return false;
}