计算机科学 > 程序设计语言
[提交于 2018年2月19日]
标题:A Type-Based Complexity Analysis of Object Oriented Programs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A type system is introduced for a generic Object Oriented programming language in order to infer resource upper bounds. A sound andcomplete characterization of the set of polynomial time computable functions is obtained. As a consequence, the heap-space and thestack-space requirements of typed programs are also bounded polynomially. This type system is inspired by previous works on ImplicitComputational Complexity, using tiering and non-interference techniques. The presented methodology has several advantages. First, itprovides 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 featureslike inheritance, overload, override and recursion. Moreover it can deal with loops guarded by objects and can also be extended tostatements that alter the control flow like break or return.
提交历史
来自:Emmanuel Hainry[v1] 2018年2月19日 星期一 14:46:36 UTC