<?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>

int[0,1] turn;</declaration><template><name x="8" y="8">P</name><parameter>const int pid</parameter><location id="id0" x="-224" y="-224"><name x="-256" y="-256">remainder</name></location><location id="id1" x="-224" y="-96"><name x="-280" y="-128">trying</name></location><location id="id2" x="-224" y="32"><name x="-256" y="16">cs</name></location><init ref="id0"/><transition><source ref="id0"/><target ref="id1"/></transition><transition><source ref="id1"/><target ref="id2"/><label kind="guard" x="-312" y="-48">turn == pid</label></transition><transition><source ref="id2"/><target ref="id0"/><label kind="assignment" x="-184" y="-144">turn = 1-pid</label><nail x="-192" y="32"/><nail x="-192" y="-224"/></transition><transition><source ref="id1"/><target ref="id1"/><label kind="guard" x="-384" y="-120">turn != pid</label><nail x="-352" y="-96"/><nail x="-352" y="-64"/></transition></template><system>P0 := P(0);
P1 := P(1);

system P0,P1;</system></nta>