localhost:Semaphore Simon$ java -classpath /Applications/toolbox/tla/ tlc2.TLC Sem0_Prog.tla
TLC2 Version 2.07 of 1 June 2015
Running in Model-Checking mode.
Parsing file Sem0_Prog.tla
Parsing file /Applications/toolbox/tla/tla2sany/StandardModules/Integers.tla
Parsing file /Applications/toolbox/tla/tla2sany/StandardModules/Sequences.tla
Parsing file /Applications/toolbox/tla/tla2sany/StandardModules/Naturals.tla
Parsing file Sem0_Spec.tla
Semantic processing of module Naturals
Semantic processing of module Integers
Semantic processing of module Sequences
Semantic processing of module Sem0_Spec
Semantic processing of module Sem0_Prog
Starting... (2016-04-16 12:37:39)
Error: TLC threw an unexpected exception.
This was probably caused by an error in the spec or model.
See the User Output or TLC Console for clues to what happened.
The exception was a java.lang.RuntimeException: The constant parameter Pcs is not assigned a value by the configuration file.
Finished. (2016-04-16 12:37:39)
On 17 Apr 2016, at 15:56, Simon Hudon <simon...@gmail.com> wrote:
Ok, I see a bit better how to use the cfg files.
If I want to use both the command line and the toolbox in a project with a partner, is it sufficient to only have the version control track the .tla source file, the .cfg file but none of the files in the .toolbox directory? If so, how do I import that cfg file in the toolbox?
As Stephan explained, the Toolbox runs TLC on the MC spec (using
MC.cfg) in the model's directory, which is a subdirectory of the
spec's .toolbox directory. Running TLC from the command line on that
spec in that directory will produce the same results as running TLC on
the model from the Toolbox--if TLC is run with the same parameters.
Note that the Toolbox runs TLC with the -tool parameter, which is
probably not what you want it to do when running it from the command
line.
Markus informs me that the Toolbox stores the definition of a model in
the model's .launch file. The model's directory contains the .tla and
.cfg files on which the model was last run. That subdirectory is
re-created by the run model and check model commands.