-
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
Unexpected end-of-file error #524
Comments
Here is a simpler example that hilights exactly what triggers the error message:
I'm just describing a space of models including all binary strings of length exactly 4, modelled as lists of Integers (e.g. [0,1,1,0] and so on...) I suspect I'm just trying to do something that I shouldn't here, but I can't imagine what that might be. |
Looks like you found a bug with z3 actually. I filed it here: Z3Prover/z3#4324 Hopefully, the problem will just go away when they fix it in z3 and you update your version of z3. No change on the SBV side should be necessary. As a side note, if you ever see this line:
it almost always means the underlying SMT solver process died without responding. In such cases, you can use the runSMTWith z3{transcript = Just "bug.smt2"} example2 The idea is that you can run it outside of SBV. And if you do, you'll see:
This can help in identifying where the issue is. The generated transcript file is heavily commented as well, it contains time-stamps for debugging efficiency issues. Can be helpful in different scenarios. I'll keep this ticket open till z3 folks fix the issue. |
Oh, that's really nice! I'll be using this feature a lot I suspect :D |
Just FYI. For this situation, we now generate the following message:
Hopefully this'll be less cryptic for users to deal with. |
Looks like z3-HEAD has fixed this issue. (You'll need to build from their github master). I'm closing this ticket; please re-open if you find further issues. |
I'm using sbv 8.6, ghc 8.8.3 (the defaults from stack lts-15.12)
When I run the following simple program, I see:
You can trigger this behaviour by uncommenting the commented lines from
{- broken...
and commenting the prior introduction of theas
variable.Am I trying to do something that I shouldn't here? The idea is to describe a model containing all lists of integers that could satisfy these constraints.
The text was updated successfully, but these errors were encountered: