Firstly, I always get this problem of depth reached:0. I tried every possibility. Secondly, i want to reach those states mentioned in ltl formula. So is this syntax correct or not?
Working on spin and promela
486 views Asked by Amrita Dahiya At
1
About the error
Spin clearly explains what is happening:
that is why you get
So I would try with
About the LTL formula
You have a lot of unnecessary brackets; you can write simpler:
So you have a pretty large array
m
, which explains why your state vector of 1024 bytes is not sufficient. A better solution than increasing the state vector would be decreasing the size ofm
if you can still check the property you are interested in withm
abstracted in some way.You write you "want to reach those states mentioned in your ltl formula". The ltl formula is checked for each path, so on each path a state must eventually be reached in which all clauses of your logical conjunction must hold. If you want to find a path that reaches a state in which all clauses of your logical conjunction hold, negate your ltl formula, i.e. []( disjunction of your negated clauses ), and look at the (end of your) counterexample path in case such a state is reachable.