Program understanding as constraint satisfaction

Steven Woods*, Qiang Yang

*Corresponding author for this work

Research output: Contribution to conferenceConference Paperpeer-review

7 Citations (Scopus)

Abstract

The process of understanding a source code in a high-level programming language involves complex computation. Given a piece of legacy code and a library of program plan templates, understanding the code corresponds to building mappings from parts of the source code to particular program plans. These mappings could be used to assist an expert in reverse engineering legacy code, to facilitate software reuse, or to assist in the translation of the source into another programming language. In this paper we present a model of program understanding using constraint satisfaction. Within this model we intelligently compose a partial global picture of the source program code by transforming knowledge about the problem domain and the program itself into sets of constraints. We then systematically study different search algorithms and empirically evaluate their performance. One advantage of the constraint satisfaction model is its generality; many previous attempts in program understanding could now be cast under the same spectrum of heuristics, and thus be readily compared. Another advantage is the improvement in search efficiency using various heuristic techniques in constraint satisfaction.

Original languageEnglish
Pages318-327
Number of pages10
Publication statusPublished - 1995
Externally publishedYes
EventProceedings of the 7th International Workshop on Computer-Aided Software Engineering - Toronto, Ont, Can
Duration: 10 Jul 199514 Jul 1995

Conference

ConferenceProceedings of the 7th International Workshop on Computer-Aided Software Engineering
CityToronto, Ont, Can
Period10/07/9514/07/95

Fingerprint

Dive into the research topics of 'Program understanding as constraint satisfaction'. Together they form a unique fingerprint.

Cite this