~yrke/opaal/timedart-vars+discrete

« back to all changes in this revision

Viewing changes to tests/dekker-mutual-exclusion.xml

  • Committer: Mads Chr. Olesen
  • Date: 2011-02-08 07:59:07 UTC
  • mfrom: (33.1.18 opaal-lattice-jam)
  • Revision ID: launchpad@shiyee.dk-20110208075907-e8jz8m53mugcibq9
Merged opaal-lattice-jam

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?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>// From Doron Peled's slides on "Software Reliability Methods"
 
2
// Translated to UPPAAL by Mads Chr. Olesen (2011)
 
3
int turn;</declaration><template><name x="5" y="5">P0</name><declaration>// Place local declarations here.
 
4
</declaration><location id="id0" x="-136" y="-360"><name x="-146" y="-390">L</name></location><location id="id1" x="-56" y="-184"><name x="-48" y="-168">CR</name></location><location id="id2" x="-56" y="-288"><name x="-48" y="-312">NC</name></location><init ref="id0"/><transition><source ref="id2"/><target ref="id2"/><label kind="guard" x="-56" y="-344">turn == 1</label><nail x="24" y="-288"/><nail x="24" y="-328"/><nail x="-56" y="-328"/></transition><transition><source ref="id1"/><target ref="id0"/><label kind="assignment" x="-200" y="-272">turn = 1</label><nail x="-136" y="-184"/></transition><transition><source ref="id2"/><target ref="id1"/><label kind="guard" x="-48" y="-248">turn == 0</label></transition><transition><source ref="id0"/><target ref="id2"/></transition></template><template><name x="5" y="5">P1</name><declaration>// Place local declarations here.
 
5
</declaration><location id="id3" x="-136" y="-360"><name x="-146" y="-390">L</name></location><location id="id4" x="-56" y="-184"><name x="-48" y="-168">CR</name></location><location id="id5" x="-56" y="-288"><name x="-48" y="-312">NC</name></location><init ref="id3"/><transition><source ref="id5"/><target ref="id5"/><label kind="guard" x="-48" y="-344">turn == 0</label><nail x="24" y="-288"/><nail x="24" y="-328"/><nail x="-56" y="-328"/></transition><transition><source ref="id4"/><target ref="id3"/><label kind="assignment" x="-200" y="-272">turn = 0</label><nail x="-136" y="-184"/></transition><transition><source ref="id5"/><target ref="id4"/><label kind="guard" x="-48" y="-248">turn == 1</label></transition><transition><source ref="id3"/><target ref="id5"/></transition></template><system>system P0, P1;</system></nta>
 
 
b'\\ No newline at end of file'