A precise type analysis of logic programs

  • Authors:
  • Lunjin Lu

  • Affiliations:
  • Department of Computer Science and Engineering, The Oakland University, Rochester, MI

  • Venue:
  • Proceedings of the 2nd ACM SIGPLAN international conference on Principles and practice of declarative programming
  • Year:
  • 2000

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper presents a new type analysis for logic programs. Thetype information in a set of substitutions is described by adisjunction of variable typings each of which maps a variable to anon-deterministic regular type. The use of non-deterministicregular types, set union and intersection operators, anddisjunctions of variable typings makes the new type analysis moreprecise than those found in the literature. Experimental results onthe performance of the new analysis are given together withcomparable results from an existing type analysis. The fundamentalproblem of checking the emptiness of non-deterministic regulartypes is more complex in the new analysis. The experimentalresults, however, show that careful use of tabling reduces theeffect to an average of 15% of execution time on a set ofbenchmarks.