Verification of object-oriented programs: A transformational approach

  • Authors:
  • Krzysztof R. Apt;Frank S. de Boer;Ernst-Rüdiger Olderog;Stijn de Gouw

  • Affiliations:
  • Centre for Mathematics and Computer Science (CWI), Amsterdam, The Netherlands and University of Amsterdam, Institute of Language, Logic and Computation, Amsterdam, The Netherlands;Centre for Mathematics and Computer Science (CWI), Amsterdam, The Netherlands and Leiden Institute of Advanced Computer Science, University of Leiden, The Netherlands;Department of Computing Science, University of Oldenburg, Germany;Centre for Mathematics and Computer Science (CWI), Amsterdam, The Netherlands and Leiden Institute of Advanced Computer Science, University of Leiden, The Netherlands

  • Venue:
  • Journal of Computer and System Sciences
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

We show that verification of object-oriented programs by means of the assertional method can be achieved in a simple way by exploiting a syntax-directed transformation from object-oriented programs to recursive programs. This transformation suggests natural proofs rules and its correctness helps us to establish soundness and relative completeness of the proposed proof system. One of the difficulties is how to properly deal in the assertion language with the instance variables and aliasing. The discussed programming language supports arrays, instance variables, failures and recursive methods with parameters. We also explain how the transformational approach can be extended to deal with other features of object-oriented programming, like classes, inheritance, subtyping and dynamic binding.