Skip to content

Commit 9526604

Browse files
committed
print results to stdout
1 parent 097b1c4 commit 9526604

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/autoAnnot/autoAnnot.ml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ let print_focus_suggestion filename line kind ty w0 coeffs =
3636
let elems = if w0 = 0 then body else string_of_int w0 :: body in
3737
let sum = String.concat " + " elems in
3838
let annotation = signature ^ sum in
39-
Pp.(
40-
debug
41-
10
42-
(lazy
43-
(item
44-
"AutoAnnot: suggested annotation"
45-
(string pos ^^ string ": " ^^ string annotation))))
39+
Pp.progress_simple pos annotation
4640

4741

4842
let generate_focus_annot_aux filename line (kind, ty, assignments_list) : unit =
@@ -213,7 +207,7 @@ let parse (log_file : string) : annot list =
213207

214208

215209
let run_autoannot (log_file : string) : unit =
216-
Pp.(debug 10 (lazy (item "Running auto-annotation" (string log_file))));
210+
Pp.print stdout (Pp.string "[Result of auto-annotation]");
217211
let data = parse log_file in
218212
let focus_annots = data |> List.filter_map (function Focus f -> Some f) in
219213
generate_focus_annot focus_annots

0 commit comments

Comments
 (0)