Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Feb 5, 2021
1 parent 932d5d7 commit debd139
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.ibm.wala.examples.drivers;

import com.ibm.wala.cast.js.callgraph.fieldbased.FieldBasedCallGraphBuilder;
import com.ibm.wala.cast.js.callgraph.fieldbased.flowgraph.vertices.ObjectVertex;
import com.ibm.wala.cast.js.ipa.callgraph.JSCallGraph;
import com.ibm.wala.cast.js.ipa.callgraph.JSCallGraphUtil;
Expand Down Expand Up @@ -36,10 +37,10 @@ public static void main(String[] args)
Path path = Paths.get(args[0]);
FieldBasedCGUtil f = new FieldBasedCGUtil(new CAstRhinoTranslatorFactory());
URL url = path.toUri().toURL();
Pair<JSCallGraph, PointerAnalysis<ObjectVertex>> results =
FieldBasedCallGraphBuilder.CallGraphResult results =
f.buildScriptCG(url, FieldBasedCGUtil.BuilderType.OPTIMISTIC_WORKLIST, null, false);
CallGraph CG = results.fst;
CallGraph CG = results.getCallGraph();
System.out.println(CallGraphStats.getStats(CG));
System.out.println(CallGraph2JSON.serialize(CG));
System.out.println((new CallGraph2JSON()).serialize(CG));
}
}

0 comments on commit debd139

Please sign in to comment.