Skip to content

Commit

Permalink
Better formatting to SMT lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevendeo committed Sep 26, 2023
1 parent 99d4a8e commit 8cfc422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/bin/common/solving_loop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let empty_solver_ctx = {
}

let unsupported_opt s =
Printer.print_smtlib_err "unsupported option %S" s
Printer.print_std "(%s unsupported)" s

let main () =
let () = Dolmen_loop.Code.init [] in
Expand Down Expand Up @@ -449,11 +449,8 @@ let main () =
| ":all-statistics"
| ":assertion-stack-levels" ->
unsupported_opt kind;
print_std Fmt.string "unsupported"
| _ ->
Printer.print_wrn "unknown option %S" kind;
print_std Fmt.string "unsupported"

Printer.print_smtlib_err "unknown option %S" kind
in

let handle_stmt :
Expand Down
4 changes: 1 addition & 3 deletions src/lib/reasoners/fun_sat.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1394,9 +1394,7 @@ module Make (Th : Theory.S) : Sat_solver_sig.S = struct
with | Util.Not_implemented s ->
Printer.print_err "Feature %s is not implemented. \
I can't conclude." s;
i_dont_know
"I stopped while trying to produce a model."
env
i_dont_know "incomplete" env

(* should be merged with do_bcp/red/elim ?
calls to debug hooks are missing *)
Expand Down

0 comments on commit 8cfc422

Please sign in to comment.