-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdemo.xml
56 lines (54 loc) · 1.8 KB
/
demo.xml
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
<?xml version="1.0" ?>
<nta>
<declaration>// Place global declarations here.
broadcast chan a, b, c, d;</declaration>
<template>
<name>Template</name>
<declaration>// Place local declarations here.
clock t;</declaration>
<location id="id0" x="-306" y="-85">
<name x="-316" y="-119">start</name>
<label kind="invariant" x="-331" y="-68">t<=10</label>
</location>
<location id="id1" x="-204" y="-51">
<label kind="invariant" x="-221" y="-34">t<=20</label>
</location>
<location id="id2" x="-204" y="-127"/>
<location id="id3" x="-102" y="-85">
<name x="-112" y="-119">pass</name>
</location>
<init ref="id0"/>
<transition>
<source ref="id1"/>
<target ref="id3"/>
<label kind="synchronisation" x="-161" y="-59">d!</label>
</transition>
<transition>
<source ref="id2"/>
<target ref="id3"/>
<label kind="synchronisation" x="-153" y="-127">b!</label>
</transition>
<transition>
<source ref="id0"/>
<target ref="id2"/>
<label kind="guard" x="-255" y="-102">t>=10</label>
<label kind="synchronisation" x="-272" y="-127">a!</label>
</transition>
<transition>
<source ref="id0"/>
<target ref="id1"/>
<label kind="synchronisation" x="-272" y="-68">c!</label>
</transition>
</template>
<system>// Place template instantiations here.
P1 = Template();
// List one or more processes to be composed into a system.
system P1;
</system>
<queries>
<query>
<formula>E<> P1.pass</formula>
<comment/>
</query>
</queries>
</nta>