先决条件:获得一个在 Windows 10 上使用 gcc 的工作环境(例如参见these instructions),或者,获得一个虚拟环境 em> 带有一些 GNU/Linux 发行版。另外,correctly install Spin 在目标系统中。
只有两种可能的方法:
目前,属性c1, c5, c7, c8 在您的模型上已验证,而c2, c3, c4, c6 则未验证。还有一些关于未达到的最终状态的投诉。请检查后一种情况是否不违反您的系统规范(可能有问题也可能没有问题),并且验证的结果是否符合您的预期。
作为参考,这是验证属性c1时应获得的正确输出示例:
~$ spin -search -a -ltl c1 trail.pml
...
pan: ltl formula c1
(Spin Version 6.4.6 -- 2 December 2016)
+ Partial Order Reduction
Full statespace search for:
never claim + (c1)
assertion violations + (if within scope of claim)
acceptance cycles + (fairness disabled)
invalid end states - (disabled by never claim)
State-vector 152 byte, depth reached 4508, errors: 0
67919 states, stored (97586 visited)
170919 states, matched
268505 transitions (= visited+matched)
0 atomic steps
hash conflicts: 184 (resolved)
Stats on memory usage (in Megabytes):
11.659 equivalent memory usage for states (stored*(State-vector + overhead))
5.455 actual memory usage for states (compression: 46.78%)
state-vector as stored = 56 byte + 28 byte overhead
128.000 memory used for hash table (-w24)
0.534 memory used for DFS stack (-m10000)
133.905 total actual memory usage
unreached in proctype train
trail.pml:31, state 14, "-end-"
(1 of 14 states)
unreached in proctype gate
trail.pml:52, state 17, "-end-"
(1 of 17 states)
unreached in proctype queue
trail.pml:74, state 17, "-end-"
(1 of 17 states)
unreached in claim c1
_spin_nvr.tmp:10, state 13, "-end-"
(1 of 13 states)
pan: elapsed time 0.12 seconds
pan: rate 813216.67 states/second