Search in sources :

Example 1 with MethodPAG

use of soot.jimple.spark.pag.MethodPAG in project soot by Sable.

the class OnFlyCallGraph method processReachables.

private void processReachables() {
    reachableMethods.update();
    while (reachablesReader.hasNext()) {
        MethodOrMethodContext m = reachablesReader.next();
        MethodPAG mpag = MethodPAG.v(pag, m.method());
        mpag.build();
        mpag.addToPAG(m.context());
    }
}
Also used : MethodPAG(soot.jimple.spark.pag.MethodPAG) MethodOrMethodContext(soot.MethodOrMethodContext)

Example 2 with MethodPAG

use of soot.jimple.spark.pag.MethodPAG in project soot by Sable.

the class OnFlyCallGraph method processCallEdges.

private void processCallEdges() {
    while (callEdges.hasNext()) {
        Edge e = callEdges.next();
        MethodPAG amp = MethodPAG.v(pag, e.tgt());
        amp.build();
        amp.addToPAG(e.tgtCtxt());
        pag.addCallTarget(e);
    }
}
Also used : MethodPAG(soot.jimple.spark.pag.MethodPAG) Edge(soot.jimple.toolkits.callgraph.Edge)

Aggregations

MethodPAG (soot.jimple.spark.pag.MethodPAG)2 MethodOrMethodContext (soot.MethodOrMethodContext)1 Edge (soot.jimple.toolkits.callgraph.Edge)1