[−][src]Struct gf::ai::concrete::ConcreteSpaceState
🟢 Implementation of SpaceState
for use with concrete interpretation.
Each bit in the state is conceptually a FlatLattice
of bool
, backed by
a Buffer
. Therefore, values are always FlatLattice
of BitVec
,
and 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.
Implementations
impl ConcreteSpaceState
[src]
pub fn new(space: Space<'_>) -> Self
[src]
pub fn buffer(&self) -> &Buffer
[src]
Return a shared reference to the underlying buffer.
pub fn buffer_mut(&mut self) -> &mut Buffer
[src]
Return a mutable reference to the underlying buffer.
Trait Implementations
impl Clone for ConcreteSpaceState
[src]
fn clone(&self) -> ConcreteSpaceState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: IntoU128> ConstSpaceState<A, FlatLattice<BitVec>> for ConcreteSpaceState
[src]
fn load(
&mut self,
span: SpaceSpan<A>
) -> (FlatLattice<BitVec>, FlatLattice<BitVec>)
[src]
&mut self,
span: SpaceSpan<A>
) -> (FlatLattice<BitVec>, FlatLattice<BitVec>)
fn load_result(&mut self, span: SpaceSpan<A>) -> Result<V, V>
[src]
impl ConstSpaceState<BitVec, FlatLattice<BitVec>> for ConcreteSpaceState
[src]
fn load(
&mut self,
span: SpaceSpan<BitVec>
) -> (FlatLattice<BitVec>, FlatLattice<BitVec>)
[src]
&mut self,
span: SpaceSpan<BitVec>
) -> (FlatLattice<BitVec>, FlatLattice<BitVec>)
fn load_result(&mut self, span: SpaceSpan<A>) -> Result<V, V>
[src]
impl ConstSpaceState<FlatLattice<BitVec>, FlatLattice<BitVec>> for ConcreteSpaceState
[src]
fn load(
&mut self,
span: SpaceSpan<FlatLattice<BitVec>>
) -> (FlatLattice<BitVec>, FlatLattice<BitVec>)
[src]
&mut self,
span: SpaceSpan<FlatLattice<BitVec>>
) -> (FlatLattice<BitVec>, FlatLattice<BitVec>)
fn load_result(&mut self, span: SpaceSpan<A>) -> Result<V, V>
[src]
impl<A: IntoU128> SpaceState<A, FlatLattice<BitVec>> for ConcreteSpaceState
[src]
fn store(
&mut self,
span: SpaceSpan<A>,
value: FlatLattice<BitVec>
) -> (Option<()>, FlatLattice<BitVec>)
[src]
&mut self,
span: SpaceSpan<A>,
value: FlatLattice<BitVec>
) -> (Option<()>, FlatLattice<BitVec>)
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<BitVec>> for ConcreteSpaceState
[src]
fn store(
&mut self,
span: SpaceSpan<BitVec>,
value: FlatLattice<BitVec>
) -> (Option<()>, FlatLattice<BitVec>)
[src]
&mut self,
span: SpaceSpan<BitVec>,
value: FlatLattice<BitVec>
) -> (Option<()>, FlatLattice<BitVec>)
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<BitVec>> for ConcreteSpaceState
[src]
fn store(
&mut self,
span: SpaceSpan<FlatLattice<BitVec>>,
value: FlatLattice<BitVec>
) -> (Option<()>, FlatLattice<BitVec>)
[src]
&mut self,
span: SpaceSpan<FlatLattice<BitVec>>,
value: FlatLattice<BitVec>
) -> (Option<()>, FlatLattice<BitVec>)
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 ConcreteSpaceState
impl Send for ConcreteSpaceState
impl Sync for ConcreteSpaceState
impl Unpin for ConcreteSpaceState
impl UnwindSafe for ConcreteSpaceState
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>,