Sized Type Analysis for Logic Programs (Technical Communication)


Autoria(s): Serrano Mena, Alejandro; López García, Pedro; Bueno Carrillo, Francisco; Hermenegildo, Manuel V.
Data(s)

01/07/2013

Resumo

We present a novel analysis for relating the sizes of terms and subterms occurring at diferent argument positions in logic predicates. We extend and enrich the concept of sized type as a representation that incorporates structural (shape) information and allows expressing both lower and upper bounds on the size of a set of terms and their subterms at any position and depth. For example, expressing bounds on the length of lists of numbers, together with bounds on the values of all of their elements. The analysis is developed using abstract interpretation and the novel abstract operations are based on setting up and solving recurrence relations between sized types. It has been integrated, together with novel resource usage and cardinality analyses, in the abstract interpretation framework in the Ciao preprocessor, CiaoPP, in order to assess both the accuracy of the new size analysis and its usefulness in the resource usage estimation application. We show that the proposed sized types are a substantial improvement over the previous size analyses present in CiaoPP, and also benefit the resource analysis considerably, allowing the inference of equal or better bounds than comparable state of the art systems.

Formato

application/pdf

Identificador

http://oa.upm.es/29548/

Idioma(s)

eng

Publicador

E.T.S. de Ingenieros Informáticos (UPM)

Relação

http://oa.upm.es/29548/1/29548_Hermenegildo_INVE_MEM_2013_169721.pdf

http://journals.cambridge.org/action/displayIssue?jid=TLP&volumeId=13&seriesId=0&issueId=4-5

Direitos

http://creativecommons.org/licenses/by-nc-nd/3.0/es/

info:eu-repo/semantics/openAccess

Fonte

Theory and Practice of Logic Programming, ISSN 1471-0684, 2013-07, Vol. 13, No. 4-5 (S

Palavras-Chave #Informática
Tipo

info:eu-repo/semantics/article

Artículo

PeerReviewed