Enum isla_lib::ir::Val[][src]

pub enum Val<B> {
    Symbolic(Sym),
    I64(i64),
    I128(i128),
    Bool(bool),
    Bits(B),
    String(String),
    Unit,
    Vector(Vec<Val<B>>),
    List(Vec<Val<B>>),
    Enum(EnumMember),
    Struct(HashMap<Name, Val<B>>),
    Ctor(NameBox<Val<B>>),
    Ref(Name),
    Poison,
}

A value is either a symbolic value, represented as Symbolic(n) for where n is the identifier of the variable in the SMT solver, or one of the concrete values in this enum.

Variants

Symbolic(Sym)
I64(i64)
I128(i128)
Bool(bool)
Bits(B)
String(String)
Unit
Vector(Vec<Val<B>>)
List(Vec<Val<B>>)
Struct(HashMap<Name, Val<B>>)
Ctor(NameBox<Val<B>>)
Ref(Name)
Poison

Implementations

impl<B: BV> Val<B>[src]

pub fn symbolic_variables(&self) -> HashSet<Sym>[src]

pub fn is_symbolic(&self) -> bool[src]

pub fn as_bits(&self) -> Option<&B>[src]

pub fn to_string(&self, symtab: &Symtab<'_>) -> String[src]

pub fn plausible<N: Debug>(
    &self,
    ty: &Ty<N>,
    symtab: &Symtab<'_>
) -> Result<(), String>
[src]

Just enough of a type check to pick up bad default registers

Trait Implementations

impl<B: Clone> Clone for Val<B>[src]

impl<B: Debug> Debug for Val<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for Val<B> where
    B: RefUnwindSafe

impl<B> Send for Val<B> where
    B: Send

impl<B> Sync for Val<B> where
    B: Sync

impl<B> Unpin for Val<B> where
    B: Unpin

impl<B> UnwindSafe for Val<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.