-
Notifications
You must be signed in to change notification settings - Fork 123
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
Teach online what4
backend about smtFile option
#1476
Conversation
Hm. I opted to copy the existing code that writes to Any objections if I change the code such that this " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/Cryptol/REPL/Command.hs
Outdated
QueryType -> | ||
Maybe FilePath -> | ||
(String -> IO ()) {- ^ Continuation for displaying user messages -} -> | ||
(Handle -> IO ()) {- ^ Continuation for writing file output -} -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a more traditional name for these are "callbacks" rather than "continuations"?
@yav, do you have an opinion on #1476 (comment)? |
Yes, I thin we should only print the message when we were explicitly asked to save the file |
Looking at this more closely, the way I am going about this is entirely wrong. The behavior of Luckily, there is a much simpler way to solve this issue: we are currently calling cryptol/src/Cryptol/Symbolic/What4.hs Line 504 in 8cca245
That This is now ready for another round of review. |
This passes the value of
smtFile
to each call tostartSolverProcess
in the onlinewhat4
backend, thereby fixing #1475. After this patch, the test case in #1475 now produces an.smt2
file, as expected.