Download PDF

The 12th International Static Analysis Symposium, Date: 2005/09/07 - 2005/09/09, Location: London, United Kingdom

Publication date: 2005-01-01
Volume: 3672 Pages: 35 - 51
ISBN: 3-540-28584-9, 9783540285847 ISSN: 0302-9743
Publisher: Springer

Lecture Notes in Computer Science

Author:

Bruynooghe, Maurice
Gallagher, John P ; Van Humbeeck, W ; Hankin, C ; Siveroni, I

Keywords:

prolog, Science & Technology, Technology, Computer Science, Theory & Methods, Computer Science

Abstract:

A method is developed to infer a polymorphic well-typing for a logic program. Our motivation is to improve the automation of termination analysis by deriving types from which norms can automatically be constructed. Previous work on type-based termination analysis used either types declared by the user, or automatically generated monomorphic types describing the success set of predicates. The latter types are less precise and result in weaker termination conditions than those obtained from declared types. Our type inference procedure involves solving set constraints generated from the program and derives a well-typing in contrast to a success-set approximation. Experiments so far show that our automatically inferred well-typings axe close to the declared types and result in termination conditions that are as strong as those obtained with declared types. We describe the method, its implementation and experiments with termination analysis based on the inferred types.