No edit summary |
No edit summary |
||
Line 517: | Line 517: | ||
probcli my.mch ... | probcli my.mch ... | ||
== Preferences == | |||
{| style="color:black; background-color:#FFFFEF; border:1px solid lightgray;" cellpadding="10" cellspacing="0" width="100%" | |||
| <PREF> | Typ | Description | |||
|- | |||
| MAXINT | nat ==> MaxInt | Used for expressions such as xx::NAT (2147483647 for 4 byte ints) | |||
|- | |||
|} | |||
== Some probcli examples == | == Some probcli examples == |
The command-line version of ProB offers many of the feature of the standalone Tcl/Tk Version via the command-line. As such, you can run ProB from your shell scripts or in your Makefiles.
The following conventions are used in this guide:
<replaceme> | All values that should be replaced with some value are shown withing < > |
line breaks | Command synopsis for command may be broken up on several lines. When typing commands enter all option on the same line. |
probcli [--help] <filename> [ <options> ]
Note that the stand-alone Tcl/Tk version also supports a limited form of command-line preferences:
However, the comand-line version of ProB, called probcli, provides more features. It also does not depend on Tcl/Tk and can therefore be run on systems without Tcl/Tk.
Description
model check; checking at most <nr> states |
Example
probcli my.mch ...
Description
<x>=dead,inv,goal,ass (for model check) |
Example
probcli my.mch ...
Description
proceed breadth-first |
Example
probcli my.mch ...
Description
proceed depth-first |
Example
probcli my.mch ...
Description
Timeout in ms for model checking and refinement checking |
Example
probcli my.mch ...
Description
trace check (associated .trace file must exist) |
Example
probcli my.mch ...
Description
initialise specification |
Example
probcli my.mch -init
Description
constraint-based invariant checking for an operation (also use <OPNAME>=all) |
Example
probcli my.mch ...
Description
constraint-based deadlock checking (also use -cbc_deadlock_pred PRED) |
Description
Example
probcli my.mch ...
Description
raise error if mc finds counter example or trace checking fails |
Example
probcli my.mch ...
Description
expect error to occur (<ERR>=cbc,mc,ltl,...) |
Example
probcli my.mch ...
Description
interactive animation |
Example
probcli my.mch ...
Description
start interactive read-eval-loop |
Example
probcli my.mch ...
Description
print coverage statistics |
Example
probcli my.mch ...
Description
print and check coverage statistics |
Example
probcli my.mch ...
Description
set Preference to Value |
Example
probcli my.mch ...
Description
set scope of B deferred set |
Example
probcli my.mch ...
Description
set GOAL predicate for model checker |
Example
probcli my.mch ...
Description
start socket server on given port |
Example
probcli my.mch ...
Description
start socket server on port 9000 |
Example
probcli my.mch ...
Description
start socket server on some free port |
Example
probcli my.mch ...
Description
log activities in <LogFile> |
Example
probcli my.mch ...
Description
log activities in /tmp/prob_cli_debug.log |
Example
probcli my.mch ...
Description
analyse <LogFile> using gnuplot |
Example
probcli my.mch ...
Description
pretty-print internal representation to <FILE> |
Example
probcli my.mch ...
Description
pretty-print internal representation to <FILE>, force printing of all type infos |
Example
probcli my.mch ...
Description
verbose |
Example
probcli my.mch ...
Description
print version information |
Example
probcli -version ProB Command Line Interface VERSION 1.3.3-final3 ($Rev: 7316 $) $LastChangedDate: 2011-03-09 17:14:00 +0100 (Mi, 09 Mrz 2011) $ Prolog: SICStus 4.1.3 (x86-win32-nt-4): Wed Sep 22 21:41:09 WEDT 2010
Description
check ASSERTIONS |
Example
probcli my.mch ...
Description
check PROPERTIES |
Example
probcli my.mch ...
Description
runtime checking of types/pre-/post-conditions |
Example
probcli my.mch ...
Description
check LTL formulas in file <FILE> |
Example
probcli my.mch ...
Description
check LTL assertions (in DEFINITIONS) |
Example
probcli my.mch ...
Description
explore at most <LIMIT> states when model-checking LTL |
Example
probcli my.mch ...
Description
save state space for later refinement check |
Example
probcli my.mch ...
Description
refinement check against previous saved state space |
Example
probcli my.mch ...
Description
generate test cases with maximum length <Depth>, explore maximally <MaxStates>, the last state satisfies <EndPredicate> and the test cases are written to <FILE> |
Example
probcli my.mch ...
Description
Operation When generating MCM test cases, Operation should be covered |
Example
probcli my.mch ...
Description
Write graph of the state space to a dot <FILE> |
Example
probcli my.mch ...
Typ | Description |
nat ==> MaxInt | Used for expressions such as xx::NAT (2147483647 for 4 byte ints) |
To load a file My.mch, setup the constants and initialize it do:
probcli -init My.mch
To load a file M.mch, setup the constants, initialize and then check all assertions with Atelier-B's default values for MININT and MAXINT and an increased timeout of 5 seconds do:
probcli -init -assertions -p MAXINT 2147483647 -p MININT -2147483647 -p TIME_OUT 5000 M.mch