As we have noted more than once, Promela is designed for modeling a system, not for implementing one with an executable program. Typically, a model will be relatively small in size, so that it will be feasible to verify correctness properties by searching its state space. A model with a handful of variables and two dozen statements can give rise to complex behavior that strains the model-checking abilities of Spin. For that reason Promela does not include an extensive set of constructs for structuring the program and its data; in particular, you will not find constructs like functions and classes that facilitate the development of large programs. Promela does have arrays and type definitions that are used for structuring data, and it has macros and inline declarations that can help make programs more readable.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2008 Springer-Verlag London Limited
About this chapter
Cite this chapter
(2008). Data and Program Structures. In: Principles of the Spin Model Checker. Springer, London. https://doi.org/10.1007/978-1-84628-770-1_6
Download citation
DOI: https://doi.org/10.1007/978-1-84628-770-1_6
Publisher Name: Springer, London
Print ISBN: 978-1-84628-769-5
Online ISBN: 978-1-84628-770-1
eBook Packages: Computer ScienceComputer Science (R0)