Debian Codegraph @

test/instrument/recent/letop.t

raw
1 Subexpressions instrumented recursively.
2
3 $ bash ../test.sh <<'EOF'
4 > let (let*) x f = f x
5 > let (and*) x y = (x, y)
6 > let return x = x
7 > let _ =
8 > let* () = print_endline "foo"
9 > and* () = print_endline "bar" in
10 > let* () = print_endline "baz" in
11 > return ()
12 > EOF
13 let ( let* ) x f =
14 ___bisect_visit___ 0;
15 f x
16
17 let ( and* ) x y =
18 ___bisect_visit___ 1;
19 (x, y)
20
21 let return x =
22 ___bisect_visit___ 2;
23 x
24
25 let _ =
26 let* () = ___bisect_post_visit___ 3 (print_endline "foo")
27 and* () = ___bisect_post_visit___ 4 (print_endline "bar") in
28 ___bisect_visit___ 7;
29 let* () = ___bisect_post_visit___ 5 (print_endline "baz") in
30 ___bisect_visit___ 6;
31 return ()