Download PDF

1986 Logic Programming Symposium, Date: 1986/09/22 - 1986/09/25, Location: Slat Lake City, USA

Publication date: 1986-01-01
Pages: 70 - 77
ISBN: 0-8186-0728-9
Publisher: IEEE-CS

Proceedings of the 1986 Symposium on Logic Programming

Author:

Bruynooghe, Maurice
De Schreye, Danny ; Krekels, Bruno

Abstract:

Much research has been done on obtaining efficient execution of programs which are very readable but very inefficient under the standard computation rule of Prolog. Control languages have been developed to obtain the desired coroutining behavior. However, execution of the control part causes substantial overhead. A novel technique is presented to avoid this overhead. The trace obtained from a corouting execution of the program is used to synthesize a new program which gives the desired efficiency under the standard Prolog computation rule. The overhead of executing the control part is eliminated. The technique is explained as a manual transformation technique, a number of examples are shown and the correctness of the transformation is proven. The feasibility of automation is discussed and it is indicated by example which techniques known in machine learning and program synthesis are seen to be very promising.