<?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>// Number of processes: 
const int N = 2;

int[0,1] flag[N];</declaration><template><name x="8" y="8">P</name><parameter>const int pid</parameter><location id="id0" x="-224" y="-96"></location><location id="id1" x="-224" y="64"></location><location id="id2" x="-224" y="224"><name x="-256" y="208">cs</name></location><location id="id3" x="-224" y="384"></location><init ref="id0"/><transition><source ref="id0"/><target ref="id1"/><label kind="guard" x="-344" y="-32">flag[1-pid] == 0</label></transition><transition><source ref="id1"/><target ref="id2"/><label kind="assignment" x="-320" y="128">flag[pid] = 1</label></transition><transition><source ref="id2"/><target ref="id3"/><label kind="assignment" x="-328" y="304">flag[pid] = 0</label></transition><transition><source ref="id3"/><target ref="id0"/><nail x="-160" y="384"/><nail x="-160" y="-96"/></transition><transition><source ref="id0"/><target ref="id0"/><label kind="guard" x="-368" y="-120">flag[1-pid] == 1</label><nail x="-320" y="-96"/><nail x="-320" y="-64"/></transition></template><system>P0 = P(0);
P1 = P(1);

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