The University of Southampton
University of Southampton Institutional Repository

Program repair as sound optimization of broken programs

Record type: Article

We present a new, semantics-based approach to mechanical program repair where the intended meaning of broken programs (i.e., programs that may abort under a given, error-admitting language semantics) can be defined by a special, error-compensating semantics. Program repair can then become a compile-time, mechanical program transformation based on a program analysis. It turns a given program into one whose evaluations under the error-admitting semantics agree with those of the given program under the error-compensating semantics. We present the analysis and transformation as a type system with a transformation component, following the type-systematic approach to program optimization from our earlier work. The type-systematic method allows for simple soundness proofs of the repairs, based on a relational interpretation of the type system, as well as mechanical transformability of program correctness proofs between the Hoare logics for the error-compensating and error-admitting semantics. We first demonstrate our approach on the repair of file-handling programs with missing or superfluous open and close statements. Our framework shows that this repair is strikingly similar to partial redundancy elimination optimization commonly used by compilers. In a second example, we demonstrate the repair of programs operating a queue that can over- and underflow, including mechanical transformation of program correctness proofs.

Full text not available from this repository.

Citation

Fischer, B., Saabas, A. and Uustalu, T. (2009) Program repair as sound optimization of broken programs 2009 Third IEEE International Symposium on Theoretical Aspects of Software Engineering (TASE), 165-73|xiii+333.

More information

Published date: 2009
Additional Information: Imported from ISI Web of Science
Organisations: Electronic & Software Systems

Identifiers

Local EPrints ID: 270197
URI: http://eprints.soton.ac.uk/id/eprint/270197
PURE UUID: 9869a564-2ede-4ad7-9229-b813a3055737

Catalogue record

Date deposited: 21 Apr 2010 07:46
Last modified: 18 Jul 2017 06:51

Export record

Contributors

Author: B. Fischer
Author: A. Saabas
Author: T. Uustalu

University divisions

Download statistics

Downloads from ePrints over the past year. Other digital versions may also be available to download e.g. from the publisher's website.

View more statistics

Atom RSS 1.0 RSS 2.0

Contact ePrints Soton: eprints@soton.ac.uk

ePrints Soton supports OAI 2.0 with a base URL of http://eprints.soton.ac.uk/cgi/oai2

This repository has been built using EPrints software, developed at the University of Southampton, but available to everyone to use.

We use cookies to ensure that we give you the best experience on our website. If you continue without changing your settings, we will assume that you are happy to receive cookies on the University of Southampton website.

×