pub struct ContextSensitivePTA<'pta, 'tcx, 'compilation, S: ContextStrategy> {
    pub call_graph: CSCallGraph,
    /* private fields */
}

Fields§

§call_graph: CSCallGraph

Call graph

Implementations§

source§

impl<'pta, 'tcx, 'compilation, S: ContextStrategy> ContextSensitivePTA<'pta, 'tcx, 'compilation, S>

Constructor

source

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

source

pub fn get_context_id(&mut self, context: &Rc<Context<S::E>>) -> ContextId

source

pub fn get_context_by_id(&self, context_id: ContextId) -> Rc<Context<S::E>>

source

pub fn get_empty_context_id(&mut self) -> ContextId

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: CSFuncId)

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, 'tcx, 'compilation, S: ContextStrategy> Debug for ContextSensitivePTA<'pta, 'tcx, 'compilation, S>

source§

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

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

impl<'pta, 'tcx, 'compilation, S: ContextStrategy> PointerAnalysis<'tcx, 'compilation> for ContextSensitivePTA<'pta, 'tcx, 'compilation, S>

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, S> !RefUnwindSafe for ContextSensitivePTA<'pta, 'tcx, 'compilation, S>

§

impl<'pta, 'tcx, 'compilation, S> !Send for ContextSensitivePTA<'pta, 'tcx, 'compilation, S>

§

impl<'pta, 'tcx, 'compilation, S> !Sync for ContextSensitivePTA<'pta, 'tcx, 'compilation, S>

§

impl<'pta, 'tcx, 'compilation, S> Unpin for ContextSensitivePTA<'pta, 'tcx, 'compilation, S>
where S: Unpin,

§

impl<'pta, 'tcx, 'compilation, S> !UnwindSafe for ContextSensitivePTA<'pta, 'tcx, 'compilation, S>

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.