Skip to main content

CallEffect

Enum CallEffect 

Source
pub(crate) enum CallEffect {
Show 44 variants ReturnAliasArg { arg: usize, }, ReturnArgValue { arg: usize, }, ReturnOpaque, ReturnFloatToIntUnchecked, ReturnSizeOfVal { arg: usize, }, ReturnRawEq { left_arg: usize, right_arg: usize, }, ReturnExactDiv { lhs_arg: usize, rhs_arg: usize, }, SelectUnpredictable, ReturnWrappingPointerOffset { base_arg: usize, offset_arg: usize, }, ReturnPtrOffsetFrom { ptr_arg: usize, base_arg: usize, }, ReturnConst { value: u64, }, ReallocateVec { arg: usize, }, CopyMemory { source_arg: usize, destination_arg: usize, count_arg: usize, }, SwapMemory { left_arg: usize, right_arg: usize, }, FillBytes { pointer_arg: usize, byte_arg: usize, count_arg: usize, }, ReturnNullableAllocation { size_arg: usize, align_arg: usize, zeroed: bool, }, ReturnMin { lhs_arg: usize, rhs_arg: usize, }, ReturnMax { lhs_arg: usize, rhs_arg: usize, }, ReturnAdd { lhs_arg: usize, rhs_arg: usize, }, ReturnMul { lhs_arg: usize, rhs_arg: usize, }, ReturnBoundedArithmetic { lhs_arg: usize, rhs_arg: usize, op: BoundedArithmeticOp, }, ReturnWithOverflow { lhs_arg: usize, rhs_arg: usize, op: OverflowOp, }, ReturnNonZeroIff { arg: usize, }, ReturnLeadingZeros { arg: usize, }, ReturnTrailingZeros { arg: usize, }, ReturnAlignOfVal { arg: usize, }, ReturnCompareBytes { left_arg: usize, right_arg: usize, count_arg: usize, }, ReturnMaskedPointer { pointer_arg: usize, mask_arg: usize, }, LoadMemory { pointer_arg: usize, }, StoreMemory { pointer_arg: usize, value_arg: usize, }, AtomicRmw { pointer_arg: usize, }, SimdCompare { lhs_arg: usize, rhs_arg: usize, op: SimdCmpOp, }, SimdArithmetic { lhs_arg: usize, rhs_arg: usize, op: SimdArithOp, }, SimdOpaque, SimdSplat { arg: usize, }, SimdExtract { vector_arg: usize, index_arg: usize, }, SimdInsert { vector_arg: usize, index_arg: usize, value_arg: usize, }, SimdHavocMemory { pointer_arg: usize, mask_arg: usize, }, SimdMaskedFallback { mask_arg: usize, fallback_arg: usize, }, SimdBitmask { arg: usize, }, ReturnVecFromSlice, ReturnAlignOffset { ptr_arg: usize, align_arg: usize, }, ReturnTransparentDeref { arg: usize, peel: usize, }, ReturnLayoutSymbolic { is_size: bool, },
}
Expand description

Path-local effect produced by a retained call.

Variants§

§

ReturnAliasArg

The return value aliases or is a direct value flow from an argument.

Fields

§arg: usize
§

ReturnArgValue

The return value is a transparent copy of an argument’s value (MaybeUninit::assume_init, ManuallyDrop::into_inner): same term and facts, retyped to the destination — no pointer non_null forcing.

Fields

§arg: usize
§

ReturnOpaque

§

ReturnFloatToIntUnchecked

Fold a constant unchecked float-to-int conversion; other inputs remain opaque.

§

ReturnSizeOfVal

Fields

§arg: usize
§

ReturnRawEq

Fields

§left_arg: usize
§right_arg: usize
§

ReturnExactDiv

Fields

§lhs_arg: usize
§rhs_arg: usize
§

SelectUnpredictable

select_unpredictable(cond, x, y) returns either x or y: the result is one of the two candidate values (args[1]/args[2]), non-deterministic since the boolean selector (args[0]) is unpredictable.

§

ReturnWrappingPointerOffset

The return value is a pointer extracted from an aggregate/reference arg.

Fields

§base_arg: usize
§offset_arg: usize
§

ReturnPtrOffsetFrom

Fields

§ptr_arg: usize
§base_arg: usize
§

