pub(crate) struct AllocFacts<'z3, 'tcx> {
pub dead: bool,
pub function_var_may_drop: bool,
pub drop_may_free: bool,
pub owning: Option<Int<'z3>>,
pub locally_allocated: bool,
pub liveness: Option<Region<'tcx>>,
pub for_each: ForEachFacts<'z3, 'tcx>,
pub bounded_spans: Vec<(Int<'z3>, Ty<'tcx>, Option<Int<'z3>>)>,
pub bounded_ranges: Vec<(Int<'z3>, Int<'z3>)>,
}Expand description
Per-allocation lifecycle facts (dead/liveness/for_each), kept apart
from the allocation’s shape metadata and parent edge so identity/layout
and facts are separated at the type level. The content facts
(readability, C-string/UTF-8 trust) live on ContentFacts instead.
Fields§
§dead: boolWhether the allocation has been freed (StorageDead / Drop).
function_var_may_drop: boolWhether an unresolved Fn* call may have freed this allocation.
drop_may_free: boolA destructor may have freed this allocation.
owning: Option<Int<'z3>>Pointer term licensed by an Owning precondition.
locally_allocated: boolWhether this allocation was created in the analyzed function.
liveness: Option<Region<'tcx>>Assumed live region for external allocations; None grants no lifetime.
for_each: ForEachFacts<'z3, 'tcx>Facts shared by all pointer elements of this allocation.
bounded_spans: Vec<(Int<'z3>, Ty<'tcx>, Option<Int<'z3>>)>(address, type, length) spans licensed by InBound contracts. The
length is the pointer’s length for a slice or str, whose size depends
on it, and None for other types.
bounded_ranges: Vec<(Int<'z3>, Int<'z3>)>Byte ranges established by explicit allocation/bounds contracts. Each entry is (start address, byte count), not a whole-allocation extent.
Trait Implementations§
Source§impl<'z3, 'tcx> Clone for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> Clone for AllocFacts<'z3, 'tcx>
Source§impl<'z3, 'tcx> Debug for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> Debug for AllocFacts<'z3, 'tcx>
Auto Trait Implementations§
impl<'z3, 'tcx> !DynSend for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> !DynSync for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> !RefUnwindSafe for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> !Send for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> !Sync for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> !UnwindSafe for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> Forget for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> Freeze for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> Move for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> Unpin for AllocFacts<'z3, 'tcx>
impl<'z3, 'tcx> UnsafeUnpin for AllocFacts<'z3, 'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more