Metric | Value |
Number of characters | 3237 |
Number of comment characters | 204 |
Number of space characters | 767 |
Number of line comments | 0 |
Number of block comments | 7 |
Number of lines | 133 |
Maximum number of characters in a line | 95 |
Number of character strings | 15 |
Number of unprocessed lines | 0 |
Number of C preprocessor directives | 0 |
Number of processed C preprocessor conditionals (ifdef, if, elif) | 0 |
Number of defined C preprocessor function-like macros | 0 |
Number of defined C preprocessor object-like macros | 0 |
Number of preprocessed tokens | 962 |
Number of compiled tokens | 1012 |
Number of statements or declarations | 113 |
Number of operators | 176 |
Number of unique operators | 15 |
Number of numeric constants | 22 |
Number of character literals | 43 |
Number of if statements | 17 |
Number of else clauses | 2 |
Number of switch statements | 2 |
Number of case labels | 19 |
Number of default labels | 2 |
Number of break statements | 14 |
Number of for statements | 2 |
Number of while statements | 1 |
Number of do statements | 0 |
Number of continue statements | 2 |
Number of goto statements | 0 |
Number of return statements | 1 |
Number of project-scope identifiers | 53 |
Number of file-scope (static) identifiers | 2 |
Number of macro identifiers | 9 |
Total number of object and object-like identifiers | 259 |
Number of unique project-scope identifiers | 12 |
Number of unique file-scope (static) identifiers | 2 |
Number of unique macro identifiers | 5 |
Number of unique object and object-like identifiers | 34 |
Number of global namespace occupants at function's top | 1063 |
Number of parameters | 4 |
Maximum level of statement nesting | 4 |
Number of goto labels | 0 |
Fan-in (number of calling functions) | 2 |
Fan-out (number of called functions) | 14 |
Cyclomatic complexity (control statements) | 23 |
Extended cyclomatic complexity (includes branching operators) | 27 |
Maximum cyclomatic complexity (includes branching operators and all switch branches) | 44 |
Structure complexity (Henry and Kafura) | 784 |
Halstead complexity | 3416.45 |
Information flow metric (Henry and Selig) | 18032 |