Skip to content

Commit

Permalink
Add FuncDeclRef case to _to_expr_ref (#90)
Browse files Browse the repository at this point in the history
_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
  • Loading branch information
alex-ozdemir authored Sep 12, 2023
1 parent 1582d36 commit c1c83ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cvc5_pythonic_api/cvc5_pythonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit c1c83ba

Please sign in to comment.