Automatic mode inference for logic programs
In general, logic programs are undirected, i.e., there is no concept of ``input and ``output arguments to a procedure. An argument may be used either as an input or as an output argument, and programs may be executed either in a ``forward direction or in a ``backward direction. However, it is often the case that in a given program, a predicate is used with some of its arguments used consistently as input arguments and others as output arguments. Such mode information can be used by a compiler to effect various optimizations. This paper considers the problem of automatically inferring the modes of the predicates in a program. The dataflow analysis we use is more powerful than approaches relying on syntactic characteristics of programs. Our work differs from that of \textit{C. S. Mellish} [ibid. 2, 43-66 (1985; Zbl 0575.68003)] in that (1) we give a sound and efficient treatment of variable aliasing in mode inference; (2) by propagating instantiation information using state transformations rather than through dependencies between variables, we achieve greater precision in the treatment of unification, e.g. through \(=/2\); and (3) we describe an effttribute records on several disks so as to achieve high degree of concurrency of disk access when responding to partial match queries. An algorithm to distribute a set of multi-attribute records onto different disks is presented. Since our allocation method will use the principle component analysis, the concept is first introduced. We then use it to generate a set of real numbes which are the projections on the first principal component direction and can be viewed as hashing addresses. Then we propose an algorithm based upon these hashing addresses to allocate multi-attribute records onto different disks. Some experimental results show that our method can indeed be used to solve the multi-disk data allocation problem for concurrent accessing.
- Mode analysis domains for typed logic programs
- Sequentialization of parallel logic programs with mode analysis
- Efficient dataflow analysis of logic programs
- Automatic inference of determinacy and mutual exclusion for logic programs using mode and type analyses
- Determinacy analysis for logic programs using mode and type information
- Type inference in Prolog: A new approach
- From LCF to Isabelle/HOL
- Optimization schemas for parallel implementation of non-deterministic languages and systems
- An improved proof-theoretic compilation of logic programs
- On the complexity of dataflow analysis of logic programs
- A mode analysis of logic programs by abstract interpretation
- Derivation of efficient logic programs by specialization and reduction of nondeterminism
- Termination of narrowing via termination of rewriting
- Automatic inference of determinacy and mutual exclusion for logic programs using mode and type analyses
This page was built for publication: Automatic mode inference for logic programs
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3792215)