A forum for Spin users
You are not logged in.
Pages: 1
In the documentation on the never clause it is stated that
Almost all PROMELA constructs can be used inside a claim declaration.
The only exceptions are those statements that can have a side effect on the system state.
When compiling the following program
init{
int i;
}
never{
int k;
}
I get an error saying: error: never_0 defines local k
Well, a declaration is not a statement, but I can understand why it may not be allowed.
When we turn to the trace documentation, it is stated:
An event trace declaration may contain only ....
This means that no global or local variables can be declared or referred to.
This is much stricter that the never claim.
However, the following program is happily accepted by the compiler:
init{
int i;
}
trace{
int k;
}
Is there a problem/misunderstanding here?
Offline
Pages: 1