-
Notifications
You must be signed in to change notification settings - Fork 35
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
maximize prefers negative signed integers over positive ones #333
Comments
Thanks for the report! Indeed there seems to be some corner cases that are problematic. I traced these back to issues with Z3 and reported two issues:
Based on the resolution to these, we might have to do some modifications to SBV to resolve the issue you reported. |
Here's another problematic case:
which is wrong. Interestingly, the following works:
I'd say SBV is doing the right thing here and Z3 is being confused, but I'd like to see their response first. |
Based on the discussion at the Z3 github, we need to fix this by "adjusting" the goal by adding Unfortunately this is not as easy as it sounds, since we need to make the objective parser understand this addition as well; but it shouldn't be too hard to implement. Hopefully sometime this weekend. |
@andersk The fix is committed. Would be great if you can do some independent testing to make sure all is well, before a new hackage release goes out. Thanks. |
Seems to work. |
Cool. Thanks for the report. |
@andersk SBV 7.4 is now out on hackage, which contains this fix. |
Expected 127.
The text was updated successfully, but these errors were encountered: