arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.06758cs.SEcs.PL
收藏

slash:一种静态配置-逻辑识别技术

slash: A Technique for Static Configuration-Logic Identification

Mohannad Alhanahnah, Philipp Schubert, Thomas Reps, Somesh Jha, Eric Bodden

AI总结:

本文针对软件精简与错误检测工具需手动标注程序阶段边界的难题,提出自动化工具slash,通过分析24个C/C++程序提取边界属性并实现高效边界识别,显著提升了相关工具的大规模应用能力。

摘要:

研究人员最近设计了一些用于软件精简和检测配置错误的工具。其中几个工具依赖于这样一个观察:程序由初始化阶段和随后的主计算阶段组成。这些工具的用户需要手动标注分隔这些阶段的边界,这项任务可能耗时且容易出错(通常,用户必须阅读和理解源代码,或使用调试器跟踪执行)。由于错误会损害工具的准确性和功能,手动标注的要求阻碍了大规模应用这些工具的能力。在本文中,我们对24个广泛使用的C/C++程序进行了实地研究,在96%的程序中识别出了共同的边界属性。然后我们介绍了slash,这是一个基于所识别属性来定位边界的自动化工具。slash在8.5分钟内成功识别了87.5%的研究程序的边界,最多使用4.4 GB内存。在slash开发完成后进行的一项独立测试中,slash在包含21个流行C/C++ GitHub仓库的数据集中,识别出了其中85.7%的边界。最后,我们展示了slash简化软件精简和错误检测工具的边界识别过程的潜力。

英文摘要:

Researchers have recently devised tools for debloating software and detecting configuration errors. Several of these tools rely on the observation that programs are composed of an initialization phase followed by a main-computation phase. Users of these tools are required to manually annotate the boundary that separates these phases, a task that can be time-consuming and error-prone (typically, the user has to read and understand the source code or trace executions with a debugger). Because errors can impair the tool's accuracy and functionality, the manual-annotation requirement hinders the ability to apply the tools on a large scale. In this paper, we present a field study of 24 widely-used C/C++ programs, identifying common boundary properties in 96\% of them. We then introduce \textit{slash}, an automated tool that locates the boundary based on the identified properties. \textit{slash} successfully identifies the boundary in 87.5\% of the studied programs within 8.5\ minutes, using up to 4.4\ GB memory. In an independent test, carried out after \textit{slash} was developed, \textit{slash} identified the boundary in 85.7\% of a dataset of 21 popular C/C++ GitHub repositories. Finally, we demonstrate \textit{slash}'s potential to streamline the boundary-identification process of software-debloating and error-detection tools.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