首页> 外文会议>38th annual ACM SIGPLAN-SIGACT symposium on principles of programming languages 2011 >Verifying Higher-Order Functional Programs with Pattern-Matching Algebraic Data Types
【24h】

Verifying Higher-Order Functional Programs with Pattern-Matching Algebraic Data Types

机译:使用模式匹配代数数据类型验证高阶功能程序

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

摘要

Type-based model checking algorithms for higher-order recursion schemes have recently emerged as a promising approach to the verification of functional programs. We introduce pattern-matching recursion schemes (PMRS) as an accurate model of computation for functional programs that manipulate algebraic data-types. PMRS are a natural extension of higher-order recursion schemes that incorporate pattern-matching in the defining rules. This paper is concerned with the following (undecidable) verification problem: given a correctness property , a functional program V (qua PMRS) and a regular input set 1, does every term that is reachable from Z under rewriting by V satisfy y?? To solve the PMRS verification problem, we present a sound semi-algorithm which is based on model-checking and counterexample guided abstraction refinement. Given a no-instance of the verification problem, the method is guaranteed to terminate. From an order-n PMRS and an input set generated by a regular tree grammar, our method constructs an order-n weak PMRS which over-approximates only the first-order pattern-matching behaviour, whilst remaining completely faithful to the higher-order control flow. Using a variation of Kobayashi's type-based approach, we show that the (trivial automaton) model-checking problem for weak PMRS is decidable. When a violation of the property is detected in the abstraction which does not correspond to a violation in the model, the abstraction is automatically refined by 'unfolding' the pattern-matching rules in the program to give successively more and more accurate weak PMRS models.
机译:最近,针对高阶递归方案的基于类型的模型检查算法已经成为一种验证功能程序的有前途的方法。我们引入模式匹配递归方案(PMRS),作为处理代数数据类型的功能程序的精确计算模型。 PMRS是对在定义规则中包含模式匹配的高阶递归方案的自然扩展。本文涉及以下(不确定的)验证问题:给定正确性

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号