...
首页> 外文期刊>Acta Informatica >Automata-based verification of programs with tree updates
【24h】

Automata-based verification of programs with tree updates

机译:基于自动机的树更新程序验证

获取原文
获取原文并翻译 | 示例
           

摘要

This paper describes a verification framework for Hoare-style pre- and post-conditions of programs manipulating balanced tree-like data structures. Since the considered verification problem is undecidable, we appeal to the standard semi-algorithmic approach in which the user has to provide loop invariants, which are then automatically checked, together with the program pre- and post-conditions. We specify sets of program states, representing tree-like memory configurations, using Tree Automata with Size Constraints (TASC). The main advantage of this new class of tree automata is that they recognise tree languages based on arithmetic reasoning about the lengths of various (possibly all) paths in trees, like, e.g., in AVL trees or red-black trees. TASCs are closed under union, intersection, and complement, and their emptiness problem is decidable. Thus we obtain a class of automata which are an interesting theoretical contribution by itself. Further, we show that, under few restrictions, one can automatically compute the effect of tree-updating program statements on the set of configurations represented by a TASC, which makes TASC a practical verification tool. We tried out our approach on the insertion procedure for red-black trees, for which we verified that the output on an arbitrary balanced red-black tree is also a balanced red-black tree. [PUBLICATION ABSTRACT]
机译:本文介绍了一种用于处理平衡树状数据结构的程序的Hoare风格前置条件和后置条件的验证框架。由于所考虑的验证问题无法确定,因此我们呼吁采用标准的半算法方法,在该方法中,用户必须提供循环不变式,然后将其与程序的前置条件和后置条件一起自动进行检查。我们使用带有大小约束的树自动机(TASC)指定代表树状内存配置的程序状态集。这类新的树自动机的主要优点是,它们基于算术推理来识别树语言,这些算术推理涉及树中各种路径(可能是所有路径)的长度,例如AVL树或红黑树。 TASC在并集,交集和补集下是封闭的,其空性问题是可以确定的。因此,我们获得了一类自动机,它本身就是一个有趣的理论贡献。此外,我们表明,在极少的限制下,可以自动计算树更新程序语句对以TASC表示的配置集的影响,这使TASC成为一种实用的验证工具。我们尝试了红黑树插入过程的方法,为此我们验证了任意平衡的红黑树的输出也是平衡的红黑树。 [出版物摘要]

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号