[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] Graph of actions that enable other actions



Is there a way to do this in the TLA+ Toolbox?  Or does one need to run the TLA tools from the command line to do this

On Tuesday, April 4, 2023 at 5:22:41 AM UTC-5 Agost Biro wrote:
Thanks, Markus! This works great.

Running it with the basic option on the faulty alarm clock spec from the article where the Ring action is never enabled gives this: 

image.png



Best,
Agost

On Tue, Apr 4, 2023 at 12:18 AM Markus Kuppe <tlaplus-go...@xxxxxxxxxxx> wrote:
Hi Agost,

here are the instructions to run TLC and generate an "action space coverage" graph:

* Save the graph in a file named "MySpec_actions.dot" by running TLC with the following command:
-simulate num=N,stats=[basic|full] MySpec.tla
* Replace 'N' with a reasonable number of behaviors to generate.
* Choose either "basic" or "full" for the 'stats' parameter, depending on the desired level of detail in the generated graph.
* Open “MySpec_actions.dot" with the GraphViz tools.

Markus

> On Apr 3, 2023, at 2:26 PM, Agost Biro <agos...@xxxxxxxxx> wrote:
>
> Hello,
>
> I read in the Current and Future Tools for Interactive TLA+ article that TLC can make a graph of actions that enable other actions, but it's not documented or integrated into the GUI. I'm wondering if anyone has more info on this? A code example would be most welcome.
>
> Best regards,
> Agost
>
>
> --
> 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+u...@xxxxxxxxxxxxxxxx.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/CAFG8yPTdN%2B42OjzjAFRbjpzBb-RL6cwC21pBFbntFip5x%2Bz6CQ%40mail.gmail.com.

--
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+u...@xxxxxxxxxxxxxxxx.

--
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/a1641ce5-ba62-4e59-80b4-8e85ae957c0cn%40googlegroups.com.