<?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] bolt;

bool testset(int[0,1] &amp;i)
{
  if(i==0){ i=1;
            return true; }
          { return false;}
}
</declaration><template><name x="5" y="5">P</name><parameter>const int[0,1] pid</parameter><declaration>//Insert local declarations of clocks, variables and constants.
bool l;</declaration><location id="id0" x="64" y="128"><name x="16" y="112">try0</name></location><location id="id1" x="256" y="128"><name x="280" y="120">try1</name></location><location id="id2" x="256" y="256"><name x="280" y="248">cs</name></location><location id="id3" x="64" y="256"><name x="-16" y="240">remainder</name></location><init ref="id3"/><transition><source ref="id1"/><target ref="id0"/><label kind="guard" x="264" y="80">not l</label><nail x="256" y="0"/><nail x="64" y="0"/></transition><transition><source ref="id3"/><target ref="id0"/></transition><transition><source ref="id0"/><target ref="id1"/><label kind="assignment" x="96" y="104">l = testset(bolt)</label></transition><transition><source ref="id1"/><target ref="id2"/><label kind="guard" x="264" y="160">l</label></transition><transition><source ref="id2"/><target ref="id3"/><label kind="assignment" x="104" y="256">bolt = 0</label></transition></template><system>
system P;</system></nta>
