Skip to Main Content
Foundations of Software Testing (Fundamental Algorithms and Techniques) by Pearson
book

Foundations of Software Testing (Fundamental Algorithms and Techniques) by Pearson

by Aditya P. Mathur
May 2024
Intermediate to advanced content levelIntermediate to advanced
765 pages
21h 57m
English
Pearson India
Content preview from Foundations of Software Testing (Fundamental Algorithms and Techniques) by Pearson
Test-Adequacy Assessment Using Control Flow
Example 6.29: First we compute the definitions and uses for each
block in Figure 6.4 and associate them with the corresponding nodes
and edges of the CFG. The def and use sets for the five blocks in this
program are given below. Note that the infeasible block 4 does not
affect the computation of these sets.
Node (or Block) def c-use p-use
1{Y, Z, [}{} {Y, Z}
2{[}{Y}{Z}
3{[}{[}{}
4{[}{Y}{}
5{}{[}{}
Using the def and use sets derived above, and the flow graph in
Figure 6.4, we draw the data-flow graph of Program P6.4 in Figure
6.6. Comparing the data-flow graph with the CFG in Figure 6.4, we
note that nodes are represented ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Effective Software Testing, Video Edition

Effective Software Testing, Video Edition

Mauricio Aniche

Publisher Resources

ISBN: 9781299486720