mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-05 19:00:33 -05:00
fix(main): do not produce traces if it's not asked
This commit is contained in:
parent
d9b9f79b75
commit
f591b6e28a
1 changed files with 3 additions and 2 deletions
|
|
@ -78,7 +78,8 @@ let argspec =
|
|||
"--no-proof", Arg.Clear p_proof, " do not print proof";
|
||||
"-o", Arg.Set_string proof_file, " file into which to output a proof";
|
||||
"--model", Arg.Set p_model, " print model";
|
||||
"--trace", Arg.Set enable_trace, " enable/disable tracing";
|
||||
"--trace", Arg.Set enable_trace, " enable tracing";
|
||||
"--no-trace", Arg.Clear enable_trace, " disable tracing";
|
||||
( "--trace-file",
|
||||
Arg.Set_string trace_file,
|
||||
" store trace in given file (no cleanup)" );
|
||||
|
|
@ -136,7 +137,7 @@ let run_with_tmp_file ~enable_proof k =
|
|||
CCIO.File.with_temp ~temp_dir:"." ~prefix:".sidekick-proof" ~suffix:".dat"
|
||||
k
|
||||
else
|
||||
k "/dev/null"
|
||||
k ""
|
||||
|
||||
let mk_smt_tracer ~trace_file () =
|
||||
if !enable_trace || trace_file <> "" then (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue