arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.15675cs.SE
收藏

使用Slicito结合静态分析技术实现程序理解

Combining Static Analysis Techniques for Program Comprehension Using Slicito

Robert Husák, Jan Kofroň, Filip Zavoral

AI总结:

该研究推出新版SLICITO工具,支持开发者在Visual Studio中交互式缩小C#代码分析范围,结合过程间数据流分析与符号执行提升分析精度,还提供可构建专用程序理解工具的分析可视化模块。

摘要:

程序理解工具通常采用静态程序分析技术获取有用信息,但它们往往仅依赖可扩展性足够但精度有限的技术。该方法的一种可行改进方案是让开发者交互式地缩小待分析代码的范围,随后对缩小后的范围应用精度更高的分析技术。本文提出了SLICITO工具的新版本,支持开发者在Visual Studio中对C#代码开展此类探索。SLICITO的一种常见用法是:先通过过程间数据流分析识别与给定任务最相关的代码部分,再应用符号执行来推理这些部分的精确行为。受可塑开发(Moldable Development)启发,SLICITO提供了一组程序分析与可视化构建块,可直接在Visual Studio中用于创建专用的程序理解工具。我们通过一个真实工业案例在正文及后续视频(https://www.slicito.com/icpc2025video.mp4)中展示了其全部功能范围。

英文摘要:

While program comprehension tools often use static program analysis techniques to obtain useful information, they usually work only with sufficiently scalable techniques with limited precision. A possible improvement of this approach is to let the developer interactively reduce the scope of the code being analyzed and then apply a more precise analysis technique to the reduced scope. This paper presents a new version of the tool SLICITO that allows developers to perform this kind of exploration on C# code in Visual Studio. A common usage of SLICITO is to use interprocedural data-flow analysis to identify the parts of the code most relevant for the given task and then apply symbolic execution to reason about the precise behavior of these parts. Inspired by Moldable Development, SLICITO provides a set of program analysis and visualization building blocks that can be used to create specialized program comprehension tools directly in Visual Studio. We demonstrate the full scope of features on a real industrial example both in the text and in the following video: https://www.slicito.com/icpc2025video.mp4

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

↑