Skip to content
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

Closed

Conversation

bclement-ocp
Copy link

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

| Timeout t -> Fmt.pf ppf "(:timeout %a)" pp_timeout_reason t

let pp_ae_unknown_reason_opt ppf = function
| None -> Fmt.pf ppf ":decided"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| None -> Fmt.pf ppf ":decided"
| None -> Fmt.pf ppf "Decided"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops 😬

@@ -35,7 +35,16 @@ type timeout_reason =
| Assume
| ProofSearch
| ModelGen
[@@deriving show]

let pp_timeout_reason ppf = function
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let pp_timeout_reason ppf = function
let pp_smt_timeout_reason ppf = function

@Stevendeo
Copy link
Owner

Closing this PR, which is now in OCamlPro#975

@Stevendeo Stevendeo closed this Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants