arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1905.02245cs.SE
收藏

面向XML的交互式半自动规格说明挖掘:经验报告

Interactive Semi-automated Specification Mining for Debugging: An Experience Report

Mohammad Jafar Mashhadi, Taha R. Siddiqui, Hadi Hemmati, Howard Loewen

摘要:

内容:规范挖掘技术通常用于在缺乏(最新的)规范文档的情况下提取软件的规范。这对于程序理解、测试和异常检测很有用。然而,规范挖掘也可以潜在地用于调试,其中一个错误的行为被抽象出来,给开发人员一个关于bug的上下文,并帮助他们定位it.Objective:在这个项目中,我们调查这个想法在工业环境。我们提出了一个非常基本的半自动化规范挖掘方法的调试和应用,从我们的行业合作伙伴,MicroPilot公司的AutoPilot软件系统的实际报告的问题。目的是评估该方法在现实世界中的可行性和实用性。方法:该方法被开发为一个原型工具,在C代码上工作,它接受一组相关的状态字段和函数,每个问题,并生成一个扩展的有限状态机,表示错误的行为,抽象的相关上下文(选定的字段和功能)。结果如下:我们通过一系列访谈(包括观察性研究)对该公司的开发人员在现实世界中报告的错误进行定性评估。结果表明,a)我们的方法是可行的,b)它可以在一定程度上自动化,和c)带来的优势,只使用他们的代码级调试工具。我们还将这种方法与传统的全自动状态合并算法进行了比较,并报告了将这些技术应用于实际调试环境时的几个问题。结论:本研究的主要结论是,“交互式”规范挖掘而不是完全自动化的挖掘工具的想法是不切实际的,确实是有用的调试用例。

英文摘要:

Context: Specification mining techniques are typically used to extract the specification of a software in the absence of (up-to-date) specification documents. This is useful for program comprehension, testing, and anomaly detection. However, specification mining can also potentially be used for debugging, where a faulty behavior is abstracted to give developers a context about the bug and help them locating it. Objective: In this project, we investigate this idea in an industrial setting. We propose a very basic semi-automated specification mining approach for debugging and apply that on real reported issues from an AutoPilot software system from our industry partner, MicroPilot Inc. The objective is to assess the feasibility and usefulness of the approach in a real-world setting. Method: The approach is developed as a prototype tool, working on C code, which accept a set of relevant state fields and functions, per issue, and generates an extended finite state machine that represents the faulty behavior, abstracted with respect to the relevant context (the selected fields and functions). Results: We qualitatively evaluate the approach by a set of interviews (including observational studies) with the company's developers on their real-world reported bugs. The results show that a) our approach is feasible, b) it can be automated to some extent, and c) brings advantages over only using their code-level debugging tools. We also compared this approach with traditional fully automated state-merging algorithms and reported several issues when applying those techniques on a real-world debugging context. Conclusion: The main conclusion of this study is that the idea of an "interactive" specification mining rather than a fully automated mining tool is NOT impractical and indeed is useful for the debugging use case.

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

↑