<?xml version="1.0"?>
<!DOCTYPE nta PUBLIC "-//Uppaal Team//DTD Flat System 1.0//EN" "http://www.docs.uu.se/docs/rtmv/uppaal/xml/flat-1_0.dtd">
<nta><declaration>
chan send1, rec1;
chan send2, rec2;
chan e1, er1, e2, er2;
chan b1, br1, b2, br2;
chan c1, c2;
chan ack1, ack2;</declaration><template><name x="32" y="16">MAC</name><parameter x="160" y="16">chan send, rec, b, e, c, br, er</parameter><declaration/><location id="id0" x="96" y="224"><name x="104" y="232">a</name><urgent/></location><location id="id1" x="224" y="96"><urgent/></location><location id="id2" x="224" y="224"><name x="232" y="232">d</name><urgent/></location><location id="id3" x="96" y="96"><name x="104" y="104">done</name><urgent/></location><location id="id4" x="96" y="352"><name x="112" y="352">g</name><urgent/></location><location id="id5" x="224" y="352"><name x="240" y="360">h</name><urgent/></location><location id="id6" x="352" y="96"><name x="352" y="104">transfer</name><urgent/></location><init ref="id3"/><transition><source ref="id0"/><target ref="id2"/><label kind="synchronisation" x="144" y="200">send?</label></transition><transition><source ref="id0"/><target ref="id4"/><label kind="synchronisation" x="104" y="276">er?</label></transition><transition><source ref="id1"/><target ref="id2"/><label kind="synchronisation" x="232" y="148">br?</label></transition><transition><source ref="id1"/><target ref="id6"/><label kind="synchronisation" x="288" y="72">b!</label></transition><transition><source ref="id2"/><target ref="id5"/><label kind="synchronisation" x="232" y="272">er1?</label></transition><transition><source ref="id3"/><target ref="id0"/><label kind="synchronisation" x="104" y="152">br?</label></transition><transition><source ref="id3"/><target ref="id1"/><label kind="synchronisation" x="144" y="72">send?</label></transition><transition><source ref="id4"/><target ref="id3"/><label kind="synchronisation" x="16" y="176">rec!</label><nail x="32" y="320"/><nail x="32" y="128"/></transition><transition><source ref="id4"/><target ref="id5"/><label kind="synchronisation" x="136" y="328">send?</label></transition><transition><source ref="id5"/><target ref="id1"/><label kind="synchronisation" x="304" y="224">rec!</label><nail x="288" y="320"/><nail x="288" y="144"/></transition><transition><source ref="id6"/><target ref="id1"/><label kind="synchronisation" x="336" y="136">c?</label><nail x="320" y="128"/></transition><transition><source ref="id6"/><target ref="id3"/><label kind="synchronisation" x="216" y="48">e!</label><nail x="320" y="48"/><nail x="128" y="48"/></transition></template><template><name x="32" y="16">M</name><parameter x="136" y="16"/><declaration/><location id="id7" x="352" y="296"><name x="368" y="304">a</name><urgent/></location><location id="id8" x="400" y="208"><name x="416" y="208">c</name><urgent/></location><location id="id9" x="256" y="128"><name x="272" y="136">d</name><urgent/></location><location id="id10" x="352" y="128"><name x="368" y="136">done</name><urgent/></location><location id="id11" x="64" y="128"><name x="80" y="136">g</name><urgent/></location><location id="id12" x="640" y="128"><name x="656" y="136">j</name><urgent/></location><location id="id13" x="304" y="208"><name x="320" y="208">k</name><urgent/></location><location id="id14" x="448" y="128"><name x="464" y="136">l</name><urgent/></location><location id="id15" x="160" y="128"><name x="168" y="136">transfer1</name><urgent/></location><location id="id16" x="544" y="128"><name x="552" y="136">transfer2</name><urgent/></location><init ref="id10"/><transition><source ref="id7"/><target ref="id8"/><label kind="synchronisation" x="384" y="248">c2!</label></transition><transition><source ref="id7"/><target ref="id13"/><label kind="synchronisation" x="296" y="232">c1!</label></transition><transition><source ref="id8"/><target ref="id10"/><label kind="synchronisation" x="384" y="160">c1!</label></transition><transition><source ref="id9"/><target ref="id7"/><label kind="synchronisation" x="224" y="208">b2?</label><nail x="256" y="256"/></transition><transition><source ref="id9"/><target ref="id15"/><label kind="synchronisation" x="188" y="104">br2!</label></transition><transition><source ref="id10"/><target ref="id9"/><label kind="synchronisation" x="296" y="104">b1?</label></transition><transition><source ref="id10"/><target ref="id14"/><label kind="synchronisation" x="400" y="104">b2?</label></transition><transition><source ref="id11"/><target ref="id7"/><label kind="synchronisation" x="32" y="208">b2?</label><nail x="64" y="256"/></transition><transition><source ref="id11"/><target ref="id10"/><label kind="synchronisation" x="192" y="40">er2!</label><nail x="96" y="64"/><nail x="320" y="64"/></transition><transition><source ref="id12"/><target ref="id7"/><label kind="synchronisation" x="648" y="208">b1?</label><nail x="640" y="272"/></transition><transition><source ref="id12"/><target ref="id10"/><label kind="synchronisation" x="488" y="40">er1!</label><nail x="608" y="64"/><nail x="384" y="64"/></transition><transition><source ref="id13"/><target ref="id10"/><label kind="synchronisation" x="296" y="160">c2!</label></transition><transition><source ref="id14"/><target ref="id7"/><label kind="synchronisation" x="464" y="208">b1?</label><nail x="448" y="256"/></transition><transition><source ref="id14"/><target ref="id16"/><label kind="synchronisation" x="480" y="104">br1!</label></transition><transition><source ref="id15"/><target ref="id7"/><label kind="synchronisation" x="128" y="208">b2?</label><nail x="160" y="248"/></transition><transition><source ref="id15"/><target ref="id11"/><label kind="synchronisation" x="100" y="104">e1?</label></transition><transition><source ref="id16"/><target ref="id7"/><label kind="synchronisation" x="552" y="216">b1?</label><nail x="544" y="264"/></transition><transition><source ref="id16"/><target ref="id12"/><label kind="synchronisation" x="584" y="104">e2?</label></transition></template><instantiation>MAC1 := MAC( send1, rec1, b1, e1, c1, br1, er1 );
MAC2 := MAC( send2, rec2, b2, e2, c2, br2, er2 );</instantiation><system>system 
      MAC1, MAC2, M;</system></nta>