<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE nta PUBLIC '-//Uppaal Team//DTD Flat System 1.1//EN' 'http://www.it.uu.se/research/group/darts/uppaal/flat-1_2.dtd'>
<nta>
	<declaration>// Place global declarations here.</declaration>
	<template>
		<name x="5" y="5">Proc</name>
		<declaration>// Place local declarations here.
clock x, y;</declaration>
		<location id="id0" x="-42" y="-153" color="#00ff00">
			<name x="-52" y="-187">s1</name>
		</location>
		<location id="id1" x="110" y="-42">
			<name x="100" y="-76">s2</name>
		</location>
		<location id="id2" x="-204" y="-42">
			<name x="-214" y="-76">s0</name>
		</location>
		<init ref="id2"/>
		<transition>
			<source ref="id1"/>
			<target ref="id2"/>
			<label kind="guard" x="-59" y="-17">(y&lt;1)</label>
			<label kind="assignment" x="-59" y="0">x:=0</label>
			<nail x="-42" y="-25"/>
		</transition>
		<transition>
			<source ref="id2"/>
			<target ref="id1"/>
			<label kind="guard" x="-59" y="-110">(x&lt;1)</label>
			<label kind="assignment" x="-59" y="-93">y:=0</label>
			<nail x="-42" y="-68"/>
		</transition>
		<transition>
			<source ref="id0"/>
			<target ref="id1"/>
			<label kind="guard" x="34" y="-136">(x&lt;1)</label>
			<label kind="assignment" x="34" y="-119">y:=0</label>
		</transition>
		<transition>
			<source ref="id2"/>
			<target ref="id0"/>
			<label kind="guard" x="-204" y="-127">(x&lt;1 &amp;&amp; y==1)</label>
		</transition>
	</template>
	<system>// Place template instantiations here.
P = Proc();
// List one or more processes to be composed into a system.
system P;
    </system>
	<queries>
		<query>
			<formula>A[] not P.s1
			</formula>
			<comment>
			</comment>
		</query>
		<query>
			<formula>A[] not deadlock
			</formula>
			<comment>
			</comment>
		</query>
		<query>
			<formula>P.s1 --&gt; P.s0
			</formula>
			<comment>
			</comment>
		</query>
	</queries>
</nta>
