diff --git a/cvc5_pythonic_api/cvc5_pythonic.py b/cvc5_pythonic_api/cvc5_pythonic.py index cbf5c1b..61d1cda 100644 --- a/cvc5_pythonic_api/cvc5_pythonic.py +++ b/cvc5_pythonic_api/cvc5_pythonic.py @@ -1004,6 +1004,8 @@ def _to_expr_ref(a, ctx, r=None): return StringRef(ast, ctx, r) if sort.isSequence(): return SeqRef(ast, ctx, r) + if sort.isFunction(): + return FuncDeclRef(ast, ctx, r) return ExprRef(ast, ctx, r)