首页> 外文OA文献 >Automatically Generating Loop Invariants Using Quantifier Elimination
【2h】

Automatically Generating Loop Invariants Using Quantifier Elimination

机译:使用量词消除自动生成循环不变量

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

An approach for automatically generating loop invariants usingquantifier-elimination is proposed. An invariant of a loop is hypothesized asa parameterized formula. Parameters in the invariant are discovered by generatingconstraints on the parameters by ensuring that the formula is indeedpreserved by the execution path corresponding to every basic cycle of the loop.The parameterized formula can be successively refined by considering executionpaths one by one; heuristics can be developed for determining the order inwhich the paths are considered. Initialization of program variables as well asthe precondition and postcondition of the loop, if available, can also be usedto further refine the hypothesized invariant. Constraints on parameters generatedin this way are solved for possible values of parameters. If no solution ispossible, this means that an invariant of the hypothesized form does not existfor the loop. Otherwise, if the parametric constraints are solvable, then undercertain conditions on methods for generating these constraints, the strongestpossible invariant of the hypothesized form can be generated from most generalsolutions of the parametric constraints. The approach is illustrated using thefirst-order theory of polynomial equations as well as Presburger arithmetic.
机译:提出了一种利用量化器消除自动生成循环不变式的方法。将循环的不变性假设为参数化公式。通过确保公式确实由与循环的每个基本周期相对应的执行路径保留,从而对参数生成约束,从而发现不变式中的参数。可以通过逐个考虑执行路径来依次细化参数化公式;可以开发启发式方法来确定考虑路径的顺序。程序变量的初始化以及循环的前置条件和后置条件(如果可用)也可以用于进一步完善假设的不变式。解决了以此方式生成的参数约束,以获取可能的参数值。如果没有解决方案是不可能的,则意味着对于循环,不存在假设形式的不变式。否则,如果参数约束是可解的,则在生成这些约束的方法的条件不确定的情况下,可以从参数约束的大多数一般解生成假设形式的最强可能不变性。使用多项式方程的一阶理论以及Presburger算术对这种方法进行了说明。

著录项

  • 作者

    Kapur Deepak;

  • 作者单位
  • 年度 2006
  • 总页数
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号