Thin slicing

Author:

Sridharan Manu1,Fink Stephen J.2,Bodik Rastislav1

Affiliation:

1. University of California: Berkeley, Berkeley, CA

2. IBM T.J. Watson Research Center, Yorktown Heights, NY

Abstract

Program slicing systematically identifies parts of a program relevant to a seed statement. Unfortunately, slices of modern programs often grow too large for human consumption. We argue that unwieldy slices arise primarily from an overly broad definition of relevance, rather than from analysis imprecision. While a traditional slice includes all statements that may affect a point of interest, not all such statements appear equally relevant to a human. As an improved method of finding relevant statements, we propose thin slicing . A thin slice consists only of producer statements for the seed, i.e. , those statements that help compute and copy avalue to the seed. Statements that explain why producers affect the seed are excluded. For example, for a seed that reads a value from a container object, a thin slice includes statements that store the value into the container, but excludes statements that manipulate pointers to the container itself. Thin slices can also be hierarchically expanded to include statements explaining how producers affect the seed, yielding a traditional slice in the limit. We evaluated thin slicing for a set of debugging and program understanding tasks. The evaluation showed that thin slices usually included the desired statements for the tasks ( e.g. , the buggy statement for a debugging task). Furthermore, in simulated use of a slicing tool, thin slices revealed desired statements after inspecting 3.3 times fewer statements than traditional slicing for our debugging tasks and 9.4 times fewer statements for our program understanding tasks. Finally, our thin slicing algorithm scales well to relatively large Java benchmarks, suggesting that thin slicing represents an attractive option for practical tools.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference34 articles.

1. Codesurfer. http://www.grammatech.com/products/codesurfer/. Codesurfer. http://www.grammatech.com/products/codesurfer/.

2. T.J. Watson Libraries for Analysis. http://wala.sourceforge.net. T.J. Watson Libraries for Analysis. http://wala.sourceforge.net.

3. Slicing java programs that throw and catch exceptions

4. Effective whole-program analysis in the presence of pointers

Cited by 47 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Slicing Shared-Memory Concurrent Programs The Threaded System Dependence Graph Revisited;2023 IEEE International Conference on Software Maintenance and Evolution (ICSME);2023-10-01

2. Software runtime monitoring with adaptive sampling rate to collect representative samples of execution traces;Journal of Systems and Software;2023-08

3. Selecting Context-Sensitivity Modularly for Accelerating Object-Sensitive Pointer Analysis;IEEE Transactions on Software Engineering;2023-02-01

4. An Effective Method for Fault Localization Based on Combination of Convolution and LSTM;Lecture Notes in Electrical Engineering;2023

5. Identifying Relevant Changes for Incremental Verification of Evolving Software Systems;2022 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER);2022-03

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3