AWeakest Precondition Semantics for OO Languages : An OO-Separation Logic Approach
Quan Long,Qiu Zongyan,Wang Shuling
2006-01-01
Abstract:In recent years, many researchers in the programming language and formal methods communities have been investigating weakest precondition (WP) semantics for object-oriented (OO) programs. Based on a modified version of Separation Logic, OO Separation Logic, we develop in this article a WP semantics for an OO language with most important object-oriented features including subtypes, visibility, inheritance, dynamic binding and reference types. Giving a clear comparison to existing work, we conclude that the WP semantics defined here captures the essentials of object-orientation. Further, in the WP semantic model, we define program transformation in terms of refinement. With some case studies, we show that, supported by the semantics defined, it is easier to model many practical program transformations in a reasonable way. keywords: Object Orientation, Weakest Precondition, Separation Logic, Semantics, Refinement