MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / AliasAnalysis

Class AliasAnalysis

src/analysis/pointsto/mod.rs:708–712  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

706/// It performs an underlying points-to analysis if needed.
707/// The points-to info will be cached into `pts` for future queries.
708pub struct AliasAnalysis<'a, 'tcx> {
709 tcx: TyCtxt<'tcx>,
710 callgraph: &'a CallGraph<'tcx>,
711 pts: FxHashMap<DefId, PointsToMap<'tcx>>,
712}
713
714impl<'a, 'tcx> AliasAnalysis<'a, 'tcx> {
715 pub fn new(tcx: TyCtxt<'tcx>, callgraph: &'a CallGraph<'tcx>) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected