Download PDF

ACM transactions on programming languages and systems

Publication date: 1996-09-01
Volume: 18 Pages: 564 - 614
ISSN: 0164-0925
Publisher: Association for Computing Machinery

Author:

Garcia de la Banda, Maria
Hermenegildo, Manuel ; Bruynooghe, Maurice ; Dumortier, Veroniek ; Janssens, Gerda ; Simoens, Wim

Keywords:

languages, abstract interpretation, constraint logic programming, global program analysis, program analysis, data-flow analysis, abstract interpretation algorithms, 2 optimization techniques, clp r, prolog, independence, framework, inference, variables, Science & Technology, Technology, Computer Science, Software Engineering, Computer Science, DATA-FLOW ANALYSIS, ABSTRACT INTERPRETATION ALGORITHMS, 2 OPTIMIZATION TECHNIQUES, CLP R, PROLOG, INDEPENDENCE, FRAMEWORK, INFERENCE, VARIABLES, 0803 Computer Software, 0806 Information Systems, Software Engineering, 4606 Distributed computing and systems software, 4612 Software engineering

Abstract:

This article presents and illustrates a practical approach to the dataflow analysis of constraint logic programming languages using abstract interpretation. It is first argued that, from the framework point of view, it suffices to propose relatively simple extensions of traditional analysis methods which have already been proved useful and practical and for which efficient fixpoint algorithms exist. This is shown by proposing a simple extension of Bruynooghe's traditional framework which allows it to analyze constraint logic programs. Then, and using this generalized framework, two abstract domains and their required abstract functions are presented: the first abstract domain approximates definiteness information and the second one freeness. Finally, an approach for combining those domains is proposed. The two domains and their combination have been implemented and used in the analysis of CLP(R) and Prolog-III applications. Results from this implementation showing its performance and accuracy are also presented.