Relative Content

Tag Archive for promelaspin

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: