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 to convert smt2 file to AST? #256

Open
KJongUk opened this issue Jul 13, 2021 · 2 comments
Open

How to convert smt2 file to AST? #256

KJongUk opened this issue Jul 13, 2021 · 2 comments

Comments

@KJongUk
Copy link

KJongUk commented Jul 13, 2021

I would like to use function that convert smt2 file to AST(abstract syntax tree) in python API.
Can I use these functions in dreal? If so, Can you please point me to an example or guide?

@soonho-tri
Copy link
Member

We do not provide that functionality in Python API yet.

To implement this functionality, one has to wrap Smt2Driver class using pybind11. You can find some examples in https://github.com/dreal/dreal4/blob/master/dreal/dreal_py.cc.

@KJongUk
Copy link
Author

KJongUk commented Jul 13, 2021

I try to resolve with your solution. Thank you for answer!

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

No branches or pull requests

2 participants