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.
Preview
Unable to display preview. Download preview PDF.
References
D. Carrington and P. Stocks. A tale of two paradigms: Formal methods and software testing. Workshops in Computing, pages 51–68. Springer-Verlag, 1994.
John Dawes. The VDM-SL Reference Guide. Pitman Publishing, 1st edition, 1991.
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.
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.
Erich Mikk. Automatic Compilation of Z Specifications into C for Automatic Test Result Evaluation. Master's thesis, Christian Albrecht Universität Kiel, December 1993.
Helmut A. Partsch. Specification and Transformation of Programs. Springer, 1990.
Jan Peleska. Formal specification & test procedures for the ELPRO LET tramway crossing system. Technical report 9505, JP Consulting, Kiel, Germany, 1995.
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.
J. M. Spivey. The Z Notation: A Reference Manual. Prentice Hall International Series in Computer Science, 2nd edition, 1992.
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.
Author information
Authors and Affiliations
Editor information
Rights 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