0
我想是for循環來循環能夠使用如下面所示:PROMELA:如何通過的typedef值的數組使用for循環類型的數組的typedef
typedef chanArray {
chan ch[5] = [1] of {bit};
}
chanArray comms[5];
active proctype Reliable() {
chanArray channel;
for (channel in comms) {
channel.ch[0] ! 0;
}
}
自旋給出以下錯誤:
spin: test2.pml:8, Error: for (channel in .channel_name) { ... }
是否有可能通過該陣列使用for循環以這種形式循環,而不必使用for循環與索引指針?