Affiliation:
1. Department of Computer Science, KU Leuven, Celestijnenlaan 200A, 3001, Heverlee, Belgium
Abstract
Abstract
We provide an approach to formally analyze the computational behavior of coroutines in logic programs and to compile these computations into new programs, not requiring any support for coroutines. The problem was already studied near to 30 years ago, in an analysis and transformation technique called compiling control. However, this technique had a strong ad hoc flavor: the completeness of the analysis was not well understood and its symbolic evaluation was also rather ad hoc. We show how abstract conjunctive partial deduction, introduced by Leuschel in 2004, provides an appropriate setting to redefine compiling control. We define an abstract domain and all abstract operations required by abstract conjunctive partial deduction. We prove that these concepts satisfy all the correctness conditions imposed by the framework and therefore inherit its main correctness theorem. We also show that there exist more complex coroutining examples which do not fit within abstract conjunctive partial deduction and we propose some further extensions to include them.
Funder
Fonds Wetenschappelijk Onderzoek
Publisher
Association for Computing Machinery (ACM)
Subject
Theoretical Computer Science,Software
Reference27 articles.
1. Boulanger D Bruynooghe M De Schreye D (1993) Compiling control revisited: a new approach based upon abstract interpretation for constraint logic programs. In: Proceedings of the 5th workshop on logic programming environments (LPE 1993) October 29–30 1993 in conjunction with ILPS 1993 Vancouver British Columbia Canada pp 39–51
2. Bruynooghe M De Schreye D Krekels B (1986) Compiling control. In: Proceedings of the 1986 symposium on logic programming pp 70–77 Salt Lake City. IEEE Society Press
3. Compiling control
4. A practical framework for theabstract interpretation of logic programs
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Compiling Control as Offline Partial Deduction;Logic-Based Program Synthesis and Transformation;2019
2. Transforming Coroutining Logic Programs into Equivalent CHR Programs;Electronic Proceedings in Theoretical Computer Science;2017-08-23