Expand description
Rich assertion slot tracking for the Antithesis-style assertion suite.
Maintains a fixed-size table of assertion slots in shared memory. Supports boolean assertions (always/sometimes/reachable/unreachable), numeric guidance assertions (with watermark tracking), and compound boolean assertions (sometimes-all with frontier tracking).
Each slot is accessed via raw pointer arithmetic on MAP_SHARED memory.
The sequential fork tree (parent waits on children) means no true atomic
CAS races occur — simple CAS suffices for correctness across forks.
Structs§
- Assertion
Slot - A single assertion tracking slot in shared memory.
- Assertion
Slot Snapshot - A snapshot of an assertion slot for reporting.
Enums§
- Assert
Cmp - Comparison operator for numeric assertions.
- Assert
Kind - The kind of assertion being tracked.
Constants§
- ASSERTION_
TABLE_ MEM_ SIZE - Total size of the assertion table memory region in bytes.
- MAX_
ASSERTION_ SLOTS - Maximum number of tracked assertion slots.
Functions§
- assertion_
bool - Boolean assertion backing function.
- assertion_
numeric - Numeric guidance assertion backing function.
- assertion_
read_ all - Read all allocated assertion slots from shared memory.
- assertion_
sometimes_ all - Compound boolean assertion backing function (sometimes-all).
- msg_
hash - FNV-1a hash of a message string to a stable u32.