Program Slicing Using Test Cases
The main applications of program slicing include various software engineering activities such as program understanding, debugging, testing, program maintenance, complexity measurement and so on. Program slicing is a feasible method to restrict the focus of a task to specific sub-components of a program. It can also be used to extract the statements of a program that are relevant to a given computation. Applying slicing technique to software architectures can benefit software development in two main ways. The first one concerns maintenance of a component-based software. By using slicing tools on an architectural description, the authors can determine which components might be affected when a given component is modified. Second, architectural reuse can be facilitated.