Skip to content

Commit

Permalink
fix #6677
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Apr 10, 2023
1 parent 98d3fab commit bb44b91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cmd_context/cmd_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,9 @@ bool cmd_context::try_mk_pdecl_app(symbol const & s, unsigned num_args, expr * c
if (num_args != 1)
return false;

if (!dt.is_datatype(args[0]->get_sort()))
return false;

for (auto* a : dt.plugin().get_accessors(s)) {
fn = a->instantiate(args[0]->get_sort());
r = m().mk_app(fn, num_args, args);
Expand Down

0 comments on commit bb44b91

Please sign in to comment.