Solving Constraints over Floating-Point Numbers

  • C. Michel
  • M. Rueher
  • Y. Lebbah
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 2239)


This paper introduces a new framework for tackling constraints over the floating-point numbers. An important application area where such solvers are required is program analysis (e.g., structural test case generation, correctness proof of numeric operations). Albeit the floating-point numbers are a finite subset of the real numbers, classical CSP techniques are ineffective due to the huge size of the domains. Relations that hold over the real numbers may not hold over the floating-point numbers. Moreover, constraints that have no solutions over the reals may hold over the floats. Thus, interval-narrowing techniques, which are used in numeric CSP, cannot safely solve constraints systems over the floats. We analyse here the specific properties of the relations over the floats. A CSP over the floats is formally defined. We show how local-consistency filtering algorithms used in interval solvers can be adapted to achieve a safe pruning of such CSP. Finally, we illustrate the capabilities of a CSP over the floats for the generation of test data.


Interval Analysis Constraint System Test Case Generation Labelling Process Interval Extension 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. [ANS85]
    ANSI/IEEE, New York. IEEE Standard for Binary Floating Point Arithmetic, Std 754–1985 edition, 1985.Google Scholar
  2. [BMVH94]
    F. Benhamou, D. McAllester, and P. Van-Hentenryck. Clp(intervals) revisited. In Proceedings of the International Symposium on Logic Programming, pages 124–138, 1994.Google Scholar
  3. [CDR98]
    H. Collavizza, F. Delobel, and M. Rueher. A note on partial consistencies over continuous domains solving techniques. In Proc. CP98 (Fourth International Conference on Principles and Practice of Constraint Programming), Pisa, Italy, October 26-30, 1998.Google Scholar
  4. [Col94]
    A. Colmerauer. Spécifications de prolog iv. Technical report, GIA, Faculté des Sciences de Luminy,163, Avenue de Luminy 13288 Marseille cedex 9 (France), 1994.Google Scholar
  5. [Dav87]
    E. Davis. Constraint propagation with interval labels. Journal of Artificial Intelligence, pages 32:281–331, 1987.zbMATHCrossRefGoogle Scholar
  6. [GBK98]
    A. Gotlieb, B. Botella, and Rueher K. A clp framework for computing structural test data. In Proc. ISSTA 98 (Symposium on Software Testing and Analysis),. ACM SIGSOFT, vol. 2, pp. 53–62, 1998.Google Scholar
  7. [Gol91]
    David Goldberg. What every computer scientist should know about floatingpoint arithmetic. ACM Computing Surveys, 23(1):5–48, March 1991.CrossRefGoogle Scholar
  8. [Got00]
    A. Gotlieb. Automatic Test Data Generation using Constraint Logic Programming. PhD thesis, Université de Nice — Sophia Antipolis, France, 2000.Google Scholar
  9. [Gua00]
    F. Gualard. Langages et environnements en programmation par contraintes d’intervalles. PhD thesis, Université de Nantes— 2, rue de la Houssiniére, F-44322 NANTES CEDEX 3, France, 2000.Google Scholar
  10. [Han92]
    E. Hansen, editor. Global optimization using interval analysis. Marcel Dekker, 1992.Google Scholar
  11. [HS94]
    H. Hong and V. Stahl. Safe starting regions by fixed points and tightening. Computing, pages 53:323–335, 1994.zbMATHCrossRefMathSciNetGoogle Scholar
  12. [Kea96]
    R. Baker Kearfott. Rigorous Global Search: Continuous Problems. Number 13 in Nonconvex optimization and its applications. Kluwer Academic Publishers Group, Norwell, MA, USA, and Dordrecht, The Netherlands, 1996.Google Scholar
  13. [Kor90]
    Bogdan Korel. Automated Software Test Data Generation. IEEE Transactions on Software Engineering, 16(8):870–879, august 1990.CrossRefGoogle Scholar
  14. [Lho93]
    O. Lhomme. Consistency techniques for numeric csps. In Proceedings of IJCAI’ 93, pages 232–238, 1993.Google Scholar
  15. [Mac77]
    A. Mackworth. Consistency in networks of relations. Journal of Artificial Intelligence, pages 8(1):99–118, 1977.zbMATHCrossRefGoogle Scholar
  16. [Moo66]
    R. Moore. Interval Analysis. Prentice Hall, 1966.Google Scholar
  17. [PVH98]
    J.F. Puget and P. Van-Hentenryck. A constraints satisfaction approach to a circuit design problem. Journal of global optimization, pages 13(1):75–93, 1998.zbMATHCrossRefMathSciNetGoogle Scholar
  18. [VHMD97]
    P. Van-Hentenryck, L. Michel, and Y. Deville. Numerica: a Modeling Languge for Global Optimization. MIT press, 1997.Google Scholar
  19. [VMK97]
    P. Van Hentenryck, D. McAllester, and D. Kapur. Solving polynomial systems using a branch and prune aprroach. SIAM Journal, 34(2), 1997.Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2001

Authors and Affiliations

  • C. Michel
    • 1
  • M. Rueher
    • 1
  • Y. Lebbah
    • 2
  1. 1.I3S-CNRSUniversité de Nice-Sophia AntipolisSophia Antipolis CedexFrance
  2. 2.Département d’InformatiqueUniversité d’Oran Es-Senia, Faculté des SciencesEl-M'NaouarAlgeria

Personalised recommendations