Download PDF

Logics programming, proceedings

Publication date: 2002-01-01
Volume: 2401 Pages: 38 - 53
ISSN: 0302-9743
Publisher: Springer-verlag berlin

Author:

Schrijvers, Tom
Garcia de la Banda, Maria ; Demoen, Bart ; Stuckey, P

Keywords:

Prolog, abstract interpretation, unification, trailing, Science & Technology, Technology, Computer Science, Theory & Methods, Engineering, Electrical & Electronic, Computer Science, Engineering

Abstract:

The HAL language includes a Herbrand constraint solver which uses Taylor's PARMA scheme rather than the standard WAM representation. This allows HAL to generate more efficient Mercury code. Unfortunately, PARMA's variable representation requires value trailing with a trail stack consumption about twice as large as for the WAM. We present a trailing analysis aimed at determining which Herbrand variables do not need to be trailed. The accuracy of the analysis comes from HAL's semi-optional determinism and mode declarations. The analysis has been partially integrated in the HAL compiler and benchmark programs show good speed-up.