Search in sources :

Example 1 with ClassCallGraph

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;
}
Also used : ClassControlFlowGraph(org.evosuite.graphs.ccfg.ClassControlFlowGraph) ClassCallGraph(org.evosuite.graphs.ccg.ClassCallGraph)

Aggregations

ClassControlFlowGraph (org.evosuite.graphs.ccfg.ClassControlFlowGraph)1 ClassCallGraph (org.evosuite.graphs.ccg.ClassCallGraph)1