Alias analysis based on points-to info. It answers if two memory cells alias with each other. It performs an underlying points-to analysis if needed. The points-to info will be cached into `pts` for future queries.
| 706 | /// It performs an underlying points-to analysis if needed. |
| 707 | /// The points-to info will be cached into `pts` for future queries. |
| 708 | pub struct AliasAnalysis<'a, 'tcx> { |
| 709 | tcx: TyCtxt<'tcx>, |
| 710 | callgraph: &'a CallGraph<'tcx>, |
| 711 | pts: FxHashMap<DefId, PointsToMap<'tcx>>, |
| 712 | } |
| 713 | |
| 714 | impl<'a, 'tcx> AliasAnalysis<'a, 'tcx> { |
| 715 | pub fn new(tcx: TyCtxt<'tcx>, callgraph: &'a CallGraph<'tcx>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected