Replies: 2 comments 1 reply
-
Try the following change to z3.py or something similar outside
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks ! It works. Here is a working example:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Regularly, I wish Z3 would expose a string-based API that would allow me to write a Python program like this:
In other words, I would send SMTLib2 statements, and get a string result.
I would think it is easy to develop such an API on top of the existing SMTLib2 support. It would then be possible to build a REPL for Z3 (e.g., for education). If every SMT solver supported this API, it would be straightforward to build portfolio solvers.
The performance impact of using string should be minimal. Are there any drawbacks I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions