Symbolic test case generation for primitive recursive functions

  • Authors:
  • Achim D. Brucker;Burkhart Wolff

  • Affiliations:
  • Information Security, ETH Zürich, ETH Zentrum, Zürich, Switzerland;Information Security, ETH Zürich, ETH Zentrum, Zürich, Switzerland

  • Venue:
  • FATES'04 Proceedings of the 4th international conference on Formal Approaches to Software Testing
  • Year:
  • 2004

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a method for the automatic generation of test cases for HOL formulae containing primitive recursive predicates. These test cases can be used for the animation of specifications as well as for black-box testing of external programs. Our method is two-staged: first, the original formula is partitioned into test cases by transformation into a Horn-clause normal form (HCNF). Second, the test cases are analyzed for instances with constant terms satisfying the premises of the clauses. Particular emphasis is put on the control of test hypotheses and test hierarchies to avoid intractability. We applied our method to several examples, including AVL-trees and the red-black tree implementation in the standard library from SML/NJ.