Skip to main content

BV

Struct BV 

Source
pub struct BV { /* private fields */ }
Expand description

Ast node representing a bitvector value.

Implementations§

Source§

impl BV

Source

pub fn from_str(sz: u32, value: &str) -> Option<BV>

Source

pub fn from_bits(bits: &[bool]) -> Option<BV>

Create a BV from an array of bits.

§Examples
// 0b00000010
let bv = BV::from_bits(&[false, true, false, false, false, false, false, false]).unwrap();
let bv_none = BV::from_bits(&[]);
assert_eq!(bv, 2);
assert_eq!(bv_none, None);
Source

pub fn new_const<S: Into<Symbol>>(name: S, sz: u32) -> BV

Source

pub fn fresh_const(prefix: &str, sz: u32) -> BV

Source

pub fn from_i64(i: i64, sz: u32) -> BV

Source

pub fn from_u64(u: u64, sz: u32) -> BV

Source

pub fn as_i64(&self) -> Option<i64>

Source

pub fn as_u64(&self) -> Option<u64>

Source

pub fn from_int(ast: &Int, sz: u32) -> BV

Create a bit vector from an integer.

The bit vector will have width sz.

§Examples
let i = ast::Int::new_const("x");
solver.assert(&i.eq(&ast::Int::from_i64(-3)));

let x = ast::BV::from_int(&i, 64);
assert_eq!(64, x.get_size());

assert_eq!(solver.check(), SatResult::Sat);
let model = solver.get_model().unwrap();

assert_eq!(-3, model.eval(&x.to_int(true), true).unwrap().as_i64().expect("as_i64() shouldn't fail"));
Source

pub fn to_int(&self, signed: bool) -> Int

Create an integer from a bitvector. This is just a convenience wrapper around Int::from_bv(); see notes there.

Source

pub fn get_size(&self) -> u32

Get the size of the bitvector (in bits)

Source

pub fn bvnot(&self) -> Self

Bitwise negation

Source

pub fn bvneg(&self) -> Self

Two’s complement negation

Source

pub fn bvredand(&self) -> Self

Conjunction of all the bits in the vector. Returns a BV with size (bitwidth) 1.

Source

pub fn bvredor(&self) -> Self

Disjunction of all the bits in the vector. Returns a BV with size (bitwidth) 1.

Source

pub fn bvand<T: IntoAst<Self>>(&self, other: T) -> Self

Bitwise and

Source

pub fn bvor<T: IntoAst<Self>>(&self, other: T) -> Self

Bitwise or

Source

pub fn bvxor<T: IntoAst<Self>>(&self, other: T) -> Self

Bitwise exclusive-or

Source

pub fn bvnand<T: IntoAst<Self>>(&self, other: T) -> Self

Bitwise nand

Source

pub fn bvnor<T: IntoAst<Self>>(&self, other: T) -> Self

Bitwise nor

Source

pub fn bvxnor<T: IntoAst<Self>>(&self, other: T) -> Self

Bitwise xnor

Source

pub fn bvadd<T: IntoAst<Self>>(&self, other: T) -> Self

Addition

Source

pub fn bvsub<T: IntoAst<Self>>(&self, other: T) -> Self

Subtraction

Source

pub fn bvmul<T: IntoAst<Self>>(&self, other: T) -> Self

Multiplication

Source

pub fn bvudiv<T: IntoAst<Self>>(&self, other: T) -> Self

Unsigned division

Source

pub fn bvsdiv<T: IntoAst<Self>>(&self, other: T) -> Self

Signed division

Source

pub fn bvurem<T: IntoAst<Self>>(&self, other: T) -> Self

Unsigned remainder

Source

pub fn bvsrem<T: IntoAst<Self>>(&self, other: T) -> Self

Signed remainder (sign follows dividend)

Source

pub fn bvsmod<T: IntoAst<Self>>(&self, other: T) -> Self

Signed remainder (sign follows divisor)

