views:

188

answers:

3

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.

A: 

CUTE?

The "Concolic Unit Testing Engine"

Callum
+1  A: 

GCT ?

or maybe covtool ?

or xCover?

The three are in open source.

Matthieu
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
+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
Googling kinda helps, cyclomatic complexity checkers for C are apparently difficult to find though...
Edward Amsden