Struct BV
pub struct BV<'ctx>(/* private fields */);
Expand description
A Z3 bitvector.
Implementations§
Trait Implementations§
§impl<'ctx> SmtBV<'ctx, Z3Solver<'ctx>> for BV<'ctx>
impl<'ctx> SmtBV<'ctx, Z3Solver<'ctx>> for BV<'ctx>
fn concat(self, other: Self) -> Self
fn extract(self, hi: u32, lo: u32) -> Self
fn zero_ext(self, num: u32) -> Self
fn sign_ext(self, num: u32) -> Self
fn bvshl(self, count: Self) -> Self
fn bvlshr(self, count: Self) -> Self
fn bvashr(self, count: Self) -> Self
§fn _eq(self, other: Self) -> Bool<'ctx>
fn _eq(self, other: Self) -> Bool<'ctx>
Returns an SMT expression that performs an equality comparison between the two bitvectors.
fn bvurem(self, n: Self) -> Self
fn bvsrem(self, n: Self) -> Self
fn bvudiv(self, n: Self) -> Self
fn bvsdiv(self, n: Self) -> Self
fn bvrotl(self, count: Self) -> Self
fn bvslt(self, other: Self) -> Bool<'ctx>
fn bvsge(self, other: Self) -> Bool<'ctx>
fn bvrotr(self, count: Self) -> Self
§fn is_identical(&self, other: &Self) -> bool
fn is_identical(&self, other: &Self) -> bool
Returns true if both expressions are structurally identical.
fn bvsgt(self, other: Self) -> Bool<'ctx>
fn bvugt(self, other: Self) -> Bool<'ctx>
fn bvult(self, other: Self) -> Bool<'ctx>
fn bvule(self, other: Self) -> Bool<'ctx>
fn bvuge(self, other: Self) -> Bool<'ctx>
§fn into_dynamic(self) -> Dynamic<'a, S>
fn into_dynamic(self) -> Dynamic<'a, S>
Converts the bitvector into a
Dynamic
expression.§fn swap_bytes(self, num_bytes: usize) -> Self
fn swap_bytes(self, num_bytes: usize) -> Self
Swaps the lowest
num_bytes
in the bitvector.§fn swap_bytes_to_128bits(self, num_bytes: usize) -> Self
fn swap_bytes_to_128bits(self, num_bytes: usize) -> Self
Swaps the lowest
num_bytes
in the bitvector, and zero-extends to an 128-bit bitvector.Auto Trait Implementations§
impl<'ctx> Freeze for BV<'ctx>
impl<'ctx> RefUnwindSafe for BV<'ctx>
impl<'ctx> !Send for BV<'ctx>
impl<'ctx> !Sync for BV<'ctx>
impl<'ctx> Unpin for BV<'ctx>
impl<'ctx> UnwindSafe for BV<'ctx>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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