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
// SPDX-License-Identifier: Apache-2.0
// Copyright 2024-2026 Dragonscale Team
//! Concurrency model-checking entry points for the OCC commit core.
//!
//! Built and run ONLY under `--features loom` (exhaustive) or `--features
//! shuttle` (randomized); in default builds this binary compiles to nothing. The
//! model body lives in `uni_store::occ_loom_model` so both tools share one source.
//!
//! ```text
//! RUSTC_WRAPPER="" LOOM_MAX_PREEMPTIONS=3 \
//! cargo nextest run -p uni-store --features loom --test occ_model
//! RUSTC_WRAPPER="" \
//! cargo nextest run -p uni-store --features shuttle --test occ_model
//! ```
use ;
/// Write-write (lost-update) detection, two concurrent committers.
/// Write-write detection, three committers — larger interleaving space.
/// Read-write (write-skew) detection via the SSI read-set path.
/// History truncation: a capacity-1 registry + filler key evicts a conflicting
/// entry, making the `HistoryTruncated` conservative-abort guard load-bearing.