[][src]Struct gf::ai::state::State

pub struct State<'a, A, V, S> where
    V: Bottom + Clone + Eq,
    S: Clone + SpaceState<A, V>, 
{ pub var_state: VarState<V>, pub space_state: SpaceStateMap<'a, A, V, S>, }

🟢 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]

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]

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]

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]

impl<'a, A, V, S> Top for State<'a, A, V, S> where
    V: Bottom + Clone + Eq + Top,
    S: Clone + SpaceState<A, V>, 
[src]

Auto Trait Implementations

impl<'a, A, V, S> RefUnwindSafe for State<'a, A, V, S> where
    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

impl<'a, A, V, S> Sync for State<'a, A, V, S> where
    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

impl<'a, A, V, S> UnwindSafe for State<'a, A, V, S> where
    A: UnwindSafe,
    S: UnwindSafe,
    V: 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> 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.