Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I have recursive datatypes with arrays? #149

Open
LEAFERx opened this issue Jul 7, 2021 · 0 comments
Open

How can I have recursive datatypes with arrays? #149

LEAFERx opened this issue Jul 7, 2021 · 0 comments

Comments

@LEAFERx
Copy link
Contributor

LEAFERx commented Jul 7, 2021

This is because I need to make a recursive datatype with the array, like this:

(declare-datatypes () ((V (i Int) (v (Array Int V))))))

I think a parameterized sort would help, like this

(define-sort A (T) (Array T T))

How can I do it or if it is not supported can you give clues to implement this by C API so that I can make pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant