Data Flow Testing
Data Flow Testing
x 1 2, 3
y 1 2, 4
a 3, 4 5
A definition use path (du-path) for a variable is a path from the statement in which the variable is
defined to the statement in which it is used.
A definition clear path (dc-path) for a variable is a du-path for the variable having a node for defining the
variable and a node for using the variable, such that there is no other node on the du-path path which is
a defining node of the variable (that is, there is no other assignment statement on that path).
The du-paths and dc-paths describe the flow of data across source statements from points at which the
values are defined to points at which the values are used. The du-paths which are not definition clear
are potential trouble paths for a program.