首页> 外文会议>Annual IEEE/IFIP International Conference on Dependable Systems and Networks >PreInfer: Automatic Inference of Preconditions via Symbolic Analysis
【24h】

PreInfer: Automatic Inference of Preconditions via Symbolic Analysis

机译:PreInfer:通过符号分析自动推断前提条件

获取原文

摘要

When tests fail (e.g., throwing uncaught exceptions), automatically inferred preconditions can bring various debugging benefits to developers. If illegal inputs cause tests to fail, developers can directly insert the preconditions in the method under test to improve its robustness. If legal inputs cause tests to fail, developers can use the preconditions to infer failure-inducing conditions. To automatically infer preconditions for better support of debugging, in this paper, we propose PREINFER, a novel approach that aims to infer accurate and concise preconditions based on symbolic analysis. Specifically, PREINFER includes two novel techniques that prune irrelevant predicates in path conditions collected from failing tests, and that generalize predicates involving collection elements (i.e., array elements) to infer desirable quantified preconditions. Our evaluation on two benchmark suites and two real-world open-source projects shows PREINFER's high effectiveness on precondition inference and its superiority over related approaches.
机译:如果测试失败(例如引发未捕获的异常),则自动推断出的前提条件可以为开发人员带来各种调试优势。如果非法输入导致测试失败,则开发人员可以直接在测试方法中插入前提条件,以提高其健壮性。如果合法输入导致测试失败,则开发人员可以使用前提条件来推断导致失败的条件。为了自动推断前提条件以更好地支持调试,在本文中,我们提出了PREINFER,这是一种新颖的方法,旨在基于符号分析推断准确而简洁的前提条件。具体而言,PREINFER包括两种新颖的技术,它们可以对从失败的测试中收集的路径条件中的无关谓词进行修剪,并概括涉及集合元素(即数组元素)的谓词以推断出所需的量化前提条件。我们对两个基准套件和两个现实世界的开放源代码项目的评估表明,PREINFER在前提条件推断方面具有很高的效率,并且比相关方法更具优势。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号