0
我使用Windows O.S和Cygwin的i型:wish -f ispin.tcl
打開ispin接口。 我打開一個文件其中包含:自旋:錯誤,生成此pan.c自旋的版本假定不同的字長(4-異8)
byte state = 2;
proctype A()
{ (state == 1) -> state = 3
}
proctype B()
{ state = state - 1
}
init
{ run A(); run B()
}
之後,我使用隨機方式與種子= 123。其結果印在輸出沒有問題運行它:
0: proc - (:root:) creates proc 0 (:init:)
Starting A with pid 1
1: proc 0 (:init::1) creates proc 1 (A)
1: proc 0 (:init::1) test.pml:12 (state 1) [(run A())]
Starting B with pid 2
2: proc 0 (:init::1) creates proc 2 (B)
2: proc 0 (:init::1) test.pml:12 (state 2) [(run B())]
3: proc 2 (B:1) test.pml:8 (state 1) [state = (state-1)]
4: proc 1 (A:1) test.pml:4 (state 1) [((state==1))]
4: proc 2 (B:1) terminates
5: proc 1 (A:1) test.pml:4 (state 2) [state = 3]
5: proc 1 (A:1) terminates
5: proc 0 (:init::1) terminates
3 processes created
出現問題當我試圖驗證這個模型。驗證結果爲:
verification result:
spin -a test.pml
gcc -DMEMLIM=1024 -O2 -DXUSAFE -DSAFETY -DNOCLAIM -w -o pan pan.c
./pan -m10000
Pid: 3952
spin: error, the version of spin that generated this pan.c assumed a different wordsize (4 iso 8)
我該如何解決這個問題?我在互聯網上搜索,但我找不到幫助我的東西。