Source

pub fn bvult<T: IntoAst<Self>>(&self, other: T) -> Bool

Unsigned less than

Source

pub fn bvslt<T: IntoAst<Self>>(&self, other: T) -> Bool

Signed less than

Source

pub fn bvule<T: IntoAst<Self>>(&self, other: T) -> Bool

Unsigned less than or equal

Source

pub fn bvsle<T: IntoAst<Self>>(&self, other: T) -> Bool

Signed less than or equal

Source

pub fn bvuge<T: IntoAst<Self>>(&self, other: T) -> Bool

Unsigned greater or equal

Source

pub fn bvsge<T: IntoAst<Self>>(&self, other: T) -> Bool

Signed greater or equal

Source

pub fn bvugt<T: IntoAst<Self>>(&self, other: T) -> Bool

Unsigned greater than

Source

pub fn bvsgt<T: IntoAst<Self>>(&self, other: T) -> Bool

Signed greater than

Source

pub fn bvshl<T: IntoAst<Self>>(&self, other: T) -> Self

Shift left

Source

pub fn bvlshr<T: IntoAst<Self>>(&self, other: T) -> Self

Logical shift right (add zeroes in the high bits)

Source

pub fn bvashr<T: IntoAst<Self>>(&self, other: T) -> Self

Arithmetic shift right (sign-extend in the high bits)

Source

pub fn bvrotl<T: IntoAst<Self>>(&self, other: T) -> Self

Rotate left

Source

pub fn bvrotr<T: IntoAst<Self>>(&self, other: T) -> Self

Rotate right

Source

pub fn concat<T: IntoAst<Self>>(&self, other: T) -> Self

Concatenate two bitvectors

Source

pub fn bvneg_no_overflow(&self) -> Bool

Check if negation overflows

Source

pub fn bvadd_no_overflow(&self, other: &BV, b: bool) -> Bool

Check if addition overflows

Source

pub fn bvsub_no_underflow(&self, other: &BV, b: bool) -> Bool

Check if subtraction underflows

Source

pub fn bvmul_no_overflow(&self, other: &BV, b: bool) -> Bool

Check if multiplication overflows

Source

pub fn bvadd_no_underflow<T: IntoAst<Self>>(&self, other: T) -> Bool

Check if addition underflows

Source

pub fn bvsub_no_overflow<T: IntoAst<Self>>(&self, other: T) -> Bool

Check if subtraction overflows

Source

pub fn bvsdiv_no_overflow<T: IntoAst<Self>>(&self, other: T) -> Bool

Check if signed division overflows

Source

pub fn bvmul_no_underflow<T: IntoAst<Self>>(&self, other: T) -> Bool

Check if multiplication underflows

Source

pub fn extract(&self, high: u32, low: u32) -> Self

Extract the bits high down to low from the bitvector. Returns a bitvector of size n, where n = high - low + 1.

Source

pub fn sign_ext(&self, i: u32) -> Self

Sign-extend the bitvector to size m+i, where m is the original size of the bitvector. That is, i bits will be added.

Source

pub fn zero_ext(&self, i: u32) -> Self

Zero-extend the bitvector to size m+i, where m is the original size of the bitvector. That is, i bits will be added.

Source§

impl BV

Source

pub fn ast_eq<T: IntoAst<Self>>(&self, other: T) -> bool
where Self: Sized,

Source

pub fn _eq<T: IntoAst<Self>>(&self, other: T) -> Bool
where Self: Sized,

👎Deprecated:

Please use eq instead

Source

pub fn ne<T: IntoAst<Self>>(&self, other: T) -> Bool
where Self: Sized,

Source

pub fn eq<T: IntoAst<Self>>(&self, other: T) -> Bool
where Self: Sized,

Compare this Ast with another Ast, and get a Bool representing the result.

This operation works with all possible Asts (int, real, BV, etc), but the two Asts being compared must be the same type.

