LIVE-STRUCTURE DATA-FLOW ANALYSIS FOR PROLOG

Citation
A. Mulkers et al., LIVE-STRUCTURE DATA-FLOW ANALYSIS FOR PROLOG, ACM transactions on programming languages and systems, 16(2), 1994, pp. 205-258
Citations number
63
Categorie Soggetti
Computer Sciences","Computer Science Software Graphycs Programming
ISSN journal
01640925
Volume
16
Issue
2
Year of publication
1994
Pages
205 - 258
Database
ISI
SICI code
0164-0925(1994)16:2<205:LDAFP>2.0.ZU;2-5
Abstract
For the class of applicative programming languages, efficient methods for reclaiming the memory occupied by released data structures constit ute an important aspect of current implementations. The present articl e addresses the problem of memory reuse for logic programs through pro gram analysis rather than by run-time garbage collection. The aim is t o derive run-time properties that can be used at compile time to speci alize the target code for a program according to a given set of querie s and to automatically introduce destructive assignments in a safe and transparent way so that fewer garbage cells are created. The dataflow analysis is constructed as an application of abstract interpretation for logic programs. An abstract domain for describing structure-sharin g and liveness properties is developed as are primitive operations tha t guarantee a sound and terminating global analysis. We explain our mo tivation for the design of the abstract domain, make explicit the unde rlying implementation assumptions, and discuss the precision of the re sults obtained by a prototype analyzer.