This paper presents a new type analysis for logic programs. The type information in a set of substitutions is described by a disjunction of variable typings each of which maps a variable to a non-deterministic regular type. The use of non-deterministic regular types, set union and intersection operators, and disjunctions of variable typings makes the new type analysis more precise than those found in the literature. Experimental results on the performance of the new analysis are given together with comparable results from an existing type analysis. The fundamental problem of checking the emptiness of non-deterministic regular types is more complex in the new analysis. The experimental results, however, show that careful use of tabling reduces the effect to an average of 15% of execution time on a set of benchmarks.
CITATION STYLE
Lu, L. (2000). A precise type analysis of logic programs. In Proceedings of the 2nd International ACM SIGPLAN Conference on Principles and Practice of Declarative Programming (pp. 214–225). Association for Computing Machinery (ACM). https://doi.org/10.1145/351268.351293
Mendeley helps you to discover research relevant for your work.