Skip to main content

Compilation of Z specifications into C for automatic test result evaluation

  • Testing
  • Conference paper
  • First Online:
ZUM '95: The Z Formal Specification Notation (ZUM 1995)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 967))

Included in the following conference series:

Abstract

If Z specifications are used as requirements specifications then test result evaluation leads to evaluation of schema predicates in states that are reached by the test. For automation of this approach Z operational schemas must be translated into programs that perform schema predicate evaluation. Predicate evaluation is straightforward; expressions are replaced by their values, logical connectives are evaluated using truth-tables, quantifiers and set constructions are evaluated ∭ing iteration. In order to exclude infinite iterations while evaluating quantifiers the schema compiler accepts besides finite quantifications only those which can be transformed into finite ones using term-rewriting techniques. These ideas are implemented in a Z predicate compiler.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. D. Carrington and P. Stocks. A tale of two paradigms: Formal methods and software testing. Workshops in Computing, pages 51–68. Springer-Verlag, 1994.

    Google Scholar 

  2. John Dawes. The VDM-SL Reference Guide. Pitman Publishing, 1st edition, 1991.

    Google Scholar 

  3. Hans-Martin Hörcher. Improving Software Tests using Z Specifications. In Z User Workshop, Lecture Notes in Computer Science. Z User Group, Springer-Verlag, 1995.

    Google Scholar 

  4. Hans-Martin Hörcher and Uwe Schmidt. Programming with VDM Domains. In D. Bjørner, H. Langmaack, and C.A.R. Hoare, editors, VDM'90 — VDM and Z, number 428 in Lecture Notes in Computer Science, pages 122–134. VDM Europe, Springer Verlag, April 1990.

    Google Scholar 

  5. Erich Mikk. Automatic Compilation of Z Specifications into C for Automatic Test Result Evaluation. Master's thesis, Christian Albrecht Universität Kiel, December 1993.

    Google Scholar 

  6. Helmut A. Partsch. Specification and Transformation of Programs. Springer, 1990.

    Google Scholar 

  7. Jan Peleska. Formal specification & test procedures for the ELPRO LET tramway crossing system. Technical report 9505, JP Consulting, Kiel, Germany, 1995.

    Google Scholar 

  8. J. M. Spivey. Understanding Z: A Specification Language and its Formal Semantics, volume 3 of Cambridge Tracts in Theoretical Computer Science. Cambridge University Press, January 1988.

    Google Scholar 

  9. J. M. Spivey. The Z Notation: A Reference Manual. Prentice Hall International Series in Computer Science, 2nd edition, 1992.

    Google Scholar 

  10. J. M. Spivey and B. A. Sufrin. Type inference in Z. volume 428 of Lecture Notes in Computer Science, pages 426–438. VDM-Europe, Springer-Verlag, 1990.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Jonathan P. Bowen Michael G. Hinchey

Rights and permissions

Reprints and permissions

Copyright information

© 1995 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Mikk, E. (1995). Compilation of Z specifications into C for automatic test result evaluation. In: Bowen, J.P., Hinchey, M.G. (eds) ZUM '95: The Z Formal Specification Notation. ZUM 1995. Lecture Notes in Computer Science, vol 967. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60271-2_119

Download citation

  • DOI: https://doi.org/10.1007/3-540-60271-2_119

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-60271-2

  • Online ISBN: 978-3-540-44782-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics