Next: Invoking dzn trace, Previous: Invoking dzn parse, Up: The Dezyne command-line tools [Contents][Index]
dzn simulateThe dzn simulate command starts a simulation run.
Under the hood, dzn simulate uses the Dezyne VM. The
simulator can be used to explore Dezyne models (interfaces, components,
and systems), and to interpret error traces (witnesses) from the
verification engine (See Getting Started). It shows code locations,
state, and state transitions and produces friendly error messages. The
simulator and verification both report the same errors (See Formal Verification). The simulator, however, only reports errors that it
encounters while interpreting a specific event trace. The verifier
performs an exhaustive search for errors but only produces a witness
and does not report any context information. Its syntax is:
dzn dzn-option… simulate option… FILE
The options can be among the following:
--format=format-f formatPrint trace in format format; one of diagram, event,
or trace. The default is trace.
--help-hDisplay help on invoking dzn simulate, and then exit.
--import=dir-I dirAdd directory dir to the import path.
--internal-iDisplay internal events when using the diagram trace format.
--locations-lDisplay locations in the trace, this implies --format=trace.
--model=model-m modelStart simulating model. The default is the most “interesting” model.
--no-compliance-CDo not run the compliance check.
--no-deadlock-DDo not run the deadlock check at the end of the trail (EOT).
--no-interface-determinismDo not run the observable non-determinism check on interfaces.
--no-interface-livelockDo not run the interface livelock check at the end of the trail (EOT).
--no-queue-full-QDo not run the external queue-full check at the end of the trail (EOT).
--no-refusals-RDo not run the compliance check for the failures model refusals check at the end of the trail (EOT).
--queue-size=size-q sizeUse component queue size size for simulation, the default is
3.
--queue-size-defer=sizeUse defer queue size size for simulation, the default is
2.
--queue-size-external=sizeUse external queue size size for simulation, the default is
1.
--strict-sUse strict matching of trail, i.e., the trail must contain all observable events.
--trail=trail-t trailUse trail trail. The default is to read from stdin.
--verbose-vDisplay non-communication steps in the trace, this implies
--format=trace, --locations.
Next: Invoking dzn trace, Previous: Invoking dzn parse, Up: The Dezyne command-line tools [Contents][Index]