I recently had the opportunity to shadow a developer for a day. (I'm currently working on my CS degree.) He showed me a tool for generating all possible execution paths through a C program, but I can't remember what it's called, nor have I had any success finding it. I believe it was an open source tool, but I'm not certain.
These don't seem to be exactly what I was looking at...The tool he used counted exactly how many different ways a certain method could branch, and generated a report.
Edward Amsden
2009-07-20 15:33:59
+1
A:
What you are asking about, I think, is code coverage. There's a list of C and C++ coverage tools here.
Edit: It sounds that you you might also be asking about cyclomatic complexity, which is a measure of the complexity of a function based on branches etc. There is an enormous number of such tools - a spot of googling should help.
anon
2009-07-20 15:21:32
Googling kinda helps, cyclomatic complexity checkers for C are apparently difficult to find though...
Edward Amsden
2009-07-31 15:29:34