基于大小类型抽象解释的逻辑程序资源使用分析
Resource Usage Analysis of Logic Programs via Abstract Interpretation Using Sized Types
摘要:
提出了一种基于大小类型的逻辑程序通用资源分析方法。大小类型是包含结构(形状)信息的表示,并允许在任何位置和深度表达一组术语及其子术语的大小的下限和上限。它们还允许在逻辑谓词中不同论元位置出现的术语和子术语的大小相关。使用这些大小的类型,资源分析可以推断的下限和上限的资源使用的程序中的所有程序作为输入项(和子项)的大小的函数,克服现有的资源分析的局限性,提高其精度。我们的新资源分析已经开发的抽象解释框架内,作为大小类型抽象域的扩展,并已集成到Ciao预处理器,CiaoPP。抽象域操作集成的递归方程的建立和求解,用于推断大小和资源使用函数。我们表明,该分析是一个改进,在CiaoPP目前的资源分析和比较以及功率的最先进的系统。
英文摘要:
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 abstract domain operations are integrated with the setting up and solving of recurrence equations for inferring both 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。