| 1 |
Instrumentation is suppressed for all of the following function names. |
| 2 |
Subexpressions are still instrumented. |
| 3 |
|
| 4 |
$ bash ../test.sh <<'EOF' |
| 5 |
> let _ = not (List.mem () []) |
| 6 |
> EOF |
| 7 |
let _ = not (___bisect_post_visit___ 0 (List.mem () [])) |
| 8 |
|
| 9 |
|
| 10 |
$ bash ../test.sh <<'EOF' |
| 11 |
> let _ = (print_endline "foo") = (print_endline "bar") |
| 12 |
> let _ = (=) (print_endline "foo") (print_endline "bar") |
| 13 |
> let _ = (print_endline "foo") <> (print_endline "bar") |
| 14 |
> let _ = (<>) (print_endline "foo") (print_endline "bar") |
| 15 |
> let _ = (print_endline "foo") < (print_endline "bar") |
| 16 |
> let _ = (<) (print_endline "foo") (print_endline "bar") |
| 17 |
> let _ = (print_endline "foo") <= (print_endline "bar") |
| 18 |
> let _ = (<=) (print_endline "foo") (print_endline "bar") |
| 19 |
> let _ = (print_endline "foo") > (print_endline "bar") |
| 20 |
> let _ = (>) (print_endline "foo") (print_endline "bar") |
| 21 |
> let _ = (print_endline "foo") >= (print_endline "bar") |
| 22 |
> let _ = (>=) (print_endline "foo") (print_endline "bar") |
| 23 |
> let _ = (print_endline "foo") == (print_endline "bar") |
| 24 |
> let _ = (==) (print_endline "foo") (print_endline "bar") |
| 25 |
> let _ = (print_endline "foo") != (print_endline "bar") |
| 26 |
> let _ = (!=) (print_endline "foo") (print_endline "bar") |
| 27 |
> EOF |
| 28 |
let _ = |
| 29 |
___bisect_post_visit___ 0 (print_endline "foo") |
| 30 |
= ___bisect_post_visit___ 1 (print_endline "bar") |
| 31 |
|
| 32 |
let _ = |
| 33 |
___bisect_post_visit___ 2 (print_endline "foo") |
| 34 |
= ___bisect_post_visit___ 3 (print_endline "bar") |
| 35 |
|
| 36 |
let _ = |
| 37 |
___bisect_post_visit___ 4 (print_endline "foo") |
| 38 |
<> ___bisect_post_visit___ 5 (print_endline "bar") |
| 39 |
|
| 40 |
let _ = |
| 41 |
___bisect_post_visit___ 6 (print_endline "foo") |
| 42 |
<> ___bisect_post_visit___ 7 (print_endline "bar") |
| 43 |
|
| 44 |
let _ = |
| 45 |
___bisect_post_visit___ 8 (print_endline "foo") |
| 46 |
< ___bisect_post_visit___ 9 (print_endline "bar") |
| 47 |
|
| 48 |
let _ = |
| 49 |
___bisect_post_visit___ 10 (print_endline "foo") |
| 50 |
< ___bisect_post_visit___ 11 (print_endline "bar") |
| 51 |
|
| 52 |
let _ = |
| 53 |
___bisect_post_visit___ 12 (print_endline "foo") |
| 54 |
<= ___bisect_post_visit___ 13 (print_endline "bar") |
| 55 |
|
| 56 |
let _ = |
| 57 |
___bisect_post_visit___ 14 (print_endline "foo") |
| 58 |
<= ___bisect_post_visit___ 15 (print_endline "bar") |
| 59 |
|
| 60 |
let _ = |
| 61 |
___bisect_post_visit___ 16 (print_endline "foo") |
| 62 |
> ___bisect_post_visit___ 17 (print_endline "bar") |
| 63 |
|
| 64 |
let _ = |
| 65 |
___bisect_post_visit___ 18 (print_endline "foo") |
| 66 |
> ___bisect_post_visit___ 19 (print_endline "bar") |
| 67 |
|
| 68 |
let _ = |
| 69 |
___bisect_post_visit___ 20 (print_endline "foo") |
| 70 |
>= ___bisect_post_visit___ 21 (print_endline "bar") |
| 71 |
|
| 72 |
let _ = |
| 73 |
___bisect_post_visit___ 22 (print_endline "foo") |
| 74 |
>= ___bisect_post_visit___ 23 (print_endline "bar") |
| 75 |
|
| 76 |
let _ = |
| 77 |
___bisect_post_visit___ 24 (print_endline "foo") |
| 78 |
== ___bisect_post_visit___ 25 (print_endline "bar") |
| 79 |
|
| 80 |
let _ = |
| 81 |
___bisect_post_visit___ 26 (print_endline "foo") |
| 82 |
== ___bisect_post_visit___ 27 (print_endline "bar") |
| 83 |
|
| 84 |
let _ = |
| 85 |
___bisect_post_visit___ 28 (print_endline "foo") |
| 86 |
!= ___bisect_post_visit___ 29 (print_endline "bar") |
| 87 |
|
| 88 |
let _ = |
| 89 |
___bisect_post_visit___ 30 (print_endline "foo") |
| 90 |
!= ___bisect_post_visit___ 31 (print_endline "bar") |
| 91 |
|
| 92 |
|
| 93 |
$ bash ../test.sh <<'EOF' |
| 94 |
> let _ = ref (print_endline "foo") |
| 95 |
> let _ = !(ref (print_endline "foo")) |
| 96 |
> let _ = ref (print_endline "foo") := (print_endline "bar") |
| 97 |
> let _ = (:=) (ref (print_endline "foo")) (print_endline "bar") |
| 98 |
> EOF |
| 99 |
let _ = ref (___bisect_post_visit___ 0 (print_endline "foo")) |
| 100 |
|
| 101 |
let _ = !(ref (___bisect_post_visit___ 1 (print_endline "foo"))) |
| 102 |
|
| 103 |
let _ = |
| 104 |
ref (___bisect_post_visit___ 2 (print_endline "foo")) |
| 105 |
:= ___bisect_post_visit___ 3 (print_endline "bar") |
| 106 |
|
| 107 |
let _ = |
| 108 |
ref (___bisect_post_visit___ 4 (print_endline "foo")) |
| 109 |
:= ___bisect_post_visit___ 5 (print_endline "bar") |
| 110 |
|
| 111 |
|
| 112 |
$ bash ../test.sh <<'EOF' |
| 113 |
> let _ = (List.rev []) @ (List.rev []) |
| 114 |
> let _ = (@) (List.rev []) (List.rev []) |
| 115 |
> let _ = (String.trim "") ^ (String.trim "") |
| 116 |
> let _ = (^) (String.trim "") (String.trim "") |
| 117 |
> EOF |
| 118 |
let _ = |
| 119 |
___bisect_post_visit___ 0 (List.rev []) |
| 120 |
@ ___bisect_post_visit___ 1 (List.rev []) |
| 121 |
|
| 122 |
let _ = |
| 123 |
___bisect_post_visit___ 2 (List.rev []) |
| 124 |
@ ___bisect_post_visit___ 3 (List.rev []) |
| 125 |
|
| 126 |
let _ = |
| 127 |
___bisect_post_visit___ 4 (String.trim "") |
| 128 |
^ ___bisect_post_visit___ 5 (String.trim "") |
| 129 |
|
| 130 |
let _ = |
| 131 |
___bisect_post_visit___ 6 (String.trim "") |
| 132 |
^ ___bisect_post_visit___ 7 (String.trim "") |
| 133 |
|
| 134 |
$ bash ../test.sh <<'EOF' |
| 135 |
> let _ = (List.length []) + (List.length []) |
| 136 |
> let _ = (+) (List.length []) (List.length []) |
| 137 |
> let _ = (List.length []) - (List.length []) |
| 138 |
> let _ = (-) (List.length []) (List.length []) |
| 139 |
> let _ = (List.length []) * (List.length []) |
| 140 |
> let _ = ( * ) (List.length []) (List.length []) |
| 141 |
> let _ = (List.length []) / (List.length []) |
| 142 |
> let _ = (/) (List.length []) (List.length []) |
| 143 |
> let _ = (List.length []) mod (List.length []) |
| 144 |
> let _ = (mod) (List.length []) (List.length []) |
| 145 |
> let _ = (float_of_int 0) +. (float_of_int 0) |
| 146 |
> let _ = (+.) (float_of_int 0) (float_of_int 0) |
| 147 |
> let _ = (float_of_int 0) +. (float_of_int 0) |
| 148 |
> let _ = (-.) (float_of_int 0) (float_of_int 0) |
| 149 |
> let _ = (float_of_int 0) *. (float_of_int 0) |
| 150 |
> let _ = ( *. ) (float_of_int 0) (float_of_int 0) |
| 151 |
> let _ = (float_of_int 0) /. (float_of_int 0) |
| 152 |
> let _ = (/.) (float_of_int 0) (float_of_int 0) |
| 153 |
> EOF |
| 154 |
let _ = |
| 155 |
___bisect_post_visit___ 0 (List.length []) |
| 156 |
+ ___bisect_post_visit___ 1 (List.length []) |
| 157 |
|
| 158 |
let _ = |
| 159 |
___bisect_post_visit___ 2 (List.length []) |
| 160 |
+ ___bisect_post_visit___ 3 (List.length []) |
| 161 |
|
| 162 |
let _ = |
| 163 |
___bisect_post_visit___ 4 (List.length []) |
| 164 |
- ___bisect_post_visit___ 5 (List.length []) |
| 165 |
|
| 166 |
let _ = |
| 167 |
___bisect_post_visit___ 6 (List.length []) |
| 168 |
- ___bisect_post_visit___ 7 (List.length []) |
| 169 |
|
| 170 |
let _ = |
| 171 |
___bisect_post_visit___ 8 (List.length []) |
| 172 |
* ___bisect_post_visit___ 9 (List.length []) |
| 173 |
|
| 174 |
let _ = |
| 175 |
___bisect_post_visit___ 10 (List.length []) |
| 176 |
* ___bisect_post_visit___ 11 (List.length []) |
| 177 |
|
| 178 |
let _ = |
| 179 |
___bisect_post_visit___ 12 (List.length []) |
| 180 |
/ ___bisect_post_visit___ 13 (List.length []) |
| 181 |
|
| 182 |
let _ = |
| 183 |
___bisect_post_visit___ 14 (List.length []) |
| 184 |
/ ___bisect_post_visit___ 15 (List.length []) |
| 185 |
|
| 186 |
let _ = |
| 187 |
___bisect_post_visit___ 16 (List.length []) |
| 188 |
mod ___bisect_post_visit___ 17 (List.length []) |
| 189 |
|
| 190 |
let _ = |
| 191 |
___bisect_post_visit___ 18 (List.length []) |
| 192 |
mod ___bisect_post_visit___ 19 (List.length []) |
| 193 |
|
| 194 |
let _ = |
| 195 |
___bisect_post_visit___ 20 (float_of_int 0) |
| 196 |
+. ___bisect_post_visit___ 21 (float_of_int 0) |
| 197 |
|
| 198 |
let _ = |
| 199 |
___bisect_post_visit___ 22 (float_of_int 0) |
| 200 |
+. ___bisect_post_visit___ 23 (float_of_int 0) |
| 201 |
|
| 202 |
let _ = |
| 203 |
___bisect_post_visit___ 24 (float_of_int 0) |
| 204 |
+. ___bisect_post_visit___ 25 (float_of_int 0) |
| 205 |
|
| 206 |
let _ = |
| 207 |
___bisect_post_visit___ 26 (float_of_int 0) |
| 208 |
-. ___bisect_post_visit___ 27 (float_of_int 0) |
| 209 |
|
| 210 |
let _ = |
| 211 |
___bisect_post_visit___ 28 (float_of_int 0) |
| 212 |
*. ___bisect_post_visit___ 29 (float_of_int 0) |
| 213 |
|
| 214 |
let _ = |
| 215 |
___bisect_post_visit___ 30 (float_of_int 0) |
| 216 |
*. ___bisect_post_visit___ 31 (float_of_int 0) |
| 217 |
|
| 218 |
let _ = |
| 219 |
___bisect_post_visit___ 32 (float_of_int 0) |
| 220 |
/. ___bisect_post_visit___ 33 (float_of_int 0) |
| 221 |
|
| 222 |
let _ = |
| 223 |
___bisect_post_visit___ 34 (float_of_int 0) |
| 224 |
/. ___bisect_post_visit___ 35 (float_of_int 0) |
| 225 |
|
| 226 |
|
| 227 |
$ bash ../test.sh <<'EOF' |
| 228 |
> let _ = (List.length []) land (List.length []) |
| 229 |
> let _ = (land) (List.length []) (List.length []) |
| 230 |
> let _ = (List.length []) lor (List.length []) |
| 231 |
> let _ = (lor) (List.length []) (List.length []) |
| 232 |
> let _ = (List.length []) lxor (List.length []) |
| 233 |
> let _ = (lxor) (List.length []) (List.length []) |
| 234 |
> let _ = (List.length []) lsl (List.length []) |
| 235 |
> let _ = (lsl) (List.length []) (List.length []) |
| 236 |
> let _ = (List.length []) lsr (List.length []) |
| 237 |
> let _ = (lsr) (List.length []) (List.length []) |
| 238 |
> let _ = (List.length []) asr (List.length []) |
| 239 |
> let _ = (asr) (List.length []) (List.length []) |
| 240 |
> EOF |
| 241 |
let _ = |
| 242 |
___bisect_post_visit___ 0 (List.length []) |
| 243 |
land ___bisect_post_visit___ 1 (List.length []) |
| 244 |
|
| 245 |
let _ = |
| 246 |
___bisect_post_visit___ 2 (List.length []) |
| 247 |
land ___bisect_post_visit___ 3 (List.length []) |
| 248 |
|
| 249 |
let _ = |
| 250 |
___bisect_post_visit___ 4 (List.length []) |
| 251 |
lor ___bisect_post_visit___ 5 (List.length []) |
| 252 |
|
| 253 |
let _ = |
| 254 |
___bisect_post_visit___ 6 (List.length []) |
| 255 |
lor ___bisect_post_visit___ 7 (List.length []) |
| 256 |
|
| 257 |
let _ = |
| 258 |
___bisect_post_visit___ 8 (List.length []) |
| 259 |
lxor ___bisect_post_visit___ 9 (List.length []) |
| 260 |
|
| 261 |
let _ = |
| 262 |
___bisect_post_visit___ 10 (List.length []) |
| 263 |
lxor ___bisect_post_visit___ 11 (List.length []) |
| 264 |
|
| 265 |
let _ = |
| 266 |
___bisect_post_visit___ 12 (List.length []) |
| 267 |
lsl ___bisect_post_visit___ 13 (List.length []) |
| 268 |
|
| 269 |
let _ = |
| 270 |
___bisect_post_visit___ 14 (List.length []) |
| 271 |
lsl ___bisect_post_visit___ 15 (List.length []) |
| 272 |
|
| 273 |
let _ = |
| 274 |
___bisect_post_visit___ 16 (List.length []) |
| 275 |
lsr ___bisect_post_visit___ 17 (List.length []) |
| 276 |
|
| 277 |
let _ = |
| 278 |
___bisect_post_visit___ 18 (List.length []) |
| 279 |
lsr ___bisect_post_visit___ 19 (List.length []) |
| 280 |
|
| 281 |
let _ = |
| 282 |
___bisect_post_visit___ 20 (List.length []) |
| 283 |
asr ___bisect_post_visit___ 21 (List.length []) |
| 284 |
|
| 285 |
let _ = |
| 286 |
___bisect_post_visit___ 22 (List.length []) |
| 287 |
asr ___bisect_post_visit___ 23 (List.length []) |
| 288 |
|
| 289 |
|
| 290 |
$ bash ../test.sh <<'EOF' |
| 291 |
> let _ = raise (print_endline "foo"; Exit) |
| 292 |
> let _ = raise_notrace (print_endline "foo"; Exit) |
| 293 |
> let _ = failwith (print_endline "foo"; "bar") |
| 294 |
> let _ = ignore (print_endline "foo") |
| 295 |
> let _ = Obj.magic (print_endline "foo") |
| 296 |
> EOF |
| 297 |
let _ = |
| 298 |
raise |
| 299 |
(___bisect_post_visit___ 0 (print_endline "foo"); |
| 300 |
Exit) |
| 301 |
|
| 302 |
let _ = |
| 303 |
raise_notrace |
| 304 |
(___bisect_post_visit___ 1 (print_endline "foo"); |
| 305 |
Exit) |
| 306 |
|
| 307 |
let _ = |
| 308 |
failwith |
| 309 |
(___bisect_post_visit___ 2 (print_endline "foo"); |
| 310 |
"bar") |
| 311 |
|
| 312 |
let _ = ignore (___bisect_post_visit___ 3 (print_endline "foo")) |
| 313 |
|
| 314 |
let _ = Obj.magic (___bisect_post_visit___ 4 (print_endline "foo")) |