SPIDER:基于规范的集成缺陷揭示器
SPIDER: Specification-based Integration Defect Revealer
摘要:
现代软件设计实践意味着在开发中广泛使用现成的组件,通常设计为外部库。重用第三方代码的优势可能会被开发软件中出现的集成错误所抵消。出现这种错误的原因主要是由于程序员对外部库的细节(如内部结构和功能的微妙之处)的误解或不完全理解。随库提供的文档通常非常稀疏,只描述了程序和库交互的主要预期场景。在本文中,我们提出的方法的基础上使用正式的库规范,它允许使用静态分析方法检测集成错误。为此,使用LibSL规约语言描述外部库,将得到的描述转换为KEX分析仪的内部数据结构。库使用的不正确场景的执行,例如方法调用的不正确顺序或违反API函数合同,在程序模型中使用KEX分析器的特殊内置函数进行标记。之后,当分析程序时,KEX能够检测到集成错误,因为不正确的库使用场景被诊断为调用标记函数。所提出的方法被实现为SPIDER(基于规范的集成缺陷揭示器),这是一个扩展的Kex分析仪,并已证明其效率通过检测不同类别的集成错误的几个特制的项目,以及对几个项目从开放的存储库。
英文摘要:
Modern software design practice implies widespread use in the development of ready-made components, usually designed as external libraries. The undoubted advantages of reusing third-party code can be offset by integration errors that appear in the developed software. The reason for the appearance of such errors is mainly due to misunderstanding or incomplete understanding by the programmer of the details of external libraries such as an internal structure and the subtleties of functioning. The documentation provided with the libraries is often very sparse and describes only the main intended scenarios for the interaction of the program and the library. In this paper, we propose the approach based on the use of formal library specifications, which allows detecting integration errors using static analysis methods. To do this, the external library is described using the LibSL specification language, the resulting description is translated into the internal data structures of the KEX analyzer. The execution of the incorrect scenarios of library usage, such as the incorrect sequence of method calls or the violation of the API function contract, is marked in the program model with special built-in functions of the KEX analyzer. Later, when analyzing the program, KEX becomes able to detect integration errors, since incorrect library usage scenarios are diagnosed as calling marked functions. The proposed approach is implemented as SPIDER (SPecification-based Integration Defect Revealer), which is an extension of the Kex analyzer and has proven its efficiency by detecting integration errors of different classes on several special-made projects, as well as on several projects taken from open repositories.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。