A new algorithm for slicing unstructured programs

Citation
M. Harman et S. Danicic, A new algorithm for slicing unstructured programs, J SOFTW MAI, 10(6), 1998, pp. 415-441
Citations number
42
Categorie Soggetti
Computer Science & Engineering
Journal title
JOURNAL OF SOFTWARE MAINTENANCE-RESEARCH AND PRACTICE
ISSN journal
1040550X → ACNP
Volume
10
Issue
6
Year of publication
1998
Pages
415 - 441
Database
ISI
SICI code
1040-550X(199811/12)10:6<415:ANAFSU>2.0.ZU;2-A
Abstract
Program slicing is an automatic program abstraction technique whose many ap plications include software maintenance, re-engineering and comprehension, all of which rely crucially upon the precision of the slicing algorithm use d. When slicing is applied to maintenance problems, the programs to be slic ed are typically legacy systems, often written in older, 'unstructured' pro gramming styles. For slicing to be a useful tool to the software maintainer it is therefore important to have precise algorithms for slicing unstructu red programs. Unfortunately the standard algorithms for slicing structured programs do no t extend correctly to the unstructured paradigm, and currently proposed mod ifications to these standard algorithms produce either unnecessarily large slices or slices which are not true subsets of the original program from wh ich they are constructed. This paper introduces a modification of Agrawal's algorithm for slicing uns tructured programs, which overcomes these difficulties. The new algorithm p roduces thinner slices than any previously published algorithm while respec ting both the semantic and syntactic constraints of slicing, (C) 1998 John Wiley & Sons, Ltd.