[−][src]Struct gf::ai::symbolic::SymbolicSpaceState
🟢 Implementation of SpaceState
for use with symbolic interpretation.
Each byte in the state is a FlatLattice
of Expr
, backed by a
HashLattice
.
Addresses can be:
- anything implementing
IntoU128
; - a
BitVec
with the same number of bits as the address size; - a
FlatLattice
ofBitVec
with the same number of bits as the address size.
Values can be:
- a
FlatLattice
ofExpr
; - a
FlatLattice
ofBitVec
.
Implementations
impl SymbolicSpaceState
[src]
pub fn new(space: Space<'_>) -> Self
[src]
pub fn set_concrete(
&mut self,
endianness: Endianness,
address: FlatLattice<BitVec>,
value: FlatLattice<BitVec>
)
[src]
&mut self,
endianness: Endianness,
address: FlatLattice<BitVec>,
value: FlatLattice<BitVec>
)
Augment symbolic state with concrete bytes before a load.
Trait Implementations
impl Clone for SymbolicSpaceState
[src]
fn clone(&self) -> SymbolicSpaceState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: IntoU128> ConstSpaceState<A, FlatLattice<Expr>> for SymbolicSpaceState
[src]
fn load(&mut self, span: SpaceSpan<A>) -> (FlatLattice<Expr>, FlatLattice<Expr>)
[src]
fn load_result(&mut self, span: SpaceSpan<A>) -> Result<V, V>
[src]
impl ConstSpaceState<BitVec, FlatLattice<Expr>> for SymbolicSpaceState
[src]
fn load(
&mut self,
span: SpaceSpan<BitVec>
) -> (FlatLattice<Expr>, FlatLattice<Expr>)
[src]
&mut self,
span: SpaceSpan<BitVec>
) -> (FlatLattice<Expr>, FlatLattice<Expr>)
fn load_result(&mut self, span: SpaceSpan<A>) -> Result<V, V>
[src]
impl ConstSpaceState<FlatLattice<BitVec>, FlatLattice<Expr>> for SymbolicSpaceState
[src]
fn load(
&mut self,
span: SpaceSpan<FlatLattice<BitVec>>
) -> (FlatLattice<Expr>, FlatLattice<Expr>)
[src]
&mut self,
span: SpaceSpan<FlatLattice<BitVec>>
) -> (FlatLattice<Expr>, FlatLattice<Expr>)
fn load_result(&mut self, span: SpaceSpan<A>) -> Result<V, V>
[src]
impl<A: IntoU128> SpaceState<A, FlatLattice<Expr>> for SymbolicSpaceState
[src]
fn store(
&mut self,
span: SpaceSpan<A>,
value: FlatLattice<Expr>
) -> (Option<()>, FlatLattice<Expr>)
[src]
&mut self,
span: SpaceSpan<A>,
value: FlatLattice<Expr>
) -> (Option<()>, FlatLattice<Expr>)
fn store_result(
&mut self,
span: SpaceSpan<A>,
value: V
) -> Result<Option<()>, V>
[src]
&mut self,
span: SpaceSpan<A>,
value: V
) -> Result<Option<()>, V>
impl SpaceState<BitVec, FlatLattice<Expr>> for SymbolicSpaceState
[src]
fn store(
&mut self,
span: SpaceSpan<BitVec>,
value: FlatLattice<Expr>
) -> (Option<()>, FlatLattice<Expr>)
[src]
&mut self,
span: SpaceSpan<BitVec>,
value: FlatLattice<Expr>
) -> (Option<()>, FlatLattice<Expr>)
fn store_result(
&mut self,
span: SpaceSpan<A>,
value: V
) -> Result<Option<()>, V>
[src]
&mut self,
span: SpaceSpan<A>,
value: V
) -> Result<Option<()>, V>
impl SpaceState<FlatLattice<BitVec>, FlatLattice<Expr>> for SymbolicSpaceState
[src]
fn store(
&mut self,
span: SpaceSpan<FlatLattice<BitVec>>,
value: FlatLattice<Expr>
) -> (Option<()>, FlatLattice<Expr>)
[src]
&mut self,
span: SpaceSpan<FlatLattice<BitVec>>,
value: FlatLattice<Expr>
) -> (Option<()>, FlatLattice<Expr>)
fn store_result(
&mut self,
span: SpaceSpan<A>,
value: V
) -> Result<Option<()>, V>
[src]
&mut self,
span: SpaceSpan<A>,
value: V
) -> Result<Option<()>, V>
Auto Trait Implementations
impl RefUnwindSafe for SymbolicSpaceState
impl Send for SymbolicSpaceState
impl Sync for SymbolicSpaceState
impl Unpin for SymbolicSpaceState
impl UnwindSafe for SymbolicSpaceState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,