Module non_null

Module non_null 

Source
Expand description

SMT lowering for the NonNull safety property.

This module reduces:

NonNull(p)

to the common SMT obligation:

NonZero { place: p }

The common model asserts path-local facts such as reference-derived pointers and as_ptr results as non-zero assumptions, then asks whether the target can still be zero.

Functionsยง

check ๐Ÿ”’
Check NonNull by lowering it to SmtObligation::NonZero.