FLACK:反例引导的合金模型故障定位
FLACK: Counterexample-Guided Fault Localization for Alloy Models
摘要:
错误定位是一个实用的研究课题,它可以帮助开发人员识别可能导致程序错误的代码位置。大多数现有的故障定位技术是为命令式程序(例如,C和Java),并依靠分析程序的正确和不正确执行来识别可疑语句。在这项工作中,我们为用声明性语言编写的模型引入了一种故障定位方法,其中模型不是“执行”,而是转换为逻辑公式并使用后端约束求解器求解。我们提出了FLACK,一个工具,作为输入的合金模型组成的一些违反断言,并返回一个排名列表的可疑表达式有助于违反断言。关键思想是分析反例之间的差异,即,不满足断言的模型实例以及满足断言的实例,以在输入模型中查找可疑表达式。实验结果表明,FLACK是高效的(可以在5秒内处理复杂的,真实世界的Alloy模型,具有数千行代码),准确的(可以始终将错误表达式排在可疑列表的前1.9%),并且有用(通常可以将错误缩小到可疑表达式中的确切位置)。
英文摘要:
Fault localization is a practical research topic that helps developers identify code locations that might cause bugs in a program. Most existing fault localization techniques are designed for imperative programs (e.g., C and Java) and rely on analyzing correct and incorrect executions of the program to identify suspicious statements. In this work, we introduce a fault localization approach for models written in a declarative language, where the models are not "executed," but rather converted into a logical formula and solved using backend constraint solvers. We present FLACK, a tool that takes as input an Alloy model consisting of some violated assertion and returns a ranked list of suspicious expressions contributing to the assertion violation. The key idea is to analyze the differences between counterexamples, i.e., instances of the model that do not satisfy the assertion, and instances that do satisfy the assertion to find suspicious expressions in the input model. The experimental results show that FLACK is efficient (can handle complex, real-world Alloy models with thousand lines of code within 5 seconds), accurate (can consistently rank buggy expressions in the top 1.9\% of the suspicious list), and useful (can often narrow down the error to the exact location within the suspicious expressions).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。