facebookincubator / smt2utils
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 375 units with 4,080 lines of code in units (55.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (92 lines of code)
    • 4 medium complex units (454 lines of code)
    • 8 simple units (290 lines of code)
    • 362 very simple units (3,244 lines of code)
0% | 2% | 11% | 7% | 79%
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% | 2% | 11% | 7% | 79%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
z3tracer/src0% | 6% | 21% | 3% | 67%
smt2parser/src0% | 0% | 7% | 3% | 89%
smt2proxy/src0% | 0% | 0% | 54% | 45%
smt2patch/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
92 26 4
172 25 1
161 19 0
86 14 2
35 11 1
33 10 4
17 8 1
24 8 1
39 6 2
34 6 1
21 6 1
71 6 3
51 6 0
15 5 2
31 5 2
15 5 2
26 5 4
47 5 0
50 5 1
23 5 4
220 4 1
20 4 2
34 4 6
11 4 2
14 4 1
14 4 0
9 3 1
11 3 2
12 3 1
19 3 2
10 3 2
17 3 2
7 3 2
16 3 4
18 3 1
108 3 0
12 3 1
14 3 1
6 2 1
5 2 2
14 2 1
6 2 2
6 2 2
6 2 2
17 2 1
3 2 1
12 2 2
18 2 4
13 2 3
39 2 5