Loop checks for logic programs with functions

  • Authors:
  • Yi-Dong Shen;Li-Yan Yuan;Jia-Huai You

  • Affiliations:
  • Chongqing Univ., Chongqing, People's Republic of China;Univ. of Al., Edmonton, Alberta, Canada;Univ. of Al., Edmonton, Alberta, Canada

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2001

Quantified Score

Hi-index 5.23

Visualization

Abstract

Two complete loop checking mechanisms have been presented in the literature for logic programs with functions: OS-check and EVA-check. OS-check is computationally efficient but quite unreliable in that it often misidentifies infinite loops, whereas EVA-check is reliable for a majority of cases but quite expensive. In this paper, we develop a series of new complete loop checking mechanisms, called VAF-checks. The key technique we introduce is the notion of expanded variants, which captures a key structural characteristic of in finite loops. We show that our approach is superior to both OS-check and EVA-check in that it is as efficient as OS-check and as reliable as EVA-check. Copyright 2001 Elsevier Science B.V.