[−][src]Struct gf::ai::state::State
🟢 Common implementation of an abstract state composed of a VarState
and
a SpaceStateMap
.
Addresses are represented as A
and values as V
. Space state is provided
by S
.
Fields
var_state: VarState<V>
Variable state.
space_state: SpaceStateMap<'a, A, V, S>
Space state.
Implementations
impl<'a, A, V, S> State<'a, A, V, S> where
V: Bottom + Clone + Eq,
S: Clone + SpaceState<A, V>,
[src]
V: Bottom + Clone + Eq,
S: Clone + SpaceState<A, V>,
pub fn edge<D: Direction>(&mut self, edge: Edge<'a>)
[src]
Propagate state across an intraprocedural edge.
This method is a drop-in implementation for Interp::edge
, or a part
thereof.
pub fn call<D: Direction>(&self, stmt: Stmt<'a, Call>) -> Self
[src]
Propagate state across a CALL statement.
This method is a drop-in implementation for Interp::call
.
pub fn call_ret<D: Direction>(
&mut self,
callee_state: Self,
stmt: Stmt<'a, Call>
)
[src]
&mut self,
callee_state: Self,
stmt: Stmt<'a, Call>
)
Propagate state across a return from a CALL statement.
This method is a drop-in implementation for Interp::call_ret
.
pub fn mix<D: Direction>(&mut self, stmt: Stmt<'a, Mix>)
[src]
Propagate state across a MIX statement.
This method is a drop-in implementation for Interp::mix
.
Trait Implementations
impl<'a, A, V, S> Bottom for State<'a, A, V, S> where
V: Bottom + Clone + Eq,
S: Clone + SpaceState<A, V>,
[src]
V: Bottom + Clone + Eq,
S: Clone + SpaceState<A, V>,
fn bottom() -> Self
[src]
fn is_bottom(&self) -> bool
[src]
fn to_option(self) -> Option<Self>
[src]
fn reset_to_bottom(&mut self)
[src]
impl<'a, A: Clone, V: Clone, S: Clone> Clone for State<'a, A, V, S> where
V: Bottom + Clone + Eq,
S: Clone + SpaceState<A, V>,
[src]
V: Bottom + Clone + Eq,
S: Clone + SpaceState<A, V>,
impl<'a, A, V, S> Top for State<'a, A, V, S> where
V: Bottom + Clone + Eq + Top,
S: Clone + SpaceState<A, V>,
[src]
V: Bottom + Clone + Eq + Top,
S: Clone + SpaceState<A, V>,
Auto Trait Implementations
impl<'a, A, V, S> RefUnwindSafe for State<'a, A, V, S> where
A: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
A: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, A, V, S> Send for State<'a, A, V, S> where
A: Send,
S: Send,
V: Send,
A: Send,
S: Send,
V: Send,
impl<'a, A, V, S> Sync for State<'a, A, V, S> where
A: Sync,
S: Sync,
V: Sync,
A: Sync,
S: Sync,
V: Sync,
impl<'a, A, V, S> Unpin for State<'a, A, V, S> where
A: Unpin,
S: Unpin,
V: Unpin,
A: Unpin,
S: Unpin,
V: Unpin,
impl<'a, A, V, S> UnwindSafe for State<'a, A, V, S> where
A: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
A: UnwindSafe,
S: UnwindSafe,
V: UnwindSafe,
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>,