top_left_banner  SimCon logo


fpt - Example Report: Program Metrics

The report shows:

The number of files
The number lines of code
The number each kind of sub-program
The cyclomatic complexities of the sub-programs
The proportion of the non-local names which are unique
The mean length of user-defined names

The fpt command to generate the report is:

SHOW METRICS

Program Metrics =============== Main Code System Total Files Primary files 8 0 8 Include files 7 0 7 Code and comments Declaration lines 2817 0 2817 Executable lines 3629 0 3629 Total code lines 6446 0 6446 Comment text lines 2019 0 2019 Comment separator lines 221 0 221 Blank lines 1331 0 1331 Total comment lines 3571 0 3571 Total lines 10017 0 10017 Trailing comments 540 0 540 Words in comments 13001 0 13001 Program units Programs 1 0 1 Block Data 0 0 0 Modules 0 0 0 Subroutines 9 0 9 Functions 0 0 0 Module subroutines 0 0 0 Module Functions 0 0 0 Internal subroutines 0 0 0 Internal Functions 0 0 0 Additional entries 0 0 0 Generic interfaces 0 0 0 Specific interfaces 0 0 0 Unresolved references 3 Maximum call depth 3 Program flow and cyclomatic complexity Normal path code nodes 1785 0 1785 Exception code nodes 30 0 30 Total nodes 1815 0 1815 Normal path code edges 2562 0 2562 Exception code edges 218 0 218 Total code edges 2780 0 2780 Executable sub-programs 10 0 10 Normal path code complexity 777 0 777 Total code complexity 965 0 965 Complexity per sub-program 96.500 96.500 Usage of Names for Objects Other than Local Variables Names used for non-locals 864 % used inconsistently 0.694 Mean length (Characters) 5.231 Cyclomatic Complexities ======================= Nodes Edges Complexity ERRPAR 29 43 14 ERRSCL 21 33 12 GNX 9 13 4 GNXEND 76 124 48 GNXINI 70 91 21 GNXPAR 1096 1688 592 GNXREA 35 53 18 GNXREL 335 521 186 GNXSDA 124 189 65 GNXTXT 20 25 5 *******************************************************************************

Copyright ©1995 to 2017 Software Validation Ltd. All rights reserved.