2015 · 19 citations · 23 references
ComputingComputer ScienceAlgorithmsSoftware EngineeringTheory Of ComputationAlgorithmic ComplexityComplexity TheoryComputational ComplexityControl-flow AnalysisData-flow AnalysisSoftware TestingComplexityComplexity MeasurementControl Flow Graph AnalysisCyclomatic ComplexityUpper Bound Computation
Recent automated software testing techniques concentrate on achieving path coverage. We present a complexity measure that provides an upper bound for the number of paths in a program, and hence, can be used for assessing the difficulty of achieving path coverage for a given method. We define the path complexity of a program as a function that takes a depth bound as input and returns the number of paths in the control flow graph that are within that bound. We show how to automatically compute the path complexity function in closed form, and the asymptotic path complexity which identifies the dominant term in the path complexity function. Our results demonstrate that path complexity can be computed efficiently, and it is a better complexity measure for path coverage compared to cyclomatic complexity and NPATH complexity.
23
Thomas J. McCabe · IEEE Transactions on Software Engineering · 1976 · 5.8K citations
Symbolic execution and program testing
James C. King · Communications of the ACM · 1976 · 3K citations · Full text
Patrice Godefroid, Nils Klarlund, Koushik Sen · ACM SIGPLAN Notices · 2005 · 2.1K citations
Koushik Sen, Darko Marinov, Gul Agha · 2005 · 1.7K citations