awslabs / aws-lc-verification
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 10 units with 129 lines of code in units (76.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (24 lines of code)
    • 5 small units (73 lines of code)
    • 4 very small units (32 lines of code)
0% | 0% | 18% | 56% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go0% | 0% | 18% | 56% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
SAW/proof/AES0% | 0% | 100% | 0% | 0%
SAW/proof/common0% | 0% | 0% | 70% | 29%
SAW/proof/SHA5120% | 0% | 0% | 100% | 0%
SAW/proof/HMAC0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 10 longest units
Unit# linesMcCabe index# params
func main()
in SAW/proof/AES/AES-GCM-check-entrypoint.go
24 3 0
func main()
in SAW/proof/SHA512/SHA512-384-check-entrypoint.go
20 3 0
func CreateAndRunSawScript()
in SAW/proof/common/utility.go
15 1 4
func ParseSelectCheckRange()
in SAW/proof/common/utility.go
14 4 2
func RunSelectCheckScript()
in SAW/proof/common/utility.go
12 2 2
func RunSawScript()
in SAW/proof/common/utility.go
12 2 1
func main()
in SAW/proof/HMAC/HMAC-check-entrypoint.go
10 2 0
func Wait()
in SAW/proof/common/utility.go
9 2 3
func SystemMemory()
in SAW/proof/common/utility.go
8 2 0
func CheckError()
in SAW/proof/common/utility.go
5 2 1