-
Notifications
You must be signed in to change notification settings - Fork 45
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
Empty model with Z3 >=4.8 #28
Comments
Thanks for reporting. Are you saying that Z3 408.0 works as expected with Z3 4.4 but it doesn't print any model with Z3 4.8? Does it work with the Python API? |
If you are able to look into this yourself and submit a patch that would be a lot faster than waiting for me... these days I barely have time to discuss issues and review patches. |
Exactly.
I haven't been able to try the Python API, unfortunately. It does work when using the Z3 binary (4.8) however.
I'll look into it if I have the time, but that's a fairly big "if" at the moment I'm afraid. |
Unfortunately, the Z3 API changes fairly often and things break. My suggestion would be to "translate" that example to I don't have time to look at this either, there is no "if" in my case unfortunately, I just don't have time. The library should be maintained by the ones who need it. But I am happy to donate time in order to help those who want to contribute, like explaining details about the code or reviewing patches. |
Haskell-Z3 408.0 returns an empty model, even when deciding that a query is satisfiable, when used with Z3 >= 4.8. The problem does not occur with Z3 4.4.
Steps to reproduce
Compile and run the following program:
Expected result
The program prints:
This is what happens when Z3 4.8 is replaced with 4.4.
Actual result
The program prints:
Additional details
The problem is not just with
modelToString
, as callingnumConsts
on the model returns 0 (and callinggetConsts
causes aZ3 error: index out of bounds
to be thrown).The text was updated successfully, but these errors were encountered: