-
Notifications
You must be signed in to change notification settings - Fork 147
[question] how to see the formula that gets sent to the solver? #2259
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
Comments
Hi @jwaldmann -- yes, there is an easy way:
So you can see the generated SMT queries in the latter file. I should say though, that the latter is not terribly readable, owing to the various intermediate layers of abstractions introduced by GHC, the liquid type checking and the SMT translation! If you like you may be interested in this stripped down version of LH https://github.com/ranjitjhala/sprite-lang which uses many of the same ideas, but where you can look at the constraints more easily, both as
|
interesting! yes I only need small examples, readability is good. I can build and run "sprite". |
@jwaldmann, is this issue good to close? |
Yeah it's fine. I just copy here a code snippet buried in another issue #2261 (comment) that shows how to call the constraint solver directly:
|
I want to show liquid Haskell as an application of constraint programming. You are using
QF_UFLRA
?Is there an easy way to see the actual formula that gets sent to the backend solver? (and the answer). I guess I could put a fake
z3
executable in myPATH
that does some extra printing but I was hoping there is something more direct.The text was updated successfully, but these errors were encountered: