openai / openai-icpc-2025
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 84 units with 2,739 lines of code in units (87.8% of code).
    • 3 very complex units (717 lines of code)
    • 8 complex units (932 lines of code)
    • 9 medium complex units (515 lines of code)
    • 5 simple units (82 lines of code)
    • 59 very simple units (493 lines of code)
26% | 34% | 18% | 2% | 17%
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
cpp26% | 34% | 18% | 2% | 17%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
G-Lava Moat36% | 33% | 5% | 3% | 21%
A-A-Skew-ed Reasoning0% | 95% | 0% | 0% | 4%
I-Slot Machine0% | 100% | 0% | 0% | 0%
H-Score Values0% | 54% | 26% | 0% | 19%
D-Buggy Rover0% | 100% | 0% | 0% | 0%
C-Bride of Pipe Stream0% | 0% | 86% | 13% | 0%
K-Treasure Map0% | 0% | 100% | 0% | 0%
F-Herding Cats0% | 0% | 100% | 0% | 0%
J-Stacking Cups0% | 0% | 89% | 0% | 10%
E-Delivery Service0% | 0% | 58% | 0% | 41%
L-Walking on Sunshine0% | 0% | 100% | 0% | 0%
B-Blackboard Game0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
262 77 0
244 62 0
211 54 0
163 41 0
192 39 0
171 37 0
82 36 0
128 33 0
66 29 0
67 27 0
63 26 0
52 23 0
62 22 0
64 16 0
61 16 0
106 15 0
52 13 0
32 13 5
45 12 2
41 11 0
27 9 2
22 7 2
16 6 1
7 6 6
10 6 2
8 5 1
19 5 1
23 5 2
14 5 0
16 4 1
14 4 1
14 4 1
11 4 0
8 3 0
12 3 4
13 3 1
17 3 1
15 3 4
11 3 4
15 3 1
20 3 4
15 3 4
15 3 1
8 3 4
7 3 1
6 3 1
7 3 2
9 3 7
6 3 1
4 2 2