pub(crate) struct MemoryContent<'z3, 'tcx> {
pub(crate) byte_array: Option<Array<'z3>>,
pub(crate) byte_written: FxHashSet<usize>,
pub(crate) values: FxHashMap<(Ty<'tcx>, Vec<usize>), VmValue<'z3, 'tcx>>,
pub(crate) typed_facts: FxHashSet<(Int<'z3>, Ty<'tcx>)>,
pub(crate) indexed_elements: Vec<(Int<'z3>, VmValue<'z3, 'tcx>)>,
pub(crate) indexed_elements_modified: bool,
pub(crate) copied_prefix: Option<(Ty<'tcx>, Int<'z3>)>,
pub(crate) facts: ContentFacts<'tcx>,
}Expand description
The per-allocation byte and typed-value layers. Typed values use a view type
so fields from different casts do not collide. Unwritten bytes read as the
UNINIT sentinel.
Fields§
§byte_array: Option<Array<'z3>>Symbolic byte array; absent until the first byte write.
byte_written: FxHashSet<usize>Concrete written byte offsets; symbolic writes update only byte_array.
values: FxHashMap<(Ty<'tcx>, Vec<usize>), VmValue<'z3, 'tcx>>Typed values keyed by view type and field path; [] is the whole value.
typed_facts: FxHashSet<(Int<'z3>, Ty<'tcx>)>(address, type) facts established by Typed contracts.
indexed_elements: Vec<(Int<'z3>, VmValue<'z3, 'tcx>)>§indexed_elements_modified: bool§copied_prefix: Option<(Ty<'tcx>, Int<'z3>)>§facts: ContentFacts<'tcx>Implementations§
Source§impl MemoryContent<'_, '_>
impl MemoryContent<'_, '_>
pub(crate) fn clear_byte_writes(&mut self)
Trait Implementations§
Source§impl<'z3, 'tcx> Clone for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> Clone for MemoryContent<'z3, 'tcx>
Auto Trait Implementations§
impl<'z3, 'tcx> !DynSend for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> !DynSync for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> !RefUnwindSafe for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> !Send for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> !Sync for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> !UnwindSafe for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> Forget for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> Freeze for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> Move for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> Unpin for MemoryContent<'z3, 'tcx>
impl<'z3, 'tcx> UnsafeUnpin for MemoryContent<'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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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