基于多观测的模型驱动诊断:面向C语言软件和布尔电路的统一方法
Model-Based Diagnosis with Multiple Observations: A Unified Approach for C Software and Boolean Circuits
AI总结:
CFaults通过结合多观测的模型驱动诊断方法,为C语言软件和布尔电路提供更高效的故障定位,确保诊断的一致性和最小性。
摘要:
在软件开发和电路设计中,调试是最耗费时间和资源的任务之一。尽管已提出几种基于公式的故障定位(FBFL)方法,但这些方法无法保证在所有失败测试中提供一组诊断,或可能产生冗余的诊断,尤其是对于具有多个故障的程序或电路。本文介绍了CFaults,一种针对具有多个故障的C语言软件和布尔电路的新型故障定位工具。CFaults利用基于模型的诊断(MBD)结合多观测,并将所有失败的测试用例整合到一个统一的最大满足度(MaxSAT)公式中。因此,我们的方法保证了观测之间的一致性,并简化了故障定位过程。在三个基准集上进行的实验结果表明,CFaults在C语言软件中比其他FBFL方法如BugAssist、SNIPER和HSD更快地定位故障。在ISCAS85基准上,CFaults比HSD慢,但仅在6%的电路中定位故障,表明其在该领域仍具有竞争力。此外,CFaults仅产生子集最小的故障诊断,而其他方法倾向于枚举冗余的诊断(例如BugAssist和SNIPER).
英文摘要:
Debugging is one of the most time-consuming and expensive tasks in software development and circuit design. Several formula-based fault localisation (FBFL) methods have been proposed, but they fail to guarantee a set of diagnoses across all failing tests or may produce redundant diagnoses that are not subset-minimal, particularly for programs/circuits with multiple faults. This paper introduces CFaults, a novel fault localisation tool for C software and Boolean circuits with multiple faults. CFaults leverages Model-Based Diagnosis (MBD) with multiple observations and aggregates all failing test cases into a unified Maximum Satisfiability (MaxSAT) formula. Consequently, our method guarantees consistency across observations and simplifies the fault localisation procedure. Experimental results on three benchmark sets, two of C programs, TCAS and C-Pack-IPAs, and one of Boolean circuits, ISCAS85, show that CFaults is faster at localising faults in C software than other FBFL approaches such as BugAssist, SNIPER, and HSD. On the ISCAS85 benchmark, CFaults is generally slower than HSD; however, it localises faults in only 6% fewer circuits, demonstrating that it remains competitive in this domain. Furthermore, CFaults produces only subset-minimal diagnoses of faulty statements, whereas the other approaches tend to enumerate redundant diagnoses (e.g., BugAssist and SNIPER).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。