Struct Nuutila

Source
pub struct Nuutila<'tcx, T: IntervalArithmetic + Debug> {
    pub variables: &'tcx VarNodes<'tcx, T>,
    pub index: i32,
    pub dfs: HashMap<&'tcx Place<'tcx>, i32>,
    pub root: HashMap<&'tcx Place<'tcx>, &'tcx Place<'tcx>>,
    pub in_component: HashSet<&'tcx Place<'tcx>>,
    pub components: HashMap<&'tcx Place<'tcx>, HashSet<&'tcx Place<'tcx>>>,
    pub worklist: VecDeque<&'tcx Place<'tcx>>,
}

Fields§

§variables: &'tcx VarNodes<'tcx, T>§index: i32§dfs: HashMap<&'tcx Place<'tcx>, i32>§root: HashMap<&'tcx Place<'tcx>, &'tcx Place<'tcx>>§in_component: HashSet<&'tcx Place<'tcx>>§components: HashMap<&'tcx Place<'tcx>, HashSet<&'tcx Place<'tcx>>>§worklist: VecDeque<&'tcx Place<'tcx>>

Implementations§

Source§

impl<'tcx, T> Nuutila<'tcx, T>

Source

pub fn new( varNodes: &'tcx VarNodes<'tcx, T>, use_map: &'tcx UseMap<'tcx>, symb_map: &'tcx SymbMap<'tcx>, single: bool, oprs: &'tcx Vec<BasicOpKind<'tcx, T>>, ) -> Self

Source

pub fn visit( &mut self, place: &'tcx Place<'tcx>, stack: &mut Vec<&'tcx Place<'tcx>>, use_map: &'tcx UseMap<'tcx>, oprs: &'tcx Vec<BasicOpKind<'tcx, T>>, )

Source

pub fn add_control_dependence_edges( &mut self, _symb_map: &'tcx SymbMap<'tcx>, _use_map: &'tcx UseMap<'tcx>, _vars: &'tcx VarNodes<'tcx, T>, )

Source

pub fn del_control_dependence_edges(&mut self, _use_map: &'tcx mut UseMap<'tcx>)

Trait Implementations§

Source§

impl<'tcx, T: Debug + IntervalArithmetic + Debug> Debug for Nuutila<'tcx, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'tcx, T> Freeze for Nuutila<'tcx, T>

§

impl<'tcx, T> !RefUnwindSafe for Nuutila<'tcx, T>

§

impl<'tcx, T> Send for Nuutila<'tcx, T>
where T: Sync,

§

impl<'tcx, T> Sync for Nuutila<'tcx, T>
where T: Sync,

§

impl<'tcx, T> Unpin for Nuutila<'tcx, T>

§

impl<'tcx, T> !UnwindSafe for Nuutila<'tcx, T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.