<?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_1.dtd'><nta><declaration>// Place global declarations here.
chan fork[5];
</declaration><template><name x="16" y="16">Philo</name><parameter>chan&amp; left, chan&amp; right</parameter><declaration>// Place local declarations here.
</declaration><location id="id0" x="-368" y="-288"></location><location id="id1" x="-256" y="-288"></location><location id="id2" x="-256" y="-208"><name x="-272" y="-192">Eat</name></location><location id="id3" x="-368" y="-208"><name x="-384" y="-192">Full</name></location><location id="id4" x="-256" y="-368"><name x="-272" y="-400">Hunger</name></location><location id="id5" x="-368" y="-368"><name x="-384" y="-400">Think</name></location><init ref="id5"/><transition><source ref="id0"/><target ref="id5"/><label kind="synchronisation" x="-416" y="-336">right!</label><nail x="-368" y="-352"/></transition><transition><source ref="id1"/><target ref="id2"/><label kind="synchronisation" x="-240" y="-272">right?</label></transition><transition><source ref="id3"/><target ref="id0"/><label kind="synchronisation" x="-416" y="-256">left!</label><nail x="-368" y="-272"/></transition><transition><source ref="id2"/><target ref="id3"/></transition><transition><source ref="id4"/><target ref="id1"/><label kind="synchronisation" x="-240" y="-352">left?</label><nail x="-256" y="-304"/></transition><transition><source ref="id5"/><target ref="id4"/></transition></template><template><name>Init</name><declaration>// Place local declarations here.
int[0,5] i;</declaration><location id="id6" x="-656" y="-400"></location><location id="id7" x="-736" y="-400"></location><location id="id8" x="-816" y="-400"></location><init ref="id8"/><transition><source ref="id7"/><target ref="id7"/><label kind="guard" x="-736" y="-304">i&lt;5</label><label kind="synchronisation" x="-752" y="-320">fork[i]!</label><label kind="assignment" x="-736" y="-288">++i</label><nail x="-672" y="-320"/><nail x="-784" y="-320"/></transition><transition><source ref="id7"/><target ref="id6"/><label kind="guard" x="-704" y="-432">i==5</label></transition><transition><source ref="id8"/><target ref="id7"/><label kind="assignment" x="-784" y="-432">i=0</label></transition></template><system>// Place template instantiations here.
P0 = Philo(fork[0], fork[1]);
P1 = Philo(fork[1], fork[2]);
P2 = Philo(fork[2], fork[3]);
P3 = Philo(fork[3], fork[4]);
P4 = Philo(fork[4], fork[0]);

// List one or more processes to be composed into a system.
system Init, P0, P1, P2, P3, P4;</system></nta>