Closed erlingrj closed 1 year ago
VerifyInvariant
in your example. Define your invariant in PlusCal's define block or after its TLA+ translation, and add INVARIANT Invariant
in TLC's configuration fileGreat! Thanks. For any other noobs with the same questions. When you run the TLC with TLA+: Check model with TLC
TLC will auto-generate a .cfg
file with the same name as your .tla
file. In this file you can add the INVARIANT MyInvariant
at the bottom and for any consecutive runs of TLC it will also check that invariant.
Thanks @lemmy!
Hi, thanks for this really nice plugin. I am learning TLA+ and PlusCal and in the guides we defined invariants as part of the PlusCal and then use the GUI to mark them as invariants. Is there a way to achieve something similar here?
I am also open to pluscal or TLA+ tips. Whats the best way of expressing an invariant in pluscal? Maybe having a label at the end of the algorithm which thus will be part of every state of the spec?