Can I use SPIN to generate variable valuations for all the reachable states of a promela model?
I want to be able to construct files containing each of the reachable states within my model, with the valuations of the variables in each state. The formatting doesn’t matter and I’m only using global variables but I’m imagining something like this (maybe in a .csv format instead):
How to avoid code repetition in `if` and `do` Promela constructs?
I am modeling a system in PROMELA that has a central controller and N workers. There is a lot of broadcasting (e.g. sending a message from the controller to all workers, or receiving messages from all workers) and I find myself repeating the same line of code with an index incremented. For example, the following do
block checks if a process has received data and if not it sends data to it.
Make timeout legitimate
Is there any way to make a timeout diagnostic “legitimate”? Hide it if certain conditions are met? Note the end states are valid. Like this one:
Make timeout legitimate
Is there any way to make a timeout diagnostic “legitimate”? Hide it if certain conditions are met? Note the end states are valid. Like this one: