public class

CFGUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.CFGUtil

Class Overview

Utility for IControlFlowGraph.

Summary

Public Constructors
CFGUtil()
Public Methods
static void toDot(IControlFlowGraph<?> cfg, File file)
Build the CFG text representation using the dot language.
static void toDot(IControlFlowGraph<?> cfg, File file, String title, Map<Long, String> blockHeaders)
Build the CFG text representation using the dot language.
static void toTempDot(IControlFlowGraph<?> cfg, String name)
static void toTempDot(IControlFlowGraph<?> cfg, String name, String title, Map<Long, String> blockHeaders)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CFGUtil ()

Public Methods

public static void toDot (IControlFlowGraph<?> cfg, File file)

Build the CFG text representation using the dot language. To generate a PNG: dot out.dot -Tpng -o out.png

Parameters
file output file
Throws
IOException

public static void toDot (IControlFlowGraph<?> cfg, File file, String title, Map<Long, String> blockHeaders)

Build the CFG text representation using the dot language. To generate a PNG: dot out.dot -Tpng -o out.png

Parameters
file output file
title optional graph title
blockHeaders optional map of block headers (block_address -> block_description_string); if null, a standard header "(block_index)" is used
Throws
IOException

public static void toTempDot (IControlFlowGraph<?> cfg, String name)

public static void toTempDot (IControlFlowGraph<?> cfg, String name, String title, Map<Long, String> blockHeaders)