Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

    <style type="text/css">
    body {font-family: "lucida grande", lucida, verdana, sans-serif;}
    body {margin: 20px 50px 0px 50px;}
    body {background: #f5f5f5;}
    body {line-height: 140%;}
    a, a:link, a:visited {text-decoration: none; color: #0082ae;}
    a:hover {border-color: #0082ae; border-width: 0 0 1px 0; border-style: solid;}
    h1, h2, h3 {color: #A00; padding-top:15px;}
    h1, h2 {border-bottom: 2px solid #a1a5a9; padding-bottom: 6px;}
    h3 {font-style:italic; font-size:100%;}
    code, pre {font-size: 110%;}
    table {border-collapse: collapse; }
    td {border:1px solid #a1a5a9; padding:10px; font-size: 90%; vertical-align: top;}
    span.lastchanged {color: #AAA; font-size: 20%;}

    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <meta name="author" content="Theo Ruys">
    <meta name="keywords" content="SpinS, model checking, Promela, SPIN">
    <meta name="description" content="readme documentation for SpinS">
    <title>SpinS - README.html documentation</title>



For the
<a href="">LTSmin</a> toolset, we
extended SpinJa to generate C code adhering to the
<a href="">PINS interface</a>.
The otiginal SpinJa code generated Java from Promela models.
Since the resulting tool is incompatible with other parts of SpinJa,
we renamed the tool to SpinS.

Additionally, SpinS was extended with a great many new features available in
the <a href="">Promela</a> language.
To give a quick overview:
<li>An advanced preprocessor, crucial to handle many case studies</li>
<li>Custom type structs</li>
<li>Remote refs</li>
<li>Channel actions and expressions (random, rendez-vous, polling)</li>
<li>d_step options and communication</li>
<li>Atomicity with loss of atomicity</li>
<li>Special variables: _pid only</li>

The result is that we are now able to handle many large case studies with
LTSmin. But more significantly, the semantics models is so close that the
state counts, error counts and transition counts are equal to those of SPIN
for many of these large case studies. An overview is given by the scripts in
the test directory.

Moreover, due to the functionality of the PINS interface, we are able to add a
rich set of analysis algorithms to the PROMELA world. These are available as 
the generic, but efficient tools of LTSmin, and include:
<li>Semi-symbolic reachability and CTL model checking with reordering,
saturation and chaining
(<a href="">paper</a>).</li>
<li>Scalable multi-core reachability
(<a href="">paper</a>)
and LTL model checking algorithms
(<a href="">paper</a>)
with leading explicit state compression techniques 
(<a href="">paper</a>).</li>
<li>Guard-based partial order reduction, competitive to SPINs ample set approach
(<a href="">paper</a>).</li>
All of these techniques should work nicely together with Promela semantics on
assertion violations, deadlocks, never claims and valid end states.
Note that some combinations, like POR and never claims, require some alternative
approaches for now. The LTL formula can for example be loaded directly in LTSmin.

Most of these features are described in
<a href="">
        SpinS: Extending LTSmin with Promela through SpinJa</a>.
The original SpinJa documentation can be found at:
<a href=""></a>. 


The spins folder contains the following files:

    <li><code>README.html</code>: this file</li>
    <li><code>spins.jar</code>: SpinS compiler</li>
    <li><code></code>: SpinS compiler shell script</li>
    <li><code>tests/</code>: directory with Promela examples and test scripts</li>
    <li><code>lib/</code>: additional Java library: the 
                           <a href="">JavaCC</a> 
                           compiler generator</li>
    <li><code>src/</code>: complete Java source of SpinS</li>
    <li><code>doc/</code>: Documentation, licence and generated Java doc</li>


Should be handled by LTSmin compilation scripts.

<h2>Known issues</h2>


SpinS does not yet support the full Promela language. <br>
Currently, the following aspects of Promela are <em>not</em> yet implemented:
    <li><code>unless</code> statement</li>
        sorted send (<code>!!</code>)</li>
    <li>special variables: <code>np_</code> and <code>pc_value</code></li>
    <li>Channel references, e.g. channel references in channels.</li>

The following things we would like to (and are able to) add in the future:
<li>Promela's C code extensions (e.g., <code>c_code</code>, 
<li>Type structs in channels</li>


SpinS is released under the
<a href="">
Apache 2.0 license</a>.


SpinS was developed by:

    <li>Alfons Laarman: Extension of Promela capabilities and implementation of
    PINS POR matrices</li>
    <li>Freark van der Berg: original adaptation of SpinJa to PINS</li>

SpinJa was developed by:

    <li>Marc de Jonge: principal designer of SpinJa 0.8.</li>
    <li>Theo Ruys: supervisor of SpinJa project.</li>

<h2>Further Reading</h2>

For general documentation on Promela and the model checker SPIN,
please consult the <a href="">SPIN</a> website, which
hosts a wealth of information on the subjects.

More specific information on the design and implementation of SpinS 
can be found in the following two MSc theses.

    <li> Freark van der Berg and Alfons Laarman.<br>
        <a href="">
        SpinS: Extending LTSmin with Promela through SpinJa</a>.<br>
        PDMC 2012.<br>
        <em>This paper describes SpinS: the adaptation of SpinJa to LTSmin.</em>
    <li> Marc de Jonge.<br>
        <a href="">
        The SpinJ Model Checker - A fast, extensible, object-oriented 
        model checker</a>.<br>
        MSc Thesis, University of Twente, The Netherlands, September 2008.<br>
        <em>This MSc thesis describes the design and implementation
        of SpinS 0.8 in detail.</em>
    <li>Mark Kattenbelt.<br>
        <a href="">
        Towards an Explicit-State Model Checking Framework</a>.<br>
        MSc Thesis, University of Twente, The Netherlands, September 2006.<br>
        <em>This MSc this presents a layered, object-oriented design for
        explicit-state model checkers. SpinS's design is based on 
        this approach.</em>

<h2>Version history</h2>

    <td>Release in LTSmin 2.0 (renamed to SpinS)</td>
    <td>Some improvements to SpinS</td>
    <td>First public release of SpinS within LTSmin 1.7 (called SpinJa).</td>



No description, website, or topics provided.



No releases published


No packages published
You can’t perform that action at this time.