~tapaal-ltl/verifypn/scc-optimise

« back to all changes in this revision

Viewing changes to test_models/urgency-test011/model.pnml

  • Committer: srba.jiri at gmail
  • Date: 2020-09-11 14:23:39 UTC
  • mfrom: (213.1.151 interval_tar)
  • Revision ID: srba.jiri@gmail.com-20200911142339-bq9328s1gppw24uj
merged in lp:~verifypn-maintainers/verifypn/interval_tar doing 
- Implements TAR w/o z3, but using a simple integer inference engine for Hoare logic.
 - Replaces LP-Solve with GLPK, reduces computation-time and memory overhead
 - Implements new global properties, translated into CTL formulae.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 
2
<pnml xmlns="http://www.pnml.org/version-2009/grammar/pnml">
 
3
    <net id="ComposedModel" type="http://www.pnml.org/version-2009/grammar/ptnet">
 
4
        <page id="page0">
 
5
            <place id="Shared_RequestMedicalCheck">
 
6
                <graphics>
 
7
                    <position x="150" y="120"/>
 
8
                </graphics>
 
9
                <name>
 
10
                    <graphics>
 
11
                        <offset x="-19" y="16"/>
 
12
                    </graphics>
 
13
                    <text>Shared_RequestMedicalCheck</text>
 
14
                </name>
 
15
                <initialMarking>
 
16
                    <text>0</text>
 
17
                </initialMarking>
 
18
            </place>
 
19
            <place id="Shared_MedicalCheckOK">
 
20
                <graphics>
 
21
                    <position x="150" y="330"/>
 
22
                </graphics>
 
23
                <name>
 
24
                    <graphics>
 
25
                        <offset x="-21" y="7"/>
 
26
                    </graphics>
 
27
                    <text>Shared_MedicalCheckOK</text>
 
28
                </name>
 
29
                <initialMarking>
 
30
                    <text>0</text>
 
31
                </initialMarking>
 
32
            </place>
 
33
            <place id="Shared_MedicalCheckNOK">
 
34
                <graphics>
 
35
                    <position x="150" y="225"/>
 
36
                </graphics>
 
37
                <name>
 
38
                    <graphics>
 
39
                        <offset x="-19" y="19"/>
 
40
                    </graphics>
 
41
                    <text>Shared_MedicalCheckNOK</text>
 
42
                </name>
 
43
                <initialMarking>
 
44
                    <text>0</text>
 
45
                </initialMarking>
 
46
            </place>
 
47
            <place id="Patient_PatientFinished">
 
48
                <graphics>
 
49
                    <position x="180" y="285"/>
 
50
                </graphics>
 
51
                <name>
 
52
                    <graphics>
 
53
                        <offset x="-9" y="15"/>
 
54
                    </graphics>
 
55
                    <text>Patient_PatientFinished</text>
 
56
                </name>
 
57
                <initialMarking>
 
58
                    <text>0</text>
 
59
                </initialMarking>
 
60
            </place>
 
61
            <place id="Patient_Waiting">
 
62
                <graphics>
 
63
                    <position x="360" y="285"/>
 
64
                </graphics>
 
65
                <name>
 
66
                    <graphics>
 
67
                        <offset x="73" y="24"/>
 
68
                    </graphics>
 
69
                    <text>Patient_Waiting</text>
 
70
                </name>
 
71
                <initialMarking>
 
72
                    <text>0</text>
 
73
                </initialMarking>
 
74
            </place>
 
75
            <place id="Patient_WaitForDecision">
 
76
                <graphics>
 
77
                    <position x="360" y="465"/>
 
78
                </graphics>
 
79
                <name>
 
80
                    <graphics>
 
81
                        <offset x="118" y="44"/>
 
82
                    </graphics>
 
83
                    <text>Patient_WaitForDecision</text>
 
84
                </name>
 
85
                <initialMarking>
 
86
                    <text>0</text>
 
87
                </initialMarking>
 
88
            </place>
 
89
            <place id="Patient_Treated">
 
90
                <graphics>
 
91
                    <position x="180" y="465"/>
 
92
                </graphics>
 
93
                <name>
 
94
                    <graphics>
 
95
                        <offset x="-5" y="46"/>
 
96
                    </graphics>
 
97
                    <text>Patient_Treated</text>
 
98
                </name>
 
99
                <initialMarking>
 
100
                    <text>0</text>
 
101
                </initialMarking>
 
102
            </place>
 
103
            <place id="Patient_Timer">
 
104
                <graphics>
 
105
                    <position x="150" y="180"/>
 
106
                </graphics>
 
107
                <name>
 
108
                    <graphics>
 
109
                        <offset x="-5" y="35"/>
 
110
                    </graphics>
 
111
                    <text>Patient_Timer</text>
 
112
                </name>
 
113
                <initialMarking>
 
114
                    <text>1</text>
 
115
                </initialMarking>
 
116
            </place>
 
117
            <place id="Patient_Patient">
 
118
                <graphics>
 
119
                    <position x="360" y="90"/>
 
120
                </graphics>
 
121
                <name>
 
122
                    <graphics>
 
123
                        <offset x="23" y="-4"/>
 
124
                    </graphics>
 
125
                    <text>Patient_Patient</text>
 
126
                </name>
 
127
                <initialMarking>
 
128
                    <text>5</text>
 
129
                </initialMarking>
 
130
            </place>
 
131
            <place id="Patient_P0">
 
132
                <graphics>
 
133
                    <position x="360" y="225"/>
 
134
                </graphics>
 
135
                <name>
 
136
                    <graphics>
 
137
                        <offset x="-5" y="35"/>
 
138
                    </graphics>
 
139
                    <text>Patient_P0</text>
 
140
                </name>
 
141
                <initialMarking>
 
142
                    <text>0</text>
 
143
                </initialMarking>
 
144
            </place>
 
145
            <place id="Nurse_Nurse">
 
146
                <graphics>
 
147
                    <position x="585" y="90"/>
 
148
                </graphics>
 
149
                <name>
 
150
                    <graphics>
 
151
                        <offset x="-5" y="-7"/>
 
152
                    </graphics>
 
153
                    <text>Nurse_Nurse</text>
 
154
                </name>
 
155
                <initialMarking>
 
156
                    <text>1</text>
 
157
                </initialMarking>
 
158
            </place>
 
159
            <place id="Nurse_Busy">
 
160
                <graphics>
 
161
                    <position x="810" y="90"/>
 
162
                </graphics>
 
163
                <name>
 
164
                    <graphics>
 
165
                        <offset x="38" y="-12"/>
 
166
                    </graphics>
 
167
                    <text>Nurse_Busy</text>
 
168
                </name>
 
169
                <initialMarking>
 
170
                    <text>0</text>
 
171
                </initialMarking>
 
172
            </place>
 
173
            <place id="Nurse_AwaitingAnswer">
 
174
                <graphics>
 
175
                    <position x="930" y="180"/>
 
176
                </graphics>
 
177
                <name>
 
178
                    <graphics>
 
179
                        <offset x="117" y="0"/>
 
180
                    </graphics>
 
181
                    <text>Nurse_AwaitingAnswer</text>
 
182
                </name>
 
183
                <initialMarking>
 
184
                    <text>0</text>
 
185
                </initialMarking>
 
186
            </place>
 
187
            <place id="Nurse_ReadyToReBook">
 
188
                <graphics>
 
189
                    <position x="810" y="180"/>
 
190
                </graphics>
 
191
                <name>
 
192
                    <graphics>
 
193
                        <offset x="68" y="-19"/>
 
194
                    </graphics>
 
195
                    <text>Nurse_ReadyToReBook</text>
 
196
                </name>
 
197
                <initialMarking>
 
198
                    <text>0</text>
 
199
                </initialMarking>
 
200
            </place>
 
201
            <place id="Nurse_ReadyToCheckout">
 
202
                <graphics>
 
203
                    <position x="825" y="390"/>
 
204
                </graphics>
 
205
                <name>
 
206
                    <graphics>
 
207
                        <offset x="53" y="-10"/>
 
208
                    </graphics>
 
209
                    <text>Nurse_ReadyToCheckout</text>
 
210
                </name>
 
211
                <initialMarking>
 
212
                    <text>0</text>
 
213
                </initialMarking>
 
214
            </place>
 
215
            <place id="Doctor_Doctor">
 
216
                <graphics>
 
217
                    <position x="345" y="495"/>
 
218
                </graphics>
 
219
                <name>
 
220
                    <graphics>
 
221
                        <offset x="-8" y="13"/>
 
222
                    </graphics>
 
223
                    <text>Doctor_Doctor</text>
 
224
                </name>
 
225
                <initialMarking>
 
226
                    <text>1</text>
 
227
                </initialMarking>
 
228
            </place>
 
229
            <place id="Doctor_ReadyForCheck">
 
230
                <graphics>
 
231
                    <position x="540" y="585"/>
 
232
                </graphics>
 
233
                <name>
 
234
                    <graphics>
 
235
                        <offset x="126" y="21"/>
 
236
                    </graphics>
 
237
                    <text>Doctor_ReadyForCheck</text>
 
238
                </name>
 
239
                <initialMarking>
 
240
                    <text>0</text>
 
241
                </initialMarking>
 
242
            </place>
 
243
            <place id="Doctor_Decision">
 
244
                <graphics>
 
245
                    <position x="450" y="690"/>
 
246
                </graphics>
 
247
                <name>
 
248
                    <graphics>
 
249
                        <offset x="38" y="-18"/>
 
250
                    </graphics>
 
251
                    <text>Doctor_Decision</text>
 
252
                </name>
 
253
                <initialMarking>
 
254
                    <text>0</text>
 
255
                </initialMarking>
 
256
            </place>
 
257
            <place id="Doctor_Finished">
 
258
                <graphics>
 
259
                    <position x="345" y="795"/>
 
260
                </graphics>
 
261
                <name>
 
262
                    <graphics>
 
263
                        <offset x="37" y="-9"/>
 
264
                    </graphics>
 
265
                    <text>Doctor_Finished</text>
 
266
                </name>
 
267
                <initialMarking>
 
268
                    <text>0</text>
 
269
                </initialMarking>
 
270
            </place>
 
271
            <place id="Monitor_InProgress">
 
272
                <graphics>
 
273
                    <position x="660" y="600"/>
 
274
                </graphics>
 
275
                <name>
 
276
                    <graphics>
 
277
                        <offset x="-9" y="8"/>
 
278
                    </graphics>
 
279
                    <text>Monitor_InProgress</text>
 
280
                </name>
 
281
                <initialMarking>
 
282
                    <text>0</text>
 
283
                </initialMarking>
 
284
            </place>
 
285
            <place id="Monitor_MissedDeadline">
 
286
                <graphics>
 
287
                    <position x="945" y="600"/>
 
288
                </graphics>
 
289
                <name>
 
290
                    <graphics>
 
291
                        <offset x="64" y="-12"/>
 
292
                    </graphics>
 
293
                    <text>Monitor_MissedDeadline</text>
 
294
                </name>
 
295
                <initialMarking>
 
296
                    <text>0</text>
 
297
                </initialMarking>
 
298
            </place>
 
299
            <transition id="Patient_Arrive">
 
300
                <name>
 
301
                    <graphics>
 
302
                        <offset x="76" y="17"/>
 
303
                    </graphics>
 
304
                    <text>Patient_Arrive</text>
 
305
                </name>
 
306
                <graphics>
 
307
                    <position x="360" y="180"/>
 
308
                </graphics>
 
309
            </transition>
 
310
            <transition id="Shared_MedicalCheck">
 
311
                <name>
 
312
                    <graphics>
 
313
                        <offset x="114" y="9"/>
 
314
                    </graphics>
 
315
                    <text>Shared_MedicalCheck</text>
 
316
                </name>
 
317
                <graphics>
 
318
                    <position x="360" y="375"/>
 
319
                </graphics>
 
320
            </transition>
 
321
            <transition id="Shared_Treatment">
 
322
                <name>
 
323
                    <graphics>
 
324
                        <offset x="43" y="55"/>
 
325
                    </graphics>
 
326
                    <text>Shared_Treatment</text>
 
327
                </name>
 
328
                <graphics>
 
329
                    <position x="270" y="465"/>
 
330
                </graphics>
 
331
            </transition>
 
332
            <transition id="Shared_Checkout">
 
333
                <name>
 
334
                    <graphics>
 
335
                        <offset x="-9" y="35"/>
 
336
                    </graphics>
 
337
                    <text>Shared_Checkout</text>
 
338
                </name>
 
339
                <graphics>
 
340
                    <position x="180" y="375"/>
 
341
                </graphics>
 
342
            </transition>
 
343
            <transition id="Shared_ReBook">
 
344
                <name>
 
345
                    <graphics>
 
346
                        <offset x="39" y="-8"/>
 
347
                    </graphics>
 
348
                    <text>Shared_ReBook</text>
 
349
                </name>
 
350
                <graphics>
 
351
                    <position x="270" y="375"/>
 
352
                </graphics>
 
353
            </transition>
 
354
            <transition id="Shared_Arrival">
 
355
                <name>
 
356
                    <graphics>
 
357
                        <offset x="73" y="11"/>
 
358
                    </graphics>
 
359
                    <text>Shared_Arrival</text>
 
360
                </name>
 
361
                <graphics>
 
362
                    <position x="465" y="255"/>
 
363
                </graphics>
 
364
            </transition>
 
365
            <transition id="Nurse_OpenPatientJournal">
 
366
                <name>
 
367
                    <graphics>
 
368
                        <offset x="56" y="-11"/>
 
369
                    </graphics>
 
370
                    <text>Nurse_OpenPatientJournal</text>
 
371
                </name>
 
372
                <graphics>
 
373
                    <position x="930" y="90"/>
 
374
                </graphics>
 
375
            </transition>
 
376
            <transition id="Nurse_FindNewDate">
 
377
                <name>
 
378
                    <graphics>
 
379
                        <offset x="-1" y="16"/>
 
380
                    </graphics>
 
381
                    <text>Nurse_FindNewDate</text>
 
382
                </name>
 
383
                <graphics>
 
384
                    <position x="810" y="270"/>
 
385
                </graphics>
 
386
            </transition>
 
387
            <transition id="Nurse_ClosePatientJournal">
 
388
                <name>
 
389
                    <graphics>
 
390
                        <offset x="73" y="45"/>
 
391
                    </graphics>
 
392
                    <text>Nurse_ClosePatientJournal</text>
 
393
                </name>
 
394
                <graphics>
 
395
                    <position x="930" y="390"/>
 
396
                </graphics>
 
397
            </transition>
 
398
            <transition id="Doctor_ReadPatientJournal">
 
399
                <name>
 
400
                    <graphics>
 
401
                        <offset x="140" y="6"/>
 
402
                    </graphics>
 
403
                    <text>Doctor_ReadPatientJournal</text>
 
404
                </name>
 
405
                <graphics>
 
406
                    <position x="345" y="585"/>
 
407
                </graphics>
 
408
            </transition>
 
409
            <transition id="Doctor_NOK">
 
410
                <name>
 
411
                    <graphics>
 
412
                        <offset x="48" y="-1"/>
 
413
                    </graphics>
 
414
                    <text>Doctor_NOK</text>
 
415
                </name>
 
416
                <graphics>
 
417
                    <position x="345" y="690"/>
 
418
                </graphics>
 
419
            </transition>
 
420
            <transition id="Doctor_UpdatePatientJournal">
 
421
                <name>
 
422
                    <graphics>
 
423
                        <offset x="71" y="51"/>
 
424
                    </graphics>
 
425
                    <text>Doctor_UpdatePatientJournal</text>
 
426
                </name>
 
427
                <graphics>
 
428
                    <position x="255" y="795"/>
 
429
                </graphics>
 
430
            </transition>
 
431
            <transition id="Monitor_MissDeadline">
 
432
                <name>
 
433
                    <graphics>
 
434
                        <offset x="56" y="-13"/>
 
435
                    </graphics>
 
436
                    <text>Monitor_MissDeadline</text>
 
437
                </name>
 
438
                <graphics>
 
439
                    <position x="810" y="600"/>
 
440
                </graphics>
 
441
            </transition>
 
442
            <arc id="Patient_Timer_to_Patient_Arrive" source="Patient_Timer" target="Patient_Arrive" type="normal">
 
443
                <graphics>
 
444
                    <position x="270" y="150"/>
 
445
                </graphics>
 
446
            </arc>
 
447
            <arc id="Patient_Patient_to_Patient_Arrive" source="Patient_Patient" target="Patient_Arrive" type="normal"/>
 
448
            <arc id="Patient_P0_to_Shared_Arrival" source="Patient_P0" target="Shared_Arrival" type="normal"/>
 
449
            <arc id="Nurse_Nurse_to_Shared_Arrival" source="Nurse_Nurse" target="Shared_Arrival" type="normal"/>
 
450
            <arc id="Nurse_Busy_to_Nurse_OpenPatientJournal" source="Nurse_Busy" target="Nurse_OpenPatientJournal" type="normal"/>
 
451
            <arc id="Shared_MedicalCheckNOK_to_Nurse_FindNewDate" source="Shared_MedicalCheckNOK" target="Nurse_FindNewDate" type="normal"/>
 
452
            <arc id="Nurse_AwaitingAnswer_to_Nurse_FindNewDate" source="Nurse_AwaitingAnswer" target="Nurse_FindNewDate" type="normal"/>
 
453
            <arc id="Nurse_ReadyToReBook_to_Shared_ReBook" source="Nurse_ReadyToReBook" target="Shared_ReBook" type="normal"/>
 
454
            <arc id="Shared_MedicalCheckOK_to_Nurse_ClosePatientJournal" source="Shared_MedicalCheckOK" target="Nurse_ClosePatientJournal" type="normal"/>
 
455
            <arc id="Nurse_AwaitingAnswer_to_Nurse_ClosePatientJournal" source="Nurse_AwaitingAnswer" target="Nurse_ClosePatientJournal" type="normal">
 
456
                <graphics>
 
457
                    <position x="990" y="315"/>
 
458
                </graphics>
 
459
            </arc>
 
460
            <arc id="Nurse_ReadyToCheckout_to_Shared_Checkout" source="Nurse_ReadyToCheckout" target="Shared_Checkout" type="normal"/>
 
461
            <arc id="Doctor_Doctor_to_Doctor_ReadPatientJournal" source="Doctor_Doctor" target="Doctor_ReadPatientJournal" type="normal"/>
 
462
            <arc id="Shared_RequestMedicalCheck_to_Doctor_ReadPatientJournal" source="Shared_RequestMedicalCheck" target="Doctor_ReadPatientJournal" type="normal"/>
 
463
            <arc id="Doctor_ReadyForCheck_to_Shared_MedicalCheck" source="Doctor_ReadyForCheck" target="Shared_MedicalCheck" type="normal"/>
 
464
            <arc id="Doctor_Decision_to_Doctor_NOK" source="Doctor_Decision" target="Doctor_NOK" type="normal"/>
 
465
            <arc id="Doctor_Decision_to_Shared_Treatment" source="Doctor_Decision" target="Shared_Treatment" type="normal"/>
 
466
            <arc id="Doctor_Finished_to_Doctor_UpdatePatientJournal" source="Doctor_Finished" target="Doctor_UpdatePatientJournal" type="normal"/>
 
467
            <arc id="Monitor_InProgress_to_Shared_Treatment" source="Monitor_InProgress" target="Shared_Treatment" type="normal"/>
 
468
            <arc id="Monitor_InProgress_to_Shared_ReBook" source="Monitor_InProgress" target="Shared_ReBook" type="normal"/>
 
469
            <arc id="Monitor_InProgress_to_Monitor_MissDeadline" source="Monitor_InProgress" target="Monitor_MissDeadline" type="normal"/>
 
470
            <arc id="Patient_Arrive_to_Patient_Timer" source="Patient_Arrive" target="Patient_Timer" type="normal">
 
471
                <graphics>
 
472
                    <position x="240" y="225"/>
 
473
                </graphics>
 
474
            </arc>
 
475
            <arc id="Shared_Arrival_to_Patient_Waiting" source="Shared_Arrival" target="Patient_Waiting" type="normal"/>
 
476
            <arc id="Patient_Arrive_to_Patient_P0" source="Patient_Arrive" target="Patient_P0" type="normal"/>
 
477
            <arc id="Shared_Arrival_to_Nurse_Busy" source="Shared_Arrival" target="Nurse_Busy" type="normal"/>
 
478
            <arc id="Nurse_OpenPatientJournal_to_Nurse_AwaitingAnswer" source="Nurse_OpenPatientJournal" target="Nurse_AwaitingAnswer" type="normal"/>
 
479
            <arc id="Nurse_OpenPatientJournal_to_Shared_RequestMedicalCheck" source="Nurse_OpenPatientJournal" target="Shared_RequestMedicalCheck" type="normal"/>
 
480
            <arc id="Nurse_FindNewDate_to_Nurse_ReadyToReBook" source="Nurse_FindNewDate" target="Nurse_ReadyToReBook" type="normal"/>
 
481
            <arc id="Shared_ReBook_to_Nurse_Nurse" source="Shared_ReBook" target="Nurse_Nurse" type="normal"/>
 
482
            <arc id="Nurse_ClosePatientJournal_to_Nurse_ReadyToCheckout" source="Nurse_ClosePatientJournal" target="Nurse_ReadyToCheckout" type="normal"/>
 
483
            <arc id="Shared_Checkout_to_Nurse_Nurse" source="Shared_Checkout" target="Nurse_Nurse" type="normal"/>
 
484
            <arc id="Doctor_ReadPatientJournal_to_Doctor_ReadyForCheck" source="Doctor_ReadPatientJournal" target="Doctor_ReadyForCheck" type="normal"/>
 
485
            <arc id="Shared_MedicalCheck_to_Doctor_Decision" source="Shared_MedicalCheck" target="Doctor_Decision" type="normal"/>
 
486
            <arc id="Doctor_NOK_to_Shared_MedicalCheckNOK" source="Doctor_NOK" target="Shared_MedicalCheckNOK" type="normal"/>
 
487
            <arc id="Shared_Treatment_to_Doctor_Finished" source="Shared_Treatment" target="Doctor_Finished" type="normal"/>
 
488
            <arc id="Doctor_UpdatePatientJournal_to_Shared_MedicalCheckOK" source="Doctor_UpdatePatientJournal" target="Shared_MedicalCheckOK" type="normal"/>
 
489
            <arc id="Doctor_NOK_to_Doctor_Doctor" source="Doctor_NOK" target="Doctor_Doctor" type="normal">
 
490
                <graphics>
 
491
                    <position x="315" y="585"/>
 
492
                </graphics>
 
493
            </arc>
 
494
            <arc id="Doctor_UpdatePatientJournal_to_Doctor_Doctor" source="Doctor_UpdatePatientJournal" target="Doctor_Doctor" type="normal">
 
495
                <graphics>
 
496
                    <position x="255" y="570"/>
 
497
                </graphics>
 
498
            </arc>
 
499
            <arc id="Shared_Arrival_to_Monitor_InProgress" source="Shared_Arrival" target="Monitor_InProgress" type="normal"/>
 
500
            <arc id="Monitor_MissDeadline_to_Monitor_MissedDeadline" source="Monitor_MissDeadline" target="Monitor_MissedDeadline" type="normal"/>
 
501
            <arc id="Patient_Waiting_to_Shared_MedicalCheck" source="Patient_Waiting" target="Shared_MedicalCheck" type="normal"/>
 
502
            <arc id="Shared_MedicalCheck_to_Patient_WaitForDecision" source="Shared_MedicalCheck" target="Patient_WaitForDecision" type="normal"/>
 
503
            <arc id="Patient_WaitForDecision_to_Shared_ReBook" source="Patient_WaitForDecision" target="Shared_ReBook" type="normal"/>
 
504
            <arc id="Shared_ReBook_to_Patient_PatientFinished" source="Shared_ReBook" target="Patient_PatientFinished" type="normal"/>
 
505
            <arc id="Patient_WaitForDecision_to_Shared_Treatment" source="Patient_WaitForDecision" target="Shared_Treatment" type="normal"/>
 
506
            <arc id="Shared_Treatment_to_Patient_Treated" source="Shared_Treatment" target="Patient_Treated" type="normal"/>
 
507
            <arc id="Patient_Treated_to_Shared_Checkout" source="Patient_Treated" target="Shared_Checkout" type="normal"/>
 
508
            <arc id="Shared_Checkout_to_Patient_PatientFinished" source="Shared_Checkout" target="Patient_PatientFinished" type="normal"/>
 
509
        </page>
 
510
        <name>
 
511
            <text>ComposedModel</text>
 
512
        </name>
 
513
    </net>
 
514
</pnml>