use of org.evosuite.graphs.ccg.ClassCallGraph in project evosuite by EvoSuite.
the class GraphPool method computeCCFG.
/**
* Computes the CCFG for the given class
*
* If no CFG is known for the given class, an IllegalArgumentException is
* thrown
*
* @param className
* a {@link java.lang.String} object.
* @return a {@link org.evosuite.graphs.ccfg.ClassControlFlowGraph} object.
*/
private ClassControlFlowGraph computeCCFG(String className) {
if (rawCFGs.get(className) == null)
throw new IllegalArgumentException("can't compute CCFG, don't know CFGs for class " + className);
ClassCallGraph ccg = new ClassCallGraph(classLoader, className);
if (Properties.WRITE_CFG)
ccg.toDot();
ClassControlFlowGraph ccfg = new ClassControlFlowGraph(ccg);
if (Properties.WRITE_CFG)
ccfg.toDot();
return ccfg;
}
Aggregations