Constraint-set satisfiability for overloading

  • Authors:
  • Carlos Camarão;Lucília Figueiredo;Cristiano Vasconcellos

  • Affiliations:
  • University Fed. de Minas Gerais, Belo Horizonte, Brasil;University Federal de Ouro Preto, Ouro Preto, Brasil;Pontifícia University Católica do Paraná, Curitiba, Brasil

  • Venue:
  • PPDP '04 Proceedings of the 6th ACM SIGPLAN international conference on Principles and practice of declarative programming
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

This article discusses the problem of constraint-set satisfiability (CSSAT) --- that is, the problem of determining whether a given constraint-set is satisfiable in a given typing context --- in the context of systems with support for overloading and parametric polymorphism. The paper reviews previous works on constraint-set satisfiability, showing that overloading policies used in order to guarantee decidability of CSSAT have been generally too restrictive. An algorithm is proposed that does not impose a severe restriction on possible overloadings and decides CSSAT in an expectedly vast majority of cases of practical interest. In cases for which satisfiability cannot be decided, a configurable limit on the number of iterations is used to guarantee termination.