Skip to content

Commit 0f25eac

Browse files
committed
Oops, remove debug output
1 parent da615cc commit 0f25eac

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

interpreter/valid/valid.ml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,6 @@ let check_stack (c : context) ts1 ts2 at =
233233
" but stack has " ^ string_of_result_type ts1)
234234

235235
let pop c (ell1, ts1) (ell2, ts2) at =
236-
Printf.eprintf "[pop] %s\n%!"
237-
(String.concat " " (List.map string_of_val_type ts1));
238236
let n1 = List.length ts1 in
239237
let n2 = List.length ts2 in
240238
let n = min n1 n2 in
@@ -243,8 +241,6 @@ Printf.eprintf "[pop] %s\n%!"
243241
(ell2, if ell1 = Ellipses then [] else Lib.List.take (n2 - n) ts2)
244242

245243
let push c (ell1, ts1) (ell2, ts2) =
246-
Printf.eprintf "[push] %s\n%!"
247-
(String.concat " " (List.map string_of_val_type ts1));
248244
assert (ell1 = NoEllipses || ts2 = []);
249245
(if ell1 = Ellipses || ell2 = Ellipses then Ellipses else NoEllipses),
250246
ts2 @ ts1
@@ -895,14 +891,12 @@ and check_seq (c : context) (s : infer_result_type) (es : instr list)
895891
s, []
896892

897893
| e::es' ->
898-
Printf.eprintf "---- %s%!" (Sexpr.to_string 80 (Arrange.instr e));
899894
let {ins; outs}, xs = check_instr c e s in
900895
check_seq (init_locals c xs) (push c outs (pop c ins s e.at)) es'
901896

902897
and check_block (c : context) (es : instr list) (it : instr_type) at =
903898
let InstrT (ts1, ts2, _xs) = it in
904899
let s, xs' = check_seq c (stack ts1) es in
905-
Printf.eprintf "---- end\n%!";
906900
let s' = pop c (stack ts2) s at in
907901
require (snd s' = []) at
908902
("type mismatch: block requires " ^ string_of_result_type ts2 ^

0 commit comments

Comments
 (0)