[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlaplus] Syntax of cfg file
On 15.03.20 10:45, Stephan Merz wrote:
> Please check chapter 14 (in particular 14.7.1) of Specifying Systems, as
> well as  and the links on that page.
>  http://lamport.azurewebsites.net/tla/tools.html
>> On 15 Mar 2020, at 18:36, narganapathy@xxxxxxxxx
>> <mailto:narganapathy@xxxxxxxxx> wrote:
>> I would like to run TLC from a command line on a linux server. However
>> for that I need to generate a cfg file for the model. Is there
>> documentation on how to author these ? The TLA+ toolbox IDE generates
>> MC.cfg but its cryptic (for example it does not everything I typed
>> into the model UI and it has some generated strings). So I can't infer
>> what the syntax is. Thanks
it's not so much what the Toolbox generates, but the config file syntax
that makes things cryptic for more involved tasks. Also, the config
file only contains the TLA+ specific part of model checking (constants,
invariants, ...). Runtime configuration - such as tuning flags - are
passed to TLC as command-line parameters.
I suggest to set up a model in the Toolbox and have it generate MC.tla
and MC.cfg. Then, copy the Spec.toolbox/Model_1/ directory to the
remote machine. The actual command-line - that the Toolbox pieced
together - can be found in the Toolbox log file
~/.tlaplus/.metadata/.log. Grep for the string "TLC COMMAND-LINE"
Note that it is more convenient to run CloudTLC , which can also be
invoked from the command-line.
Hope this helps,
!MESSAGE TLC COMMAND-LINE (CWD:
tlc2.TLC -fp 111 -config MC.cfg -coverage 3 -workers 2 -tool -metadir
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/af428553-86cd-f486-ec7b-2858ad009130%40lemmster.de.