【24h】

Constraint-Based Program Debugging Using Data Structure Repair

机译:使用数据结构修复的基于约束的程序调试

获取原文
获取外文期刊封面目录资料

摘要

Developers have used data structure repair over the last few decades as an effective means to recover on-the-fly from errors in program state. Traditional repair techniques were based on dedicated repair routines, whereas more recent techniques have used invariants that describe desired structural properties as the basis for repair. All repair techniques are designed with one primary goal: run-time error recovery. However, the actions that any such technique performs to repair an erroneous program state are meant to produce the effect of the actions of a (hypothetical) correct program. The key insight in this paper is that repair actions on the program state can guide debugging of code (when the erroneous program execution is due to a fault in the program and not an external event).This paper presents an approach that abstracts concrete repair actions that a routine performs to repair an erroneous state into a sequence of program statements that perform the same actions using variables visible in the scope of the faulty code. Thus, appending the generated statements to the original code is akin to performing the repair from within the program. Our implementation uses the Juzi data structure repair tool as an enabling technology. Experimental results using a library data structure as well as two applications demonstrate the effectiveness of our approach in enabling repair of faulty code.
机译:在过去的几十年中,开发人员一直在使用数据结构修复作为从程序状态错误中即时恢复的有效手段。传统的修复技术是基于专用的修复程序,而最近的技术已使用描述所需结构特性的不变量作为修复的基础。设计所有修复技术的主要目的是:运行时错误恢复。但是,任何此类技术为修复错误的程序状态而执行的动作均旨在产生(假设的)正确程序的动作效果。本文的主要见解是,对程序状态的修复措施可以指导代码的调试(当错误的程序执行是由于程序中的错误而不是外部事件引起的)。本文提出了一种抽象具体修复措施的方法例程执行将错误状态修复为一系列程序语句的程序,这些程序语句使用故障代码范围内可见的变量执行相同的操作。因此,将生成的语句附加到原始代码类似于从程序内部执行修复。我们的实现使用Juzi数据结构修复工具作为支持技术。使用库数据结构以及两个应用程序进行的实验结果证明了我们的方法在修复错误代码方面的有效性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号