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>
impl<'pta, 'tcx, 'compilation> AndersenPTA<'pta, 'tcx, 'compilation>
Constructor
pub fn new(acx: &'pta mut AnalysisContext<'tcx, 'compilation>) -> Self
sourcepub fn initialize(&mut self)
pub fn initialize(&mut self)
Initialize the analysis.
sourcepub fn add_fpag_edges(&mut self, func_id: FuncId)
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.
pub fn get_pt_data(&self) -> &DiffPTDataTy
Trait Implementations§
source§impl<'pta, 'compilation, 'tcx> Debug for AndersenPTA<'pta, 'compilation, 'tcx>
impl<'pta, 'compilation, 'tcx> Debug for AndersenPTA<'pta, 'compilation, 'tcx>
source§impl<'pta, 'tcx, 'compilation> PointerAnalysis<'tcx, 'compilation> for AndersenPTA<'pta, 'tcx, 'compilation>
impl<'pta, 'tcx, 'compilation> PointerAnalysis<'tcx, 'compilation> for AndersenPTA<'pta, 'tcx, 'compilation>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more