How to print all states in Promela/SPIN

血红的双手。 提交于 2019-12-22 01:36:13

问题


I would like to print all states when checking my model. We do get a trail file when an assertion violation occurs but I want to see the states even when there are no assertion violations. How can I do that?


回答1:


One option is to compile pan with the gcc flag -DVERBOSE and watch the full details of the verification run. Of course the run will take a while and will spit excessive output, but you will see all the states as they are visited (the format is not very easy to read, but may sufficient for your purposes).

Another option to see the state graphs of individual processes is

./pan -D | dot -Tps | ps2pdf - pan.pdf

This will create a multi-page PDF where each page is a process (including the never claim).



来源:https://stackoverflow.com/questions/24533668/how-to-print-all-states-in-promela-spin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!