Dependence-cache slicing: A program slicing method using lightweight dynamic information

被引:14
作者
Takada, T [1 ]
Ohata, F [1 ]
Inoue, K [1 ]
机构
[1] Osaka Univ, Grad Sch Engn Sci, Dept Informat, Osaka, Japan
来源
10TH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION, PROCEEDINGS | 2002年
关键词
D O I
10.1109/WPC.2002.1021338
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
When we try to debug or to comprehend a large program, it is important to separate suspicious program portions from the overall source program. Program slicing is a promising technique used to extract a program portion; however such slicing sometimes raises difficulties. Static slicing sometimes produces a large portion of a source program, especially for programs with array and pointer variables, and dynamic slicing requires unacceptably large run-time overhead. In this paper, we propose a slicing method named "dependence-cache slicing", which uses both static and dynamic information. An algorithm has been implemented in our experimental slicing system, and execution data for several sample programs have been collected The results show that dependence-cache slicing reduces a slice size by 30-90% from static slice size with an increased and affordable run-time overhead, even for programs using array variables. In the future, the dependence-cache slicing will become an important feature for effective debugging environments.
引用
收藏
页码:169 / 177
页数:9
相关论文
共 16 条
[1]  
AGRAWAL H, 1990, SIGPLAN NOTICES, V25, P246, DOI 10.1145/93548.93576
[2]   Conditioned program slicing [J].
Canfora, G ;
Cimitile, A ;
De Lucia, A .
INFORMATION AND SOFTWARE TECHNOLOGY, 1998, 40 (11-12) :595-607
[3]  
FIELD J, 1995, P 22 ACM S PRINC PRO, P379
[4]  
Gupta R., 1997, ACM Transactions on Software Engineering and Methodology, V6, P370, DOI 10.1145/261640.261644
[5]   Amorphous program slicing [J].
Harman, M ;
Danicic, S .
FIFTH INTERNATIONAL WORKSHOP ON PROGRAM COMPREHENSION - IWPC '97, PROCEEDINGS, 1997, :70-79
[6]   Interprocedural pointer alias analysis [J].
Hind, M ;
Burke, M ;
Carini, P ;
Choi, JD .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1999, 21 (04) :848-894
[7]  
HORWITZ S, 1989, SIGPLAN NOTICES, V24, P28, DOI 10.1145/74818.74821
[8]   DYNAMIC PROGRAM SLICING [J].
KOREL, B ;
LASKI, J .
INFORMATION PROCESSING LETTERS, 1988, 29 (03) :155-163
[9]   Experimental evaluation of program slicing for fault localization [J].
Kusumoto S. ;
Nishimatsu A. ;
Nishie K. ;
Inoue K. .
Empirical Software Engineering, 2002, 7 (1) :49-76
[10]  
Liang DL, 1999, LECT NOTES COMPUT SC, V1687, P199, DOI 10.1145/318774.318943