Linux / Drivers / Tee
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 213 units with 3,936 lines of code in units (68.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 14 medium complex units (808 lines of code)
    • 30 simple units (1,109 lines of code)
    • 169 very simple units (2,019 lines of code)
0% | 0% | 20% | 28% | 51%
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
c0% | 0% | 20% | 28% | 50%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
optee0% | 0% | 19% | 26% | 53%
ROOT0% | 0% | 23% | 30% | 45%
amdtee0% | 0% | 18% | 31% | 49%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
62 23 2
114 21 1
51 17 2
50 16 4
77 14 1
74 13 2
38 13 4
77 13 3
40 12 2
44 12 3
39 12 3
51 12 3
35 11 4
56 11 1
48 10 3
26 10 3
33 10 2
27 10 3
31 10 4
39 9 4
39 9 3
19 9 3
30 9 4
32 8 3
59 8 3
38 8 3
40 8 3
41 8 4
62 8 3
41 7 4
50 7 1
25 7 2
39 7 5
41 7 3
42 7 4
36 7 4
37 7 2
50 7 3
16 6 3
39 6 4
40 6 3
33 6 2
26 6 3
30 6 2
5 5 1
23 5 2
28 5 1
20 5 2
20 5 3
29 5 3