Struct rupta::pta::andersen::AndersenPTA

source ·
pub struct AndersenPTA<'pta, 'tcx, 'compilation> {
    pub call_graph: CallGraph<FuncId, BaseCallSite>,
    /* private fields */
}

Fields§

§call_graph: CallGraph<FuncId, BaseCallSite>

Call graph

Implementations§

source§

impl<'pta, 'tcx, 'compilation> AndersenPTA<'pta, 'tcx, 'compilation>

Constructor

source

pub fn new(acx: &'pta mut AnalysisContext<'tcx, 'compilation>) -> Self

source

pub fn initialize(&mut self)

Initialize the analysis.

source

pub fn propagate(&mut self)

Solve the worklist problem using Propagator.

source

pub fn add_fpag_edges(&mut self, func_id: FuncId)

Adds internal edges of a function pag to the whole program’s pag. The function pag for the given def_id should be built before calling this function.

source

pub fn get_pt_data(&self) -> &DiffPTDataTy

source

pub fn finalize(&self)

Finalize the analysis.

Trait Implementations§

source§

impl<'pta, 'compilation, 'tcx> Debug for AndersenPTA<'pta, 'compilation, 'tcx>

source§

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

Formats the value using the given formatter. Read more
source§

impl<'pta, 'tcx, 'compilation> PointerAnalysis<'tcx, 'compilation> for AndersenPTA<'pta, 'tcx, 'compilation>

source§

fn analyze(&mut self)

Analyze the crate currently being compiled, using the information given in compiler and tcx.

Auto Trait Implementations§

§

impl<'pta, 'tcx, 'compilation> !RefUnwindSafe for AndersenPTA<'pta, 'tcx, 'compilation>

§

impl<'pta, 'tcx, 'compilation> !Send for AndersenPTA<'pta, 'tcx, 'compilation>

§

impl<'pta, 'tcx, 'compilation> !Sync for AndersenPTA<'pta, 'tcx, 'compilation>

§

impl<'pta, 'tcx, 'compilation> Unpin for AndersenPTA<'pta, 'tcx, 'compilation>

§

impl<'pta, 'tcx, 'compilation> !UnwindSafe for AndersenPTA<'pta, 'tcx, 'compilation>

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>,

§

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>,

§

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.