dreal4 icon indicating copy to clipboard operation
dreal4 copied to clipboard

How to convert smt2 file to AST?

Open KJongUk opened this issue 4 years ago • 2 comments

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?

KJongUk avatar Jul 13 '21 06:07 KJongUk

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.

soonho-tri avatar Jul 13 '21 12:07 soonho-tri

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

KJongUk avatar Jul 13 '21 12:07 KJongUk