Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Static slicing in the presence of goto statements
Choi J., Ferrante J. ACM Transactions on Programming Languages and Systems16 (4):1097-1113,1994.Type:Article
Date Reviewed: Jul 1 1995

Program slicing is a valuable technique for analyzing the behavior of a program. An executable slice is a subset of the statements of a program that exhibits the same execution behavior on a variable as the program does. Standard techniques for constructing a slice are based on the program dependence graph, which is a graphical representation of both data and control dependences among statements of the program.

The authors first show that the standard techniques do not yield a correct executable slice if the program contains arbitrary goto statements. They then show that executable slices can be constructed when goto statements are present by modifying the standard techniques. Two different methods are presented and illustrated. The first method produces a slice that is a subset of the original program but may be larger than necessary, containing statements that do not directly affect the variable under consideration. The second method introduces additional goto statements in the slice so that it is no longer a subprogram of the original but provides a more accurate minimal slice.

The authors make good use of examples to explain the problem and illustrate their techniques. They provide both formal and informal descriptions of the two methods along with correctness proofs. One may question the necessity of program slicing in the presence of goto statements. Among other applications, however, debugging tools are based on program slicing, and as long as goto statements appear in programs, the tools will be required to handle them.

Reviewer:  S. K. Andrianoff Review #: CR118719 (9507-0495)
Bookmark and Share
 
Debugging Aids (D.2.5 ... )
 
 
Programming Environments (D.2.6 )
 
Would you recommend this review?
yes
no
Other reviews under "Debugging Aids": Date
Automatic correction and improvement of programs
Wertz H., Halsted Press, New York, NY, 1987. Type: Book (9789780470207642)
Dec 1 1987
Application debugging: an MVS ABEND handbook for COBOL, ASSEMBLY, PL/I, and FORTRAN programmers
Binder R., Prentice-Hall, Inc., Upper Saddle River, NJ, 1985. Type: Book (9789780130393487)
Aug 1 1985
A portable high-level database debugger and software performance monitor
Jankowitz H., Kilfoil P., Rabkin I., Schach S. Software--Practice & Experience 15(6): 523-538, 1985. Type: Article
Jun 1 1986
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy