@@ -73,15 +73,18 @@ especially useful for debugging complex specifications.
73
73
$ quint compile --help
74
74
quint compile < input>
75
75
76
- compile a Quint specification into the target, the output is written to
77
- stdout
76
+ compile a Quint specification into the target, the output is written to stdout
78
77
79
78
Options:
80
79
--help Show help [boolean]
81
80
--version Show version number [boolean]
82
81
--out output file (suppresses all console output) [string]
83
82
--main name of the main module (by default, computed from filename)
84
83
[string]
84
+ --init name of the initializer action [string] [default: " init" ]
85
+ --step name of the step action [string] [default: " step" ]
86
+ --invariant the invariants to check, separated by commas (e.g.) [string]
87
+ --temporal the temporal properties to check, separated by commas [string]
85
88
--target the compilation target. Supported values: tlaplus, json
86
89
[string] [default: " json" ]
87
90
--verbosity control how much output is produced (0 to 5)[number] [default: 2]
@@ -91,6 +94,16 @@ Given a quint specification as input, this command parses, resolves imports,
91
94
typechecks, and then "flattens" the specification into on module containing just
92
95
the needed definitions.
93
96
97
+ The main module is determined as follows: If a module name is specified by
98
+ ` --main ` , that takes precedence. Otherwise, if there is only one module in the
99
+ input file, that is the main module. Otherwise, the module with the same name as
100
+ the file is taken to be the main module.
101
+
102
+ The main module must specify a state machine. This means it must either define
103
+ actions named ` init ` and ` step ` , specifying the initial state and the
104
+ transition action respectively, or suitable actions defined in the main module
105
+ must be indicated using the ` --init ` and ` --step ` options.
106
+
94
107
The following compilation targets are supported
95
108
96
109
- ` json ` : The default target, this produces a json representation, in the same
@@ -105,7 +118,7 @@ The following compilation targets are supported
105
118
to be expected.*
106
119
107
120
``` sh
108
- $ quint parse --help
121
+ $ quint parse --help
109
122
quint parse < input>
110
123
111
124
parse a Quint specification
@@ -292,30 +305,32 @@ Options:
292
305
# # Command verify
293
306
294
307
` ` ` sh
295
- $ quint verify < input>
308
+ $ quint verify --help
309
+ quint verify < input>
296
310
297
311
Verify a Quint specification via Apalache
298
312
299
313
Options:
300
- --help Show help [boolean]
301
- --version Show version number [boolean]
302
- --main name of the main module (by default, computed from
303
- filename) [string]
304
- --out output file (suppresses all console output) [string]
305
- --out-itf output the trace in the Informal Trace Format to file
306
- (suppresses all console output) [string]
307
- --max-steps the maximum number of steps in every trace
308
- [number] [default: 10]
309
- --init name of the initializer action [string] [default: " init" ]
310
- --step name of the step action [string] [default: " step" ]
311
- --invariant the invariants to check, separated by a comma [string]
312
- --temporal the temporal properties to check, separated by a comma
314
+ --help Show help [boolean]
315
+ --version Show version number [boolean]
316
+ --out output file (suppresses all console output) [string]
317
+ --main name of the main module (by default, computed from
318
+ filename) [string]
319
+ --init name of the initializer action[string] [default: " init" ]
320
+ --step name of the step action [string] [default: " step" ]
321
+ --invariant the invariants to check, separated by commas (e.g.)
313
322
[string]
323
+ --temporal the temporal properties to check, separated by commas
324
+ [string]
325
+ --out-itf output the trace in the Informal Trace Format to file
326
+ (suppresses all console output) [string]
327
+ --max-steps the maximum number of steps in every trace
328
+ [number] [default: 10]
314
329
--random-transitions choose transitions at random (= use symbolic simulation)
315
330
[boolean] [default: false]
316
331
--apalache-config path to an additional Apalache configuration file (in
317
332
JSON) [string]
318
- --verbosity control how much output is produced (0 to 5)
333
+ --verbosity control how much output is produced (0 to 5)
319
334
[number] [default: 2]
320
335
` ` `
321
336
@@ -332,7 +347,7 @@ steps:
332
347
Apalache uses bounded model checking. This technique checks * all runs* up to
333
348
` --max-steps` steps via [z3][]. Apalache is highly configurable. See [Apalache
334
349
configuration](https://apalache.informal.systems/docs/apalache/config.html? highlight=configuration#apalache-configuration)
335
- for guidance.
350
+ for guidance.
336
351
337
352
- If there are no critical errors (e.g., in parsing, typechecking, etc.), this
338
353
command sends the Quint specification to the [Apalache][] model checker, which
0 commit comments