【24h】

Alternative Methods in Proving Loop Termination

机译:证明环路终止的替代方法

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

The usual formal criterion for establishing termination of a loop requires that the programmer define an integer function t (a "bound function") of program variables whose value is bounded below by 1, as long as termination has not occurred, and whose value decreases by at least 1 on each loop iteration. This method is defined in [1], [2], [4], [5], [6], [7], as well as in other literature in the field of formal methods. While the criterion in this well-defined method is often rather straightforward to apply, it is sometimes very difficult to define the bound function, even though, at least for the deterministic case, such a function always exists for a terminating loop. A recent attempt in [8] to prove loop termination without using a bound function still leaves some cases very difficult to solve.rnIn this paper, we will discuss how to prove loop termination by using alternative methods. First we will show how to prove loop termination by solving a recursive relation that defines the number of iterations remaining in any execution state. Then we will illustrate a more general criterion that can be used for proving loop termination. The new criterion is a generalization of the classical one. This paper does not intend to offer a one-size-fits-all approach. Instead, it provides some alternative methods that make proving loop termination easier in some cases which might otherwise be difficult if not impossible to prove.
机译:建立循环终止的通常形式标准要求程序员定义程序变量的整数函数t(“绑定函数”),只要没有发生终止,其值就限制在1以下,并且其值减小1。每次循环迭代中至少1个。在[1],[2],[4],[5],[6],[7]以及形式化方法领域的其他文献中定义了这种方法。尽管这种定义良好的方法中的准则通常很容易应用,但是有时有时很难定义绑定函数,尽管至少对于确定性情况而言,这样的函数始终存在于终止循环中。 [8]中最近的尝试在不使用绑定函数的情况下证明循环终止的问题仍然很难解决。在本文中,我们将讨论如何使用替代方法来证明循环终止。首先,我们将展示如何通过解决定义任何执行状态下剩余迭代次数的递归关系来证明循环终止。然后,我们将说明可用于证明回路终止的更通用的标准。新标准是对经典标准的概括。本文无意提供一种万能的方法。取而代之的是,它提供了一些替代方法,这些方法在某些情况下使循环终止的证明更加容易,否则,即使不是不可能证明的话,也可能很难。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号