Linux / Arch / M68k
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 1,172 units with 20,561 lines of code in units (17.0% of code).
    • 1 very complex units (189 lines of code)
    • 11 complex units (1,200 lines of code)
    • 41 medium complex units (2,391 lines of code)
    • 85 simple units (2,856 lines of code)
    • 1,034 very simple units (13,925 lines of code)
<1% | 5% | 11% | 13% | 67%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
c1% | 8% | 14% | 18% | 56%
h0% | 0% | 5% | 4% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
atari11% | 8% | 12% | 25% | 42%
kernel0% | 24% | 22% | 16% | 37%
amiga0% | 24% | 5% | 16% | 53%
math-emu0% | 34% | 15% | 13% | 36%
mac0% | 0% | 24% | 32% | 42%
include0% | 0% | 10% | 7% | 81%
mm0% | 0% | 31% | 24% | 43%
mvme16x0% | 0% | 35% | 19% | 45%
sun30% | 0% | 12% | 24% | 63%
bvme60000% | 0% | 28% | 11% | 59%
q400% | 0% | 20% | 3% | 75%
coldfire0% | 0% | 0% | 6% | 93%
emu0% | 0% | 0% | 17% | 82%
sun3x0% | 0% | 0% | 21% | 78%
680000% | 0% | 0% | 1% | 98%
apollo0% | 0% | 0% | 21% | 78%
hp3000% | 0% | 0% | 22% | 77%
tools0% | 0% | 0% | 100% | 0%
lib0% | 0% | 0% | 0% | 100%
mvme1470% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
189 55 1
118 41 1
132 38 2
142 38 1
86 38 1
93 36 4
98 34 2
96 31 1
84 31 1
143 31 1
140 29 1
68 28 1
94 24 3
81 23 1
58 22 3
78 21 3
93 21 2
40 21 1
73 21 1
68 20 2
41 19 1
41 19 1
41 19 1
94 19 1
75 19 2
68 18 3
68 18 4
55 16 1
49 16 1
61 16 2
69 15 3
89 15 1
54 14 2
57 13 1
28 13 1
28 13 1
49 13 1
57 13 1
85 13 1
48 12 1
49 12 1
84 12 1
78 12 1
35 12 1
43 11 3
24 11 1
24 11 1
43 11 1
76 11 1
41 11 3