ReturnConst

The return value is a concrete layout/numeric constant.

Fields

§value: u64
§

ReallocateVec

Fields

§arg: usize
§

CopyMemory

Fields

§source_arg: usize
§destination_arg: usize
§count_arg: usize
§

SwapMemory

Fields

§left_arg: usize
§right_arg: usize
§

FillBytes

Fields

§pointer_arg: usize
§byte_arg: usize
§count_arg: usize
§

ReturnNullableAllocation

Fields

§size_arg: usize
§align_arg: usize
§zeroed: bool
§

ReturnMin

The return value is min(lhs_arg, rhs_arg), satisfying return <= lhs_arg and return <= rhs_arg.

Fields

§lhs_arg: usize
§rhs_arg: usize
§

ReturnMax

The return value is max(lhs_arg, rhs_arg).

Fields

§lhs_arg: usize
§rhs_arg: usize
§

ReturnAdd

The return value is lhs_arg + rhs_arg.

Fields

§lhs_arg: usize
§rhs_arg: usize
§

ReturnMul

The return value is lhs_arg * rhs_arg.

Fields

§lhs_arg: usize
§rhs_arg: usize
§

ReturnBoundedArithmetic

Fields

§lhs_arg: usize
§rhs_arg: usize
§

ReturnWithOverflow

Fields

§lhs_arg: usize
§rhs_arg: usize
§

ReturnNonZeroIff

The return value is non-zero iff arg is non-zero (models bit-manipulating intrinsics like bswap/bitreverse/ctpop/rotate_*, which map 0 to 0 and non-zero to non-zero).

Fields

§arg: usize
§

ReturnLeadingZeros

Fields

§arg: usize
§

ReturnTrailingZeros

Fields

§arg: usize
§

ReturnAlignOfVal

Fields

§arg: usize
§

ReturnCompareBytes

Fields

§left_arg: usize
§right_arg: usize
§count_arg: usize
§

ReturnMaskedPointer

Fields

§pointer_arg: usize
§mask_arg: usize
§

LoadMemory

Fields

§pointer_arg: usize
§

StoreMemory

Fields

§pointer_arg: usize
§value_arg: usize
§

AtomicRmw

Fields

§pointer_arg: usize
§

SimdCompare

Fields

§lhs_arg: usize
§rhs_arg: usize
§

SimdArithmetic

Fields

§lhs_arg: usize
§rhs_arg: usize
§

SimdOpaque

§

SimdSplat

Fields

§arg: usize
§

SimdExtract

Fields

§vector_arg: usize
§index_arg: usize
§

SimdInsert

Fields

§vector_arg: usize
§index_arg: usize
§value_arg: usize
§

SimdHavocMemory

Fields

§pointer_arg: usize
§mask_arg: usize
§

SimdMaskedFallback

Fields

§mask_arg: usize
§fallback_arg: usize
§

SimdBitmask

Fields

§arg: usize
§

ReturnVecFromSlice

The slice-to-Vec conversion creates a new allocation with the source length.

§

ReturnAlignOffset

ptr.align_offset(align) returns an offset such that (ptr + offset) % align == 0 and 0 <= offset < align (or usize::MAX when no such offset exists). Models *const T::align_offset / *mut T::align_offset by recording the alignment path-condition so downstream ptr.add(offset) dereferences can discharge Align.

Fields

§ptr_arg: usize
§align_arg: usize
§

ReturnTransparentDeref

<ManuallyDrop<T> as Deref>::deref / MaybeDangling::as_ref return a reference to the inner value at the same address (transparent wrappers). The return aliases arg (a &T pointing at arg’s pointee) and its pointee field values are the argument’s field values with the leading peel transparent field-0 hops stripped.

Fields

§arg: usize
§peel: usize
§

ReturnLayoutSymbolic

size_of::<T>() / align_of::<T>() for a generic T (no concrete layout): the result is the shared symbolic sizeof_T / align_T, bound at apply time from func’s type argument.

Fields

§is_size: bool

Implementations§

Source§

impl CallEffect

Source

pub(super) fn written_args(&self) -> Vec<usize>

Source

pub(super) fn write_inputs(&self) -> Vec<usize>

Trait Implementations§

Source§

impl Clone for CallEffect

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CallEffect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V