Questions tagged [spin]

Spin is a popular open-source software tool, that can be used for the formal verification of distributed software systems. The tool was developed at Bell Labs in the original Unix group of the Computing Sciences Research Center, starting in 1980.

Spin is a popular open-source software tool that can be used for the formal verification of distributed software systems. The tool was developed at Bell Labs in the original Unix group of the Computing Sciences Research Center, starting in 1980.

References

158 questions
0
votes
1 answer

How to specify path to C libraries in jspin?

I am using jspin and trying to include stdio.h library within c_code expression: c_code { #include } However, I get the following error: spin: error: No file 'stdio.h' I have checked directory where mingw is installed and it has…
Dmitry Korolev
  • 675
  • 4
  • 20
0
votes
1 answer

Time out when using Spin/Promela

If someone could explain to me why I am getting a timeout with the following code that would be great. I understand, or at least I think I do, the idea of a timeout, but with the do loops I thought this would stop this. Any advice is appreciated.…
mcdowesj
  • 48
  • 6
0
votes
2 answers

Promela: how to use a for loop for an array of type typedef

I would like to be able use a for loop to loop through an array of typedef values as demonstrated below: typedef chanArray { chan ch[5] = [1] of {bit}; } chanArray comms[5]; active proctype Reliable() { chanArray channel; for ( channel…
Crux
  • 58
  • 1
  • 5
-1
votes
1 answer

Promela, Ispin: Model checker promela modeling with spin

I'm working on model checking verification using spin model checker each time I try to run code I get error: spin: traffic_controller:12, Error: undeclared variable: to_green saw '')' = 41' child process exited abnormally also i have declared…
-1
votes
1 answer

Error: indexing array 'channels'

I get this error with Spin 6.4.8: spin: indexing channels[-1] - size is 3 spin: 2.pml:13, Error: indexing array 'channels' when running a simulation of the following Promela Model: chan channels[3] = [1] of { pid }; active [3] proctype node () { …
Patrick Trentin
  • 7,126
  • 3
  • 23
  • 40
-1
votes
1 answer

How to use Spin to check Promela code from the command line

I'm looking how to analyse the output of train.pml using Spin on the Windows 10 command line. Any help to make the file give the correct output would be greatly appreciated.
Andre
  • 121
  • 1
  • 8
-1
votes
1 answer

Working on spin and promela

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?
-3
votes
0 answers

Getting pre-processing error while executing spin file

I am getting this error while running spin_testcount.pml gcc: error: unrecognized command line option '-Wformat-overflow=0'; did you mean '-Wstrict-overflow='? spin: preprocessing failed gcc -std=gnu99 -Wformat-overflow=0 -E -x c "testcount.pml" >…
1 2 3
10
11