<?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>
//Het Alternating Bit Protocol (ABP)
//
//Model door Frits Vaandrager op 12/11/09


chan in0, in1, sendframe00, sendframe01, sendframe10, sendframe11, 
    receiveframe00, receiveframe01, receiveframe10, receiveframe11,
    sendack0, sendack1, receiveack0, receiveack1, out0, out1;
</declaration><template><name x="5" y="5">S</name><declaration>


</declaration><location id="id0" x="-64" y="352"><name x="-48" y="360">S11</name></location><location id="id1" x="320" y="-32"><name x="336" y="-32">S10</name></location><location id="id2" x="64" y="224"><name x="32" y="200">S01</name></location><location id="id3" x="192" y="224"><name x="208" y="232">S1</name></location><location id="id4" x="64" y="96"><name x="32" y="72">S0</name></location><location id="id5" x="192" y="96"><name x="208" y="96">S00</name></location><init ref="id4"/><transition><source ref="id0"/><target ref="id0"/><label kind="synchronisation" x="-120" y="416">sendframe11!</label><nail x="-64" y="416"/><nail x="-96" y="416"/></transition><transition><source ref="id0"/><target ref="id0"/><label kind="synchronisation" x="-192" y="384">receiveack0?</label><nail x="-128" y="352"/><nail x="-128" y="384"/></transition><transition><source ref="id1"/><target ref="id1"/><label kind="synchronisation" x="360" y="-80">receiveack1?</label><nail x="384" y="-32"/><nail x="384" y="-64"/></transition><transition><source ref="id1"/><target ref="id1"/><label kind="synchronisation" x="296" y="-120">sendframe10!</label><nail x="320" y="-96"/><nail x="352" y="-96"/></transition><transition><source ref="id0"/><target ref="id4"/><label kind="synchronisation" x="-160" y="144">receiveack1?</label><nail x="-64" y="96"/></transition><transition><source ref="id3"/><target ref="id0"/><label kind="synchronisation" x="96" y="360">in1?</label><nail x="192" y="352"/></transition><transition><source ref="id1"/><target ref="id3"/><label kind="synchronisation" x="328" y="144">receiveack0?</label><nail x="320" y="224"/></transition><transition><source ref="id4"/><target ref="id1"/><label kind="synchronisation" x="96" y="-56">in1?</label><nail x="64" y="-32"/></transition><transition><source ref="id2"/><target ref="id2"/><label kind="synchronisation" x="8" y="296">sendframe01!</label><nail x="64" y="288"/><nail x="32" y="288"/></transition><transition><source ref="id2"/><target ref="id2"/><label kind="synchronisation" x="-48" y="256">receiveack0?</label><nail x="0" y="224"/><nail x="0" y="256"/></transition><transition><source ref="id2"/><target ref="id4"/><label kind="synchronisation" x="-24" y="144">receiveack1?</label></transition><transition><source ref="id3"/><target ref="id2"/><label kind="synchronisation" x="96" y="232">in0?</label></transition><transition><source ref="id5"/><target ref="id3"/><label kind="synchronisation" x="200" y="144">receiveack0?</label></transition><transition><source ref="id5"/><target ref="id5"/><label kind="synchronisation" x="216" y="48">receiveack1?</label><nail x="256" y="96"/><nail x="256" y="64"/></transition><transition><source ref="id5"/><target ref="id5"/><label kind="synchronisation" x="152" y="8">sendframe00!</label><nail x="192" y="32"/><nail x="224" y="32"/></transition><transition><source ref="id4"/><target ref="id5"/><label kind="synchronisation" x="96" y="72">in0?</label></transition></template><template><name>L</name><declaration>
</declaration><location id="id6" x="256" y="96"><name x="224" y="80">L0</name></location><location id="id7" x="416" y="96"><name x="400" y="64">INIT</name></location><location id="id8" x="576" y="96"><name x="592" y="80">L1</name></location><init ref="id7"/><transition><source ref="id6"/><target ref="id7"/><label kind="synchronisation" x="280" y="136">receiveack0!</label><nail x="288" y="128"/><nail x="352" y="128"/></transition><transition><source ref="id6"/><target ref="id7"/></transition><transition><source ref="id7"/><target ref="id6"/><label kind="synchronisation" x="288" y="40">sendack0?</label><nail x="352" y="64"/><nail x="288" y="64"/></transition><transition><source ref="id8"/><target ref="id7"/></transition><transition><source ref="id8"/><target ref="id7"/><label kind="synchronisation" x="464" y="136">receiveack1!</label><nail x="544" y="128"/><nail x="480" y="128"/></transition><transition><source ref="id7"/><target ref="id8"/><label kind="synchronisation" x="472" y="40">sendack1?</label><nail x="480" y="64"/><nail x="544" y="64"/></transition></template><template><name>R</name><location id="id9" x="-512" y="0"><name x="-504" y="-32">R11</name></location><location id="id10" x="-128" y="-384"><name x="-112" y="-400">R10</name></location><location id="id11" x="-384" y="-128"><name x="-368" y="-152">R01</name></location><location id="id12" x="-256" y="-128"><name x="-280" y="-152">R1</name></location><location id="id13" x="-256" y="-256"><name x="-240" y="-272">R00</name></location><location id="id14" x="-384" y="-256"><name x="-376" y="-248">R0</name></location><init ref="id14"/><transition><source ref="id9"/><target ref="id14"/><label kind="synchronisation" x="-504" y="-200">out1!</label><nail x="-512" y="-128"/></transition><transition><source ref="id12"/><target ref="id9"/><label kind="synchronisation" x="-400" y="0">receiveframe11?</label><nail x="-384" y="0"/></transition><transition><source ref="id10"/><target ref="id12"/><label kind="synchronisation" x="-184" y="-200">out1!</label><nail x="-128" y="-256"/></transition><transition><source ref="id14"/><target ref="id10"/><label kind="synchronisation" x="-320" y="-408">receiveframe10?</label><nail x="-256" y="-384"/></transition><transition><source ref="id12"/><target ref="id12"/><label kind="synchronisation" x="-168" y="-48">receiveframe10?</label><nail x="-160" y="-64"/><nail x="-192" y="-32"/></transition><transition><source ref="id14"/><target ref="id14"/><label kind="synchronisation" x="-448" y="-376">receiveframe11?</label><nail x="-384" y="-352"/><nail x="-416" y="-352"/></transition><transition><source ref="id12"/><target ref="id12"/><label kind="synchronisation" x="-280" y="-24">receiveframe00?</label><nail x="-256" y="-32"/><nail x="-224" y="-32"/></transition><transition><source ref="id12"/><target ref="id12"/><label kind="synchronisation" x="-152" y="-128">sendack0!</label><nail x="-160" y="-128"/><nail x="-160" y="-96"/></transition><transition><source ref="id11"/><target ref="id14"/><label kind="synchronisation" x="-424" y="-200">out0!</label></transition><transition><source ref="id12"/><target ref="id11"/><label kind="synchronisation" x="-400" y="-112">receiveframe01?</label></transition><transition><source ref="id13"/><target ref="id12"/><label kind="synchronisation" x="-248" y="-200">out0!</label></transition><transition><source ref="id14"/><target ref="id14"/><label kind="synchronisation" x="-560" y="-280">sendack1!</label><nail x="-480" y="-256"/><nail x="-480" y="-288"/></transition><transition><source ref="id14"/><target ref="id14"/><label kind="synchronisation" x="-592" y="-352">receiveframe01?</label><nail x="-448" y="-352"/><nail x="-480" y="-320"/></transition><transition><source ref="id14"/><target ref="id13"/><label kind="synchronisation" x="-320" y="-288">receiveframe00?</label></transition></template><template><name>Tester</name><location id="id15" x="-640" y="-192"><name x="-672" y="-216">T1</name></location><location id="id16" x="-512" y="-352"><name x="-552" y="-392">ProtocolFout</name></location><location id="id17" x="-384" y="-192"><name x="-368" y="-216">T0</name></location><location id="id18" x="-512" y="-192"><name x="-512" y="-232">T</name></location><init ref="id18"/><transition><source ref="id15"/><target ref="id16"/><label kind="synchronisation" x="-688" y="-304">out0?</label><nail x="-640" y="-352"/></transition><transition><source ref="id18"/><target ref="id16"/><label kind="synchronisation" x="-472" y="-304">out1?</label><nail x="-480" y="-256"/><nail x="-480" y="-320"/></transition><transition><source ref="id15"/><target ref="id18"/><label kind="synchronisation" x="-600" y="-152">out1?</label><nail x="-608" y="-160"/><nail x="-544" y="-160"/></transition><transition><source ref="id18"/><target ref="id15"/><label kind="synchronisation" x="-600" y="-216">in1!</label></transition><transition><source ref="id17"/><target ref="id18"/><label kind="synchronisation" x="-472" y="-152">out0?</label><nail x="-416" y="-160"/><nail x="-480" y="-160"/></transition><transition><source ref="id17"/><target ref="id16"/><label kind="synchronisation" x="-376" y="-304">out1?</label><nail x="-384" y="-352"/></transition><transition><source ref="id18"/><target ref="id16"/><label kind="synchronisation" x="-592" y="-304">out0?</label><nail x="-544" y="-256"/><nail x="-544" y="-320"/></transition><transition><source ref="id18"/><target ref="id17"/><label kind="synchronisation" x="-472" y="-216">in0!</label></transition></template><template><name>K</name><location id="id19" x="416" y="256"><name x="408" y="272">K11</name></location><location id="id20" x="416" y="-64"><name x="406" y="-94">K10</name></location><location id="id21" x="256" y="96"><name x="208" y="80">K00</name></location><location id="id22" x="416" y="96"><name x="448" y="96">INIT</name></location><location id="id23" x="576" y="96"><name x="592" y="80">K01</name></location><init ref="id22"/><transition><source ref="id19"/><target ref="id22"/><label kind="synchronisation" x="264" y="192">receiveframe11!</label><nail x="384" y="224"/><nail x="384" y="160"/></transition><transition><source ref="id22"/><target ref="id19"/><label kind="synchronisation" x="456" y="192">sendframe11?</label><nail x="448" y="160"/><nail x="448" y="224"/></transition><transition><source ref="id19"/><target ref="id22"/></transition><transition><source ref="id20"/><target ref="id22"/></transition><transition><source ref="id20"/><target ref="id22"/><label kind="synchronisation" x="264" y="-16">receiveframe10!</label><nail x="384" y="-32"/><nail x="384" y="32"/></transition><transition><source ref="id22"/><target ref="id20"/><label kind="synchronisation" x="456" y="-16">sendframe10?</label><nail x="448" y="32"/><nail x="448" y="-32"/></transition><transition><source ref="id21"/><target ref="id22"/><label kind="synchronisation" x="264" y="128">receiveframe00!</label><nail x="288" y="128"/><nail x="352" y="128"/></transition><transition><source ref="id21"/><target ref="id22"/></transition><transition><source ref="id22"/><target ref="id21"/><label kind="synchronisation" x="272" y="40">sendframe00?</label><nail x="352" y="64"/><nail x="288" y="64"/></transition><transition><source ref="id23"/><target ref="id22"/></transition><transition><source ref="id23"/><target ref="id22"/><label kind="synchronisation" x="456" y="128">receiveframe01!</label><nail x="544" y="128"/><nail x="480" y="128"/></transition><transition><source ref="id22"/><target ref="id23"/><label kind="synchronisation" x="464" y="40">sendframe01?</label><nail x="480" y="64"/><nail x="544" y="64"/></transition></template><system>

system S, K, R, L, Tester;</system></nta>