Skip to content

Commit c1c83ba

Browse files
authored
Add FuncDeclRef case to _to_expr_ref (#90)
_to_expr_ref is our generic expression builder. It wraps a term in a sort-specific class that has methods suitable for the term's sort. Previously, _to_expr_ref did not give function terms the right wrapper. Now, it does. Fixes a bug latent in: cvc5/cvc5#9983
1 parent 1582d36 commit c1c83ba

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cvc5_pythonic_api/cvc5_pythonic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,8 @@ def _to_expr_ref(a, ctx, r=None):
10041004
return StringRef(ast, ctx, r)
10051005
if sort.isSequence():
10061006
return SeqRef(ast, ctx, r)
1007+
if sort.isFunction():
1008+
return FuncDeclRef(ast, ctx, r)
10071009
return ExprRef(ast, ctx, r)
10081010

10091011

0 commit comments

Comments
 (0)