Download PDF Download PDF

The 9th International Static Analysis Symposium, Date: 2002/09/17 - 2002/09/20, Location: Madrid, Spain

Publication date: 2002-01-01
Volume: 2477 Pages: 477 - 492
ISBN: 3-540-44235-9 ISSN: 0302-9743
Publisher: Springer

Lecture Notes in Computer Science

Author:

Bruynooghe, Maurice
Codish, Michael ; Genaim, Samir ; Vanhoof, Wim ; Hermenegildo, M ; Puebla, G

Keywords:

Science & Technology, Technology, Computer Science, Software Engineering, Computer Science, Theory & Methods, Computer Science

Abstract:

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.