计算机科学 > 程序设计语言
[提交于 2009年3月12日]
标题:Better Termination for Prolog with Constraints
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Termination properties of actual Prolog systems with constraints are fragile and difficult to analyse. The lack of the occurs-check, moded and overloaded arithmetical evaluation via is/2 and the occasional nontermination of finite domain constraints are all sources for invalidating termination results obtained by current termination analysers that rely on idealized assumptions. In this paper, we present solutions to address these problems on the level of the underlying Prolog system. Improved unification modes meet the requirements of norm based analysers by offering dynamic occurs-check detection. A generalized finite domain solver overcomes the shortcomings of conventional arithmetic without significant runtime overhead. The solver offers unbounded domains, yet propagation always terminates. Our work improves Prolog's termination and makes Prolog a more reliable target for termination and type analysis. It is part of SWI-Prolog since version 5.6.50.
提交历史
来自:Damiano Zanardini[v1] 2009年3月12日 星期四 15:23:38 UTC