<?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.
bool free1 := true, free2 := true, free3 := true;
clock t;
</declaration>
	<template>
		<name x="5" y="5">Job1</name>
		<declaration>clock x;</declaration>
		<location id="id0" x="144" y="-221">
			<name x="134" y="-255">Done</name>
		</location>
		<location id="id1" x="34" y="-221" color="#ffa500">
		</location>
		<location id="id2" x="-76" y="-221">
		</location>
		<location id="id3" x="-187" y="-221" color="#ff0000">
		</location>
		<location id="id4" x="-297" y="-221">
		</location>
		<location id="id5" x="-526" y="-221">
			<name x="-536" y="-255">Idle</name>
		</location>
		<location id="id6" x="-416" y="-221" color="#0000ff">
		</location>
		<init ref="id5"/>
		<transition>
			<source ref="id1"/>
			<target ref="id0"/>
			<label kind="guard" x="51" y="-238">(x==3)</label>
			<label kind="assignment" x="52" y="-221">free3:=true</label>
		</transition>
		<transition>
			<source ref="id2"/>
			<target ref="id1"/>
			<label kind="guard" x="-59" y="-238">free3</label>
			<label kind="assignment" x="-58" y="-221">x:=0,
free3:=false</label>
		</transition>
		<transition>
			<source ref="id3"/>
			<target ref="id2"/>
			<label kind="guard" x="-170" y="-238">(x==1)</label>
			<label kind="assignment" x="-169" y="-221">free2:=true</label>
		</transition>
		<transition>
			<source ref="id4"/>
			<target ref="id3"/>
			<label kind="guard" x="-280" y="-238">free2</label>
			<label kind="assignment" x="-279" y="-221">x:=0,
free2:=false</label>
		</transition>
		<transition>
			<source ref="id6"/>
			<target ref="id4"/>
			<label kind="guard" x="-399" y="-238">(x==2)</label>
			<label kind="assignment" x="-399" y="-221">free1:=true</label>
		</transition>
		<transition>
			<source ref="id5"/>
			<target ref="id6"/>
			<label kind="guard" x="-509" y="-238">free1</label>
			<label kind="assignment" x="-508" y="-221">x:=0,
free1:=false</label>
		</transition>
	</template>
	<template>
		<name>Job2</name>
		<declaration>clock y;</declaration>
		<location id="id7" x="-170" y="-76">
			<name x="-180" y="-110">Done</name>
		</location>
		<location id="id8" x="-518" y="-76" color="#0000ff">
		</location>
		<location id="id9" x="-408" y="-76">
		</location>
		<location id="id10" x="-297" y="-76" color="#ffa500">
		</location>
		<location id="id11" x="-620" y="-76">
			<name x="-630" y="-110">Idle</name>
		</location>
		<init ref="id11"/>
		<transition>
			<source ref="id10"/>
			<target ref="id7"/>
			<label kind="guard" x="-280" y="-93">(y==3)</label>
			<label kind="assignment" x="-279" y="-76">free3:=true</label>
		</transition>
		<transition>
			<source ref="id9"/>
			<target ref="id10"/>
			<label kind="guard" x="-391" y="-93">free3</label>
			<label kind="assignment" x="-390" y="-76">y:=0,
free3:=false</label>
		</transition>
		<transition>
			<source ref="id8"/>
			<target ref="id9"/>
			<label kind="guard" x="-501" y="-93">(y==1)</label>
			<label kind="assignment" x="-500" y="-76">free1:=true</label>
		</transition>
		<transition>
			<source ref="id11"/>
			<target ref="id8"/>
			<label kind="guard" x="-603" y="-93">free1</label>
			<label kind="assignment" x="-602" y="-76">y:=0,
free1:=false</label>
		</transition>
	</template>
	<system>system Job1, Job2;</system>
	<queries>
		<query>
			<formula>A[] !(Job1.Done and Job2.Done and t&lt;=7)
			</formula>
			<comment>
			</comment>
		</query>
	</queries>
</nta>
