[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlaplus] Syntax of cfg file
Thanks. This is what I did. I pushed all the key files under toolbox to github and synched to my linux server and ran tlc -config MC.cfg MC.tla and this seems to work. I will checkout cloudtlc.
On Sunday, March 15, 2020 at 10:58:10 AM UTC-7, Markus Alexander Kuppe wrote:
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, nargan...@xxxxxxxxx
>> <mailto:nargan...@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/d78443cb-8aa0-44b2-8796-8117010aadcd%40googlegroups.com.