好好先森& 2022-06-24 14:15 采纳率: 0%
浏览 110
已结题

求下面的形式规约怎么写

#define true 1
#define false 0
#define true 1
#define false 0
bool busy[3];
chan up[3] = [1] of { byte };
chan down[3] = [1] of { byte };
mtype = { start, attention, data, stop }
proctype station(,byte id; chan inp, out)
{ do
:: inp?start -> atomic { !busy[id] -> busy[id] = true }; out!attention; do :: inp?data -> out!data
:: inp?stop -> break od; out!stop; busy[id] = false
:: atomic { !busy[id] -> busy[id] = true }; out!start; inp?attention;有谁知道这个代码的形式规约怎么写?

img

  • 写回答

3条回答 默认 最新

  • 赵4老师 2022-06-24 17:34
    关注

    还规约呢?p和q都不分。

    img

    评论

报告相同问题?

问题事件

  • 系统已结题 7月2日
  • 赞助了问题酬金12元 6月24日
  • 赞助了问题酬金8元 6月24日
  • 创建了问题 6月24日