首页> 外文会议>International Conference on Integrated Formal Methods >A New Invariant Rule for the Analysis of Loops with Non-standard Control Flows
【24h】

A New Invariant Rule for the Analysis of Loops with Non-standard Control Flows

机译:具有非标准控制流的环分析的新不变规则

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

摘要

Invariants are a standard concept for reasoning about unbounded loops since Floyd-Hoare logic in the late 1960s. For real-world languages like Java, loop invariant rules tend to become extremely complex. The main reason is non-standard control flow induced by return, throw, break, and continue statements, possibly combined and nested inside inner loops and try blocks. We propose the concept of a loop scope which gives rise to a new approach for the design of invariant rules. This permits 'sandboxed' deduction-based symbolic execution of loop bodies which in turn allows a modular analysis even of complex loops. Based on the new concept we designed a loop invariant rule for Java that has full language coverage and implemented it in the program verification system KeY. Its main advantages are (1) much increased comprehensibility, which made it considerably easier to argue for its soundness, (2) simpler and easier to understand proof obligations, (3) a substantially decreased number of symbolic execution steps and sizes of resulting proofs in a representative set of experiments. We also show that the new rule, in combination with fully automatic symbolic state merging, realizes even greater proof size reduction and helps to address the state explosion problem of symbolic execution.
机译:自1960年代后期Floyd-Hoare逻辑以来,不变量是推理无界循环的标准概念。对于像Java这样的现实世界语言,循环不变规则往往变得极其复杂。主要原因是由return,throw,break和continue语句引起的非标准控制流,这些语句可能组合并嵌套在内部循环和try块内。我们提出了循环作用域的概念,这为不变规则的设计提出了一种新方法。这允许循环主体基于“沙盒”演绎的符号执行,进而允许对复杂循环进行模块化分析。基于新概念,我们为Java设计了一个循环不变规则,该规则具有完整的语言覆盖范围,并在程序验证系统KeY中实现了该规则。它的主要优点是:(1)可理解性大大提高了,从而使其论据变得更加容易辩驳;(2)证明义务更加简单易懂;(3)大大减少了符号执行步骤的数量和结果证明的大小一组代表性的实验。我们还表明,新规则与全自动符号状态合并相结合,可以实现更大的证明尺寸缩减,并有助于解决符号执行的状态爆炸问题。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号