An Empirical Investigation of Correlation between Code Complexity and Bugs

12/03/2019
by   Changqi Chen, et al.
0

There have been many studies conducted on predicting bugs. These studies show that code complexity, such as cyclomatic complexity, correlates with the presence of bugs in code. In this paper, we intend to find the correlation between path complexity and bugs. We found that 1) For simple bugs, there is no strong correlation between the path complexity and the presence of bugs; 2) For complex real-world bugs, though not strong, path complexity has a higher correlation with the presence of bugs than cyclomatic complexity and NPATH complexity. These results are useful for researchers to use the path complexity for building bug prediction models. Moreover, path complexity can be used as a guiding mechanism for test generation.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/08/2021

TFix+: Self-configuring Hybrid Timeout Bug Fixing for Cloud Systems

Timeout bugs can cause serious availability and performance issues which...
research
03/23/2021

What we can learn from how programmers debug their code

Researchers have developed numerous debugging approaches to help program...
research
06/06/2023

Large Language Models of Code Fail at Completing Code with Potential Bugs

Large language models of code (Code-LLMs) have recently brought tremendo...
research
03/02/2020

Generalizing cyclomatic complexity via path homology

Cyclomatic complexity is an incompletely specified but mathematically pr...
research
10/16/2018

Optimizing AIREBO: Navigating the Journey from Complex Legacy Code to High Performance

Despite initiatives to improve the quality of scientific codes, there st...
research
09/23/2021

Toward a Unified Framework for Debugging Gray-box Models

We are concerned with debugging concept-based gray-box models (GBMs). Th...
research
11/14/2022

Disentangling Flaws in Linux DCTCP

In the process of testing improvements to the Linux DCTCP code in variou...

Please sign up or login with your details

Forgot password? Click here to reset