Hostname: page-component-745bb68f8f-d8cs5 Total loading time: 0 Render date: 2025-02-06T01:01:16.424Z Has data issue: false hasContentIssue false

Using parametric set constraints for locating errors in CLP programs

Published online by Cambridge University Press:  26 July 2002

WŁODZIMIERZ DRABENT
Affiliation:
Department of Computer and Information Science, Linköping University, S – 581 83 Linköping, Sweden (e-mail: wdr@ida.liu.sejmz@ida.liu.sepawpi@ida.liu.se)
JAN MAŁUSZYŃSKI
Affiliation:
Department of Computer and Information Science, Linköping University, S – 581 83 Linköping, Sweden (e-mail: wdr@ida.liu.sejmz@ida.liu.sepawpi@ida.liu.se)
PAWEŁ PIETRZAK
Affiliation:
Department of Computer and Information Science, Linköping University, S – 581 83 Linköping, Sweden (e-mail: wdr@ida.liu.sejmz@ida.liu.sepawpi@ida.liu.se)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

This paper introduces a framework of parametric descriptive directional types for Constraint Logic Programming (CLP). It proposes a method for locating type errors in CLP programs, and presents a prototype debugging tool. The main technique used is checking correctness of programs w.r.t. type specifications. The approach is based on a generalization of known methods for proving the correctness of logic programs to the case of parametric specifications. Set constraint techniques are used for formulating and checking verification conditions for (parametric) polymorphic type specifications. The specifications are expressed in a parametric extension of the formalism of term grammars. The soundness of the method is proved, and the prototype debugging tool supporting the proposed approach is illustrated on examples. The paper is a substantial extension of the previous work by the same authors concerning monomorphic directional types.

Type
Research Article
Copyright
© 2002 Cambridge University Press