Verifying safety policies with size properties and alias controls

Wei-Ngan Chin, Siau-Cheng Khoo, Shengchao Qin, Corneliu Popeea, Huu Hai Nguyen

Research output: Chapter in Book/Report/Conference proceedingConference contribution

142 Downloads (Pure)

Abstract

Many software properties can be analysed through a relational size analysis on each function’s inputs and outputs. Such relational analysis (through a form of dependent typing) has been successfully applied to declarative programs, and to restricted imperative programs; but it has been elusive for object-based programs. The main challenge is that objects may mutate and they may be aliased. In this paper, we show how safety policies of programs can be analysed by tracking size properties of objects and be enforced by objects’ invariants and the preconditions of methods. We propose several new ideas to allow both mutability and sharing of objects, whilst aiming for precision in our analysis. We introduce the concept of size-immutability to facilitate sharing, and also a set of alias controls to track unaliased objects whose size properties may change. We formalise our results through a set of advanced type checking rules for an object-based imperative language. We re-affirm the utility of the proposed type system by showing how a variety of software properties can be automatically verified according to size-inspired safety policies.
Original languageEnglish
Title of host publicationProceedings - 27th international conference on software engineering
Place of PublicationNew York
PublisherACM
Pages186-195
DOIs
Publication statusPublished - 2005
Event27th International Conference on Software Engineering - St. Louis, United States
Duration: 15 May 200521 May 2005

Conference

Conference27th International Conference on Software Engineering
Abbreviated titleICSE05
Country/TerritoryUnited States
CitySt. Louis
Period15/05/0521/05/05

Bibliographical note

ACM allows authors' version of their own ACM-copyrighted work on their personal servers or on servers belonging to their employers.

Cite this