| 1 |
Pipe is given special treatment, to instrument it intuitively as an application |
| 2 |
of a function to an argument, rather than a function to two arguments. |
| 3 |
|
| 4 |
$ bash ../test.sh <<'EOF' |
| 5 |
> let _ = "" |> String.trim |
| 6 |
> EOF |
| 7 |
let _ = ___bisect_post_visit___ 0 ("" |> String.trim) |
| 8 |
|
| 9 |
|
| 10 |
Subexpressions instrumented recursively. |
| 11 |
|
| 12 |
$ bash ../test.sh <<'EOF' |
| 13 |
> let _ = (String.trim "") |> (fun s -> String.trim s) |
| 14 |
> EOF |
| 15 |
let _ = |
| 16 |
___bisect_post_visit___ 2 |
| 17 |
( ___bisect_post_visit___ 0 (String.trim "") |> fun s -> |
| 18 |
___bisect_visit___ 1; |
| 19 |
String.trim s ) |
| 20 |
|
| 21 |
|
| 22 |
Instrumentation suppressed in tail position. |
| 23 |
|
| 24 |
$ bash ../test.sh <<'EOF' |
| 25 |
> let _ = fun () -> "" |> String.trim |
| 26 |
> EOF |
| 27 |
let _ = |
| 28 |
fun () -> |
| 29 |
___bisect_visit___ 0; |
| 30 |
"" |> String.trim |
| 31 |
|
| 32 |
|
| 33 |
Right argument is not in tail position. |
| 34 |
|
| 35 |
$ bash ../test.sh <<'EOF' |
| 36 |
> let _ = [] |> List.mem 0 |
| 37 |
> EOF |
| 38 |
let _ = ___bisect_post_visit___ 0 ([] |> List.mem 0) |