NAME
|
SYNOPSIS
|
spin –V spin [ options ] file |
DESCRIPTION
|
SPIN is a tool for analyzing the logical consistency of asynchronous
systems, specifically distributed software, multi–threaded systems,
and communication protocols. A model of the system is specified
in a guarded command language called Promela (process meta language).
This modeling language supports dynamic
creation of processes, nondeterministic case selection, loops,
gotos, local and global variables. It also allows for a concise
specification of logical correctness requirements, including,
but not restricted to requirements expressed in linear temporal
logic.
Given a Promela model stored in file , SPIN can perform interactive,
guided, or random simulations of the system's execution. It can
also generate a C program that performs an exhaustive verification
of the correctness requirements for the system. The main options
supported are as follows. (You can always get a full
list of current options with the command "spin ––".
–f LTL
–h At the end of a simulation run, print the value of the seed that was used for the random number generator. By specifying the same seed with the –n option, the exact run can be repeated later. –I Show the result of inlining and preprocessing. –i Perform an interactive simulation, prompting the user at every execution step that requires a nondeterministic choice to be made. The simulation proceeds without user intervention when execution is deterministic. –jN Skip printing for the first N steps in a simulation run. –J Reverse the evaluation order for nested unless statements, e.g., to match the way in which Java handles exceptions. –k file
–M Produce a message sequence chart in tcl/tk form for a random simulation or a guided simulation (when combined with –t), for the model in file , and display the result with wish. See also option –c. –m Changes the semantics of send events. Ordinarily, a send action will be (blocked) if the target message buffer is full. With this option a message sent to a full buffer is lost. –nN Set the seed for a random simulation to the integer value N . There is no space between the –n and the integer N. ,TP –N file Use the never claim stored in file to generate the verified (see –a). –O Use the original scope rules from pre–Spin version 6. –o[123]
–PxxxUse the command xxx for preprocessing instead of the standard C preprocessor. –p Include all statement executions in the output of simulation runs. –qN Suppress the output generated for channel N during simulation runs. –r Show all message–receive events, giving the name and number of the receiving process and the corresponding the source line number. For each message parameter, show the message type and the message channel number and name. –replay
–T Do not automatically indent the printf output of process i with i tabs. –t[N]Perform a guided simulation, following the [Nth] error trail that was produces by an earlier verification run, see the online manuals for the details on verification. By default the error trail is looked for in a file with the same basename as the model, and with extension .trail. See also –k. –v Verbose mode, add some more detail, and generate more hints and warnings about the model. –V Print the SPIN version number and exit. –x Generate transition tables from model and exit (generates, compiles, and runs pan.c).
With only a filename as an argument and no option flags, SPIN
performs a random simulation of the model specified in the file.
This normally does not generate output, except what is generated
explicitly by the user within the model with printf statements,
and some details about the final state that is reached after the
simulation completes. The group of options –bgilmprstv is used
to set the desired level of information that the user wants about
a random, guided, or interactive simulation run. Every line of
output normally contains a reference to the source line in the
specification that generated it. If option –i is included, the
simulation is interactive, or if option –t or –k file is added,
the simulation is guided. |
SEE ALSO
Online manuals at spinroot.com:
|
VERSION
|
The version distributed with 9Front corresponds to Spin Version
6.5.3 –– 3 November 2026 |