Closed saahil closed 6 years ago
Good arguments against McCabe complexity as a measure of real complexity.
For now, replace it by simply -
if
statementsfor
+ while
)pycparser to get FuncDef node. Purpose -
Approximating complexity by counting the number of conditionals and loops in the function. Good article on why McCabe's cyclomatic complexity is a bit of an overkill.
May also make sense to count the max nesting level?
We are already including the number of errors found by Macke. It might obviate the need for including the number of dereferencing instructions. Proceeding without it now.