使用SMT自动修复故障的If条件和缺失的前提条件
Automatic Repair of Buggy If Conditions and Missing Preconditions with SMT
摘要:
我们提出了Nopol,一种自动修复错误的方法,如果条件和缺少先决条件。作为输入,它采用一个程序和一个测试套件,其中包含通过测试用例建模的预期行为的程序和至少一个失败的测试用例体现的错误要修复。它包括从多个仪表测试套件执行中收集数据,将这些数据转换为可满足性模理论(SMT)问题,并将SMT结果(如果存在)转换为源代码补丁。Nopol修复面向对象的代码,并允许补丁包含空性检查以及特定的方法调用。
英文摘要:
We present Nopol, an approach for automatically repairing buggy if conditions and missing preconditions. As input, it takes a program and a test suite which contains passing test cases modeling the expected behavior of the program and at least one failing test case embodying the bug to be repaired. It consists of collecting data from multiple instrumented test suite executions, transforming this data into a Satisfiability Modulo Theory (SMT) problem, and translating the SMT result -- if there exists one -- into a source code patch. Nopol repairs object oriented code and allows the patches to contain nullness checks as well as specific method calls.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。