Reuse of Results in Termination Analysis of Typed Logic Programs
Author(s) -
Maurice Bruynooghe,
Michael Codish,
Samir Genaim,
Wim Vanhoof
Publication year - 2002
Publication title -
lecture notes in computer science
Language(s) - English
Resource type - Book series
SCImago Journal Rank - 0.249
H-Index - 400
eISSN - 1611-3349
pISSN - 0302-9743
ISBN - 3-540-44235-9
DOI - 10.1007/3-540-45789-5_33
Subject(s) - reuse , computer science , component (thermodynamics) , type (biology) , norm (philosophy) , programming language , context (archaeology) , theoretical computer science , program analysis , static analysis , algorithm , political science , law , physics , thermodynamics , biology , paleontology , ecology
Recent works by the authors address the problem of automating the selection of a candidate norm for the purpose of termination analysis. These works illustrate a powerful technique in which a collection of simple type-based norms, one for each data type in the program, are combined together to provide the candidate norm. This paper extends these results by investigating type polymorphism. We show that by considering polymorphic types we reduce, without sacrificing precision, the number of type-based norms which should be combined to provide the candidate norm. Moreover, we show that when a generic polymorphic typed program component occurs in one or more specific type contexts, we need not reanalyze it. All of the information concerning its termination and its effect on the termination of other predicates in that context can be derived directly from the context independent analysis of that component based on norms derived from the polymorphic types.status: publishe
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom