One alternate way to consider such compound statements would be via the use of a truth table. For example, a truth table of three simple conditions in the D-D node A in the Triangle problem would result in eight test cases. These two test cases are the minimum needed to detect initialization and use faults. More extensive coverage should focus on the loop control boundary conditions because they are a frequent source of faults. When a segment contains more than one loop, the relationships among loops must be exercised.
Minimum testing requires two test cases.
More comprehensive coverage would exercise the domain boundaries of the loop control variable. If we were to repeat all the boundary cases for the inner loop for each boundary value of the outer loop we would quickly end up with an inordinate number of test cases. To keep the number of test cases down, we use the boundary value test for n independent variables. Once the inner loop is complete, set it to a nominal value and try the boundary values for the outer loop. Careful analysis of the relationships between the loops may be required to devise the appropriate set of test cases.