arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0512055cs.LOcs.PL
收藏

模态编译器通用逻辑程序的可终止性分析:一种动态方法

Termination Analysis of General Logic Programs for Moded Queries: A Dynamic Approach

Yi-Dong Shen, Danny De Schreye

摘要:

逻辑程序的终止问题可以用静态或动态的方法来解决。静态方法在编译时执行终止分析,而动态方法通过应用循环检查技术来表征和测试逻辑程序的终止。在本文中,我们提出了一种新的动态方法,终止分析一般逻辑程序与模态查询。我们解决了几个有趣的问题,包括如何制定一个SLDNF派生的moded查询,如何表征一个无限的SLDNF派生的moded查询,以及如何应用循环检查机制,以削减无限的SLDNF派生的终止分析的目的。所提出的方法非常强大和有用。它可以用来(1)测试一个逻辑程序是否终止于一个给定的具体或模态查询,(2)测试一个逻辑程序是否终止于所有的具体或模态查询,以及(3)找到所有(最一般的)最有可能终止(或非终止)的具体/模态查询。

英文摘要:

The termination problem of a logic program can be addressed in either a static or a dynamic way. A static approach performs termination analysis at compile time, while a dynamic approach characterizes and tests termination of a logic program by applying a loop checking technique. In this paper, we present a novel dynamic approach to termination analysis for general logic programs with moded queries. We address several interesting questions, including how to formulate an SLDNF-derivation for a moded query, how to characterize an infinite SLDNF-derivation with a moded query, and how to apply a loop checking mechanism to cut infinite SLDNF-derivations for the purpose of termination analysis. The proposed approach is very powerful and useful. It can be used (1) to test if a logic program terminates for a given concrete or moded query, (2) to test if a logic program terminates for all concrete or moded queries, and (3) to find all (most general) concrete/moded queries that are most likely terminating (or non-terminating).

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

↑