1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Red-team / robustness tests for the rank-mode substrate.
//!
//! Only the `rank.rs` domain-guard cases are kept here. The earlier
//! rank-modes red-team suite also covered a quantized-index
//! constructor, id-map `add_with_ids*`, and a core `io` read path —
//! none of which exist in `ordvec` (it carries only the ordinal/sign
//! substrate), so those cases are intentionally dropped.
//!
//! * `P-B` / `P-E` — `rank::rank_to_bucket` overflow on `bits >= 32` and
//! div-by-zero on `d == 0`.
//! * `P-D` — `rank::rankquant_bytes_per_vec` div-by-zero on `bits == 0`.
use ;
// ---------------------------------------------------------------------------
// P-B / P-E — rank_to_bucket overflow / div-by-zero. Must panic in release too.
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// P-D — rankquant_bytes_per_vec div-by-zero on bits == 0.
// ---------------------------------------------------------------------------