Affiliation:
1. National University of Singapore, Singapore
Abstract
Dynamic slicing is a well-known technique for program analysis, debugging and understanding. Given a program
P
and input I, it finds all program statements which directly/indirectly affect the values of some variables' occurrences when
P
is executed with I. In this article, we develop a dynamic slicing method for Java programs. Our technique proceeds by backwards traversal of the bytecode trace produced by an input I in a given program
P
. Since such traces can be huge, we use results from data compression to compactly represent bytecode traces. The major space savings in our method come from the optimized representation of (a) data addresses used as operands by memory reference bytecodes, and (b) instruction addresses used as operands by control transfer bytecodes. We show how dynamic slicing algorithms can directly traverse our compact bytecode traces without resorting to costly decompression. We also extend our dynamic slicing algorithm to perform “relevant slicing”. The resultant slices can be used to explain omission errors that is, why some events did not happen during program execution. Detailed experimental results on space/time overheads of tracing and slicing are reported in the article. The slices computed at the bytecode level are translated back by our tool to the source code level with the help of information available in Java class files. Our
JSlice
dynamic slicing tool has been integrated with the Eclipse platform and is available for usage in research and development.
Publisher
Association for Computing Machinery (ACM)
Reference44 articles.
1. Agrawal H. 1991. Towards automatic debugging of computer programs. Ph.D. dissertation Purdue University. Agrawal H. 1991. Towards automatic debugging of computer programs. Ph.D. dissertation Purdue University.
2. Dynamic program slicing
3. Andersen L. O. 1994. Program analysis and specialization for the C progranzming language. Ph.D. dissertation University of Copenhagen. Andersen L. O. 1994. Program analysis and specialization for the C progranzming language. Ph.D. dissertation University of Copenhagen.
Cited by
29 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Event-aware precise dynamic slicing for automatic debugging of Android applications;Journal of Systems and Software;2023-04
2. Bolt-on, Compact, and Rapid Program Slicing for Notebooks;Proceedings of the VLDB Endowment;2022-09
3. Event-Aware Precise Dynamic Slicing for Automatic Debugging of Android Applications;SSRN Electronic Journal;2022
4. Jicer: Simplifying Cooperative Android App Analysis Tasks;2021 IEEE 21st International Working Conference on Source Code Analysis and Manipulation (SCAM);2021-09
5. Checking LTL[F,G,X] on compressed traces in polynomial time;Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering;2021-08-18