首页> 外文期刊>Information and computation >A type-based complexity analysis of Object Oriented programs
【24h】

A type-based complexity analysis of Object Oriented programs

机译:面向对象程序的基于类型的复杂度分析

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

摘要

A type system is introduced for a generic Object Oriented programming language in order to infer resource upper bounds. A sound and complete characterization of the set of polynomial time computable functions is obtained. As a consequence, the heap-space and the stack-space requirements of typed programs are also bounded polynomially. This type system is inspired by previous works on Implicit Computational Complexity, using tiering and non-interference techniques. The presented methodology has several advantages. First, it provides explicit big O polynomial upper bounds to the programmer, hence its use could allow the programmer to avoid memory errors. Second, type checking is decidable in polynomial time. Last, it has a good expressivity since it analyzes most object oriented features like inheritance, overload, override and recursion. Moreover it can deal with loops guarded by objects and can also be extended to statements that alter the control flow like break or return. (C) 2018 Elsevier Inc. All rights reserved.
机译:为了推断资源上限,为通用的面向对象的编程语言引入了一种类型系统。获得了对多项式时间可计算函数的完整完整描述。结果,类型化程序的堆空间和堆栈空间需求也被多项式限制。这种类型的系统的灵感来自先前关于隐式计算复杂性的研究,该研究使用分层和非干扰技术。所提出的方法具有几个优点。首先,它为程序员提供了明确的大O多项式上限,因此使用它可以使程序员避免内存错误。其次,类型检查可以在多项式时间内确定。最后,它具有良好的表达能力,因为它可以分析大多数面向对象的功能,例如继承,重载,覆盖和递归。此外,它可以处理由对象保护的循环,还可以扩展到更改控制流(例如中断或返回)的语句。 (C)2018 Elsevier Inc.保留所有权利。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号