Taxonomy of Infinite Recursion
Recursion is another repeated structure that one of the steps of the function reenters the function itself. Figure 2 illustrates the hierarchical taxonomy of infinite recursion bugs in real-world C and C++ projects. Generally speaking, our taxonomy of infinite recursion bugs consists of 4 inner categories (in grey) and 8 leaf categories (in white). Because recursion in real-world projects involves a lot of code, the examples we provide are relatively simplified.