-
Notifications
You must be signed in to change notification settings - Fork 0
/
leader_election.13UniqueNodes.progress.dve
533 lines (503 loc) · 27.5 KB
/
leader_election.13UniqueNodes.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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
%own modifications: all max values unique, progress only for active nodes
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;
channel ch_10_in, ch_10_out;
channel ch_11_in, ch_11_out;
channel ch_12_in, ch_12_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; },
%progress:
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; },
%progress:
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=1, 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+1); },
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 == 1; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 1;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_7_in!(0*30+number); };
}
process Node_7 {
byte max=3, 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+3); },
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 == 3; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 3;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_8_in!(0*30+number); };
}
process Node_8 {
byte max=10, 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+10); },
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; },
%progress:
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; },
%progress:
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 == 10; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 10;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_9_in!(0*30+number); };
}
process Node_9 {
byte max=22, 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_10_in!(1*30+22); },
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; },
%progress:
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_10_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_10_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_10_in!(0*30+number); effect know = 1; },
%progress:
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_10_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_10_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 22; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 22;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_10_in!(0*30+number); };
}
process Node_10 {
byte max=5, 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_11_in!(1*30+5); },
wait -> got_msg { sync ch_10_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; },
%progress:
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_11_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_11_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_11_in!(0*30+number); effect know = 1; },
%progress:
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_11_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_11_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 5; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 5;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_11_in!(0*30+number); };
}
process Node_11 {
byte max=12, 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_12_in!(1*30+12); },
wait -> got_msg { sync ch_11_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; },
%progress:
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_12_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_12_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_12_in!(0*30+number); effect know = 1; },
%progress:
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_12_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_12_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 12; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 12;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_12_in!(0*30+number); };
}
process Node_12 {
byte max=13, 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_13_in!(1*30+13); },
wait -> got_msg { sync ch_12_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; },
%progress:
q1 -> q1a { guard active; },
q1 -> q1n { guard active==0; },
q1n -> wait { sync ch_13_in!(1*30+number); },
q1a -> wait { guard number != max; sync ch_13_in!(2*30+number); effect neigh = number; },
q1a -> wait { guard number == max; sync ch_13_in!(0*30+number); effect know = 1; },
%progress:
q2 -> q2a { guard active; },
q2 -> q2n { guard active==0; },
q2n -> wait { sync ch_13_in!(2*30+number); },
q2a -> wait { guard neigh > number && neigh > max; sync ch_13_in!(1*30+neigh); effect max = neigh; },
q2a -> wait { guard not (neigh > number && neigh > max); effect active = 0; },
qwcheck -> qw { guard number == 13; effect nr_leaders = nr_leaders+1; },
qwcheck -> qw { guard number != 13;},
qw -> wait { guard know; },
qw -> wait { guard know==0; sync ch_13_in!(0*30+number); };
}
%template:
%process channel_ch_L {
%byte buf[!!!2*X];
%byte buf_act = 0;
%state q;
%init q;
%trans
% q -> q { guard not(buf_act == !!!2*X); sync ch_!!!L_in?buf[buf_act]; effect buf_act = buf_act+1; },
% q -> q { guard not(buf_act == 0); sync ch_!!!L_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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = buf[26], buf[26] = buf[27], buf[27] = buf[28], buf[28] = buf[29], buf[!!!2*X-1] = 0, buf_act = buf_act -1;};
%}
%
process channel_ch_0 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_1 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_2 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_3 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_4 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_5 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_6 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_7 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_8 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_9 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); 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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_10 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); sync ch_10_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_10_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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_11 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); sync ch_11_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_11_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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process channel_ch_12 {
byte buf[26];
byte buf_act = 0;
state q;
init q;
trans
q -> q { guard not(buf_act == 26); sync ch_12_in?buf[buf_act]; effect buf_act = buf_act+1; },
q -> q { guard not(buf_act == 0); sync ch_12_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] = buf[20], buf[20] = buf[21], buf[21] = buf[22], buf[22] = buf[23], buf[23] = buf[24], buf[24] = buf[25], buf[25] = 0, buf_act = buf_act -1;};
}
process LTL_property {
state q1, q2;
init q1;
accept q2;
trans
q1 -> q2 { guard not (Node_0.wait && Node_0.active) && not (Node_1.wait && Node_1.active) && not (Node_2.wait && Node_2.active) && not (Node_3.wait && Node_3.active) && not (Node_4.wait && Node_4.active) && not (Node_5.wait && Node_5.active) && not (Node_6.wait&& Node_6.active) && not (Node_7.wait && Node_7.active) && not (Node_8.wait && Node_8.active) && not (Node_9.wait && Node_9.active) && not (Node_10.wait && Node_10.active) && not (Node_11.wait && Node_11.active) && not (Node_12.wait && Node_12.active); },
q1 -> q1 {},
q2 -> q2 { guard not (Node_0.wait && Node_0.active) && not (Node_1.wait && Node_1.active) && not (Node_2.wait && Node_2.active) && not (Node_3.wait && Node_3.active) && not (Node_4.wait && Node_4.active) && not (Node_5.wait && Node_5.active) && not (Node_6.wait&& Node_6.active) && not (Node_7.wait && Node_7.active) && not (Node_8.wait && Node_8.active) && not (Node_9.wait && Node_9.active) && not (Node_10.wait && Node_10.active) && not (Node_11.wait && Node_11.active) && not (Node_12.wait && Node_12.active); };
}
system async property LTL_property;