Linux / Arch / X86
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 11,718 units with 171,421 lines of code in units (56.6% of code).
    • 22 very complex units (5,933 lines of code)
    • 80 complex units (10,734 lines of code)
    • 509 medium complex units (26,952 lines of code)
    • 1,239 simple units (35,319 lines of code)
    • 9,868 very simple units (92,483 lines of code)
3% | 6% | 15% | 20% | 53%
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
c3% | 5% | 17% | 22% | 51%
pl0% | 87% | 0% | 0% | 12%
h0% | 2% | 1% | 3% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
kvm6% | 7% | 18% | 18% | 48%
net43% | 3% | 10% | 21% | 21%
math-emu15% | 23% | 24% | 16% | 19%
events5% | 3% | 15% | 20% | 55%
pci1% | 7% | 13% | 28% | 48%
crypto0% | 30% | 3% | 7% | 58%
kernel0% | 3% | 17% | 25% | 53%
mm0% | 3% | 15% | 23% | 57%
boot0% | 5% | 18% | 23% | 51%
entry0% | 15% | 17% | 10% | 56%
ia320% | 31% | 16% | 5% | 46%
lib0% | 3% | 20% | 20% | 55%
um0% | 3% | 12% | 25% | 57%
platform0% | 0% | 13% | 24% | 61%
tools0% | 0% | 52% | 16% | 30%
xen0% | 0% | 6% | 25% | 68%
hyperv0% | 0% | 20% | 22% | 56%
include0% | 0% | 0% | 3% | 96%
power0% | 0% | 0% | 19% | 80%
video0% | 0% | 0% | 100% | 0%
realmode0% | 0% | 0% | 8% | 91%
purgatory0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
699 232 5
607 219 6
286 117 1
269 117 2
235 111 2
250 102 2
626 100 1
393 95 3
163 92 2
356 82 3
240 78 4
252 70 1
262 68 2
275 68 3
124 62 2
140 58 2
234 57 3
103 57 2
138 54 2
81 53 3
62 53 2
138 52 2
189 50 3
133 50 2
130 50 6
112 48 1
121 47 1
116 46 1
125 45 3
83 44 1
122 43 2
142 43 3
145 43 1
111 42 3
151 41 3
162 41 3
82 41 1
128 40 2
148 39 3
149 39 1
127 39 5
153 39 1
127 38 3
113 38 2
97 38 2
89 37 4
45 37 1
85 37 1
197 36 1
71 36 2