Presburger可定义参数化类型状态
Presburger-Definable Parameterized Typestates
摘要:
与可以捕获数据和程序的静态结构属性的普通类型相比,类型状态擅长捕获程序的动态状态。虽然很有用,但类型状态只适合于指定和验证使用有限状态抽象定义的程序属性。程序的许多有用的动态性质不是有限状态可定义的。为了解决这些问题,我们引入了参数化的类型状态(p-typestates)。p-typestates将逻辑属性与常规typestate的每个状态相关联,从而允许属性的规范超出有限状态抽象。我们提出了一个依赖类型系统来表达和验证p-typestate属性和面向类型状态的核心程序设计语言,将这些依赖类型。p-typestate属性的自动归纳类型检查通常需要程序员提供循环不变式作为注释。在这里,我们提出了一种方法来计算循环不变量自动,使用循环加速技术Presburger可定义的过渡系统。\keywords{Programming Languages, Typestates, Dependent Types, Non-Regular Program Properties, Verification, Loop Invariants}
英文摘要:
Typestates are good at capturing dynamic states of a program as compared to normal types that can capture static structural properties of data and program. Although useful, typestates are suitable only for specifying and verifying program properties defined using finite-state abstractions. Many useful dynamic properties of programs are not finite-state definable. To address these issues, we introduce parameterized typestates (p-typestates). p-typestates associate a logical property with each state of regular typestate, thereby allowing specification of properties beyond finite-state abstractions. We present a dependent type system to express and verify p-typestate properties and a typestate-oriented core programming language incorporating these dependent types. Automatic inductive type-checking of p-typestate properties usually requires a programmer to provide loop invariants as annotations. Here we propose a way to calculate loop invariants automatically, using loop acceleration techniques for Presburger definable transition systems. \keywords{Programming Languages, Typestates, Dependent Types, Non-Regular Program Properties, Verification, Loop Invariants}
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。