I am a beginner trying to use Promela and SPIN. As I am developing some simple Promela specifications, I want to check the values of variables in my program by using printf(). I have read this man page and am trying to run a simple hello world program, but I don't see any output text. Here is the sample hello world file:
init {
printf("MSC: passed first test!\n")
}
The steps that I use to compile and run are
spin -a hello.pml
cc -o run pan.c
./run
The output from running is
hint: this search is more efficient if pan.c is compiled -DSAFETY
(Spin Version 4.2.6 -- 27 October 2005)
+ Partial Order Reduction
Full statespace search for:
never claim - (none specified)
assertion violations +
acceptance cycles - (not selected)
invalid end states +
State-vector 12 byte, depth reached 2, errors: 0
3 states, stored
0 states, matched
3 transitions (= stored+matched)
0 atomic steps
hash conflicts: 0 (resolved)
4.879 memory usage (Mbyte)
unreached in proctype :init:
(0 of 2 states)
So, where can I find my output from the printf statement? I have tried printf statements in more complicated promela files as well, but obviously I want to get it working for the simple case first. Any insight would be appreciated. Thanks!