Source

pub fn _safe_eq<T: IntoAst<Self>>(&self, other: T) -> Result<Bool, SortDiffers>
where Self: Sized,

👎Deprecated:

Please use safe_eq instead

Source

pub fn safe_eq<T: IntoAst<Self>>(&self, other: T) -> Result<Bool, SortDiffers>
where Self: Sized,

Compare this Ast with another Ast, and get a Result. Errors if the sort does not match for the two values.

Trait Implementations§

Source§

impl<'a> Add<&'a BV> for i16

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BV) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a BV> for i32

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BV) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a BV> for i64

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BV) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a BV> for i8

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BV) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a BV> for u16

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BV) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a BV> for u32

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BV) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a BV> for u64

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BV) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a> Add<&'a BV> for u8

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'a BV) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BV> for i16

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BV) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BV> for i32

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BV) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BV> for i64

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BV) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BV> for i8

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BV) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BV> for u16

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BV) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BV> for u32

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BV) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BV> for u64

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BV) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BV> for u8

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BV) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: IntoAst<BV>> Add<T> for &BV

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: T) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: IntoAst<BV>> Add<T> for BV

Source§

type Output = BV

The resulting type after applying the + operator.
Source§

fn add(self, rhs: T) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: IntoAst<BV>> AddAssign<T> for BV

Source§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
Source§

impl Ast for BV

Source§

unsafe fn wrap(ctx: &Context, ast: Z3_ast) -> Self

Wrap a raw Z3_ast. Read more
Source§

fn eq<T: IntoAst<Self>>(&self, other: T) -> Bool
where Self: Sized,

Source§

fn ne<T: IntoAst<Self>>(&self, other: T) -> Bool
where Self: Sized,

Source§

fn get_ctx(&self) -> &Context

Source§

fn get_z3_ast(&self) -> Z3_ast

Source§

fn distinct(values: &[impl Borrow<Self>]) -> Bool
where Self: Sized,

Compare this Ast with a list of other Asts, and get a Bool which is true only if all arguments (including Self) are pairwise distinct. Read more
Source§

fn get_sort(&self) -> Sort

Get the Sort of the Ast.
Source§

fn simplify(&self) -> Self
where Self: Sized,

Simplify the Ast. Returns a new Ast which is equivalent, but simplified using algebraic simplification rules, such as constant propagation.
Source§

fn substitute<T: Ast>(&self, substitutions: &[(&T, &T)]) -> Self
where Self: Sized,

Performs substitution on the Ast. The slice substitutions contains a list of pairs with a “from” Ast that will be substituted by a “to” Ast.
Source§

fn num_children(&self) -> usize

Return the number of children of this Ast. Read more
Source§

fn nth_child(&self, idx: usize) -> Option<Dynamic>

Return the nth child of this Ast. Read more
Source§

fn children(&self) -> Vec<Dynamic>

Return the children of this node as a Vec<Dynamic>.
Source§

fn kind(&self) -> AstKind

Return the AstKind for this Ast.
Source§

fn is_app(&self) -> bool

Return true if this is a Z3 function application. Read more
Source§

fn is_const(&self) -> bool

Return true if this is a Z3 constant. Read more
Source§

fn decl(&self) -> FuncDecl

Return the FuncDecl of the Ast. Read more
Source§

fn safe_decl(&self) -> Result<FuncDecl, IsNotApp>

Source§

fn check_ctx(&self, ctx: &Context)

Source§

impl<'a> BitAnd<&'a BV> for i16

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BV) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a BV> for i32

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BV) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a BV> for i64

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BV) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a BV> for i8

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BV) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a BV> for u16

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BV) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a BV> for u32

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BV) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a BV> for u64

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BV) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a> BitAnd<&'a BV> for u8

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a BV) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BV> for i16

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BV) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BV> for i32

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BV) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BV> for i64

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BV) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BV> for i8

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BV) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BV> for u16

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BV) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BV> for u32

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BV) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BV> for u64

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BV) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<BV> for u8

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: BV) -> Self::Output

