-
Notifications
You must be signed in to change notification settings - Fork 0
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
Print unknown reason in SMT-LIB syntax #1
Print unknown reason in SMT-LIB syntax #1
Conversation
The old format is preserved for legacy messages in the Alt-Ergo format, but the SMT-LIB format is the default one for pretty-printers, since we are moving towards preferring the SMT-LIB format. Fixes OCamlPro#966
src/lib/reasoners/sat_solver_sig.ml
Outdated
| Timeout t -> Fmt.pf ppf "(:timeout %a)" pp_timeout_reason t | ||
|
||
let pp_ae_unknown_reason_opt ppf = function | ||
| None -> Fmt.pf ppf ":decided" |
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.
| None -> Fmt.pf ppf ":decided" | |
| None -> Fmt.pf ppf "Decided" |
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.
Oops 😬
src/lib/reasoners/sat_solver_sig.ml
Outdated
@@ -35,7 +35,16 @@ type timeout_reason = | |||
| Assume | |||
| ProofSearch | |||
| ModelGen | |||
[@@deriving show] | |||
|
|||
let pp_timeout_reason ppf = function |
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.
let pp_timeout_reason ppf = function | |
let pp_smt_timeout_reason ppf = function |
c4b4ffb
to
872f8ff
Compare
Closing this PR, which is now in OCamlPro#975 |
The old format is preserved for legacy messages in the Alt-Ergo format, but the SMT-LIB format is the default one for pretty-printers, since we are moving towards preferring the SMT-LIB format.
Fixes OCamlPro#966