Command-Line Options » History » Version 12
Andrei Tatarnikov, 06/15/2015 04:26 PM
1 | 1 | Andrei Tatarnikov | h1. MicroTESK Command-Line Options |
---|---|---|---|
2 | |||
3 | 3 | Andrei Tatarnikov | _~By Andrei Tatarnikov~_ |
4 | |||
5 | 2 | Andrei Tatarnikov | MicroTESK works in two modes: specification translation and test generation, which are enabled with the @--translate@ (used by default) and @--generate@ keys correspondingly. In addition, the @--help@ key prints information on the command-line format. |
6 | |||
7 | The @--translate@ and @--generate@ keys are inserted into the command-line by @compile.sh/compile.bat@ and @generate.sh/generate.bat@ scripts correspondingly. Other options should be specified explicitly to customize the behavior of MicroTESK. |
||
8 | |||
9 | *Options:* |
||
10 | |||
11 | 4 | Andrei Tatarnikov | | Full name | Short name | Description | |
12 | | --help | -h | Shows help message | |
||
13 | | --verbose | -v | Enables printing diagnostic messages | |
||
14 | | --translate | -t | Translates formal specifications | |
||
15 | | --generate | -g | Generates test programs | |
||
16 | | --include <arg> | -i | Sets include files directories [works with --translate] | |
||
17 | | --output-dir <arg> | -od | Sets where to place generated files [works with --translate] | |
||
18 | | --random-seed <arg> | -rs | Sets seed for randomizer [works with --generate] | |
||
19 | | --solver <arg> | -s | Sets constraint solver engine to be used [works with --generate] | |
||
20 | | --branch-exec-limit <arg> | -bel | Sets the limit on control transfers to detect endless loops [works with --generate] | |
||
21 | 11 | Andrei Tatarnikov | | --solver-debug | -sd | Enables debug mode for SMT solvers [works with --generate] | |
22 | | --tarmac-log | -tl | Saves simulator log in Tarmac format [works with --generate] | |
||
23 | | --arch-dirs <arg> | -ad | Home directories for tested architectures [works with --generate] | |
||
24 | 12 | Andrei Tatarnikov | | --rate-limit <arg> | -rl | Generation rate limit, causes error when broken [works with --generate] | |
25 | 4 | Andrei Tatarnikov | | --code-file-extension <arg> | -cfe | The output file extension [works with --generate] | |
26 | | --code-file-prefix <arg> | -cfp | The output file prefix (file names are as follows prefix_xxxx.ext, where xxxx is a 4-digit decimal number) [works with --generate] | |
||
27 | | --data-file-extension <arg> | -dfe | The data file extension [works with --generate] | |
||
28 | | --data-file-prefix <arg> | -dfp | The data file prefix [works with --generate] | |
||
29 | | --program-length-limit <arg>| -pll | The maximum number of instructions in output programs [works with --generate] | |
||
30 | 5 | Andrei Tatarnikov | | --trace-length-limit <arg> | -tll | The maximum length of execution traces of output programs [works with --generate] | |
31 | 6 | Andrei Tatarnikov | | --comments-enabled | -ce | Enables printing comments; if not specified no comments are printed [works with --generate] | |
32 | 7 | Andrei Tatarnikov | | --comments-debug | -cd | Enables printing detailed comments; must be used together with --comments-enabled [works with --generate] | |
33 | 8 | Andrei Tatarnikov | |
34 | *Notes:* |
||
35 | |||
36 | 9 | Andrei Tatarnikov | Format of the <code>--arch-dirs</code> option argument is the following: |
37 | 8 | Andrei Tatarnikov | |
38 | <pre><code>--arch-dirs mips=arch/mips:arm=arch/arm:sparc=arch/sparc</code></pre> |
||
39 | |||
40 | 10 | Andrei Tatarnikov | # Entries are separated by <code>'':''</code>. |
41 | 8 | Andrei Tatarnikov | # Each entry has the following format: <code><architecture-name>=<path-to-the-architecture-directory></code>. |
42 | # If a path is relative, <code>MICROTESK_HOME</code> is used as a prefix. |