Program understanding as constraint satisfaction
- 19 November 2002
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 318-327
- https://doi.org/10.1109/case.1995.465302
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.<>Keywords
This publication has 13 references indexed in Scilit:
- A memory-based approach to recognizing programming plansCommunications of the ACM, 1994
- A generic arc-consistency algorithm and its specializationsArtificial Intelligence, 1992
- Automated Program Recognition by Graph ParsingPublished by Defense Technical Information Center (DTIC) ,1992
- Automated program recognitionArtificial Intelligence, 1990
- An optimal k-consistency algorithmArtificial Intelligence, 1989
- Constraint satisfaction algorithms1Computational Intelligence, 1989
- Arc and path consistency revisitedArtificial Intelligence, 1986
- Hierarchical arc consistency: exploiting structured domains in constraint satisfaction problemsComputational Intelligence, 1985
- A Sufficient Condition for Backtrack-Free SearchJournal of the ACM, 1982
- Consistency in networks of relationsArtificial Intelligence, 1977