rapx::analysis::senryx::dominated_chain

Struct DominatedGraph

source
pub struct DominatedGraph<'tcx> {
    pub tcx: TyCtxt<'tcx>,
    pub def_id: DefId,
    pub local_len: usize,
    pub variables: HashMap<usize, VariableNode<'tcx>>,
}

Fields§

§tcx: TyCtxt<'tcx>§def_id: DefId§local_len: usize§variables: HashMap<usize, VariableNode<'tcx>>

Implementations§

source§

impl<'tcx> DominatedGraph<'tcx>

source

pub fn new(tcx: TyCtxt<'tcx>, def_id: DefId) -> Self

source

pub fn init_arg(&mut self)

source

pub fn generate_ptr_with_obj_node(&mut self, local_ty: Ty<'tcx>, idx: usize)

source

pub fn get_local_ty_by_place(&self, arg: usize) -> Option<Ty<'tcx>>

source

pub fn get_obj_ty_through_chain(&self, arg: usize) -> Option<Ty<'tcx>>

source

pub fn get_point_to_id(&self, arg: usize) -> usize

source

pub fn is_local(&self, node_id: usize) -> bool

source§

impl<'tcx> DominatedGraph<'tcx>

source

pub fn generate_node_id(&self) -> usize

source

pub fn get_field_node_id( &mut self, local: usize, field_idx: usize, ty: Option<Ty<'tcx>>, ) -> usize

source

pub fn insert_field_node( &mut self, local: usize, field_idx: usize, ty: Option<Ty<'tcx>>, ) -> usize

source

pub fn find_var_id_with_fields_seq( &mut self, local: usize, fields: Vec<usize>, ) -> usize

source

pub fn point(&mut self, lv: usize, rv: usize)

source

pub fn get_var_nod_id(&self, local_id: usize) -> usize

source

pub fn get_var_node(&self, local_id: usize) -> Option<&VariableNode<'tcx>>

source

pub fn get_var_node_mut( &mut self, local_id: usize, ) -> Option<&mut VariableNode<'tcx>>

source

pub fn merge(&mut self, lv: usize, rv: usize)

source

pub fn copy_node(&mut self, lv: usize, rv: usize)

source

pub fn break_node_connection(&mut self, lv: usize, rv: usize)

source

pub fn insert_node( &mut self, dv: usize, ty: Option<Ty<'tcx>>, parent_id: usize, child_id: Option<usize>, state: States, )

source

pub fn delete_node(&mut self, idx: usize)

source

pub fn set_drop(&mut self, idx: usize) -> bool

source

pub fn print_graph(&self)

Auto Trait Implementations§

§

impl<'tcx> Freeze for DominatedGraph<'tcx>

§

impl<'tcx> !RefUnwindSafe for DominatedGraph<'tcx>

§

impl<'tcx> !Send for DominatedGraph<'tcx>

§

impl<'tcx> !Sync for DominatedGraph<'tcx>

§

impl<'tcx> Unpin for DominatedGraph<'tcx>

§

impl<'tcx> !UnwindSafe for DominatedGraph<'tcx>

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.