Class OnFlyCallGraph


  • public class OnFlyCallGraph
    extends Object
    The interface between the pointer analysis engine and the on-the-fly call graph builder.
    Author:
    Ondrej Lhotak
    • Constructor Detail

      • OnFlyCallGraph

        public OnFlyCallGraph​(PAG pag,
                              boolean appOnly)
    • Method Detail

      • createOnFlyCallGraphBuilder

        protected OnFlyCallGraphBuilder createOnFlyCallGraphBuilder​(ContextManager cm,
                                                                    ReachableMethods reachableMethods,
                                                                    boolean appOnly)
        Factory method for creating a new on-fly callgraph builder. Custom implementations can override this method for injecting own callgraph builders without having to modify Soot.
        Parameters:
        cm - The context manager
        reachableMethods - The reachable method set
        appOnly - True to only consider application code
        Returns:
        The new on-fly callgraph builder
      • build

        public void build()
      • updatedNode

        public void updatedNode​(VarNode vn)
      • mergedWith

        public void mergedWith​(Node n1,
                               Node n2)
        Node uses this to notify PAG that n2 has been merged into n1.