novifinancial / winterfell
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 537 units with 5,737 lines of code in units (41.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (65 lines of code)
    • 9 simple units (338 lines of code)
    • 527 very simple units (5,334 lines of code)
0% | 0% | 1% | 5% | 92%
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
rs0% | 0% | 1% | 5% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
math/src0% | 0% | 2% | 4% | 93%
air/src0% | 0% | 0% | 10% | 89%
fri/src0% | 0% | 0% | 24% | 75%
crypto/src0% | 0% | 0% | 6% | 93%
prover/src0% | 0% | 0% | 0% | 100%
utils/core0% | 0% | 0% | 0% | 100%
math/benches0% | 0% | 0% | 0% | 100%
verifier/src0% | 0% | 0% | 0% | 100%
crypto/benches0% | 0% | 0% | 0% | 100%
fri/benches0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
65 12 1
39 10 1
72 7 0
65 6 4
31 6 1
31 6 1
44 6 1
24 6 2
16 6 2
16 6 2
16 5 0
34 5 2
32 5 2
18 5 2
20 5 2
45 5 2
18 4 1
18 4 1
17 4 2
12 4 2
24 4 1
27 4 1
27 4 1
18 4 2
14 4 2
16 3 2
18 3 1
18 3 1
18 3 1
18 3 1
11 3 2
31 3 0
33 3 0
24 3 3
28 3 3
21 3 2
22 3 2
28 3 2
10 3 1
18 3 1
18 3 1
30 3 0
13 3 2
11 3 2
8 3 1
22 3 0
41 3 4
17 3 5
32 3 2
64 3 3