use of org.candle.decompiler.intermediate.graph.IntermediateVertexAttributeProvider in project candle-decompiler by bradsdavis.
the class IntermediateGraphWriter method process.
@Override
public void process() {
if (directory == null) {
return;
}
File a = new File(directory.getAbsolutePath() + File.separator + name);
LOG.debug("Instruction Graph: " + a.getAbsolutePath());
Writer x;
try {
x = new FileWriter(a);
DOTExporter<AbstractIntermediate, IntermediateEdge> dot = new DOTExporter<AbstractIntermediate, IntermediateEdge>(new IntegerNameProvider<AbstractIntermediate>(), new IntermediateLabelProvider(), new IntermediateEdgeProvider(), new IntermediateVertexAttributeProvider(), new InstructionEdgeAttributeProvider());
dot.export(x, igc.getGraph());
} catch (IOException e) {
e.printStackTrace();
}
LOG.debug("End Instruction Graph ======");
}
Aggregations