-
Notifications
You must be signed in to change notification settings - Fork 0
/
leader_election.10.progress.dve
372 lines (371 loc) · 18.9 KB
/
leader_election.10.progress.dve
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
channel ch_0_in, ch_0_out;
channel ch_1_in, ch_1_out;
channel ch_2_in, ch_2_out;
channel ch_3_in, ch_3_out;
channel ch_4_in, ch_4_out;
channel ch_5_in, ch_5_out;
channel ch_6_in, ch_6_out;
channel ch_7_in, ch_7_out;
channel ch_8_in, ch_8_out;
channel ch_9_in, ch_9_out;
byte nr_leaders;
process Node_0 {
byte max=24, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_1_in!(1*30+24); },
wait -> got_msg { sync ch_0_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_1_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_1_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_1_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_1_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_1_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 24; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 24;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_1_in!(0*30+number); };
}
process Node_1 {
byte max=14, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_2_in!(1*30+14); },
wait -> got_msg { sync ch_1_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_2_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_2_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_2_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_2_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_2_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 14; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 14;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_2_in!(0*30+number); };
}
process Node_2 {
byte max=6, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_3_in!(1*30+6); },
wait -> got_msg { sync ch_2_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_3_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_3_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_3_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_3_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_3_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 6; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 6;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_3_in!(0*30+number); };
}
process Node_3 {
byte max=0, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_4_in!(1*30+0); },
wait -> got_msg { sync ch_3_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_4_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_4_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_4_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_4_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_4_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 0; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 0;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_4_in!(0*30+number); };
}
process Node_4 {
byte max=23, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_5_in!(1*30+23); },
wait -> got_msg { sync ch_4_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_5_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_5_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_5_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_5_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_5_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 23; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 23;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_5_in!(0*30+number); };
}
process Node_5 {
byte max=21, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_6_in!(1*30+21); },
wait -> got_msg { sync ch_5_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_6_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_6_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_6_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_6_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_6_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 21; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 21;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_6_in!(0*30+number); };
}
process Node_6 {
byte max=21, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_7_in!(1*30+21); },
wait -> got_msg { sync ch_6_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_7_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_7_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_7_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_7_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_7_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 21; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 21;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_7_in!(0*30+number); };
}
process Node_7 {
byte max=23, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_8_in!(1*30+23); },
wait -> got_msg { sync ch_7_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_8_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_8_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_8_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_8_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_8_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 23; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 23;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_8_in!(0*30+number); };
}
process Node_8 {
byte max=0, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_9_in!(1*30+0); },
wait -> got_msg { sync ch_8_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_9_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_9_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_9_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_9_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_9_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 0; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 0;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_9_in!(0*30+number); };
}
process Node_9 {
byte max=6, number, neigh;
byte know=0, active=1;
state start, wait, got_msg, q1, q1a, q1n, q2, q2a, q2n, qw, qwcheck;
init start;
trans
start -> wait { sync ch_0_in!(1*30+6); },
wait -> got_msg { sync ch_9_out?number; },
got_msg -> q1 { guard number/30 == 1; effect number = number%30; },
got_msg -> q2 { guard number/30 == 2; effect number = number%30; },
got_msg -> qwcheck { guard number/30 == 0; effect number = number%30; },
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_0_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_0_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_0_in!(0*30+number); effect know = 1; },
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_0_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_0_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 6; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 6;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_0_in!(0*30+number); };
}
process channel_ch_0 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_0_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_0_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_1 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_1_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_1_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_2 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_2_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_2_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_3 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_3_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_3_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_4 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_4_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_4_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_5 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_5_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_5_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_6 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_6_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_6_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_7 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_7_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_7_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_8 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_8_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_8_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process channel_ch_9 {
byte buf[20];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 20); sync ch_9_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_9_out!buf[0]; effect buf[0] = buf[1], buf[1] = buf[2], buf[2] = buf[3], buf[3] = buf[4], buf[4] = buf[5], buf[5] = buf[6], buf[6] = buf[7], buf[7] = buf[8], buf[8] = buf[9], buf[9] = buf[10], buf[10] = buf[11], buf[11] = buf[12], buf[12] = buf[13], buf[13] = buf[14], buf[14] = buf[15], buf[15] = buf[16], buf[16] = buf[17], buf[17] = buf[18], buf[18] = buf[19], buf[19] = 0, buf_act = buf_act -1;};
}
process LTL_property {
state q1, q2;
init q1;
accept q2;
trans
q1 -> q2 { guard not (Node_0.wait) && not (Node_1.wait) && not (Node_2.wait) && not (Node_3.wait) && not (Node_4.wait) && not (Node_5.wait) && not (Node_6.wait) && not (Node_7.wait) && not (Node_8.wait) && not (Node_9.wait); },
q1 -> q1 {},
q2 -> q2 { guard not (Node_0.wait) && not (Node_1.wait) && not (Node_2.wait) && not (Node_3.wait) && not (Node_4.wait) && not (Node_5.wait) && not (Node_6.wait) && not (Node_7.wait) && not (Node_8.wait) && not (Node_9.wait); };
}
system async property LTL_property;