计算机科学 > 软件工程
[提交于 2011年7月11日 (v1),最后修订于 2011年7月17日 (此版本, v2)]
标题:Towards a Calculus of Object Programs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Verifying properties of object-oriented software requires a method for handling references in a simple and intuitive way, closely related to how O-O programmers reason about their programs. The method presented here, a Calculus of Object Programs, combines four components: compositional logic, a framework for describing program semantics and proving program properties; negative variables to address the specifics of O-O programming, in particular qualified calls; the alias calculus, which determines whether reference expressions can ever have the same value; and the calculus of object structures, a specification technique for the structures that arise during the execution of an object-oriented program. The article illustrates the Calculus by proving the standard algorithm for reversing a linked list.