Towards an abstract domain for resource analysis of logic programs using sized types

Alejandro Serrano, Pedro López-García, Manuel Hermenegildo

    Research output: Contribution to conferencePaperAcademic

    Abstract

    We present a novel general resource analysis for logic programs based on sized types.Sized types are representations that incorporate structural (shape) information and allow expressing both lower and upper bounds on the size of a set of terms and their subterms at any position and depth. They also allow relating the sizes of terms and subterms occurring at different argument positions in logic predicates. Using these sized types, the resource analysis can infer both lower and upper bounds on the resources used by all the procedures in a program as functions on input term (and subterm) sizes, overcoming limitations of existing analyses and enhancing their precision. Our new resource analysis has been developed within the abstract interpretation framework, as an extension of the sized types abstract domain, and has been integrated into the Ciao preprocessor, CiaoPP. The abstract domain operations are integrated with the setting up and solving of recurrence equations for both, inferring size and resource usage functions. We show that the analysis is an improvement over the previous resource analysis present in CiaoPP and compares well in power to state of the art systems.

    Original languageEnglish
    Publication statusPublished - 1 Jan 2013
    Event23rd Workshop on Logic-Based Methods in Programming Environments, WLPE 2013 - Istanbul, Turkey
    Duration: 24 Aug 2013 → …

    Conference

    Conference23rd Workshop on Logic-Based Methods in Programming Environments, WLPE 2013
    Country/TerritoryTurkey
    CityIstanbul
    Period24/08/13 → …

    Fingerprint

    Dive into the research topics of 'Towards an abstract domain for resource analysis of logic programs using sized types'. Together they form a unique fingerprint.

    Cite this