The PROMELA library is an OCaml library providing types and functions to create, analyze and modify PROMELA programs as used by the Spin model checker. The library provides types for PROMELA expression, statements, processes and models to create PROMELA programs as OCaml data structures. It includes functions to analyze the programs and also to generate valid PROMELA text-representation of the data structures.
As a demo of how to write code generators and also as synthetic benchmark for your tools there is the Dining Philosophers Problem (dpp) generator. This tool creates a model of n philosophers trying to obtain two shared forks at once.
To finally create a PROMELA text representation from a binary model you can use the spinmodel tool.
The source code has been written at the chair of robotics and embedded systems at Technische Universität München by Markus Weissmann and Florian Pichlmeier.
The releases of the PROMELA library and tools can be downloaded from OCamlForge. The API of the PROMELA library is also available online. The source code is released as open source under the (new) BSD license.
This document was translated from LATEX by HEVEA.