Performs the & operation. Read more
Source§

impl<T: IntoAst<BV>> BitAnd<T> for &BV

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: T) -> Self::Output

Performs the & operation. Read more
Source§

impl<T: IntoAst<BV>> BitAnd<T> for BV

Source§

type Output = BV

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: T) -> Self::Output

Performs the & operation. Read more
Source§

impl<T: IntoAst<BV>> BitAndAssign<T> for BV

Source§

fn bitand_assign(&mut self, rhs: T)

Performs the &= operation. Read more
Source§

impl<'a> BitOr<&'a BV> for i16

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BV) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a BV> for i32

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BV) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a BV> for i64

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BV) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a BV> for i8

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BV) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a BV> for u16

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BV) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a BV> for u32

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BV) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a BV> for u64

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BV) -> Self::Output

Performs the | operation. Read more
Source§

impl<'a> BitOr<&'a BV> for u8

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a BV) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BV> for i16

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BV) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BV> for i32

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BV) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BV> for i64

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BV) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BV> for i8

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BV) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BV> for u16

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BV) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BV> for u32

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BV) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BV> for u64

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BV) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<BV> for u8

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: BV) -> Self::Output

Performs the | operation. Read more
Source§

impl<T: IntoAst<BV>> BitOr<T> for &BV

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: T) -> Self::Output

Performs the | operation. Read more
Source§

impl<T: IntoAst<BV>> BitOr<T> for BV

Source§

type Output = BV

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: T) -> Self::Output

Performs the | operation. Read more
Source§

impl<T: IntoAst<BV>> BitOrAssign<T> for BV

Source§

fn bitor_assign(&mut self, rhs: T)

Performs the |= operation. Read more
Source§

impl<'a> BitXor<&'a BV> for i16

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a BV> for i32

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a BV> for i64

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a BV> for i8

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a BV> for u16

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a BV> for u32

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a BV> for u64

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<'a> BitXor<&'a BV> for u8

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BV> for i16

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BV> for i32

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BV> for i64

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BV> for i8

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BV> for u16

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BV> for u32

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BV> for u64

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<BV> for u8

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: BV) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T: IntoAst<BV>> BitXor<T> for &BV

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: T) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T: IntoAst<BV>> BitXor<T> for BV

Source§

type Output = BV

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: T) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<T: IntoAst<BV>> BitXorAssign<T> for BV

Source§

fn bitxor_assign(&mut self, rhs: T)

Performs the ^= operation. Read more
Source§

impl Clone for BV

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for BV

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for BV

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Drop for BV

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl From<&BV> for BV

Source§

fn from(value: &Self) -> Self

Converts to this type from the input type.
Source§

impl From<&BV> for Dynamic

Source§

fn from(ast: &BV) -> Self

Converts to this type from the input type.
Source§

impl From<BV> for Dynamic

Source§

fn from(ast: BV) -> Self

Converts to this type from the input type.
Source§

impl From<BV> for Z3_ast

Source§

fn from(ast: BV) -> Self

Converts to this type from the input type.
Source§

impl Hash for BV

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoAst<BV> for i16

Source§

fn into_ast(self, a: &BV) -> BV

Source§

impl IntoAst<BV> for i32

Source§

fn into_ast(self, a: &BV) -> BV

Source§

impl IntoAst<BV> for i64

Source§

fn into_ast(self, a: &BV) -> BV

Source§

impl IntoAst<BV> for i8

Source§

fn into_ast(self, a: &BV) -> BV

Source§

impl IntoAst<BV> for u16

Source§

fn into_ast(self, a: &BV) -> BV

Source§

impl IntoAst<BV> for u32

Source§

fn into_ast(self, a: &BV) -> BV

Source§

impl IntoAst<BV> for u64

Source§

fn into_ast(self, a: &BV) -> BV

