joern/src/tools/data_flow/Get_call_graph.java
// Helper-function to print a single entry of the call-graph
Helper-function to print a single entry of the call-graph
Helper - function to print a single entry of the call - graph
public static void print_call_graph_entry(Pair<String, Long> cg_key, HashMap<Pair<String, Long>, Pair<String, HashSet<Pair<String, Long>>>> cg)
   {
    System.out.println(cg_key.first + "\t(" + cg_key.second.toString() + " params)");
   Pair<String, HashSet<Pair<String, Long>>> val = cg.get(cg_key);
    System.out.println(val.first);
     for(Pair<String, Long> it : val.second)
      {
       System.out.println("\t->" + it.first + "\t(" + it.second.toString() + "params)");
      }
   }
public static void print_call_graph_entry ( Pair < String , Long > cg_key , HashMap < Pair < String , Long > , Pair < String , HashSet < Pair < String , Long > > > > cg ) { System . out . println ( cg_key . first + "\t(" + cg_key . second . toString ( ) + " params)" ) ; Pair < String , HashSet < Pair < String , Long > > > val = cg . get ( cg_key ) ; System . out . println ( val . first ) ; for ( Pair < String , Long > it : val . second ) { System . out . println ( "\t->" + it . first + "\t(" + it . second . toString ( ) + "params)" ) ; } }
Helper-function to print a single entry of the call-graph
Helper - function to print a single entry of the call - graph