Resource Usage Analysis of Logic Programs via Abstract Interpretation Using Sized Types
Alejandro Serrano, Pedro Lopez-Garcia, Manuel V. Hermenegildo

TL;DR
This paper introduces a new resource analysis method for logic programs using sized types within abstract interpretation, enabling precise bounds on resource usage based on input term sizes, and improves upon existing analyses in CiaoPP.
Contribution
It presents a novel resource analysis framework using sized types and abstract interpretation, enhancing precision and expressiveness over previous methods.
Findings
Improves resource bound inference accuracy.
Integrates size and resource analysis in CiaoPP.
Performs well compared to state-of-the-art systems.
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 resource 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
