FAILURE MAP
← Case archive

FA-41209 / Heap invariants / Member archive

Paged heap page allocation rounds up except at exact capacity multiples · case 04

The bounded paged heap layout certificate reports an incorrect pages.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

A binary heap is stored in fixed-size pages of B slots using zero-based global indices. For n logical members and selected live index i report its page/offset, parent address or None, child addresses, allocated page count, last-page live occupancy, and pages touched by reading i and its existing children. B>=1 and 0<=i<n.

Why this case matters

This isolates an internal heap representation or priority-structure invariant using deterministic finite records.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression certificate 1{"address": [0, 0], "children": [], "pages": 0, "parent": null, "tail_occupancy": 1, "touched": [0]}{"address": [0, 0], "children": [], "pages": 1, "parent": null, "tail_occupancy": 1, "touched": [0]}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