golang / arch
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 528 units with 14,133 lines of code in units (30.2% of code).
    • 21 very complex units (7,376 lines of code)
    • 10 complex units (1,065 lines of code)
    • 45 medium complex units (2,141 lines of code)
    • 54 simple units (1,404 lines of code)
    • 398 very simple units (2,147 lines of code)
52% | 7% | 15% | 9% | 15%
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
go52% | 7% | 15% | 9% | 15%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
arm64/arm64asm74% | 0% | 6% | 7% | 11%
x86/x86asm83% | 0% | 4% | 6% | 5%
x86/x86spec32% | 16% | 21% | 9% | 19%
x86/x86map44% | 14% | 16% | 8% | 17%
arm64/arm64spec69% | 0% | 22% | 2% | 5%
arm/armasm30% | 25% | 24% | 3% | 15%
ppc64/ppc64map47% | 0% | 28% | 8% | 15%
ppc64/ppc64asm32% | 15% | 34% | 2% | 14%
arm/armspec30% | 28% | 21% | 10% | 9%
arm/armmap56% | 0% | 17% | 10% | 15%
ppc64/ppc64spec29% | 40% | 16% | 4% | 9%
x86/x86avxgen0% | 0% | 26% | 44% | 29%
x86/xeddata0% | 0% | 16% | 28% | 55%
ppc64/ppc64util0% | 0% | 0% | 66% | 33%
x86/x86csv0% | 0% | 0% | 0% | 100%
arm64/arm64gen0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func decodeArg()
in arm64/arm64asm/decode.go
2220 860 2
func decode1()
in x86/x86asm/decode.go
974 321 3
func GoSyntax()
in arm64/arm64asm/plan9x.go
390 171 3
func GNUSyntax()
in x86/x86asm/gnu.go
370 158 3
func cleanup()
in x86/x86spec/cleanup.go
270 120 1
func IntelSyntax()
in x86/x86asm/intel.go
297 120 3
func decodeArg()
in arm/armasm/decode.go
278 94 2
func parsePage()
in arm64/arm64spec/spec.go
236 82 3
func parsePage()
in arm/armspec/spec.go
202 79 2
func GNUSyntax()
in ppc64/ppc64asm/gnu.go
269 75 2
func add()
in ppc64/ppc64map/map.go
272 70 5
func add()
in x86/x86map/map.go
189 69 7
func readBitBox()
in arm64/arm64spec/spec.go
170 67 4
func gnuArg()
in x86/x86asm/gnu.go
160 63 5
func plan9Arg()
in arm64/arm64asm/plan9x.go
197 61 3
func printDecoderPass()
in x86/x86map/map.go
167 59 4
func readBitBox()
in ppc64/ppc64spec/spec.go
108 55 4
func walkScanTree()
in x86/x86map/map.go
88 55 2
func add()
in arm/armmap/map.go
194 54 6
func processListing()
in x86/x86spec/parse.go
184 54 2