z-logo
open-access-imgOpen Access
Representation dependence testing using program inversion
Author(s) -
Aditya Kanade,
Rajeev Alur,
Sriram K. Rajamani,
Ganesan Ramanlingam
Publication year - 2010
Publication title -
scholarlycommons (university of pennsylvania)
Language(s) - English
Resource type - Conference proceedings
DOI - 10.1145/1882291.1882332
Subject(s) - normalization (sociology) , computer science , equivalence (formal languages) , representation (politics) , inverse , inversion (geology) , software , algorithm , theoretical computer science , canonical form , data mining , programming language , mathematics , discrete mathematics , paleontology , geometry , structural basin , sociology , politics , anthropology , political science , pure mathematics , law , biology
The definition of a data structure may permit many different concrete representations of the same logical content. A (client) program that accepts such a data structure as input is said to have a representation dependence if its behavior differs for logically equivalent input values. In this paper, we present a methodology and tool for automated testing of clients of a data structure for representation dependence. In the proposed methodology, the developer expresses the logical equivalence by writing a normalization program f that maps each concrete representation to a canonical one. Our solution relies on automatically synthesizing the one-to-many inverse function of f: given an input value x, we can generate multiple test inputs logically equivalent to x by executing the inverse with the canonical value f(x) as input repeatedly. We present an inversion algorithm for restricted classes of normalization programs including programs mapping arrays to arrays in a typical iterative manner. We present a prototype implementation of the algorithm, and demonstrate how our methodology reveals bugs due to representation dependence in open source software such as Open Office and Picasa using the widely used image format TIFF. TIFF is a challenging case study for our approach.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom