-
Notifications
You must be signed in to change notification settings - Fork 5
/
peterson.dot
446 lines (272 loc) · 26.2 KB
/
peterson.dot
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
digraph g {
0 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=0\nP: 0=entry:0[]"]
1 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=0\nP: 0=entry:1[1],1=ta:0[]"]
3 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=0\nP: 1=ta:0[],2=tb:0[]"]
6 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=0\nP: 0=entry:1[1],1=ta:2[True]"]
7 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=0\nP: 1=ta:2[True],2=tb:0[]"]
8 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=0\nP: 1=ta:0[],2=tb:2[True]"]
14 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=0\nP: 0=entry:1[1],1=ta:4[1]"]
15 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=0\nP: 1=ta:4[1],2=tb:0[]"]
16 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=0\nP: 1=ta:2[True],2=tb:2[True]"]
17 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=0\nP: 1=ta:0[],2=tb:4[2]"]
18 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 0=entry:1[1],1=ta:5[]"]
20 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:5[],2=tb:0[]"]
23 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:0[],2=tb:5[]"]
25 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 0=entry:1[1],1=ta:6[]"]
26 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:6[],2=tb:0[]"]
27 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=0\nP: 1=ta:4[1],2=tb:2[True]"]
28 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=0\nP: 1=ta:2[True],2=tb:4[2]"]
29 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:0[],2=tb:6[]"]
34 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:5[],2=tb:2[True]"]
35 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:2[True],2=tb:5[]"]
41 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:6[],2=tb:2[True]"]
42 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=0\nP: 1=ta:4[1],2=tb:4[2]"]
43 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:2[True],2=tb:6[]"]
49 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:4[1],2=tb:5[]"]
50 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:5[],2=tb:4[2]"]
57 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:6[],2=tb:4[2]"]
58 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:4[1],2=tb:6[]"]
61 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 0=entry:1[1],1=ta:16[True]"]
62 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:16[True],2=tb:0[]"]
64 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:6[],2=tb:5[]"]
67 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:5[],2=tb:6[]"]
69 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:0[],2=tb:16[True]"]
75 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:6[],2=tb:6[]"]
76 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:6[],2=tb:6[]"]
81 [shape=box,label="claimA=True,claimB=False,flagA=True,flagB=False,victim=1\nP: 0=entry:1[1],1=ta:18[False]"]
82 [shape=box,label="claimA=True,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:18[False],2=tb:0[]"]
83 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:16[True],2=tb:2[True]"]
84 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:9[],2=tb:4[2]"]
89 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:4[1],2=tb:9[]"]
90 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:2[True],2=tb:16[True]"]
91 [shape=box,label="claimA=False,claimB=True,flagA=False,flagB=True,victim=2\nP: 1=ta:0[],2=tb:18[False]"]
97 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:9[],2=tb:5[]"]
104 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:5[],2=tb:9[]"]
109 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 0=entry:1[1],1=ta:20[False]"]
110 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:20[False],2=tb:0[]"]
111 [shape=box,label="claimA=True,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:18[False],2=tb:2[True]"]
112 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:16[True],2=tb:4[2]"]
114 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:9[],2=tb:6[]"]
115 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:6[],2=tb:9[]"]
116 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:9[],2=tb:6[]"]
117 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:6[],2=tb:9[]"]
119 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:4[1],2=tb:16[True]"]
120 [shape=box,label="claimA=False,claimB=True,flagA=False,flagB=True,victim=2\nP: 1=ta:2[True],2=tb:18[False]"]
121 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:0[],2=tb:20[False]"]
127 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:16[True],2=tb:5[]"]
140 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:5[],2=tb:16[True]"]
147 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:20[False],2=tb:2[True]"]
148 [shape=box,label="claimA=True,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:18[False],2=tb:4[2]"]
149 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:16[True],2=tb:6[]"]
160 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:6[],2=tb:16[True]"]
161 [shape=box,label="claimA=False,claimB=True,flagA=True,flagB=True,victim=2\nP: 1=ta:4[1],2=tb:18[False]"]
162 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:2[True],2=tb:20[False]"]
168 [shape=box,label="claimA=True,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:18[False],2=tb:5[]"]
173 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:9[],2=tb:9[]"]
176 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:9[],2=tb:9[]"]
181 [shape=box,label="claimA=False,claimB=True,flagA=True,flagB=True,victim=1\nP: 1=ta:5[],2=tb:18[False]"]
185 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=1\nP: 0=entry:1[1],1=ta:2[True]"]
186 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=1\nP: 1=ta:2[True],2=tb:0[]"]
188 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:20[False],2=tb:4[2]"]
189 [shape=box,label="claimA=True,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:18[False],2=tb:6[]"]
200 [shape=box,label="claimA=False,claimB=True,flagA=True,flagB=True,victim=1\nP: 1=ta:6[],2=tb:18[False]"]
201 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:4[1],2=tb:20[False]"]
203 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=2\nP: 1=ta:0[],2=tb:2[True]"]
208 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:20[False],2=tb:5[]"]
212 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:16[True],2=tb:9[]"]
219 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:9[],2=tb:16[True]"]
223 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:5[],2=tb:20[False]"]
227 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 0=entry:1[1],1=ta:4[1]"]
228 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:4[1],2=tb:0[]"]
229 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=1\nP: 1=ta:2[True],2=tb:2[True]"]
231 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:20[False],2=tb:6[]"]
242 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:6[],2=tb:20[False]"]
244 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=False,victim=2\nP: 1=ta:2[True],2=tb:2[True]"]
245 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:0[],2=tb:4[2]"]
252 [shape=box,label="claimA=True,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:18[False],2=tb:9[]"]
259 [shape=box,label="claimA=False,claimB=True,flagA=True,flagB=True,victim=1\nP: 1=ta:9[],2=tb:18[False]"]
266 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:4[1],2=tb:2[True]"]
267 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=1\nP: 1=ta:2[True],2=tb:4[2]"]
278 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=2\nP: 1=ta:4[1],2=tb:2[True]"]
279 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:2[True],2=tb:4[2]"]
282 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:20[False],2=tb:9[]"]
287 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:9[],2=tb:20[False]"]
290 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=1\nP: 1=ta:4[1],2=tb:4[2]"]
297 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=True,victim=2\nP: 1=ta:4[1],2=tb:4[2]"]
308 [shape=box,label="claimA=False,claimB=False,flagA=False,flagB=True,victim=2\nP: 1=ta:2[True],2=tb:9[]"]
311 [shape=box,label="claimA=False,claimB=False,flagA=True,flagB=False,victim=1\nP: 1=ta:9[],2=tb:2[True]"]
0 -> 1 [style=bold,color=red,weight=10,label="0@0 spawn ta ; -> 1"]
1 -> 3 [style=bold,color=red,weight=10,label="0@1 spawn tb ; -> 2"]
1 -> 6 [style=bold,color=red,weight=10,label="1@0 label loop:\n1@1 arith <...>"]
3 -> 7 [style=bold,color=red,weight=10,label="1@0 label loop:\n1@1 arith <...>"]
3 -> 8 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
6 -> 7 [constraint=false,label="0@1 spawn tb ; -> 2"]
6 -> 14 [style=bold,color=red,weight=10,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
7 -> 15 [style=bold,color=red,weight=10,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
7 -> 16 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
8 -> 16 [constraint=false,label="1@0 label loop:\n1@1 arith <...>"]
8 -> 17 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
14 -> 15 [constraint=false,label="0@1 spawn tb ; -> 2"]
14 -> 18 [style=bold,color=red,weight=10,label="1@4 set victim ; 0 -> 1"]
15 -> 20 [style=bold,color=red,weight=10,label="1@4 set victim ; 0 -> 1"]
15 -> 27 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
16 -> 27 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
16 -> 28 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
17 -> 28 [constraint=false,label="1@0 label loop:\n1@1 arith <...>"]
17 -> 23 [style=bold,color=red,weight=10,label="2@4 set victim ; 0 -> 2"]
18 -> 25 [style=bold,color=red,weight=10,label="1@5 label wait:"]
20 -> 26 [style=bold,color=red,weight=10,label="1@5 label wait:"]
23 -> 29 [style=bold,color=red,weight=10,label="2@5 label wait:"]
25 -> 26 [constraint=false,label="0@1 spawn tb ; -> 2"]
25 -> 61 [style=bold,color=red,weight=10,label="1@6 get flagB ; False\n1@7 arith <...>\n1@8 jmpcond leaveLock ; true\n1@14 label leaveLock:\n1@15 arith <...>"]
26 -> 62 [style=bold,color=red,weight=10,label="1@6 get flagB ; False\n1@7 arith <...>\n1@8 jmpcond leaveLock ; true\n1@14 label leaveLock:\n1@15 arith <...>"]
26 -> 41 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
27 -> 34 [style=bold,color=red,weight=10,label="1@4 set victim ; 0 -> 1"]
27 -> 42 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
28 -> 42 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
28 -> 35 [style=bold,color=red,weight=10,label="2@4 set victim ; 0 -> 2"]
29 -> 43 [constraint=false,label="1@0 label loop:\n1@1 arith <...>"]
29 -> 69 [style=bold,color=red,weight=10,label="2@6 get flagA ; False\n2@7 arith <...>\n2@8 jmpcond leaveLock ; true\n2@14 label leaveLock:\n2@15 arith <...>"]
34 -> 41 [constraint=false,label="1@5 label wait:"]
35 -> 43 [style=bold,color=red,weight=10,label="2@5 label wait:"]
41 -> 83 [constraint=false,label="1@6 get flagB ; False\n1@7 arith <...>\n1@8 jmpcond leaveLock ; true\n1@14 label leaveLock:\n1@15 arith <...>"]
41 -> 57 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
42 -> 50 [style=bold,color=red,weight=10,label="1@4 set victim ; 0 -> 1"]
42 -> 49 [style=bold,color=red,weight=10,label="2@4 set victim ; 0 -> 2"]
43 -> 58 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
43 -> 90 [style=bold,color=red,weight=10,label="2@6 get flagA ; False\n2@7 arith <...>\n2@8 jmpcond leaveLock ; true\n2@14 label leaveLock:\n2@15 arith <...>"]
49 -> 58 [style=bold,color=red,weight=10,label="2@5 label wait:"]
50 -> 57 [constraint=false,label="1@5 label wait:"]
57 -> 84 [style=bold,color=red,weight=10,label="1@6 get flagB ; True\n1@7 arith <...>\n1@8 jmpcond leaveLock ; false"]
57 -> 64 [style=bold,color=red,weight=10,label="2@4 set victim ; 1 -> 2"]
58 -> 67 [style=bold,color=red,weight=10,label="1@4 set victim ; 2 -> 1"]
58 -> 89 [style=bold,color=red,weight=10,label="2@6 get flagA ; True\n2@7 arith <...>\n2@8 jmpcond leaveLock ; false"]
61 -> 62 [constraint=false,label="0@1 spawn tb ; -> 2"]
61 -> 81 [style=bold,color=red,weight=10,label="1@16 set claimA ; False -> True\n1@17 arith <...>"]
62 -> 82 [style=bold,color=red,weight=10,label="1@16 set claimA ; False -> True\n1@17 arith <...>"]
62 -> 83 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
64 -> 75 [style=bold,color=red,weight=10,label="2@5 label wait:"]
67 -> 76 [style=bold,color=red,weight=10,label="1@5 label wait:"]
69 -> 90 [constraint=false,label="1@0 label loop:\n1@1 arith <...>"]
69 -> 91 [style=bold,color=red,weight=10,label="2@16 set claimB ; False -> True\n2@17 arith <...>"]
75 -> 114 [constraint=false,label="1@6 get flagB ; True\n1@7 arith <...>\n1@8 jmpcond leaveLock ; false"]
75 -> 115 [style=bold,color=red,weight=10,label="2@6 get flagA ; True\n2@7 arith <...>\n2@8 jmpcond leaveLock ; false"]
76 -> 116 [style=bold,color=red,weight=10,label="1@6 get flagB ; True\n1@7 arith <...>\n1@8 jmpcond leaveLock ; false"]
76 -> 117 [style=bold,color=red,weight=10,label="2@6 get flagA ; True\n2@7 arith <...>\n2@8 jmpcond leaveLock ; false"]
81 -> 82 [constraint=false,label="0@1 spawn tb ; -> 2"]
81 -> 109 [style=bold,color=red,weight=10,label="1@18 set claimA ; True -> False\n1@19 arith <...>"]
82 -> 110 [style=bold,color=red,weight=10,label="1@18 set claimA ; True -> False\n1@19 arith <...>"]
82 -> 111 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
83 -> 111 [constraint=false,label="1@16 set claimA ; False -> True\n1@17 arith <...>"]
83 -> 112 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
84 -> 50 [constraint=false,label="1@9 get victim ; 1\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; false\n1@13 jmp wait"]
84 -> 97 [style=bold,color=red,weight=10,label="2@4 set victim ; 1 -> 2"]
89 -> 104 [style=bold,color=red,weight=10,label="1@4 set victim ; 2 -> 1"]
89 -> 49 [constraint=false,label="2@9 get victim ; 2\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; false\n2@13 jmp wait"]
90 -> 119 [style=bold,color=red,weight=10,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
90 -> 120 [style=bold,color=red,weight=10,label="2@16 set claimB ; False -> True\n2@17 arith <...>"]
91 -> 120 [constraint=false,label="1@0 label loop:\n1@1 arith <...>"]
91 -> 121 [style=bold,color=red,weight=10,label="2@18 set claimB ; True -> False\n2@19 arith <...>"]
97 -> 114 [style=bold,color=red,weight=10,label="2@5 label wait:"]
104 -> 117 [constraint=false,label="1@5 label wait:"]
109 -> 110 [constraint=false,label="0@1 spawn tb ; -> 2"]
109 -> 185 [style=bold,color=red,weight=10,label="1@20 set flagA ; True -> False\n1@21 jmp loop\n1@0 label loop:\n1@1 arith <...>"]
110 -> 186 [style=bold,color=red,weight=10,label="1@20 set flagA ; True -> False\n1@21 jmp loop\n1@0 label loop:\n1@1 arith <...>"]
110 -> 147 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
111 -> 147 [constraint=false,label="1@18 set claimA ; True -> False\n1@19 arith <...>"]
111 -> 148 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
112 -> 148 [constraint=false,label="1@16 set claimA ; False -> True\n1@17 arith <...>"]
112 -> 127 [style=bold,color=red,weight=10,label="2@4 set victim ; 1 -> 2"]
114 -> 149 [constraint=false,label="1@9 get victim ; 2\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; true\n1@14 label leaveLock:\n1@15 arith <...>"]
114 -> 173 [style=bold,color=red,weight=10,label="2@6 get flagA ; True\n2@7 arith <...>\n2@8 jmpcond leaveLock ; false"]
115 -> 173 [constraint=false,label="1@6 get flagB ; True\n1@7 arith <...>\n1@8 jmpcond leaveLock ; false"]
115 -> 64 [constraint=false,label="2@9 get victim ; 2\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; false\n2@13 jmp wait"]
116 -> 67 [constraint=false,label="1@9 get victim ; 1\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; false\n1@13 jmp wait"]
116 -> 176 [style=bold,color=red,weight=10,label="2@6 get flagA ; True\n2@7 arith <...>\n2@8 jmpcond leaveLock ; false"]
117 -> 176 [constraint=false,label="1@6 get flagB ; True\n1@7 arith <...>\n1@8 jmpcond leaveLock ; false"]
117 -> 160 [constraint=false,label="2@9 get victim ; 1\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; true\n2@14 label leaveLock:\n2@15 arith <...>"]
119 -> 140 [style=bold,color=red,weight=10,label="1@4 set victim ; 2 -> 1"]
119 -> 161 [style=bold,color=red,weight=10,label="2@16 set claimB ; False -> True\n2@17 arith <...>"]
120 -> 161 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
120 -> 162 [style=bold,color=red,weight=10,label="2@18 set claimB ; True -> False\n2@19 arith <...>"]
121 -> 162 [constraint=false,label="1@0 label loop:\n1@1 arith <...>"]
121 -> 203 [style=bold,color=red,weight=10,label="2@20 set flagB ; True -> False\n2@21 jmp loop\n2@0 label loop:\n2@1 arith <...>"]
127 -> 149 [style=bold,color=red,weight=10,label="2@5 label wait:"]
140 -> 160 [style=bold,color=red,weight=10,label="1@5 label wait:"]
147 -> 229 [constraint=false,label="1@20 set flagA ; True -> False\n1@21 jmp loop\n1@0 label loop:\n1@1 arith <...>"]
147 -> 188 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
148 -> 188 [constraint=false,label="1@18 set claimA ; True -> False\n1@19 arith <...>"]
148 -> 168 [style=bold,color=red,weight=10,label="2@4 set victim ; 1 -> 2"]
149 -> 189 [constraint=false,label="1@16 set claimA ; False -> True\n1@17 arith <...>"]
149 -> 212 [style=bold,color=red,weight=10,label="2@6 get flagA ; True\n2@7 arith <...>\n2@8 jmpcond leaveLock ; false"]
160 -> 219 [style=bold,color=red,weight=10,label="1@6 get flagB ; True\n1@7 arith <...>\n1@8 jmpcond leaveLock ; false"]
160 -> 200 [style=bold,color=red,weight=10,label="2@16 set claimB ; False -> True\n2@17 arith <...>"]
161 -> 181 [style=bold,color=red,weight=10,label="1@4 set victim ; 2 -> 1"]
161 -> 201 [style=bold,color=red,weight=10,label="2@18 set claimB ; True -> False\n2@19 arith <...>"]
162 -> 201 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
162 -> 244 [style=bold,color=red,weight=10,label="2@20 set flagB ; True -> False\n2@21 jmp loop\n2@0 label loop:\n2@1 arith <...>"]
168 -> 189 [style=bold,color=red,weight=10,label="2@5 label wait:"]
173 -> 212 [constraint=false,label="1@9 get victim ; 2\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; true\n1@14 label leaveLock:\n1@15 arith <...>"]
173 -> 97 [constraint=false,label="2@9 get victim ; 2\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; false\n2@13 jmp wait"]
176 -> 104 [constraint=false,label="1@9 get victim ; 1\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; false\n1@13 jmp wait"]
176 -> 219 [constraint=false,label="2@9 get victim ; 1\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; true\n2@14 label leaveLock:\n2@15 arith <...>"]
181 -> 200 [constraint=false,label="1@5 label wait:"]
185 -> 186 [constraint=false,label="0@1 spawn tb ; -> 2"]
185 -> 227 [style=bold,color=red,weight=10,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
186 -> 228 [style=bold,color=red,weight=10,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
186 -> 229 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
188 -> 267 [constraint=false,label="1@20 set flagA ; True -> False\n1@21 jmp loop\n1@0 label loop:\n1@1 arith <...>"]
188 -> 208 [style=bold,color=red,weight=10,label="2@4 set victim ; 1 -> 2"]
189 -> 231 [constraint=false,label="1@18 set claimA ; True -> False\n1@19 arith <...>"]
189 -> 252 [style=bold,color=red,weight=10,label="2@6 get flagA ; True\n2@7 arith <...>\n2@8 jmpcond leaveLock ; false"]
200 -> 259 [constraint=false,label="1@6 get flagB ; True\n1@7 arith <...>\n1@8 jmpcond leaveLock ; false"]
200 -> 242 [style=bold,color=red,weight=10,label="2@18 set claimB ; True -> False\n2@19 arith <...>"]
201 -> 223 [style=bold,color=red,weight=10,label="1@4 set victim ; 2 -> 1"]
201 -> 278 [style=bold,color=red,weight=10,label="2@20 set flagB ; True -> False\n2@21 jmp loop\n2@0 label loop:\n2@1 arith <...>"]
203 -> 244 [constraint=false,label="1@0 label loop:\n1@1 arith <...>"]
203 -> 245 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
208 -> 231 [style=bold,color=red,weight=10,label="2@5 label wait:"]
212 -> 252 [constraint=false,label="1@16 set claimA ; False -> True\n1@17 arith <...>"]
212 -> 127 [constraint=false,label="2@9 get victim ; 2\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; false\n2@13 jmp wait"]
219 -> 140 [constraint=false,label="1@9 get victim ; 1\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; false\n1@13 jmp wait"]
219 -> 259 [style=bold,color=red,weight=10,label="2@16 set claimB ; False -> True\n2@17 arith <...>"]
223 -> 242 [constraint=false,label="1@5 label wait:"]
227 -> 228 [constraint=false,label="0@1 spawn tb ; -> 2"]
227 -> 18 [constraint=false,label="1@4 set victim ; 1 -> 1"]
228 -> 20 [constraint=false,label="1@4 set victim ; 1 -> 1"]
228 -> 266 [style=bold,color=red,weight=10,label="2@0 label loop:\n2@1 arith <...>"]
229 -> 266 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
229 -> 267 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
231 -> 29 [constraint=false,label="1@20 set flagA ; True -> False\n1@21 jmp loop"]
231 -> 282 [style=bold,color=red,weight=10,label="2@6 get flagA ; True\n2@7 arith <...>\n2@8 jmpcond leaveLock ; false"]
242 -> 287 [constraint=false,label="1@6 get flagB ; True\n1@7 arith <...>\n1@8 jmpcond leaveLock ; false"]
242 -> 26 [constraint=false,label="2@20 set flagB ; True -> False\n2@21 jmp loop"]
244 -> 278 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
244 -> 279 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
245 -> 279 [constraint=false,label="1@0 label loop:\n1@1 arith <...>"]
245 -> 23 [constraint=false,label="2@4 set victim ; 2 -> 2"]
252 -> 282 [constraint=false,label="1@18 set claimA ; True -> False\n1@19 arith <...>"]
252 -> 168 [constraint=false,label="2@9 get victim ; 2\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; false\n2@13 jmp wait"]
259 -> 181 [constraint=false,label="1@9 get victim ; 1\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; false\n1@13 jmp wait"]
259 -> 287 [style=bold,color=red,weight=10,label="2@18 set claimB ; True -> False\n2@19 arith <...>"]
266 -> 34 [constraint=false,label="1@4 set victim ; 1 -> 1"]
266 -> 290 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
267 -> 290 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
267 -> 35 [constraint=false,label="2@4 set victim ; 1 -> 2"]
278 -> 34 [constraint=false,label="1@4 set victim ; 2 -> 1"]
278 -> 297 [style=bold,color=red,weight=10,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
279 -> 297 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
279 -> 35 [constraint=false,label="2@4 set victim ; 2 -> 2"]
282 -> 308 [style=bold,color=red,weight=10,label="1@20 set flagA ; True -> False\n1@21 jmp loop\n1@0 label loop:\n1@1 arith <...>"]
282 -> 208 [constraint=false,label="2@9 get victim ; 2\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; false\n2@13 jmp wait"]
287 -> 223 [constraint=false,label="1@9 get victim ; 1\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; false\n1@13 jmp wait"]
287 -> 311 [style=bold,color=red,weight=10,label="2@20 set flagB ; True -> False\n2@21 jmp loop\n2@0 label loop:\n2@1 arith <...>"]
290 -> 50 [constraint=false,label="1@4 set victim ; 1 -> 1"]
290 -> 49 [constraint=false,label="2@4 set victim ; 1 -> 2"]
297 -> 50 [constraint=false,label="1@4 set victim ; 2 -> 1"]
297 -> 49 [constraint=false,label="2@4 set victim ; 2 -> 2"]
308 -> 89 [constraint=false,label="1@2 set flagA ; False -> True\n1@3 arith <...>"]
308 -> 35 [constraint=false,label="2@9 get victim ; 2\n2@10 arith <...>\n2@11 arith <...>\n2@12 jmpcond leaveLock ; false\n2@13 jmp wait"]
311 -> 34 [constraint=false,label="1@9 get victim ; 1\n1@10 arith <...>\n1@11 arith <...>\n1@12 jmpcond leaveLock ; false\n1@13 jmp wait"]
311 -> 84 [constraint=false,label="2@2 set flagB ; False -> True\n2@3 arith <...>"]
}