I'm a little bit confused about the difference between forward/backward slicing and the use/def-def/use as part of the reaching definitions technique. Isn't the use-def chain supposed to be equivalent to the backward slicing?
Let's assume we have a line that uses some variables. Like: x = y + z
.
If we try to find all the code locations that influenced the given code line (backward slicing), shouldn't it be the same as all the entries of the use-def chain of the variable x
?