awslabs / aws-checksums
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 30 units with 448 lines of code in units (26.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (50 lines of code)
    • 3 simple units (94 lines of code)
    • 26 very simple units (304 lines of code)
0% | 0% | 11% | 20% | 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
c0% | 0% | 11% | 20% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source/intel/asm0% | 0% | 25% | 0% | 74%
source/arm0% | 0% | 0% | 100% | 0%
source/intel/visualc0% | 0% | 0% | 90% | 9%
source0% | 0% | 0% | 0% | 100%
source/generic0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
uint32_t aws_checksums_crc32c_hw()
in source/intel/asm/crc32c_sse42_asm.c
50 11 3
uint32_t aws_checksums_crc32c_hw()
in source/intel/visualc/visualc_crc32c_sse42.c
28 6 3
uint32_t aws_checksums_crc32c_hw()
in source/arm/crc32c_arm.c
33 6 3
uint32_t aws_checksums_crc32_hw()
in source/arm/crc32c_arm.c
33 6 3
12 4 3
12 4 3
10 4 3
15 3 4
10 3 3
7 2 4
12 2 4
16 2 4
22 2 4
3 1 3
4 1 3
4 1 3
4 1 3
3 1 3
4 1 3
4 1 3