-
Notifications
You must be signed in to change notification settings - Fork 164
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
Symbolic ASR pass #2107
Comments
As a first step, let's write Python code using existing LPython:
And make it work for the symbolics_01.py fully, by calling symengine manually like any other C library. |
Hello @certik . I did try some workarounds for this in the last couple of days .
If only we would have
|
So I thought of trying out a few things like
But I think declaring a list with a non primitive user defined data type is prohibhited.
This generates the C code
Which is actually close to what we want if you go through it , it's just how the types are named after this point , hence we have the following error from symengine .
Essentially |
I think from a binary compatibility point of view, I think So we need to figure out how to improve LPython to allow us to interface with |
Well yes , unlike getting a
The LLVM code generated here looks correct to me and we are also using the |
We could implement a workaround for the basic type using this framework
|
ASR for
|
The pass has been correctly implemented through #2255 . Though the ASR pass doesn't support freeing of variables through the |
I think this is implemented, I opened an #2262 for the rest. |
The idea is to take this ASR:
And transform it into something like this:
The text was updated successfully, but these errors were encountered: