Title of article
Type inference and strong static type checking for Promela
Author/Authors
Alastair F. Donaldson، نويسنده , , Simon J. Gay، نويسنده ,
Issue Information
ماهنامه با شماره پیاپی سال 2010
Pages
27
From page
1165
To page
1191
Abstract
The Spin model checker and its specification language Promela have been used extensively in industry and academia to check the logical properties of distributed algorithms and protocols. Model checking with Spin involves reasoning about a system via an abstract Promela specification, thus the technique depends critically on the soundness of this specification. Promela includes a rich set of data types including first-class channels, but the language syntax restricts the declaration of channel types so that it is not generally possible to deduce the complete type of a channel directly from its declaration. We present the design and implementation of Etch, an enhanced type checker for Promela, which uses constraint-based type inference to perform strong type checking of Promela specifications, allowing static detection of errors that Spin would not detect until simulation/verification time, or that Spin may miss completely. We discuss theoretical and practical problems associated with designing a type system and type checker for an existing language, and formalise our approach using a Promela-like calculus. To handle subtyping between base types, we present an extension to a standard unification algorithm to solve a system of equality and subtyping constraints, based on bounded substitutions.
Keywords
Promela , Type checking , spin , Type inference , model checking
Journal title
Science of Computer Programming
Serial Year
2010
Journal title
Science of Computer Programming
Record number
1080157
Link To Document