首页> 外文OA文献 >One Right Does Make a Wrong
【2h】

One Right Does Make a Wrong

机译:一错做错

摘要

Algorithmic debugging is a semi-automatic method for locating bugs in programs. An algorithmic debugger asks a user a series of questions about the intended behaviour of the program. Here we present two new methods that reduces the number of questions a user must answer to locate a bug. First, we describe a heuristic based on comparing computations of the same program with different inputs. Besides a computation that exhibits some erroneous behaviour, we use information from computations that produce correct results. The heuristic uses program slices to identify areas of code that are likely to be correct. Secondly, we describe a method of compressing the search tree that guides the questions of an algorithmic debugger. This compression is particularly successful when used in combination with our heuristic. Both heuristic and tree-compression are applicable to algorithmic debugging in general. We have implemented it for locating bugs in Haskell programs.
机译:算法调试是一种用于在程序中定位错误的半自动方法。算法调试器向用户询问有关程序预期行为的一系列问题。在这里,我们提出了两种新方法,它们减少了用户查找错误所必须回答的问题数量。首先,我们描述一种启发式方法,它基于比较相同程序与不同输入的计算。除了表现出某些错误行为的计算外,我们还使用产生正确结果的计算信息。启发式方法使用程序片来标识可能正确的代码区域。其次,我们描述了一种压缩搜索树的方法,该方法指导了算法调试器的问题。当与我们的启发式方法结合使用时,这种压缩特别成功。启发式和树压缩一般都适用于算法调试。我们已经实现它来定位Haskell程序中的错误。

著录项

  • 作者

    Davie Thomas; Chitil Olaf;

  • 作者单位
  • 年度 2006
  • 总页数
  • 原文格式 PDF
  • 正文语种 {"code":"en","name":"English","id":9}
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号