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

SMT: only set produce-unsat-cores when recording hints #3714

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/smtencoding/FStarC.SMTEncoding.Z3.fst
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ let z3_options (ver:string) =
"(set-option :global-decls false)";
"(set-option :smt.mbqi false)";
"(set-option :auto_config false)";
"(set-option :produce-unsat-cores true)";
"(set-option :model true)";
"(set-option :smt.case_split 3)";
"(set-option :smt.relevancy 2)";
Expand Down Expand Up @@ -614,6 +613,13 @@ let mk_input (fresh : bool) (theory : list decl) : string & option string & opti
) :: theory
in
let options = z3_options ver in
let options =
(* With --ext fast_hints, we only enable unsat-core generation
if we are actually recording hints. *)
if Options.Ext.enabled "fast_hints" && not (Options.record_hints ())
then options
else options ^ "(set-option :produce-unsat-cores true)\n"
in
let options = options ^ (Options.z3_smtopt() |> String.concat "\n") ^ "\n\n" in
if Options.print_z3_statistics() then context_profile theory;
let r, hash =
Expand Down
Loading