首页> 外文期刊>Journal of Logic and Algebraic Programming >Automated debugging based on a constraint model of the program and a test case
【24h】

Automated debugging based on a constraint model of the program and a test case

机译:基于程序约束模型和测试用例的自动化调试

获取原文
获取原文并翻译 | 示例
           

摘要

Debugging, i.e., fault localization, in case of a detected failure is a time consuming and intricate task. The automation or at least partial automation of debugging is therefore highly desired. In this paper, we discuss some of the most recent approaches for debugging namely spectrum-based, slicing-based, and model-based debugging. We focus on the latter, and introduce the underlying theory as well as discuss empirical results obtained from our implementation. The model-based approach we present in this paper relies on a constraint representation of a program that is equivalent to the original program in terms of the input-output behavior under some reasonable assumptions. By using constraints for representing programs and subsequently test cases we are able to state the debugging problem as a constraint satisfaction problem that can be effectively solved using a todays constraint solver. The given empirical results indicate that the approach can be used for debugging smaller programs in less than 1 s. Moreover, we briefly compare the three approaches and suggest a combination of them in order to improve the results and the overall necessary running time.
机译:在检测到故障的情况下进行调试即故障定位是一项耗时且复杂的任务。因此,非常需要调试的自动化或至少自动化。在本文中,我们讨论了一些最新的调试方法,即基于频谱的调试,基于切片的调试和基于模型的调试。我们专注于后者,并介绍了基础理论并讨论了从我们的实施中获得的经验结果。在某些合理的假设下,我们在本文中提出的基于模型的方法依赖于程序的约束表示,该程序在输入输出行为方面与原始程序等效。通过使用约束来表示程序和随后的测试用例,我们可以将调试问题声明为可以使用当今的约束求解器有效解决的约束满足问题。给出的经验结果表明,该方法可用于在不到1秒的时间内调试较小的程序。此外,我们简要比较了这三种方法,并建议将它们组合使用,以改善结果和整体所需的运行时间。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号