On this page
Flow, effects and memory diagnostics
Flow analysis rejects unsafe or inconsistent uses before ordinary solver proof. Initialization, declared effects, ownership and task-access rules apply in every mode, including --no-prove and --advisory. A solver-budget adjustment cannot repair a moved value or an undeclared global write.
Initialization and effects
For B3001, trace every path reaching the read. A declaration without an initializer does not promise a valid scalar value. Assign it before use, or give it an initial value where it is declared.
For unset outputs or incomplete object parts, establish the entire required value on every normal return. An early return or an exception handler can bypass the assignment made on the main path. With relaxed initialization, the prover tracks which parts are written, and reading a part that might not be is B3016. See initialization and flow.
Global, Depends, initialization and abstract-state aspects describe what an operation reads, writes and computes from. Missing effects require either a truthful contract update or an implementation change that removes the access. Overly broad effects can also be reported as unused and reduce a caller's useful knowledge. A function may not have side effects (B3006); analysis follows effects through every call, so moving a write into a helper does not hide it.
Aliases, moves and borrows
An owner supplies one right to reclaim its designated resource. Moving it transfers that right and invalidates the source until it is appropriately reestablished. B6002 identifies use after a move; B6003 identifies an output or global returned to its caller with a part still moved out. A local reassignment on one branch is insufficient if another branch still exposes the invalid state.
| Condition | Relevant code | Appropriate direction |
|---|---|---|
| Moving from an observed parameter | B6004 | Keep observation read-only or redesign the transfer interface. |
| Owned allocation live at a required cleanup point | B6005 | Free it, return/transfer it legally or provide proved reclamation. |
| Invalid finalizer/adjuster declaration | B6006 | Match the limited or copyable resource profiles. |
| Old snapshot would duplicate ownership | B6007 | Snapshot a supported scalar/model projection or fresh logical value. |
| Loop iteration leaves a new moved part | B6008 | Restore ownership before the next iteration. |
| Owner used during an exclusive borrow | B6009 | Use the borrower or shorten its lifetime. |
| Owner changed during an observation | B6010 | Keep the owner stable until observation ends. |
The ownership reference explains the states an owner goes through. Vibe's views follow the same rules; see its sharing reference.
Leaks are proved, not checked at run time: a --no-prove or advisory build does not report them, so use a full proof when reclamation matters.
Proof enclaves
Inside a proof enclave, pointers may share cells, and the heap engine proves each operation's frame:
| Condition | Relevant code | Appropriate direction |
|---|---|---|
| A cell outside the footprints might be read or written | B5116, B5117 | Add the cell's object to the operation's footprint contract, or stop reaching it. |
| A footprint might take a cell that was neither its objects' nor new | B5118 | Keep each footprint to its own objects' cells and new ones. |
| Two objects' footprints might share a cell | B5119 | Keep the objects' cells apart, or make them one object. |
| A freed cell used, or freed again | B6011, B6012 | Read what you need and move every pointer off a cell before freeing it. |
| A function over the cells recursed deeper than there are cells | B6013 | Make the recursion follow the structure, so that it ends. |
What the heap engine leaves unproved in an enclave body is trusted, and its cells come from a checking allocator, so a use after free or a double free stops the program at the failing operation.
Concurrency and external state
Data-race, potentially-blocking, ceiling and volatile-state errors concern the declared concurrency model. Protect shared data with an appropriate protected operation or atomic interface, and keep blocking operations out of protected actions. Volatile state can change outside the current computation; repeatedly reading a device register is not equivalent to reading one stable local sample.
A suspension object may have at most one task waiting on it (B3029). See concurrency and devices and verification of concurrent boundaries. A proof covers what the program does, not how long the operating system or a device takes.