nimble-code / Spin

Explicit state logic model checking tool -- 2002 winner of the ACM System Software Award.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using -M -k to generate msc-flow by trail file, but generated msc-flow file is not quite right

M1sstory opened this issue · comments

I generated MSC-Flow through NS protocol trail file, but it had some deviation.
By using the command:
spin -M -k nscode.pml.trail nscode.pml
bc11af6acde69bf1d6e15613f681a5c

The part of results of running the same trail file in ISPIN are as follows。
image

It is obvious that the process interaction and process names are not aligned.The process interaction part moves to the right relative to the process name, resulting in misalignment.
@nimble-code

can you send me that nscode.pml example, so that i can check this out?

你能给我发那个nscode.pml例子,以便我检查一下吗?

Here is the example to verify NS protocols,I think it is a generic problem that applies different code.
nscode.txt

Thanks, yes -- the presence of the never claim (derived from the ltl property) appears to cause the message flows with -M to move over one column to far. I'll fix it and note here when I've uploaded the corrected sourcefile (probably msc_tcl.c only)
thanks for reporting this

source updated. 6 files changed (main.c mesg.c msc_tcl.c sched.c spin.y and version.h), although only two of those were to fix this issue -- the others are just pending small fixes and code cleanups