4 ms·
GNU's complexity[1] tool calculates something like what you're talking about for procedures in C programs, and calls the result a "complexity score", although I
by jka 4y ago
GNU's complexity[1] tool calculates something like what you're talking about for procedures in C programs, and calls the result a "complexity score", although I don't think it accounts for variable names, nor magic integers.
[1] - https://www.gnu.org/software/complexity/manual/complexity.html#Example-Output https://www.gnu.org/software/complexity/manual/complexity.ht...