Cobra Interactive Query Language cfg

NAME

cfg — generate the control-flow graph of a function

SYNTAX

	cfg function-name

DESCRIPTION

Generate the control-flow graph for the named function, provided (1) that the function is defined only once, and (2) that all its compound statements are enclosed in curly braces.

The graph is displayed with dot as a background command. The numbers of edges and nodes in the control-flow graph, as well as the cyclomatic complexity of the function are also printed.

To preserve the file in which the graph is temporarily stored, use command-line option -preserve when starting the cobra session.

EXAMPLES

	: cfg f

SEE ALSO

fcg, fcts, ff, ft

Return to index
Manual
Tutorial
(Last Updated: 8 May 2017)