Source§

impl IntoAst<BV> for u8

Source§

fn into_ast(self, a: &BV) -> BV

Source§

impl<'a> Mul<&'a BV> for i16

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BV) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a BV> for i32

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BV) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a BV> for i64

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BV) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a BV> for i8

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BV) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a BV> for u16

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BV) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a BV> for u32

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BV) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a BV> for u64

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BV) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a BV> for u8

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'a BV) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BV> for i16

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BV) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BV> for i32

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BV) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BV> for i64

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BV) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BV> for i8

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BV) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BV> for u16

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BV) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BV> for u32

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BV) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BV> for u64

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BV) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<BV> for u8

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: BV) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: IntoAst<BV>> Mul<T> for &BV

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: IntoAst<BV>> Mul<T> for BV

Source§

type Output = BV

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: IntoAst<BV>> MulAssign<T> for BV

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl Neg for &BV

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for BV

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Not for &BV

Source§

type Output = BV

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for BV

Source§

type Output = BV

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<T: IntoAst<BV> + Clone> PartialEq<T> for BV

Source§

fn eq(&self, other: &T) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: IntoAst<BV>> Shl<T> for &BV

Source§

type Output = BV

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: T) -> Self::Output

Performs the << operation. Read more
Source§

impl<T: IntoAst<BV>> Shl<T> for BV

Source§

type Output = BV

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: T) -> Self::Output

Performs the << operation. Read more
Source§

impl<T: IntoAst<BV>> ShlAssign<T> for BV

Source§

fn shl_assign(&mut self, rhs: T)

Performs the <<= operation. Read more
Source§

impl Solvable for BV

Source§

type ModelInstance = BV

The type to be extracted from the Solver’s Model. Read more
Source§

fn read_from_model( &self, model: &Model, model_completion: bool, ) -> Option<Self::ModelInstance>

Defines how to derive data derived from the implementing type (usually just a Self) and a given Model. Read more
Source§

fn generate_constraint(&self, model: &Self::ModelInstance) -> Bool

Produce a Bool assertion ruling out the given model from the valuation of self. Read more
Source§

impl<'a> Sub<&'a BV> for i16

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BV) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a BV> for i32

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BV) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a BV> for i64

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BV) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a BV> for i8

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BV) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a BV> for u16

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BV) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a BV> for u32

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BV) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a BV> for u64

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BV) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> Sub<&'a BV> for u8

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a BV) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BV> for i16

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BV) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BV> for i32

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BV) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BV> for i64

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BV) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BV> for i8

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BV) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BV> for u16

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BV) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BV> for u32

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BV) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BV> for u64

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BV) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<BV> for u8

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: BV) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: IntoAst<BV>> Sub<T> for &BV

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: T) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: IntoAst<BV>> Sub<T> for BV

Source§

type Output = BV

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: T) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: IntoAst<BV>> SubAssign<T> for BV

Source§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
Source§

impl TryFrom<Dynamic> for BV

Source§

type Error = String

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

fn try_from(ast: Dynamic) -> Result<Self, String>

Performs the conversion.
Source§

impl Eq for BV

Auto Trait Implementations§

§

impl Freeze for BV

§

impl RefUnwindSafe for BV

§

impl !Send for BV

§

impl !Sync for BV

§

impl Unpin for BV

§

impl UnsafeUnpin for BV

§

impl UnwindSafe for BV

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
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, A> IntoAst<A> for T
where T: Into<A>, A: Ast,

Source§

fn into_ast(self, _a: &A) -> A

Source§

impl<T> PrepareSynchronized for T
where T: Translate,

Source§

type Inner = T

Source§

fn synchronized(&self) -> Synchronized<<T as PrepareSynchronized>::Inner>

Creates a thread-safe wrapper that is both Send and Sync. Read more
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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> Translate for T
where T: Ast,

Source§

fn translate(&self, dest: &Context) -> T

Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.