Next: Major Data Definitions
Up: Data Dictionary
Previous: Input Definitions
There are two outputs from the CCA. The summary report lists the desired
complexity metrics and is written to a text file or to STDOUT. The graphical
structure chart is written as a PostScript file that can be viewed with a
PostScript interpreter and printed to a PostScript printer.
Definitions of metrics:
- Lines of Code
- The total actual lines in the C source file. This
includes blank lines and comments, and will differentiate between lines
logically connected by continuation marks, so that they are counted as
multiple lines.
- Lines of CC Logic
- The number of lines in the C file that contain
conditional compilation logic. If a conditional compilation directive and
its associated expression span multiple lines through the use of
continuation marks, it will nevertheless be counted as a single line of
conditional logic.
- V(g)
- (from McCabe's WWW site) V(g) of a program module is the maximum
number of linearly independent paths through a module of code. It measures
the amount of testing necessary to reasonably guard against errors. This is
1 + the number of #if, #ifdef, #ifndef, and #elsif statements.
- V'(g)
- This is V(g) + the number of && and ||
in conditional
compilation logic expressions.
All of these metrics are scalar values, as defined by Perl.