arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1109.3256cs.PLcs.LO
收藏

用算术分析逻辑程序的非终止性

Non-termination Analysis of Logic Programs with Integer arithmetics

Dean Voets, Danny De Schreye

摘要:

在过去的几年中,分析器已被引入到检测类的非终止查询的明确的逻辑程序。虽然这些非终止性分析器已经被证明是相当精确的,但它们在现实生活中的Prolog程序上的适用性是有限的,因为大多数Prolog程序使用非逻辑功能。作为分析Prolog程序的第一步,本文给出了含整数运算的逻辑程序的不可终止条件。该分析仪基于我们在ICLP 2009上展示的非终止分析仪。分析从一类查询开始,并推断出一个子类的非终止的。在第一阶段,我们忽略算术运算的结果(成功或失败),假设所有算术调用都成功。在第二阶段中,我们成功的算术调用的特点作为一个约束问题,其解决方案确定的非终止查询。

英文摘要:

In the past years, analyzers have been introduced to detect classes of non-terminating queries for definite logic programs. Although these non-termination analyzers have shown to be rather precise, their applicability on real-life Prolog programs is limited because most Prolog programs use non-logical features. As a first step towards the analysis of Prolog programs, this paper presents a non-termination condition for Logic Programs containing integer arithmetics. The analyzer is based on our non-termination analyzer presented at ICLP 2009. The analysis starts from a class of queries and infers a subclass of non-terminating ones. In a first phase, we ignore the outcome (success or failure) of the arithmetic operations, assuming success of all arithmetic calls. In a second phase, we characterize successful arithmetic calls as a constraint problem, the solution of which determines the non-terminating queries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