Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New dax loader infrastructure (empty box so far)
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 6 Oct 2009 16:56:48 +0000 (16:56 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 6 Oct 2009 16:56:48 +0000 (16:56 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6720 48e7efb5-ca39-0410-a469-dd3cf9ba447f

13 files changed:
ChangeLog
examples/simdag/Makefile.am
examples/simdag/dax/Montage_50.xml [new file with mode: 0644]
examples/simdag/dax/dax_test.c [new file with mode: 0644]
include/simdag/simdag.h
src/Makefile.am
src/simdag/dax.dtd [new file with mode: 0644]
src/simdag/dax_dtd.c [new file with mode: 0644]
src/simdag/dax_dtd.h [new file with mode: 0644]
src/simdag/dax_dtd.l [new file with mode: 0644]
src/simdag/sd_daxloader.c [new file with mode: 0644]
src/simdag/sd_task.c
src/xbt/graph.c

index 153d317..2cff279 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -53,6 +53,11 @@ SimGrid (3.3.4) unstable; urgency=low
    It provides a rendez-vous point (aka mailbox) based send/recv API to perform
    synchronous communication. 
    
+ SimDag:
+ * new function SD_task_dump() for debuging display
+ * new function SD_daxload(char*) to load a DAX file 
+   (see http://vtcpc.isi.edu/pegasus/index.php/WorkflowGenerator)
+   
  Bug fixes:
  * GTNetS wrappers should now be usable again (and betterly tested too)
  * Fix a major regression from 3.2 where the timeout provided to
index 4193376..1a2b367 100644 (file)
@@ -14,13 +14,17 @@ CLEANFILES = sd_test.trace
 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh
 
 TESTS = test_simdag.tesh test_simdag2.tesh properties/test_prop.tesh metaxml/metaxml_test.tesh
-check_PROGRAMS = sd_test sd_test2 properties/sd_prop metaxml/sd_meta
+check_PROGRAMS = sd_test sd_test2 properties/sd_prop metaxml/sd_meta\
+ dax/dax_test
 
 bin_PROGRAMS = 
 
 properties_sd_prop_SOURCES = properties/sd_prop.c
 properties_sd_prop_LDADD = $(top_builddir)/src/libsimgrid.la
 
+dax_dax_test_SOURCES = dax/dax_test.c
+dax_dax_test_LDADD = $(top_builddir)/src/libsimgrid.la
+
 metaxml_sd_meta_SOURCES = metaxml/sd_meta.c
 metaxml_sd_meta_LDADD = $(top_builddir)/src/libsimgrid.la
 
diff --git a/examples/simdag/dax/Montage_50.xml b/examples/simdag/dax/Montage_50.xml
new file mode 100644 (file)
index 0000000..49fc60f
--- /dev/null
@@ -0,0 +1,589 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- generated: 2008-09-24T14:28:18-07:00 -->
+<!-- generated by: shishir [??] -->
+<adag xmlns="http://pegasus.isi.edu/schema/DAX" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pegasus.isi.edu/schema/DAX http://pegasus.isi.edu/schema/dax-2.1.xsd" 
+      version="2.1" count="1" index="0" name="test" jobCount="50" fileCount="0" childCount="42">
+<!-- part 1: list of all referenced files (may be empty) -->
+<!-- part 2: definition of all jobs (at least one) -->
+  <job id="ID00000" namespace="Montage" name="mProjectPP" version="1.0" runtime="13.08">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4222080"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4161238"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4161238"/>
+  </job>
+  <job id="ID00001" namespace="Montage" name="mProjectPP" version="1.0" runtime="13.48">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4222080"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4154331"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4154331"/>
+  </job>
+  <job id="ID00002" namespace="Montage" name="mProjectPP" version="1.0" runtime="13.55">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="2mass-atlas-ID00002s-jID00002.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4222080"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4146522"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4146522"/>
+  </job>
+  <job id="ID00003" namespace="Montage" name="mProjectPP" version="1.0" runtime="13.31">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4222080"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4169621"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4169621"/>
+  </job>
+  <job id="ID00004" namespace="Montage" name="mProjectPP" version="1.0" runtime="13.43">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4222080"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4168548"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4168548"/>
+  </job>
+  <job id="ID00005" namespace="Montage" name="mProjectPP" version="1.0" runtime="13.60">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4222080"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4165516"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4165516"/>
+  </job>
+  <job id="ID00006" namespace="Montage" name="mProjectPP" version="1.0" runtime="13.60">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="2mass-atlas-ID00006s-jID00006.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4222080"/>
+    <uses file="p2mass-atlas-ID00006s-jID00006.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4158282"/>
+    <uses file="p2mass-atlas-ID00006s-jID00006_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4158282"/>
+  </job>
+  <job id="ID00007" namespace="Montage" name="mProjectPP" version="1.0" runtime="13.17">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="2mass-atlas-ID00007s-jID00007.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4222080"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4160080"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4160080"/>
+  </job>
+  <job id="ID00008" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.65">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4161238"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4161238"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="261"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="425541"/>
+  </job>
+  <job id="ID00009" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.68">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4143966"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4143966"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154331"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154331"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="286"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="330000"/>
+  </job>
+  <job id="ID00010" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.69">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4155521"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4155521"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4146522"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4146522"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="279"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="351987"/>
+  </job>
+  <job id="ID00011" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.78">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4185551"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4185551"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4169621"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4169621"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="266"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="378266"/>
+  </job>
+  <job id="ID00012" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.56">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162779"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162779"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4165516"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4165516"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="281"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="267120"/>
+  </job>
+  <job id="ID00013" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.59">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4169022"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4169022"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162424"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162424"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="259"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="190570"/>
+  </job>
+  <job id="ID00014" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.70">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4161972"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4161972"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="283"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="345692"/>
+  </job>
+  <job id="ID00015" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.54">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4169468"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4169468"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4143502"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4143502"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="261"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="157793"/>
+  </job>
+  <job id="ID00016" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.51">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4171205"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4171205"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4168548"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4168548"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="275"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="332486"/>
+  </job>
+  <job id="ID00017" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.71">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4157076"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4157076"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4160080"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4160080"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="272"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="405131"/>
+  </job>
+  <job id="ID00018" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.48">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4169406"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4169406"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="287"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="287937"/>
+  </job>
+  <job id="ID00019" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.31">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4156149"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4156149"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4159853"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4159853"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="256"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="366476"/>
+  </job>
+  <job id="ID00020" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.63">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4177908"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4177908"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4164219"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4164219"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="294"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="390046"/>
+  </job>
+  <job id="ID00021" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.36">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158714"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158714"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="276"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="302010"/>
+  </job>
+  <job id="ID00022" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.60">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162873"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162873"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4168212"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4168212"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="276"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="338777"/>
+  </job>
+  <job id="ID00023" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.56">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4149016"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4149016"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4157773"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4157773"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="270"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="386009"/>
+  </job>
+  <job id="ID00024" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.28">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4146371"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4146371"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154489"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154489"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="272"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="296484"/>
+  </job>
+  <job id="ID00025" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.51">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4149518"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4149518"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4147415"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4147415"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="271"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="218054"/>
+  </job>
+  <job id="ID00026" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.41">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4170054"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4170054"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="274"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="328551"/>
+  </job>
+  <job id="ID00027" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.54">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4159304"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4159304"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4152519"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4152519"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="280"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="386935"/>
+  </job>
+  <job id="ID00028" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.64">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4151363"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4151363"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4168356"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4168356"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="278"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="314756"/>
+  </job>
+  <job id="ID00029" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.62">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4163403"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4163403"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4190630"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4190630"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="259"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="277759"/>
+  </job>
+  <job id="ID00030" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.65">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158342"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158342"/>
+    <uses file="p2mass-atlas-ID00006s-jID00006.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158282"/>
+    <uses file="p2mass-atlas-ID00006s-jID00006_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158282"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="274"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="419684"/>
+  </job>
+  <job id="ID00031" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.68">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00006s-jID00006.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158312"/>
+    <uses file="p2mass-atlas-ID00006s-jID00006_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158312"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154414"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154414"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="257"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="342607"/>
+  </job>
+  <job id="ID00032" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.69">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4159410"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4159410"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4156921"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4156921"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="272"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="147754"/>
+  </job>
+  <job id="ID00033" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.60">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158314"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4158314"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162382"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162382"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="269"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="298295"/>
+  </job>
+  <job id="ID00034" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.56">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4157868"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4157868"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4172887"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4172887"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="271"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="168183"/>
+  </job>
+  <job id="ID00035" namespace="Montage" name="mDiffFit" version="1.0" runtime="10.56">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4131118"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4131118"/>
+    <uses file="fit.txt" link="output" register="true" transfer="true" optional="false" type="data" size="273"/>
+    <uses file="diff.txt" link="output" register="true" transfer="true" optional="false" type="data" size="172213"/>
+  </job>
+  <job id="ID00036" namespace="Montage" name="mConcatFit" version="1.0" runtime="2.24">
+    <uses file="fits_list.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="763"/>
+    <uses file="fit.txt" link="input" register="true" transfer="true" optional="false" type="data" size="261"/>
+    <uses file="diff.txt" link="input" register="true" transfer="true" optional="false" type="data" size="425541"/>
+    <uses file="fits.tbl" link="output" register="true" transfer="true" optional="false" type="data" size="5878"/>
+  </job>
+  <job id="ID00037" namespace="Montage" name="mBgModel" version="1.0" runtime="4.20">
+    <uses file="pimages.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="1340"/>
+    <uses file="fits.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="5878"/>
+    <uses file="corrections.tbl" link="output" register="true" transfer="true" optional="false" type="data" size="425"/>
+  </job>
+  <job id="ID00038" namespace="Montage" name="mBackground" version="1.0" runtime="10.99">
+    <uses file="corrections.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="425"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162470"/>
+    <uses file="p2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162470"/>
+    <uses file="c2mass-atlas-ID00000s-jID00000_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4162470"/>
+    <uses file="c2mass-atlas-ID00000s-jID00000.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4162470"/>
+  </job>
+  <job id="ID00039" namespace="Montage" name="mBackground" version="1.0" runtime="10.66">
+    <uses file="corrections.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="425"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4172520"/>
+    <uses file="p2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4172520"/>
+    <uses file="c2mass-atlas-ID00001s-jID00001_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4172520"/>
+    <uses file="c2mass-atlas-ID00001s-jID00001.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4172520"/>
+  </job>
+  <job id="ID00040" namespace="Montage" name="mBackground" version="1.0" runtime="10.47">
+    <uses file="corrections.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="425"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4155227"/>
+    <uses file="p2mass-atlas-ID00002s-jID00002_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4155227"/>
+    <uses file="c2mass-atlas-ID00002s-jID00002_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4155227"/>
+    <uses file="c2mass-atlas-ID00002s-jID00002.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4155227"/>
+  </job>
+  <job id="ID00041" namespace="Montage" name="mBackground" version="1.0" runtime="10.53">
+    <uses file="corrections.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="425"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154656"/>
+    <uses file="p2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154656"/>
+    <uses file="c2mass-atlas-ID00003s-jID00003.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4154656"/>
+    <uses file="c2mass-atlas-ID00003s-jID00003_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4154656"/>
+  </job>
+  <job id="ID00042" namespace="Montage" name="mBackground" version="1.0" runtime="10.74">
+    <uses file="corrections.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="425"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4165471"/>
+    <uses file="p2mass-atlas-ID00004s-jID00004_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4165471"/>
+    <uses file="c2mass-atlas-ID00004s-jID00004.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4165471"/>
+    <uses file="c2mass-atlas-ID00004s-jID00004_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4165471"/>
+  </job>
+  <job id="ID00043" namespace="Montage" name="mBackground" version="1.0" runtime="10.49">
+    <uses file="corrections.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="425"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4142911"/>
+    <uses file="p2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4142911"/>
+    <uses file="c2mass-atlas-ID00005s-jID00005_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4142911"/>
+    <uses file="c2mass-atlas-ID00005s-jID00005.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4142911"/>
+  </job>
+  <job id="ID00044" namespace="Montage" name="mBackground" version="1.0" runtime="10.54">
+    <uses file="corrections.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="425"/>
+    <uses file="p2mass-atlas-ID00006s-jID00006.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4153325"/>
+    <uses file="p2mass-atlas-ID00006s-jID00006_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4153325"/>
+    <uses file="c2mass-atlas-ID00006s-jID00006_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4153325"/>
+    <uses file="c2mass-atlas-ID00006s-jID00006.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4153325"/>
+  </job>
+  <job id="ID00045" namespace="Montage" name="mBackground" version="1.0" runtime="10.42">
+    <uses file="corrections.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="425"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4146119"/>
+    <uses file="p2mass-atlas-ID00007s-jID00007_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4146119"/>
+    <uses file="c2mass-atlas-ID00007s-jID00007.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4146119"/>
+    <uses file="c2mass-atlas-ID00007s-jID00007_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="4146119"/>
+  </job>
+  <job id="ID00046" namespace="Montage" name="mImgTbl" version="1.0" runtime="3.20">
+    <uses file="cimages.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="1340"/>
+    <uses file="c2mass-atlas-ID00000s-jID00000_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162470"/>
+    <uses file="c2mass-atlas-ID00000s-jID00000.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4162470"/>
+    <uses file="c2mass-atlas-ID00001s-jID00001_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4172520"/>
+    <uses file="c2mass-atlas-ID00001s-jID00001.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4172520"/>
+    <uses file="c2mass-atlas-ID00002s-jID00002_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4155227"/>
+    <uses file="c2mass-atlas-ID00002s-jID00002.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4155227"/>
+    <uses file="c2mass-atlas-ID00003s-jID00003.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154656"/>
+    <uses file="c2mass-atlas-ID00003s-jID00003_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4154656"/>
+    <uses file="c2mass-atlas-ID00004s-jID00004.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4165471"/>
+    <uses file="c2mass-atlas-ID00004s-jID00004_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4165471"/>
+    <uses file="c2mass-atlas-ID00005s-jID00005_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4142911"/>
+    <uses file="c2mass-atlas-ID00005s-jID00005.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4142911"/>
+    <uses file="c2mass-atlas-ID00006s-jID00006_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4153325"/>
+    <uses file="c2mass-atlas-ID00006s-jID00006.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4153325"/>
+    <uses file="c2mass-atlas-ID00007s-jID00007.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4146119"/>
+    <uses file="c2mass-atlas-ID00007s-jID00007_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="4146119"/>
+    <uses file="newcimages.tbl" link="output" register="true" transfer="true" optional="false" type="data" size="3558"/>
+  </job>
+  <job id="ID00047" namespace="Montage" name="mAdd" version="1.0" runtime="4.75">
+    <uses file="region.hdr" link="input" register="true" transfer="true" optional="false" type="data" size="304"/>
+    <uses file="newcimages.tbl" link="input" register="true" transfer="true" optional="false" type="data" size="3558"/>
+    <uses file="mosaic_ID00047_ID00047.fits" link="output" register="true" transfer="true" optional="false" type="data" size="69693297"/>
+    <uses file="mosaic_ID00047_ID00047_area.fits" link="output" register="true" transfer="true" optional="false" type="data" size="69693297"/>
+  </job>
+  <job id="ID00048" namespace="Montage" name="mShrink" version="1.0" runtime="4.88">
+    <uses file="mosaic_ID00047_ID00047.fits" link="input" register="true" transfer="true" optional="false" type="data" size="69693297"/>
+    <uses file="mosaic_ID00047_ID00047_area.fits" link="input" register="true" transfer="true" optional="false" type="data" size="69693297"/>
+    <uses file="shrunken_ID00048_ID00048.fits" link="output" register="true" transfer="true" optional="false" type="data" size="2788847"/>
+  </job>
+  <job id="ID00049" namespace="Montage" name="mJPEG" version="1.0" runtime="1.22">
+    <uses file="shrunken_ID00048_ID00048.fits" link="input" register="true" transfer="true" optional="false" type="data" size="2788847"/>
+    <uses file="shrunken_ID00048_ID00048.jpg" link="output" register="true" transfer="true" optional="false" type="data" size="720562"/>
+  </job>
+<!-- part 3: list of control-flow dependencies (may be empty) -->
+  <child ref="ID00008">
+    <parent ref="ID00000"/>
+  </child>
+  <child ref="ID00009">
+    <parent ref="ID00001"/>
+    <parent ref="ID00000"/>
+  </child>
+  <child ref="ID00010">
+    <parent ref="ID00002"/>
+    <parent ref="ID00000"/>
+  </child>
+  <child ref="ID00011">
+    <parent ref="ID00000"/>
+    <parent ref="ID00003"/>
+  </child>
+  <child ref="ID00012">
+    <parent ref="ID00000"/>
+    <parent ref="ID00005"/>
+  </child>
+  <child ref="ID00013">
+    <parent ref="ID00001"/>
+    <parent ref="ID00000"/>
+  </child>
+  <child ref="ID00014">
+    <parent ref="ID00001"/>
+  </child>
+  <child ref="ID00015">
+    <parent ref="ID00002"/>
+    <parent ref="ID00001"/>
+  </child>
+  <child ref="ID00016">
+    <parent ref="ID00001"/>
+    <parent ref="ID00004"/>
+  </child>
+  <child ref="ID00017">
+    <parent ref="ID00001"/>
+    <parent ref="ID00007"/>
+  </child>
+  <child ref="ID00018">
+    <parent ref="ID00002"/>
+  </child>
+  <child ref="ID00019">
+    <parent ref="ID00002"/>
+    <parent ref="ID00003"/>
+  </child>
+  <child ref="ID00020">
+    <parent ref="ID00001"/>
+    <parent ref="ID00003"/>
+  </child>
+  <child ref="ID00021">
+    <parent ref="ID00003"/>
+  </child>
+  <child ref="ID00022">
+    <parent ref="ID00004"/>
+    <parent ref="ID00003"/>
+  </child>
+  <child ref="ID00023">
+    <parent ref="ID00005"/>
+    <parent ref="ID00003"/>
+  </child>
+  <child ref="ID00024">
+    <parent ref="ID00000"/>
+    <parent ref="ID00004"/>
+  </child>
+  <child ref="ID00025">
+    <parent ref="ID00004"/>
+    <parent ref="ID00003"/>
+  </child>
+  <child ref="ID00026">
+    <parent ref="ID00004"/>
+  </child>
+  <child ref="ID00027">
+    <parent ref="ID00000"/>
+    <parent ref="ID00005"/>
+  </child>
+  <child ref="ID00028">
+    <parent ref="ID00001"/>
+    <parent ref="ID00005"/>
+  </child>
+  <child ref="ID00029">
+    <parent ref="ID00005"/>
+    <parent ref="ID00003"/>
+  </child>
+  <child ref="ID00030">
+    <parent ref="ID00006"/>
+    <parent ref="ID00005"/>
+  </child>
+  <child ref="ID00031">
+    <parent ref="ID00006"/>
+    <parent ref="ID00004"/>
+  </child>
+  <child ref="ID00032">
+    <parent ref="ID00002"/>
+    <parent ref="ID00007"/>
+  </child>
+  <child ref="ID00033">
+    <parent ref="ID00003"/>
+    <parent ref="ID00007"/>
+  </child>
+  <child ref="ID00034">
+    <parent ref="ID00005"/>
+    <parent ref="ID00007"/>
+  </child>
+  <child ref="ID00035">
+    <parent ref="ID00007"/>
+  </child>
+  <child ref="ID00036">
+    <parent ref="ID00009"/>
+    <parent ref="ID00008"/>
+    <parent ref="ID00034"/>
+    <parent ref="ID00035"/>
+    <parent ref="ID00032"/>
+    <parent ref="ID00033"/>
+    <parent ref="ID00012"/>
+    <parent ref="ID00030"/>
+    <parent ref="ID00013"/>
+    <parent ref="ID00031"/>
+    <parent ref="ID00010"/>
+    <parent ref="ID00011"/>
+    <parent ref="ID00016"/>
+    <parent ref="ID00017"/>
+    <parent ref="ID00014"/>
+    <parent ref="ID00015"/>
+    <parent ref="ID00018"/>
+    <parent ref="ID00019"/>
+    <parent ref="ID00020"/>
+    <parent ref="ID00021"/>
+    <parent ref="ID00022"/>
+    <parent ref="ID00023"/>
+    <parent ref="ID00024"/>
+    <parent ref="ID00025"/>
+    <parent ref="ID00026"/>
+    <parent ref="ID00027"/>
+    <parent ref="ID00028"/>
+    <parent ref="ID00029"/>
+  </child>
+  <child ref="ID00037">
+    <parent ref="ID00036"/>
+  </child>
+  <child ref="ID00038">
+    <parent ref="ID00000"/>
+    <parent ref="ID00037"/>
+  </child>
+  <child ref="ID00039">
+    <parent ref="ID00001"/>
+    <parent ref="ID00037"/>
+  </child>
+  <child ref="ID00040">
+    <parent ref="ID00002"/>
+    <parent ref="ID00037"/>
+  </child>
+  <child ref="ID00041">
+    <parent ref="ID00003"/>
+    <parent ref="ID00037"/>
+  </child>
+  <child ref="ID00042">
+    <parent ref="ID00004"/>
+    <parent ref="ID00037"/>
+  </child>
+  <child ref="ID00043">
+    <parent ref="ID00005"/>
+    <parent ref="ID00037"/>
+  </child>
+  <child ref="ID00044">
+    <parent ref="ID00006"/>
+    <parent ref="ID00037"/>
+  </child>
+  <child ref="ID00045">
+    <parent ref="ID00007"/>
+    <parent ref="ID00037"/>
+  </child>
+  <child ref="ID00046">
+    <parent ref="ID00043"/>
+    <parent ref="ID00044"/>
+    <parent ref="ID00045"/>
+    <parent ref="ID00040"/>
+    <parent ref="ID00041"/>
+    <parent ref="ID00042"/>
+    <parent ref="ID00038"/>
+    <parent ref="ID00039"/>
+  </child>
+  <child ref="ID00047">
+    <parent ref="ID00046"/>
+  </child>
+  <child ref="ID00048">
+    <parent ref="ID00047"/>
+  </child>
+  <child ref="ID00049">
+    <parent ref="ID00048"/>
+  </child>
+</adag>
diff --git a/examples/simdag/dax/dax_test.c b/examples/simdag/dax/dax_test.c
new file mode 100644 (file)
index 0000000..f6ab0d4
--- /dev/null
@@ -0,0 +1,40 @@
+/* simple test trying to load a DAX file.                                   */
+
+/* Copyright (c) 2009 Da SimGrid Team. All rights reserved.                 */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#include <stdlib.h>
+#include "simdag/simdag.h"
+#include "xbt/log.h"
+
+XBT_LOG_NEW_DEFAULT_CATEGORY(test,
+                             "Logging specific to this SimDag example");
+
+
+int main(int argc, char **argv) {
+  xbt_dynar_t dax;
+  unsigned int cursor;
+  SD_task_t task;
+
+  if (argc < 3) {
+    INFO1("Usage: %s platform_file dax_file", argv[0]);
+    INFO1("example: %s ../sd_platform.xml Montage_50.xml", argv[0]);
+    exit(1);
+  }
+
+  /* creation of the environment */
+  SD_create_environment(argv[1]);
+
+  /* load the DAX file */
+  dax=SD_daxload(argv[2]);
+
+  /* Display all the tasks */
+  xbt_dynar_foreach(dax,cursor,task) {
+
+  }
+  /* exit */
+  SD_exit();
+  return 1;
+}
index f5b9bcb..cce7bad 100644 (file)
@@ -133,6 +133,8 @@ XBT_PUBLIC(void) SD_task_unschedule(SD_task_t task);
 XBT_PUBLIC(double) SD_task_get_start_time(SD_task_t task);
 XBT_PUBLIC(double) SD_task_get_finish_time(SD_task_t task);
 XBT_PUBLIC(void) SD_task_destroy(SD_task_t task);
+XBT_PUBLIC(void) SD_task_dump(SD_task_t task);
+
 /** @} */
 
 
@@ -167,6 +169,8 @@ XBT_PUBLIC(void) SD_create_environment(const char *platform_file);
 XBT_PUBLIC(SD_task_t *) SD_simulate(double how_long);
 XBT_PUBLIC(double) SD_get_clock(void);
 XBT_PUBLIC(void) SD_exit(void);
+XBT_PUBLIC(xbt_dynar_t) SD_daxload(const char*filename);
+
 /** @} */
 
 SG_END_DECL()
index 32c5006..788309d 100644 (file)
@@ -65,6 +65,7 @@ EXTRA_DIST= \
        msg/mailbox.h \
        \
        simdag/private.h \
+       simdag/dax.dtd \
        \
        gras/DataDesc/ddt_parse.yy.l \
        gras/Virtu/virtu_rl.h \
@@ -260,7 +261,8 @@ JMSG_JAVA_SRC = \
   java/simgrid/msg/Sem.java
 
 
-SIMDAG_SRC= simdag/sd_global.c simdag/sd_link.c simdag/sd_task.c simdag/sd_workstation.c
+SIMDAG_SRC= simdag/sd_global.c simdag/sd_link.c simdag/sd_task.c simdag/sd_workstation.c \
+  simdag/sd_daxloader.c
 
 GRAS_COMMON_SRC= \
   gras/gras.c  \
@@ -398,6 +400,7 @@ TEST_UNITS= @builddir@/cunit_unit.c   @builddir@/ex_unit.c         \
 
 BUILT_SOURCES=../include/surf/simgrid_dtd.h surf/simgrid_dtd.c \
               ../include/xbt/graphxml.h xbt/graphxml.c \
+              simdag/dax_dtd.h simdag/dax_dtd.c \
               gras/DataDesc/ddt_parse.yy.c \
              $(TEST_UNITS) @builddir@/simgrid_units_main.c
 
@@ -455,6 +458,9 @@ surf/simgrid_dtd.c: surf/simgrid_dtd.l
 xbt/graphxml.c: xbt/graphxml.l
        set -e;mkdir -p `dirname $@`; @LEX@ -o$@ -Pxbt_graph_parse_ --noline $^
        sed 's/#include <unistd.h>/#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__)\n#  ifndef __STRICT_ANSI__\n#    include <io.h>\n#    include <process.h>\n#  endif\n#else\n#  include <unistd.h>\n#endif/g' -i $@
+simdag/dax_dtd.c: simdag/dax_dtd.l
+       set -e;mkdir -p `dirname $@`; @LEX@ -o$@ -Pdax_ --noline $^
+       sed 's/#include <unistd.h>/#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__)\n#  ifndef __STRICT_ANSI__\n#    include <io.h>\n#    include <process.h>\n#  endif\n#else\n#  include <unistd.h>\n#endif/g' -i $@
 
 if HAVE_FLEXML
 surf/simgrid_dtd.l: $(srcdir)/surf/simgrid.dtd
@@ -472,6 +478,13 @@ $(top_srcdir)/include/xbt/graphxml.h: $(srcdir)/xbt/graphxml.dtd
        set -e; flexml            -P graphxml --sysid=graphxml.dtd -H $@ -L $^
        sed 's/extern  *\([^ ]*[ \*]*\)/XBT_PUBLIC_DATA(\1) /' -i $@
        sed 's/XBT_PUBLIC_DATA(\([^)]*\)) *\([^(]*\)(/XBT_PUBLIC(\1) \2(/' -i $@
+
+simdag/dax_dtd.l: simdag/dax.dtd
+       set -e; flexml -b 1000000 -P dax_ --sysid=dax.dtd -S $@ -L $^
+simdag/dax_dtd.h: simdag/dax.dtd
+       set -e; flexml            -P dax_ --sysid=dax.dtd -H $@ -L $^
+       sed 's/extern  *\([^ ]*[ \*]*\)/XBT_PUBLIC_DATA(\1) /' -i $@
+       sed 's/XBT_PUBLIC_DATA(\([^)]*\)) *\([^(]*\)(/XBT_PUBLIC(\1) \2(/' -i $@
 else
 
 $(top_srcdir)/include/surf/simgrid_dtd.h surf/simgrid_dtd.l: $(top_srcdir)/src/surf/simgrid.dtd
@@ -484,6 +497,11 @@ $(top_srcdir)/include/xbt/graphxml.h xbt/graphxml.l: $(top_srcdir)/src/xbt/graph
        @echo "ERROR: Please install it, or if you didn't modify this file, try this:"
        @echo "ERROR:   touch include/xbt/graphxml.h src/xbt/graphxml.l"
        @exit 1
+simdag/dax_dtd.h simdag/dax_dtd.l: simdag/dax_dtd.dtd
+       @echo "ERROR: src/simdag/dax.dtd was modified, but the flexml program was not detected"
+       @echo "ERROR: Please install it, or if you didn't modify this file, try this:"
+       @echo "ERROR:   touch src/simdag/dax_dtd.h src/simdag/dax_dtd.l"
+       @exit 1
 endif
 endif
 endif
diff --git a/src/simdag/dax.dtd b/src/simdag/dax.dtd
new file mode 100644 (file)
index 0000000..a94d661
--- /dev/null
@@ -0,0 +1,34 @@
+<!-- Small DTD for DAX files. -->
+<!ELEMENT adag (job*,child*)>
+<!ATTLIST adag xmlns CDATA "http://pegasus.isi.edu/schema/DAX">
+<!ATTLIST adag xmlns:xsi CDATA "http://www.w3.org/2001/XMLSchema-instance">
+<!ATTLIST adag xmlns:schemaLocation CDATA "http://pegasus.isi.edu/schema/DAX http://pegasus.isi.edu/schema/dax-2.1.xsd">
+<!ATTLIST adag version CDATA "0.0">
+<!ATTLIST adag count CDATA "0">
+<!ATTLIST adag index CDATA "0">
+<!ATTLIST adag name CDATA "0">
+<!ATTLIST adag jobCount CDATA "0">
+<!ATTLIST adag fileCount CDATA "0">
+<!ATTLIST adag childCount CDATA "0">
+
+<!ELEMENT job (uses*)>
+<!ATTLIST job id CDATA #REQUIRED>
+<!ATTLIST job namespace CDATA "">
+<!ATTLIST job name CDATA #REQUIRED>
+<!ATTLIST job version CDATA "0.0">
+<!ATTLIST job runtime CDATA #REQUIRED>
+
+<!ELEMENT uses EMPTY>
+<!ATTLIST uses file CDATA #REQUIRED>
+<!ATTLIST uses link (input|output)>
+<!ATTLIST uses register (false|true) "true">
+<!ATTLIST uses transfer (false|true) "true">
+<!ATTLIST uses optional (false|true) "false">
+<!ATTLIST uses type CDATA "data">
+<!ATTLIST uses size CDATA #REQUIRED>
+
+<!ELEMENT child (parent*)>
+<!ATTLIST child ref CDATA #REQUIRED>
+
+<!ELEMENT parent EMPTY>
+<!ATTLIST parent ref CDATA #REQUIRED>
diff --git a/src/simdag/dax_dtd.c b/src/simdag/dax_dtd.c
new file mode 100644 (file)
index 0000000..a34cd72
--- /dev/null
@@ -0,0 +1,3988 @@
+
+#line 3 "simdag/dax_dtd.c"
+
+#define  YY_INT_ALIGNED short int
+
+/* A lexical scanner generated by flex */
+
+#define yy_create_buffer dax__create_buffer
+#define yy_delete_buffer dax__delete_buffer
+#define yy_flex_debug dax__flex_debug
+#define yy_init_buffer dax__init_buffer
+#define yy_flush_buffer dax__flush_buffer
+#define yy_load_buffer_state dax__load_buffer_state
+#define yy_switch_to_buffer dax__switch_to_buffer
+#define yyin dax_in
+#define yyleng dax_leng
+#define yylex dax_lex
+#define yylineno dax_lineno
+#define yyout dax_out
+#define yyrestart dax_restart
+#define yytext dax_text
+#define yywrap dax_wrap
+#define yyalloc dax_alloc
+#define yyrealloc dax_realloc
+#define yyfree dax_free
+
+#define FLEX_SCANNER
+#define YY_FLEX_MAJOR_VERSION 2
+#define YY_FLEX_MINOR_VERSION 5
+#define YY_FLEX_SUBMINOR_VERSION 35
+#if YY_FLEX_SUBMINOR_VERSION > 0
+#define FLEX_BETA
+#endif
+
+/* First, we deal with  platform-specific or compiler-specific issues. */
+
+/* begin standard C headers. */
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+#include <stdlib.h>
+
+/* end standard C headers. */
+
+/* flex integer type definitions */
+
+#ifndef FLEXINT_H
+#define FLEXINT_H
+
+/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
+
+#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+
+/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
+ * if you want the limit (max/min) macros for int types. 
+ */
+#ifndef __STDC_LIMIT_MACROS
+#define __STDC_LIMIT_MACROS 1
+#endif
+
+#include <inttypes.h>
+typedef int8_t flex_int8_t;
+typedef uint8_t flex_uint8_t;
+typedef int16_t flex_int16_t;
+typedef uint16_t flex_uint16_t;
+typedef int32_t flex_int32_t;
+typedef uint32_t flex_uint32_t;
+#else
+typedef signed char flex_int8_t;
+typedef short int flex_int16_t;
+typedef int flex_int32_t;
+typedef unsigned char flex_uint8_t; 
+typedef unsigned short int flex_uint16_t;
+typedef unsigned int flex_uint32_t;
+
+/* Limits of integral types. */
+#ifndef INT8_MIN
+#define INT8_MIN               (-128)
+#endif
+#ifndef INT16_MIN
+#define INT16_MIN              (-32767-1)
+#endif
+#ifndef INT32_MIN
+#define INT32_MIN              (-2147483647-1)
+#endif
+#ifndef INT8_MAX
+#define INT8_MAX               (127)
+#endif
+#ifndef INT16_MAX
+#define INT16_MAX              (32767)
+#endif
+#ifndef INT32_MAX
+#define INT32_MAX              (2147483647)
+#endif
+#ifndef UINT8_MAX
+#define UINT8_MAX              (255U)
+#endif
+#ifndef UINT16_MAX
+#define UINT16_MAX             (65535U)
+#endif
+#ifndef UINT32_MAX
+#define UINT32_MAX             (4294967295U)
+#endif
+
+#endif /* ! C99 */
+
+#endif /* ! FLEXINT_H */
+
+#ifdef __cplusplus
+
+/* The "const" storage-class-modifier is valid. */
+#define YY_USE_CONST
+
+#else  /* ! __cplusplus */
+
+/* C99 requires __STDC__ to be defined as 1. */
+#if defined (__STDC__)
+
+#define YY_USE_CONST
+
+#endif /* defined (__STDC__) */
+#endif /* ! __cplusplus */
+
+#ifdef YY_USE_CONST
+#define yyconst const
+#else
+#define yyconst
+#endif
+
+/* Returned upon end-of-file. */
+#define YY_NULL 0
+
+/* Promotes a possibly negative, possibly signed char to an unsigned
+ * integer for use as an array index.  If the signed char is negative,
+ * we want to instead treat it as an 8-bit unsigned char, hence the
+ * double cast.
+ */
+#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
+
+/* Enter a start condition.  This macro really ought to take a parameter,
+ * but we do it the disgusting crufty way forced on us by the ()-less
+ * definition of BEGIN.
+ */
+#define BEGIN (yy_start) = 1 + 2 *
+
+/* Translate the current start state into a value that can be later handed
+ * to BEGIN to return to the state.  The YYSTATE alias is for lex
+ * compatibility.
+ */
+#define YY_START (((yy_start) - 1) / 2)
+#define YYSTATE YY_START
+
+/* Action number for EOF rule of a given start state. */
+#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
+
+/* Special action meaning "start processing a new file". */
+#define YY_NEW_FILE dax_restart(dax_in  )
+
+#define YY_END_OF_BUFFER_CHAR 0
+
+/* Size of default input buffer. */
+#ifndef YY_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k.
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
+ * Ditto for the __ia64__ case accordingly.
+ */
+#define YY_BUF_SIZE 32768
+#else
+#define YY_BUF_SIZE 16384
+#endif /* __ia64__ */
+#endif
+
+/* The state buf must be large enough to hold one state per character in the main buffer.
+ */
+#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
+
+#ifndef YY_TYPEDEF_YY_BUFFER_STATE
+#define YY_TYPEDEF_YY_BUFFER_STATE
+typedef struct yy_buffer_state *YY_BUFFER_STATE;
+#endif
+
+extern int dax_leng;
+
+extern FILE *dax_in, *dax_out;
+
+#define EOB_ACT_CONTINUE_SCAN 0
+#define EOB_ACT_END_OF_FILE 1
+#define EOB_ACT_LAST_MATCH 2
+
+    /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
+     *       access to the local variable yy_act. Since yyless() is a macro, it would break
+     *       existing scanners that call yyless() from OUTSIDE dax_lex. 
+     *       One obvious solution it to make yy_act a global. I tried that, and saw
+     *       a 5% performance hit in a non-dax_lineno scanner, because yy_act is
+     *       normally declared as a register variable-- so it is not worth it.
+     */
+    #define  YY_LESS_LINENO(n) \
+            do { \
+                int yyl;\
+                for ( yyl = n; yyl < dax_leng; ++yyl )\
+                    if ( dax_text[yyl] == '\n' )\
+                        --dax_lineno;\
+            }while(0)
+    
+/* Return all but the first "n" matched characters back to the input stream. */
+#define yyless(n) \
+       do \
+               { \
+               /* Undo effects of setting up dax_text. */ \
+        int yyless_macro_arg = (n); \
+        YY_LESS_LINENO(yyless_macro_arg);\
+               *yy_cp = (yy_hold_char); \
+               YY_RESTORE_YY_MORE_OFFSET \
+               (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
+               YY_DO_BEFORE_ACTION; /* set up dax_text again */ \
+               } \
+       while ( 0 )
+
+#define unput(c) yyunput( c, (yytext_ptr)  )
+
+#ifndef YY_TYPEDEF_YY_SIZE_T
+#define YY_TYPEDEF_YY_SIZE_T
+typedef size_t yy_size_t;
+#endif
+
+#ifndef YY_STRUCT_YY_BUFFER_STATE
+#define YY_STRUCT_YY_BUFFER_STATE
+struct yy_buffer_state
+       {
+       FILE *yy_input_file;
+
+       char *yy_ch_buf;                /* input buffer */
+       char *yy_buf_pos;               /* current position in input buffer */
+
+       /* Size of input buffer in bytes, not including room for EOB
+        * characters.
+        */
+       yy_size_t yy_buf_size;
+
+       /* Number of characters read into yy_ch_buf, not including EOB
+        * characters.
+        */
+       int yy_n_chars;
+
+       /* Whether we "own" the buffer - i.e., we know we created it,
+        * and can realloc() it to grow it, and should free() it to
+        * delete it.
+        */
+       int yy_is_our_buffer;
+
+       /* Whether this is an "interactive" input source; if so, and
+        * if we're using stdio for input, then we want to use getc()
+        * instead of fread(), to make sure we stop fetching input after
+        * each newline.
+        */
+       int yy_is_interactive;
+
+       /* Whether we're considered to be at the beginning of a line.
+        * If so, '^' rules will be active on the next match, otherwise
+        * not.
+        */
+       int yy_at_bol;
+
+    int yy_bs_lineno; /**< The line count. */
+    int yy_bs_column; /**< The column count. */
+    
+       /* Whether to try to fill the input buffer when we reach the
+        * end of it.
+        */
+       int yy_fill_buffer;
+
+       int yy_buffer_status;
+
+#define YY_BUFFER_NEW 0
+#define YY_BUFFER_NORMAL 1
+       /* When an EOF's been seen but there's still some text to process
+        * then we mark the buffer as YY_EOF_PENDING, to indicate that we
+        * shouldn't try reading from the input source any more.  We might
+        * still have a bunch of tokens to match, though, because of
+        * possible backing-up.
+        *
+        * When we actually see the EOF, we change the status to "new"
+        * (via dax_restart()), so that the user can continue scanning by
+        * just pointing dax_in at a new input file.
+        */
+#define YY_BUFFER_EOF_PENDING 2
+
+       };
+#endif /* !YY_STRUCT_YY_BUFFER_STATE */
+
+/* Stack of input buffers. */
+static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
+static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
+static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
+
+/* We provide macros for accessing buffer states in case in the
+ * future we want to put the buffer states in a more general
+ * "scanner state".
+ *
+ * Returns the top of the stack, or NULL.
+ */
+#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
+                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
+                          : NULL)
+
+/* Same as previous macro, but useful when we know that the buffer stack is not
+ * NULL or when we need an lvalue. For internal use only.
+ */
+#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
+
+/* yy_hold_char holds the character lost when dax_text is formed. */
+static char yy_hold_char;
+static int yy_n_chars;         /* number of characters read into yy_ch_buf */
+int dax_leng;
+
+/* Points to current character in buffer. */
+static char *yy_c_buf_p = (char *) 0;
+static int yy_init = 0;                /* whether we need to initialize */
+static int yy_start = 0;       /* start state number */
+
+/* Flag which is used to allow dax_wrap()'s to do buffer switches
+ * instead of setting up a fresh dax_in.  A bit of a hack ...
+ */
+static int yy_did_buffer_switch_on_eof;
+
+void dax_restart (FILE *input_file  );
+void dax__switch_to_buffer (YY_BUFFER_STATE new_buffer  );
+YY_BUFFER_STATE dax__create_buffer (FILE *file,int size  );
+void dax__delete_buffer (YY_BUFFER_STATE b  );
+void dax__flush_buffer (YY_BUFFER_STATE b  );
+void dax_push_buffer_state (YY_BUFFER_STATE new_buffer  );
+void dax_pop_buffer_state (void );
+
+static void dax_ensure_buffer_stack (void );
+static void dax__load_buffer_state (void );
+static void dax__init_buffer (YY_BUFFER_STATE b,FILE *file  );
+
+#define YY_FLUSH_BUFFER dax__flush_buffer(YY_CURRENT_BUFFER )
+
+YY_BUFFER_STATE dax__scan_buffer (char *base,yy_size_t size  );
+YY_BUFFER_STATE dax__scan_string (yyconst char *yy_str  );
+YY_BUFFER_STATE dax__scan_bytes (yyconst char *bytes,int len  );
+
+void *dax_alloc (yy_size_t  );
+void *dax_realloc (void *,yy_size_t  );
+void dax_free (void *  );
+
+#define yy_new_buffer dax__create_buffer
+
+#define yy_set_interactive(is_interactive) \
+       { \
+       if ( ! YY_CURRENT_BUFFER ){ \
+        dax_ensure_buffer_stack (); \
+               YY_CURRENT_BUFFER_LVALUE =    \
+            dax__create_buffer(dax_in,YY_BUF_SIZE ); \
+       } \
+       YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
+       }
+
+#define yy_set_bol(at_bol) \
+       { \
+       if ( ! YY_CURRENT_BUFFER ){\
+        dax_ensure_buffer_stack (); \
+               YY_CURRENT_BUFFER_LVALUE =    \
+            dax__create_buffer(dax_in,YY_BUF_SIZE ); \
+       } \
+       YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
+       }
+
+#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
+
+/* Begin user sect3 */
+
+#define dax_wrap(n) 1
+#define YY_SKIP_YYWRAP
+
+typedef unsigned char YY_CHAR;
+
+FILE *dax_in = (FILE *) 0, *dax_out = (FILE *) 0;
+
+typedef int yy_state_type;
+
+extern int dax_lineno;
+
+int dax_lineno = 1;
+
+extern char *dax_text;
+#define yytext_ptr dax_text
+
+static yy_state_type yy_get_previous_state (void );
+static yy_state_type yy_try_NUL_trans (yy_state_type current_state  );
+static int yy_get_next_buffer (void );
+static void yy_fatal_error (yyconst char msg[]  );
+
+/* Done after the current pattern has been matched and before the
+ * corresponding action - sets up dax_text.
+ */
+#define YY_DO_BEFORE_ACTION \
+       (yytext_ptr) = yy_bp; \
+       dax_leng = (size_t) (yy_cp - yy_bp); \
+       (yy_hold_char) = *yy_cp; \
+       *yy_cp = '\0'; \
+       (yy_c_buf_p) = yy_cp;
+
+#define YY_NUM_RULES 142
+#define YY_END_OF_BUFFER 143
+/* This struct is not used in this scanner,
+   but its presence is necessary. */
+struct yy_trans_info
+       {
+       flex_int32_t yy_verify;
+       flex_int32_t yy_nxt;
+       };
+static yyconst flex_int16_t yy_accept[900] =
+    {   0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,  143,  141,   19,   10,   10,   19,
+       19,  121,   10,  121,    5,    6,    5,    8,    9,    8,
+      137,  129,  130,  138,  135,  138,  136,  140,  129,  130,
+
+      140,  141,   44,   10,   44,   44,   44,   42,   44,   44,
+       44,   44,   44,   44,   44,   48,   10,   48,   48,  141,
+      141,   48,  141,   63,   10,   63,   63,   63,   61,   63,
+       63,   63,   63,   67,   10,   67,  141,   67,  141,   94,
+       10,   94,   94,   94,   92,   94,   94,   94,   94,   94,
+       94,   98,   10,   98,  141,  105,   10,  105,  105,  105,
+      103,  105,  109,   10,  109,  141,  109,  141,  116,   10,
+      116,  116,  116,  114,  116,  120,   10,  120,  138,  137,
+       10,    0,    2,    2,    0,    4,    7,  132,  131,    0,
+        0,    0,    0,    0,    0,    0,   43,   45,   45,   45,
+
+       45,   45,   45,   45,   45,   45,    0,    0,    0,    0,
+        0,    0,    0,    0,   62,   64,   64,   64,   64,   64,
+        0,    0,   93,   95,   95,   95,   95,   95,   95,   95,
+       95,    0,  104,  106,  106,    0,    0,  115,  117,  117,
+        0,    0,    0,    0,    0,    0,    0,    3,    0,    0,
+        0,    0,    0,    0,    0,  139,    0,   45,   45,   45,
+       45,   45,   45,   45,   45,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,   64,   64,   64,    0,
+        0,    0,   95,   95,   95,   95,   95,   95,   95,    0,
+        0,  106,    0,    0,    0,  117,    0,    0,    0,  134,
+
+        0,   18,    1,    0,    0,  127,    0,    0,    0,  124,
+      123,    0,    0,   45,   45,   45,   45,   45,   45,   45,
+       45,    0,    0,   47,    0,    0,    0,   50,    0,    0,
+       49,    0,    0,   52,   51,   64,   64,   64,    0,    0,
+       66,    0,    0,   95,   95,   95,   95,   95,   95,   95,
+        0,    0,   97,    0,    0,    0,    0,    0,  108,    0,
+        0,    0,    0,    0,    0,  119,    0,    0,    0,    0,
+      128,  122,    0,    0,   21,   45,   45,   45,   45,   45,
+        0,    0,   45,   45,    0,   20,    0,   50,    0,   68,
+       49,    0,    0,    0,   64,   64,   64,    0,   69,    0,
+
+        0,    0,    0,   95,   95,    0,    0,   95,    0,    0,
+        0,    0,  102,  101,    0,    0,    0,  113,  112,    0,
+        0,    0,    0,    0,   12,    0,  125,  126,   21,   45,
+        0,    0,   45,    0,    0,   45,    0,   35,   34,   45,
+        0,   45,    0,    0,   20,  100,    0,   68,   99,    0,
+       56,   55,   64,   64,   64,    0,   65,   69,    0,   71,
+       70,    0,    0,    0,   95,   95,    0,   91,   90,   95,
+        0,   89,   88,    0,    0,    0,    0,    0,    0,    0,
+        0,   11,   45,    0,   31,   30,   45,    0,   33,   32,
+       45,   45,   45,   45,    0,   23,   22,    0,   46,  100,
+
+      110,   99,   64,   64,   64,    0,    0,    0,    0,   95,
+       95,   95,    0,   96,    0,  111,    0,    0,    0,    0,
+        0,   45,   45,   45,    0,    0,   45,   45,  110,   64,
+        0,    0,    0,    0,    0,    0,    0,    0,   95,   95,
+       95,    0,  107,  111,    0,    0,    0,    0,    0,   45,
+       45,    0,    0,    0,   29,   28,   45,   45,   64,    0,
+       60,   59,    0,   58,   57,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,  118,  133,    0,    0,
+        0,   45,    0,    0,    0,   37,   36,   45,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,   39,   38,   45,    0,   25,
+       24,    0,   54,   53,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,   41,   40,
+       45,   73,    0,   72,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,   45,   75,   74,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,   45,    0,    0,
+
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+       45,    0,   87,    0,   86,    0,   79,    0,   78,    0,
+       83,    0,   82,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,   45,   85,   84,   77,   76,   81,   80,
+        0,    0,    0,    0,    0,    0,    0,   12,    0,   12,
+        0,   45,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,   45,    0,    0,    0,    0,    0,    0,   45,    0,
+        0,    0,    0,    0,   11,   45,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+
+       27,   26,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
+        0,    0,   17,    0,    0,    0,    0,   16,    0,    0,
+        0,    0,   14,    0,   15,    0,    0,   13,    0
+
+    } ;
+
+static yyconst flex_int32_t yy_ec[256] =
+    {   0,
+        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
+        1,    2,    4,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    2,    5,    6,    7,    1,    1,    8,    9,    1,
+        1,    1,    1,    1,   10,   11,   12,   13,   13,   13,
+       13,   13,   13,   13,   13,   13,   13,   14,   15,   16,
+       17,   18,   19,    1,   20,   21,   22,   23,   24,   21,
+       25,   25,   25,   25,   25,   26,   27,   25,   28,   29,
+       25,   25,   30,   31,   25,   25,   25,   25,   32,   25,
+       33,    1,   34,    1,   25,    1,   35,   36,   37,   38,
+
+       39,   40,   41,   42,   43,   44,   45,   46,   47,   48,
+       49,   50,   51,   52,   53,   54,   55,   56,   25,   57,
+       58,   59,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
+        1,    1,    1,    1,    1
+    } ;
+
+static yyconst flex_int32_t yy_meta[60] =
+    {   0,
+        1,    2,    2,    2,    1,    1,    1,    1,    1,    3,
+        3,    1,    4,    5,    1,    1,    1,    6,    1,    7,
+        7,    7,    7,    7,    5,    5,    5,    5,    5,    5,
+        5,    5,    1,    1,    7,    7,    7,    7,    7,    7,
+        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
+        5,    5,    5,    5,    5,    5,    5,    5,    5
+    } ;
+
+static yyconst flex_int16_t yy_base[939] =
+    {   0,
+        0,    0,    0,    3,    6,    9,   24,   27,   11,   14,
+       15,   17,   29,   38,   45,   52,   59,   61,   67,   70,
+       95,    0,   73,   76,  153,  156,  159,  162,  177,  180,
+      183,  186,  201,  204,  207,  210,  225,  228,  244,    0,
+      302,  305,  308,  311,  326,  329,  332,  335,  350,  353,
+      369,    0,  427,  430,  433,  436,  452,  504,  471,  474,
+      477,  480,  523,  526,  529,  532,  547,  550,  566,  618,
+      585,  588,  637,  639, 2460, 2461, 2461,  231,  234,   47,
+       62, 2461,  356,  172, 2461, 2461, 2449, 2461, 2461, 2440,
+     2461, 2453, 2453,  603, 2461, 2461, 2461, 2461, 2451, 2451,
+
+     2419,  483, 2461,  359, 2434,    0,  196, 2461,    8, 2408,
+     2402, 2400, 2413, 2408, 2399, 2461,  495,  645,  653,  641,
+      674,  682,  321, 2461,  555, 2427,    0,  220, 2461, 2406,
+     2408, 2387, 2402, 2461,  558,  701,  709,  728,  593, 2461,
+      591, 2422,    0,  345, 2461, 2396, 2395, 2387, 2397, 2392,
+       30, 2461,  603,  597,  662, 2461,  611, 2416,    0,  484,
+     2461, 2394, 2461,  659,  736,  755,  763,  536, 2461,  719,
+     2414,    0,  592, 2461, 2392, 2461,  785,  693, 2425, 2395,
+      791,  646, 2371, 2461, 2417, 2408, 2461, 2461, 2461,    2,
+       37, 2371, 2370, 2368, 2404, 2383, 2461,    0, 2377, 2364,
+
+     2372, 2379, 2380, 2368, 2362, 2367, 2377, 2373, 2368, 2360,
+     2373, 2354, 2357, 2363, 2461,    0,  799, 2357, 2355, 2350,
+     2357, 2347, 2461,    0, 2353, 2350, 2343, 2355, 2336, 2359,
+     2343, 2337, 2461,    0, 2351, 2353, 2354, 2461,    0, 2348,
+     2337, 2353, 2367, 2366, 2373,  423, 2335, 2461,  155,    0,
+     2331, 2331, 2364, 2363, 2328, 2461, 2341, 2329, 2326, 2334,
+     2333, 2349, 2331, 2316, 2320,  817,  820, 2332, 2323, 2329,
+     2312, 2324, 2326, 2318,  823,  827, 2321, 2305, 2305,  839,
+      842, 2318, 2317, 2310, 2311, 2310, 2313, 2303, 2311,  845,
+      848,  851,  867,  870, 2297,  873,  876,  879, 2326, 2461,
+
+     2329, 2461, 2461,   17, 2300, 2461, 2330, 2329, 2290, 2461,
+     2461, 2288, 2300, 2302, 2285, 2316, 2280, 2207,  896, 2212,
+     2192,  900,  903, 2461,  906, 2201, 2193,  913, 2197, 2180,
+      923, 2184,  926, 2461, 2461,  934, 2180, 2175,  940,  943,
+     2461,  946, 2160,  950,  953, 2159, 2150,  969, 2047,  972,
+      975,  981, 2461,  988,  992,  998, 1008, 1011, 2461, 1014,
+     2060, 1017, 1033, 1020, 1041, 2461, 1044, 2075,  684, 1047,
+     2461, 2461, 2082, 2081, 1050, 2073, 1065, 2045, 1068, 2037,
+     1071, 1074, 2042, 1087, 1090, 1095, 2051, 1103, 2040, 1107,
+     1110, 2045, 1113, 1116, 2032, 2033, 2023, 1124, 1130, 1133,
+
+     1137, 1145, 1149, 2023, 2009, 1157, 1161, 2022, 1169, 1173,
+     1181, 1185, 2461, 2461, 1193, 2012, 1198, 2461, 2461, 1206,
+     2035,  585, 2036, 1210, 2461, 2034, 2461, 2461, 1213, 2002,
+     1216, 1223, 1988, 1219, 1238, 1986, 1248, 2461, 2461, 1985,
+     1256,   37, 1259, 1267, 1272, 1275, 1977, 1278, 1284, 1287,
+     2461, 2461, 1991, 1986, 1969, 1295, 2461, 1298, 1301, 2461,
+     2461, 1312,   42,  124, 1975, 1965, 1320, 2461, 2461, 1952,
+     1328, 2461, 2461, 1336, 1339, 1935, 1342, 1952,  648,  174,
+        5, 2461, 1927, 1346, 2461, 2461, 1926, 1359, 2461, 2461,
+     1912, 1367, 1927, 1906, 1370, 2461, 2461, 1378, 2461, 1383,
+
+     1389, 1395, 1921, 1398, 1401, 1895, 1887, 1878, 1832, 1838,
+     1799, 1798, 1404, 2461, 1407, 1410, 1417, 1826,  176,  158,
+      448, 1797, 1761, 1424, 1427, 1430, 1770, 1729, 1443, 1729,
+     1446, 1449, 1457, 1463, 1707, 1699, 1701, 1696, 1473, 1476,
+     1479, 1482, 2461, 1485, 1495, 1678, 1499,  298,  621, 1643,
+     1502, 1505, 1512, 1521, 2461, 2461, 1655, 1529, 1532, 1535,
+     2461, 2461, 1548, 2461, 2461, 1612, 1615, 1605, 1609, 1556,
+     1559, 1567, 1572, 1583, 1586, 1508, 2461, 2461, 1599,  180,
+      301, 1594, 1602, 1606, 1618, 2461, 2461, 1588, 1627, 1636,
+     1644, 1649, 1574, 1539, 1537, 1528, 1660,  676,  685, 1668,
+
+      695,  703, 1676,  712,  722,  305,  179,  547,  529,  657,
+      429,  709, 1684, 1687, 1696, 2461, 2461, 1545, 1704, 2461,
+     2461, 1712, 2461, 2461, 1571, 1518, 1557, 1510, 1518, 1493,
+     1507, 1477, 1460, 1442, 1457, 1439, 1435, 1416, 1429, 1391,
+      732,  641,  206,  528,  201,  476,  686, 1720, 2461, 2461,
+     1414, 2461, 1432, 2461, 1407, 1348, 1334, 1318, 1304, 1263,
+     1228, 1210, 1188, 1192, 1175, 1160, 1150,  713,  724, 1728,
+      302,  743,  763, 1731, 1154, 2461, 2461, 1139, 1106, 1076,
+     1085, 1070, 1040, 1008, 1021, 1005, 1017,  980,  992, 1734,
+      759, 1737,  761, 1740, 1757, 1760, 1767,  993,  964,  959,
+
+      924,  883,  850,  858,  823,  828,  795,  779,  745,  698,
+     1777, 1780,  796,  614, 1784, 1787, 1790, 1807, 1825, 1859,
+      651,  602, 2461,  535, 2461,  537, 2461,  531, 2461,  489,
+     2461,  482, 2461,  901, 1817,  866, 1820,  902, 1877,  905,
+      483, 1895, 1929,  391, 2461, 2461, 2461, 2461, 2461, 2461,
+      950, 1023, 1069, 1852,  951, 1022,  349,  343,  674,  337,
+     1887,  282, 1126, 1136,  424, 1063, 1138,  316,  298,  234,
+     1921,  167,  426, 1150,  788, 1160,  793,  156,  123,  838,
+      843, 1947, 1162,  868, 2461, 1950, 1953,  904, 1966,  869,
+     1974, 1977, 1913, 1984, 1993,  794,  821,  970, 1997, 2010,
+
+     2461, 2461,  921,  922, 2018,  990, 1068, 2005, 1046, 1217,
+     1103, 1213, 1246, 1254,  751,  948, 2026, 1276, 1277, 1045,
+     1180, 1290, 1301, 1235, 1309, 1315, 1329, 1249, 1299, 1317,
+     1340, 1360, 1405, 1357, 1419, 1348, 1438, 1529, 1537, 1561,
+     1575, 1596, 1605,  944, 1370, 1510, 1525, 1619, 1638, 1502,
+     1614, 1657, 1665, 1666, 1674, 1607, 1615, 1655, 1663, 1707,
+     1709, 1702, 1747, 1436, 1632, 1779, 1831, 1834, 1835, 1748,
+     1710, 1870, 1902, 2035, 1782, 1785, 1800, 1839, 2038, 1903,
+     1876, 2043, 2461, 1967, 1980, 2046, 2055, 2461, 2063, 1955,
+     1909, 2066, 2461, 2072, 2461, 2075, 2083, 2461, 2461, 2101,
+
+     2108, 2115, 2122, 2129, 2136, 2143, 2150, 2157, 2164, 2171,
+     2178, 2185, 2192, 2197, 2202, 2207, 2212, 2217, 2224, 2227,
+     2230, 2233, 2236, 2239, 2246, 2250, 2256, 2262, 2268, 2274,
+     2280, 2287, 2294, 2301, 2308, 2315, 2322, 2329
+    } ;
+
+static yyconst flex_int16_t yy_def[939] =
+    {   0,
+      900,  900,  901,  901,  901,  901,  902,  902,  903,  903,
+      904,  904,  905,  905,  905,  905,  906,  906,  900,  900,
+      899,   21,  907,  907,  907,  907,  900,  900,  907,  907,
+      900,  900,  907,  907,  907,  907,  900,  900,  899,   39,
+      908,  908,  900,  900,  908,  908,  908,  908,  900,  900,
+      899,   51,  909,  909,  900,  900,  910,  910,  911,  911,
+      900,  900,  911,  911,  911,  911,  900,  900,  912,  912,
+      913,  913,  905,  905,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+
+      899,  899,  899,  899,  899,  914,  899,  899,  914,  914,
+      914,  914,  914,  914,  914,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  915,  899,  899,  915,
+      915,  915,  915,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  916,  899,  899,  916,  916,  916,  916,  916,
+      916,  899,  899,  899,  899,  899,  899,  899,  917,  899,
+      899,  917,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  918,  899,  899,  918,  899,  899,  899,  899,  899,
+      899,  919,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  914,  914,  914,
+
+      914,  914,  914,  914,  914,  914,  920,  899,  899,  899,
+      899,  899,  899,  899,  899,  915,  915,  915,  915,  915,
+      921,  899,  899,  916,  916,  916,  916,  916,  916,  916,
+      916,  922,  899,  917,  917,  923,  899,  899,  918,  918,
+      924,  899,  899,  925,  899,  925,  899,  899,  899,  926,
+      899,  899,  899,  899,  899,  899,  899,  914,  914,  914,
+      914,  914,  914,  914,  914,  927,  927,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  915,  915,  915,  928,
+      928,  899,  916,  916,  916,  916,  916,  916,  916,  929,
+      929,  917,  930,  930,  899,  918,  931,  931,  899,  899,
+
+      925,  899,  899,  925,  899,  899,  926,  899,  899,  899,
+      899,  899,  899,  914,  914,  914,  914,  914,  914,  914,
+      914,  899,  927,  899,  927,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  915,  915,  915,  899,  928,
+      899,  928,  899,  916,  916,  916,  916,  916,  916,  916,
+      899,  929,  899,  929,  899,  899,  899,  930,  899,  930,
+      899,  899,  899,  899,  931,  899,  931,  899,  925,  932,
+      899,  899,  899,  899,  899,  914,  914,  914,  914,  914,
+      899,  899,  914,  914,  927,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  915,  915,  915,  928,  899,  899,
+
+      899,  899,  899,  916,  916,  899,  899,  916,  899,  899,
+      929,  899,  899,  899,  930,  899,  899,  899,  899,  931,
+      899,  925,  932,  932,  899,  932,  899,  899,  899,  914,
+      899,  899,  914,  899,  899,  914,  899,  899,  899,  914,
+      899,  914,  899,  927,  899,  899,  899,  899,  899,  899,
+      899,  899,  915,  915,  915,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  916,  916,  899,  899,  899,  916,
+      899,  899,  899,  929,  930,  899,  931,  899,  925,  932,
+      932,  899,  914,  899,  899,  899,  914,  899,  899,  899,
+      914,  914,  914,  914,  899,  899,  899,  899,  899,  899,
+
+      899,  899,  915,  915,  915,  899,  899,  899,  899,  916,
+      916,  916,  899,  899,  930,  899,  931,  899,  925,  932,
+      932,  914,  914,  914,  899,  899,  914,  914,  899,  915,
+      899,  899,  899,  899,  899,  899,  899,  899,  916,  916,
+      916,  899,  899,  899,  931,  899,  925,  932,  932,  914,
+      914,  899,  899,  899,  899,  899,  914,  914,  915,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  925,  932,
+      932,  914,  899,  899,  899,  899,  899,  914,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+
+      899,  899,  899,  899,  899,  925,  925,  925,  925,  925,
+      932,  932,  899,  899,  899,  899,  899,  914,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      925,  925,  925,  925,  925,  932,  932,  899,  899,  899,
+      914,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  925,  925,  925,
+      925,  925,  932,  932,  914,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  925,
+      925,  925,  925,  925,  932,  932,  932,  914,  899,  899,
+
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      925,  925,  925,  925,  925,  932,  932,  932,  933,  934,
+      914,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  925,  925,  925,  925,  925,  932,  935,
+      936,  933,  934,  914,  899,  899,  899,  899,  899,  899,
+      925,  925,  925,  925,  925,  935,  932,  937,  936,  938,
+      932,  914,  925,  925,  925,  925,  925,  937,  899,  938,
+      932,  914,  925,  925,  925,  925,  925,  899,  914,  925,
+      925,  925,  925,  925,  899,  914,  925,  925,  925,  925,
+      925,  899,  899,  925,  925,  925,  925,  925,  925,  899,
+
+      899,  899,  925,  925,  925,  925,  925,  925,  925,  925,
+      925,  925,  925,  925,  925,  925,  925,  925,  925,  925,
+      925,  925,  925,  925,  925,  925,  925,  925,  925,  925,
+      925,  925,  925,  925,  925,  925,  925,  925,  925,  925,
+      925,  925,  925,  925,  925,  925,  925,  925,  925,  925,
+      925,  925,  925,  925,  925,  925,  925,  925,  925,  925,
+      925,  925,  925,  925,  925,  925,  925,  925,  925,  925,
+      925,  925,  925,  925,  925,  925,  925,  925,  925,  925,
+      925,  925,  899,  925,  925,  925,  925,  899,  925,  925,
+      925,  925,  899,  925,  899,  925,  925,  899,    0,  899,
+
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899
+    } ;
+
+static yyconst flex_int16_t yy_nxt[2521] =
+    {   0,
+      899,   78,   79,   78,   78,   79,   78,   78,   79,   78,
+       78,   79,   78,   86,  249,   80,   86,   89,   80,   89,
+       87,   81,  425,   87,   81,   83,   79,   83,   83,   79,
+       83,   92,   93,   90,  302,   90,   94,   95,  369,   84,
+       92,   93,   84,  521,   96,   94,   95,   92,   93,  199,
+       97,  182,   94,   96,   92,   93,  200,   97,  250,   94,
+       96,   99,  100,   99,  100,  183,  182,   96,   79,   79,
+       79,   79,   79,   79,  117,   79,  117,  117,   79,  117,
+      184,  230,  102,  251,  506,  102,  252,  231,  118,  493,
+      507,  118,  101,  494,  101,  103,  104,   79,  104,  103,
+
+      103,  103,  103,  103,  103,  103,  105,  103,  106,  103,
+      107,  103,  108,  103,  106,  106,  106,  106,  106,  106,
+      106,  106,  106,  106,  106,  106,  106,  103,  103,  106,
+      106,  109,  106,  106,  110,  106,  106,  111,  112,  106,
+      106,  106,  113,  106,  106,  106,  106,  106,  106,  106,
+      114,  115,  106,  106,  117,   79,  117,  117,   79,  117,
+       79,   79,   79,   79,   79,   79,  508,  249,  119,  306,
+      786,  119,  509,  785,  120,  425,  185,  120,  117,   79,
+      117,  117,   79,  117,   79,   79,   79,   79,   79,   79,
+      184,  425,  118,  302,  548,  118,  302,  425,  121,  547,
+
+      185,  121,  117,   79,  117,  117,   79,  117,  117,   79,
+      117,  117,   79,  117,  184,  779,  119,  611,  302,  119,
+      642,  520,  122,  302,  185,  122,   79,   79,   79,   79,
+       79,   79,  181,  181,  181,  181,  181,  181,  184,  672,
+      123,  670,  769,  123,  124,  125,   79,  125,  124,  124,
+      124,  124,  124,  124,  124,  126,  124,  127,  124,  128,
+      124,  129,  124,  127,  127,  127,  127,  127,  127,  127,
+      127,  127,  127,  127,  127,  127,  124,  124,  127,  127,
+      127,  127,  127,  127,  127,  127,  130,  127,  127,  127,
+      127,  131,  127,  127,  127,  132,  127,  127,  127,  133,
+
+      127,  127,  127,  135,   79,  135,  135,   79,  135,   79,
+       79,   79,   79,   79,   79,  425,  778,  136,  425,  302,
+      136,  769,  302,  137,  772,  185,  137,  135,   79,  135,
+      135,   79,  135,  135,   79,  135,  135,   79,  135,  184,
+      693,  136,  641,  612,  136,  769,  580,  138,  769,  185,
+      138,   79,   79,   79,   79,   79,   79,  181,  181,  181,
+      181,  181,  181,  184,  210,  139,  425,  426,  139,  140,
+      141,   79,  141,  140,  140,  140,  140,  140,  140,  140,
+      142,  140,  143,  140,  144,  140,  145,  140,  143,  143,
+      143,  143,  143,  143,  143,  143,  143,  143,  143,  143,
+
+      143,  140,  140,  143,  143,  143,  143,  143,  146,  143,
+      143,  143,  143,  143,  147,  143,  143,  148,  143,  143,
+      149,  150,  151,  143,  143,  143,  143,  143,  153,   79,
+      153,  153,   79,  153,   79,   79,   79,   79,   79,   79,
+      302,  302,  154,  302,  762,  154,  425,  775,  155,  780,
+      304,  155,  156,  157,   79,  157,  156,  156,  156,  156,
+      156,  156,  156,  158,  156,  425,  156,  160,  156,  161,
+      156,  646,  164,   79,  164,  164,   79,  164,   79,   79,
+       79,   79,   79,   79,  156,  156,  165,  185,  185,  165,
+      750,  757,  166,  425,  749,  166,  181,  181,  181,  549,
+
+      760,  184,  184,  162,  156,  157,   79,  157,  156,  156,
+      156,  156,  156,  156,  156,  158,  156,  196,  156,  160,
+      156,  161,  156,  673,  164,   79,  164,  164,   79,  164,
+      164,   79,  164,  164,   79,  164,  156,  156,  165,  748,
+      185,  165,  747,  746,  167,  302,  302,  167,   79,   79,
+       79,   79,   79,   79,  184,  162,  181,  181,  181,  181,
+      181,  181,  168,  644,  302,  168,  169,  170,   79,  170,
+      169,  169,  169,  169,  169,  169,  169,  171,  169,  671,
+      169,  173,  169,  174,  169,  237,  177,   79,  177,  177,
+       79,  177,  181,  181,  181,  643,  185,  185,  169,  169,
+
+      178,  185,  302,  178,  181,  181,  181,  745,  232,  190,
+      184,  184,  181,  181,  181,  184,  479,  175,  169,  170,
+       79,  170,  169,  169,  169,  169,  169,  169,  169,  171,
+      169,  302,  169,  173,  169,  174,  169,  191,  425,   92,
+       93,   92,   93,  192,   94,  185,   94,  222,  193,  185,
+      169,  169,  179,  194,  179,  245,  207,  185,  302,  184,
+      181,  181,  181,  184,  207,  302,  185,  737,  246,  175,
+      180,  184,  180,  581,  302,  208,  519,  214,  185,  208,
+      184,  209,  757,  669,  210,  744,  185,  208,  210,  209,
+      211,  760,  184,  207,  211,  212,  213,  185,  209,  212,
+
+      184,  302,  211,  425,  241,  185,  733,  212,  208,  645,
+      209,  184,  221,  185,  422,  629,  208,  213,  214,  184,
+      181,  181,  181,  211,  631,  213,  425,  184,  212,  630,
+      302,  211,  185,  674,  633,  208,  212,  214,  632,  221,
+      185,  302,  635,  208,  213,  214,  184,  236,  634,  302,
+      211,  637,  213,  690,  184,  222,  636,  647,  211,  185,
+      302,  639,  208,  222,  214,  638,  668,  185,  302,  691,
+      208,  213,  214,  184,  236,  640,  302,  211,  302,  213,
+      425,  184,  212,  732,  731,  237,  181,  181,  181,  208,
+      212,  214,  181,  181,  181,  694,  712,  208,  213,  214,
+
+      275,  275,  275,  695,  237,  302,  213,  824,  714,  212,
+      302,  302,  211,  302,  782,  276,  784,  212,  322,  322,
+      322,  322,  322,  322,  275,  275,  275,  736,  333,  333,
+      333,  806,  334,  730,  324,  335,  729,  324,  302,  276,
+      339,  339,  339,  339,  339,  339,  351,  351,  351,  351,
+      351,  351,  355,  355,  355,  302,  341,  325,  807,  341,
+      302,  728,  353,  727,  787,  353,  788,  356,  357,  357,
+      357,  357,  357,  357,  362,  362,  362,  364,  364,  364,
+      364,  364,  364,  302,  359,  302,  302,  359,  726,  363,
+      342,  725,  798,  366,  791,  753,  366,  381,  381,  381,
+
+      354,  322,  322,  322,  322,  322,  322,  322,  322,  322,
+      757,  360,  382,  367,  388,  388,  388,  324,  302,  302,
+      324,  302,  758,  324,  391,  391,  391,  333,  333,  333,
+      795,  334,  751,  755,  335,  393,  393,  393,  302,  302,
+      385,  339,  339,  339,  339,  339,  339,  339,  339,  339,
+      394,  400,  400,  400,  402,  402,  402,  341,  811,  812,
+      341,  302,  724,  341,  723,  302,  401,  302,  302,  403,
+      406,  406,  406,  409,  409,  409,  351,  351,  351,  763,
+      767,  398,  351,  351,  351,  407,  395,  302,  410,  351,
+      351,  351,  353,  355,  355,  355,  808,  854,  353,  412,
+
+      412,  412,  722,  413,  825,  353,  414,  302,  356,  357,
+      357,  357,  357,  357,  357,  357,  357,  357,  362,  362,
+      362,  364,  364,  364,  815,  359,  411,  757,  359,  721,
+      710,  359,  709,  363,  417,  417,  417,  366,  418,  758,
+      302,  419,  364,  364,  364,  364,  364,  364,  424,  424,
+      424,  429,  429,  429,  764,  708,  415,  707,  366,  706,
+      705,  366,  302,  302,  425,  426,  431,  431,  431,  434,
+      434,  434,  381,  381,  381,  437,  437,  437,  704,  438,
+      302,  432,  439,  818,  435,  302,  302,  382,  441,  441,
+      441,  322,  322,  322,  776,  420,  445,  445,  445,  765,
+
+      442,  830,  816,  443,  388,  388,  388,  324,  448,  448,
+      448,  391,  391,  391,  393,  393,  393,  450,  450,  450,
+      302,  451,  703,  702,  452,  456,  456,  456,  701,  394,
+      444,  458,  458,  458,  400,  400,  400,  820,  459,  459,
+      459,  457,  460,  302,  700,  461,  402,  402,  402,  401,
+      462,  462,  462,  302,  463,  302,  773,  464,  406,  406,
+      406,  403,  467,  467,  467,  774,  468,  302,  777,  469,
+      409,  409,  409,  407,  471,  471,  471,  302,  472,  302,
+      781,  473,  351,  351,  351,  410,  412,  412,  412,  783,
+      413,  699,  790,  414,  357,  357,  357,  302,  353,  417,
+
+      417,  417,  698,  418,  689,  688,  419,  364,  364,  364,
+      359,  424,  424,  424,  429,  429,  429,  431,  431,  431,
+      434,  434,  434,  366,  484,  484,  484,  425,  485,  687,
+      302,  486,  432,  474,  302,  435,  831,  686,  475,  488,
+      488,  488,  685,  489,  477,  834,  490,  821,  480,  437,
+      437,  437,  302,  438,  819,  684,  439,  441,  441,  441,
+      495,  495,  495,  302,  496,  481,  302,  497,  498,  498,
+      498,  302,  443,  445,  445,  445,  500,  500,  500,  448,
+      448,  448,  683,  822,  499,  502,  502,  502,  450,  450,
+      450,  823,  451,  302,  302,  452,  456,  456,  456,  458,
+
+      458,  458,  459,  459,  459,  838,  460,  302,  682,  461,
+      828,  829,  457,  462,  462,  462,  302,  463,  302,  835,
+      464,  467,  467,  467,  832,  468,  302,  840,  469,  471,
+      471,  471,  302,  472,  302,  833,  473,  513,  513,  513,
+      357,  357,  357,  364,  364,  364,  302,  484,  484,  484,
+      841,  485,  836,  514,  486,  839,  359,  302,  681,  366,
+      488,  488,  488,  680,  489,  302,  837,  490,  525,  525,
+      525,  495,  495,  495,  302,  496,  515,  302,  497,  498,
+      498,  498,  846,  526,  500,  500,  500,  302,  679,  517,
+      529,  529,  529,  678,  844,  499,  502,  502,  502,  531,
+
+      531,  531,  533,  533,  533,  513,  513,  513,  542,  542,
+      542,  544,  544,  544,  532,  677,  842,  534,  364,  364,
+      364,  514,  302,  855,  543,  552,  552,  552,  525,  525,
+      525,  554,  554,  554,  366,  555,  302,  676,  556,  675,
+      553,  874,  667,  526,  529,  529,  529,  531,  531,  531,
+      560,  560,  560,  302,  561,  302,  845,  562,  533,  533,
+      533,  843,  532,  666,  563,  563,  563,  665,  564,  664,
+      545,  565,  847,  534,  570,  570,  570,  572,  572,  572,
+      574,  574,  574,  542,  542,  542,  544,  544,  544,  571,
+      663,  662,  573,  661,  660,  575,  576,  576,  576,  543,
+
+      579,  579,  579,  583,  583,  583,  552,  552,  552,  576,
+      576,  576,  577,  585,  585,  585,  302,  586,  584,  302,
+      587,  553,  554,  554,  554,  577,  555,  302,  659,  556,
+      589,  589,  589,  591,  591,  591,  560,  560,  560,  848,
+      561,  658,  302,  562,  657,  590,  302,  849,  592,  563,
+      563,  563,  656,  564,  302,  860,  565,  570,  570,  570,
+      597,  597,  597,  655,  598,  654,  856,  599,  572,  572,
+      572,  653,  571,  600,  600,  600,  652,  601,  302,  651,
+      602,  857,  628,  573,  574,  574,  574,  603,  603,  603,
+      627,  604,  302,  626,  605,  613,  613,  613,  850,  575,
+
+      579,  579,  579,  583,  583,  583,  852,  615,  615,  615,
+      614,  616,  851,  302,  617,  853,  302,  866,  584,  585,
+      585,  585,  302,  586,  302,  867,  587,  625,  589,  589,
+      589,  302,  302,  606,  618,  607,  302,  619,  619,  619,
+      874,  620,  608,  590,  621,  591,  591,  591,  609,  302,
+      622,  622,  622,  610,  623,  302,  858,  624,  596,  595,
+      592,  597,  597,  597,  594,  598,  593,  861,  599,  600,
+      600,  600,  302,  601,  302,  859,  602,  603,  603,  603,
+      302,  604,  302,  302,  605,  613,  613,  613,  648,  648,
+      648,  302,  649,  588,  862,  650,  582,  615,  615,  615,
+
+      614,  616,  863,  864,  617,  619,  619,  619,  868,  620,
+      578,  865,  621,  622,  622,  622,  869,  623,  879,  302,
+      624,  648,  648,  648,  302,  649,  302,  302,  650,  692,
+      692,  692,  696,  696,  696,  711,  711,  711,  692,  692,
+      692,  715,  715,  715,  870,  302,  871,  697,  425,  569,
+      568,  302,  567,  879,  302,  872,  566,  302,  716,  716,
+      716,  696,  696,  696,  302,  302,  713,  559,  718,  718,
+      718,  558,  719,  717,  425,  720,  697,  425,  711,  711,
+      711,  735,  735,  735,  425,  715,  715,  715,  716,  716,
+      716,  739,  739,  739,  302,  740,  302,  302,  741,  302,
+
+      873,  302,  302,  717,  425,  886,  734,  425,  718,  718,
+      718,  557,  719,  738,  551,  720,  875,  302,  735,  735,
+      735,  754,  754,  754,  425,  423,  423,  423,  423,  423,
+      423,  423,  423,  423,  302,  884,  423,  302,  885,  423,
+      423,  423,  425,  423,  550,  546,  752,  886,  302,  541,
+      540,  302,  302,  754,  754,  754,  302,  423,  423,  423,
+      423,  423,  423,  423,  423,  423,  423,  423,  876,  302,
+      423,  877,  878,  423,  423,  423,  425,  423,  739,  739,
+      739,  766,  740,  539,  889,  741,  538,  302,  771,  771,
+      771,  423,  423,  302,  425,  423,  423,  423,  423,  423,
+
+      761,  423,  423,  423,  425,  426,  423,  880,  889,  423,
+      423,  423,  425,  423,  800,  800,  800,  896,  801,  302,
+      302,  802,  771,  771,  771,  537,  302,  423,  423,  423,
+      423,  423,  423,  423,  423,  423,  423,  761,  425,  881,
+      423,  536,  535,  423,  423,  423,  425,  423,  789,  789,
+      789,  792,  792,  792,  794,  794,  794,  530,  528,  480,
+      896,  423,  423,  527,  302,  524,  793,  789,  789,  789,
+      302,  796,  302,  523,  797,  799,  799,  799,  792,  792,
+      792,  522,  518,  302,  302,  794,  794,  794,  516,  803,
+      512,  302,  804,  793,  805,  805,  805,  302,  799,  799,
+
+      799,  302,  809,  511,  890,  810,  817,  817,  817,  510,
+      302,  800,  800,  800,  302,  801,  505,  891,  802,  805,
+      805,  805,  302,  813,  504,  503,  814,  817,  817,  817,
+      501,  826,  492,  491,  827,  302,  882,  882,  882,  887,
+      887,  887,  487,  302,  882,  882,  882,  892,  892,  892,
+      483,  482,  883,  425,  478,  888,  887,  887,  887,  476,
+      883,  470,  466,  893,  894,  894,  894,  892,  892,  892,
+      465,  455,  888,  894,  894,  894,  897,  897,  897,  454,
+      895,  453,  449,  893,  897,  897,  897,  447,  446,  895,
+      440,  436,  898,  433,  430,  428,  427,  421,  416,  408,
+
+      898,   76,   76,   76,   76,   76,   76,   76,   77,   77,
+       77,   77,   77,   77,   77,   82,   82,   82,   82,   82,
+       82,   82,   85,   85,   85,   85,   85,   85,   85,   88,
+       88,   88,   88,   88,   88,   88,   91,   91,   91,   91,
+       91,   91,   91,   98,   98,   98,   98,   98,   98,   98,
+      116,  116,  116,  116,  116,  116,  116,  134,  134,  134,
+      134,  134,  134,  134,  152,  152,  152,  152,  152,  152,
+      152,  159,  159,  159,  159,  159,  159,  159,  163,  163,
+      163,  163,  163,  163,  163,  172,  172,  172,  172,  172,
+      172,  172,  176,  176,  176,  176,  176,  176,  176,  198,
+
+      198,  198,  405,  198,  216,  216,  216,  404,  216,  224,
+      224,  224,  399,  224,  234,  234,  234,  397,  234,  239,
+      239,  239,  396,  239,  244,  244,  244,  244,  244,  392,
+      244,  266,  390,  266,  280,  389,  280,  290,  387,  290,
+      293,  386,  293,  297,  384,  297,  301,  301,  301,  301,
+      301,  301,  301,  307,  383,  380,  307,  323,  323,  323,
+      323,  323,  323,  340,  340,  340,  340,  340,  340,  352,
+      352,  352,  352,  352,  352,  358,  358,  358,  358,  358,
+      358,  365,  365,  365,  365,  365,  365,  423,  423,  423,
+      423,  423,  423,  423,  742,  742,  742,  742,  742,  742,
+
+      742,  743,  743,  743,  743,  743,  743,  743,  756,  756,
+      756,  756,  756,  756,  756,  759,  759,  759,  759,  759,
+      759,  759,  768,  768,  768,  768,  768,  768,  768,  770,
+      770,  770,  770,  770,  770,  770,  379,  378,  377,  376,
+      375,  374,  373,  372,  371,  370,  302,  368,  361,  350,
+      349,  348,  347,  346,  345,  344,  343,  338,  337,  336,
+      332,  331,  330,  329,  328,  327,  326,  321,  320,  319,
+      318,  317,  316,  315,  314,  313,  312,  311,  310,  309,
+      308,  305,  303,  302,  300,  299,  298,  296,  295,  294,
+      292,  291,  289,  288,  287,  286,  285,  284,  283,  282,
+
+      281,  279,  278,  277,  274,  273,  272,  271,  270,  269,
+      268,  267,  265,  264,  263,  262,  261,  260,  259,  258,
+      257,  256,  255,  254,  253,  248,  245,  247,  243,  242,
+      240,  238,  235,  233,  229,  228,  227,  226,  225,  223,
+      220,  219,  218,  217,  215,  206,  205,  204,  203,  202,
+      201,  197,  195,  189,  188,  189,  188,  187,  186,  899,
+       75,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899
+    } ;
+
+static yyconst flex_int16_t yy_chk[2521] =
+    {   0,
+        0,    3,    3,    3,    4,    4,    4,    5,    5,    5,
+        6,    6,    6,    9,  190,    3,   10,   11,    4,   12,
+        9,    5,  481,   10,    6,    7,    7,    7,    8,    8,
+        8,   13,   13,   11,  304,   12,   13,   13,  304,    7,
+       14,   14,    8,  481,   13,   14,   14,   15,   15,  109,
+       15,   80,   15,   14,   16,   16,  109,   16,  190,   16,
+       15,   17,   17,   18,   18,   80,   81,   16,   19,   19,
+       19,   20,   20,   20,   23,   23,   23,   24,   24,   24,
+       81,  151,   19,  191,  463,   20,  191,  151,   23,  442,
+      463,   24,   17,  442,   18,   21,   21,   21,   21,   21,
+
+       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
+       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
+       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
+       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
+       21,   21,   21,   21,   21,   21,   21,   21,   21,   21,
+       21,   21,   21,   21,   25,   25,   25,   26,   26,   26,
+       27,   27,   27,   28,   28,   28,  464,  249,   25,  249,
+      779,   26,  464,  778,   27,  520,   84,   28,   29,   29,
+       29,   30,   30,   30,   31,   31,   31,   32,   32,   32,
+       84,  480,   29,  519,  520,   30,  607,  580,   31,  519,
+
+      107,   32,   33,   33,   33,   34,   34,   34,   35,   35,
+       35,   36,   36,   36,  107,  772,   33,  580,  645,   34,
+      607,  480,   35,  643,  128,   36,   37,   37,   37,   38,
+       38,   38,   78,   78,   78,   79,   79,   79,  128,  645,
+       37,  643,  770,   38,   39,   39,   39,   39,   39,   39,
+       39,   39,   39,   39,   39,   39,   39,   39,   39,   39,
+       39,   39,   39,   39,   39,   39,   39,   39,   39,   39,
+       39,   39,   39,   39,   39,   39,   39,   39,   39,   39,
+       39,   39,   39,   39,   39,   39,   39,   39,   39,   39,
+       39,   39,   39,   39,   39,   39,   39,   39,   39,   39,
+
+       39,   39,   39,   41,   41,   41,   42,   42,   42,   43,
+       43,   43,   44,   44,   44,  548,  769,   41,  581,  671,
+       42,  768,  606,   43,  762,  123,   44,   45,   45,   45,
+       46,   46,   46,   47,   47,   47,   48,   48,   48,  123,
+      671,   45,  606,  581,   46,  760,  548,   47,  758,  144,
+       48,   49,   49,   49,   50,   50,   50,   83,   83,   83,
+      104,  104,  104,  144,  123,   49,  757,  757,   50,   51,
+       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
+       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
+       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
+
+       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
+       51,   51,   51,   51,   51,   51,   51,   51,   51,   51,
+       51,   51,   51,   51,   51,   51,   51,   51,   53,   53,
+       53,   54,   54,   54,   55,   55,   55,   56,   56,   56,
+      246,  765,   53,  773,  744,   54,  611,  765,   55,  773,
+      246,   56,   57,   57,   57,   57,   57,   57,   57,   57,
+       57,   57,   57,   57,   57,  521,   57,   57,   57,   57,
+       57,  611,   59,   59,   59,   60,   60,   60,   61,   61,
+       61,   62,   62,   62,   57,   57,   59,  102,  160,   60,
+      732,  741,   61,  646,  730,   62,  117,  117,  117,  521,
+
+      741,  102,  160,   57,   58,   58,   58,   58,   58,   58,
+       58,   58,   58,   58,   58,   58,   58,  102,   58,   58,
+       58,   58,   58,  646,   63,   63,   63,   64,   64,   64,
+       65,   65,   65,   66,   66,   66,   58,   58,   63,  728,
+      168,   64,  726,  724,   65,  644,  609,   66,   67,   67,
+       67,   68,   68,   68,  168,   58,  125,  125,  125,  135,
+      135,  135,   67,  609,  608,   68,   69,   69,   69,   69,
+       69,   69,   69,   69,   69,   69,   69,   69,   69,  644,
+       69,   69,   69,   69,   69,  168,   71,   71,   71,   72,
+       72,   72,  141,  141,  141,  608,  173,  139,   69,   69,
+
+       71,  154,  422,   72,  153,  153,  153,  722,  154,   94,
+      173,  139,  157,  157,  157,  154,  422,   69,   70,   70,
+       70,   70,   70,   70,   70,   70,   70,   70,   70,   70,
+       70,  714,   70,   70,   70,   70,   70,   94,  549,   73,
+       73,   74,   74,   94,   73,  120,   74,  139,   94,  118,
+       70,   70,   73,   94,   74,  182,  118,  119,  642,  120,
+      164,  164,  164,  118,  119,  479,  155,  714,  182,   70,
+       73,  119,   74,  549,  610,  120,  479,  120,  121,  118,
+      155,  118,  759,  642,  120,  721,  122,  119,  118,  119,
+      120,  759,  121,  122,  118,  120,  119,  178,  155,  118,
+
+      122,  369,  119,  647,  178,  136,  710,  119,  121,  610,
+      121,  178,  136,  137,  369,  598,  122,  121,  122,  136,
+      170,  170,  170,  121,  599,  122,  612,  137,  121,  598,
+      668,  122,  138,  647,  601,  136,  122,  136,  599,  138,
+      165,  669,  602,  137,  136,  137,  138,  165,  601,  641,
+      136,  604,  137,  668,  165,  136,  602,  612,  137,  166,
+      672,  605,  138,  137,  138,  604,  641,  167,  815,  669,
+      165,  138,  165,  166,  167,  605,  691,  138,  693,  165,
+      673,  167,  138,  709,  708,  165,  177,  177,  177,  166,
+      165,  166,  181,  181,  181,  672,  691,  167,  166,  167,
+
+      217,  217,  217,  673,  166,  775,  167,  815,  693,  166,
+      777,  796,  167,  713,  775,  217,  777,  167,  266,  266,
+      266,  267,  267,  267,  275,  275,  275,  713,  276,  276,
+      276,  796,  276,  707,  266,  276,  706,  267,  797,  275,
+      280,  280,  280,  281,  281,  281,  290,  290,  290,  291,
+      291,  291,  292,  292,  292,  780,  280,  267,  797,  281,
+      781,  705,  290,  704,  780,  291,  781,  292,  293,  293,
+      293,  294,  294,  294,  296,  296,  296,  297,  297,  297,
+      298,  298,  298,  736,  293,  784,  790,  294,  703,  296,
+      281,  702,  790,  297,  784,  736,  298,  319,  319,  319,
+
+      291,  322,  322,  322,  323,  323,  323,  325,  325,  325,
+      740,  294,  319,  298,  328,  328,  328,  322,  734,  738,
+      323,  788,  740,  325,  331,  331,  331,  333,  333,  333,
+      788,  333,  734,  738,  333,  336,  336,  336,  803,  804,
+      325,  339,  339,  339,  340,  340,  340,  342,  342,  342,
+      336,  344,  344,  344,  345,  345,  345,  339,  803,  804,
+      340,  844,  701,  342,  700,  816,  344,  751,  755,  345,
+      348,  348,  348,  350,  350,  350,  351,  351,  351,  751,
+      755,  342,  352,  352,  352,  348,  336,  798,  350,  354,
+      354,  354,  351,  355,  355,  355,  798,  844,  352,  356,
+
+      356,  356,  699,  356,  816,  354,  356,  806,  355,  357,
+      357,  357,  358,  358,  358,  360,  360,  360,  362,  362,
+      362,  364,  364,  364,  806,  357,  354,  756,  358,  698,
+      689,  360,  688,  362,  363,  363,  363,  364,  363,  756,
+      752,  363,  365,  365,  365,  367,  367,  367,  370,  370,
+      370,  375,  375,  375,  752,  687,  360,  686,  365,  685,
+      684,  367,  820,  809,  370,  370,  377,  377,  377,  379,
+      379,  379,  381,  381,  381,  382,  382,  382,  683,  382,
+      766,  377,  382,  809,  379,  807,  753,  381,  384,  384,
+      384,  385,  385,  385,  766,  367,  386,  386,  386,  753,
+
+      384,  820,  807,  384,  388,  388,  388,  385,  390,  390,
+      390,  391,  391,  391,  393,  393,  393,  394,  394,  394,
+      811,  394,  682,  681,  394,  398,  398,  398,  680,  393,
+      385,  399,  399,  399,  400,  400,  400,  811,  401,  401,
+      401,  398,  401,  763,  679,  401,  402,  402,  402,  400,
+      403,  403,  403,  764,  403,  767,  763,  403,  406,  406,
+      406,  402,  407,  407,  407,  764,  407,  774,  767,  407,
+      409,  409,  409,  406,  410,  410,  410,  776,  410,  783,
+      774,  410,  411,  411,  411,  409,  412,  412,  412,  776,
+      412,  678,  783,  412,  415,  415,  415,  821,  411,  417,
+
+      417,  417,  675,  417,  667,  666,  417,  420,  420,  420,
+      415,  424,  424,  424,  429,  429,  429,  431,  431,  431,
+      434,  434,  434,  420,  432,  432,  432,  424,  432,  665,
+      812,  432,  431,  411,  810,  434,  821,  664,  415,  435,
+      435,  435,  663,  435,  420,  824,  435,  812,  424,  437,
+      437,  437,  824,  437,  810,  662,  437,  441,  441,  441,
+      443,  443,  443,  813,  443,  424,  828,  443,  444,  444,
+      444,  814,  441,  445,  445,  445,  446,  446,  446,  448,
+      448,  448,  661,  813,  444,  449,  449,  449,  450,  450,
+      450,  814,  450,  818,  819,  450,  456,  456,  456,  458,
+
+      458,  458,  459,  459,  459,  828,  459,  822,  660,  459,
+      818,  819,  456,  462,  462,  462,  829,  462,  823,  825,
+      462,  467,  467,  467,  822,  467,  825,  830,  467,  471,
+      471,  471,  826,  471,  830,  823,  471,  474,  474,  474,
+      475,  475,  475,  477,  477,  477,  827,  484,  484,  484,
+      831,  484,  826,  474,  484,  829,  475,  831,  659,  477,
+      488,  488,  488,  658,  488,  836,  827,  488,  492,  492,
+      492,  495,  495,  495,  834,  495,  475,  832,  495,  498,
+      498,  498,  836,  492,  500,  500,  500,  845,  657,  477,
+      501,  501,  501,  656,  834,  498,  502,  502,  502,  504,
+
+      504,  504,  505,  505,  505,  513,  513,  513,  515,  515,
+      515,  516,  516,  516,  504,  655,  832,  505,  517,  517,
+      517,  513,  833,  845,  515,  524,  524,  524,  525,  525,
+      525,  526,  526,  526,  517,  526,  835,  653,  526,  651,
+      524,  864,  640,  525,  529,  529,  529,  531,  531,  531,
+      532,  532,  532,  864,  532,  837,  835,  532,  533,  533,
+      533,  833,  531,  639,  534,  534,  534,  638,  534,  637,
+      517,  534,  837,  533,  539,  539,  539,  540,  540,  540,
+      541,  541,  541,  542,  542,  542,  544,  544,  544,  539,
+      636,  635,  540,  634,  633,  541,  545,  545,  545,  542,
+
+      547,  547,  547,  551,  551,  551,  552,  552,  552,  576,
+      576,  576,  545,  553,  553,  553,  547,  553,  551,  850,
+      553,  552,  554,  554,  554,  576,  554,  846,  632,  554,
+      558,  558,  558,  559,  559,  559,  560,  560,  560,  838,
+      560,  631,  847,  560,  630,  558,  838,  839,  559,  563,
+      563,  563,  629,  563,  839,  850,  563,  570,  570,  570,
+      571,  571,  571,  628,  571,  627,  846,  571,  572,  572,
+      572,  626,  570,  573,  573,  573,  625,  573,  840,  618,
+      573,  847,  596,  572,  574,  574,  574,  575,  575,  575,
+      595,  575,  841,  594,  575,  582,  582,  582,  840,  574,
+
+      579,  579,  579,  583,  583,  583,  842,  584,  584,  584,
+      582,  584,  841,  842,  584,  843,  579,  856,  583,  585,
+      585,  585,  843,  585,  856,  857,  585,  593,  589,  589,
+      589,  851,  857,  579,  588,  579,  848,  590,  590,  590,
+      865,  590,  579,  589,  590,  591,  591,  591,  579,  865,
+      592,  592,  592,  579,  592,  849,  848,  592,  569,  568,
+      591,  597,  597,  597,  567,  597,  566,  851,  597,  600,
+      600,  600,  858,  600,  852,  849,  600,  603,  603,  603,
+      859,  603,  853,  854,  603,  613,  613,  613,  614,  614,
+      614,  855,  614,  557,  852,  614,  550,  615,  615,  615,
+
+      613,  615,  853,  854,  615,  619,  619,  619,  858,  619,
+      546,  855,  619,  622,  622,  622,  859,  622,  871,  862,
+      622,  648,  648,  648,  860,  648,  861,  871,  648,  670,
+      670,  670,  674,  674,  674,  690,  690,  690,  692,  692,
+      692,  694,  694,  694,  860,  670,  861,  674,  674,  538,
+      537,  690,  536,  870,  692,  862,  535,  694,  695,  695,
+      695,  696,  696,  696,  863,  870,  692,  530,  697,  697,
+      697,  528,  697,  695,  695,  697,  696,  696,  711,  711,
+      711,  712,  712,  712,  697,  715,  715,  715,  716,  716,
+      716,  717,  717,  717,  711,  717,  866,  712,  717,  875,
+
+      863,  715,  876,  716,  716,  877,  711,  717,  718,  718,
+      718,  527,  718,  715,  523,  718,  866,  877,  735,  735,
+      735,  737,  737,  737,  718,  719,  719,  719,  719,  719,
+      719,  719,  719,  719,  735,  875,  719,  737,  876,  719,
+      719,  719,  719,  719,  522,  518,  735,  878,  867,  512,
+      511,  868,  869,  754,  754,  754,  878,  719,  719,  720,
+      720,  720,  720,  720,  720,  720,  720,  720,  867,  754,
+      720,  868,  869,  720,  720,  720,  720,  720,  739,  739,
+      739,  754,  739,  510,  881,  739,  509,  872,  761,  761,
+      761,  720,  720,  881,  739,  742,  742,  742,  742,  742,
+
+      742,  742,  742,  742,  761,  761,  742,  872,  880,  742,
+      742,  742,  742,  742,  793,  793,  793,  891,  793,  873,
+      880,  793,  771,  771,  771,  508,  891,  742,  742,  743,
+      743,  743,  743,  743,  743,  743,  743,  743,  771,  873,
+      743,  507,  506,  743,  743,  743,  743,  743,  782,  782,
+      782,  786,  786,  786,  787,  787,  787,  503,  494,  771,
+      890,  743,  743,  493,  782,  491,  786,  789,  789,  789,
+      787,  789,  890,  487,  789,  791,  791,  791,  792,  792,
+      792,  483,  478,  789,  884,  794,  794,  794,  476,  794,
+      470,  791,  794,  792,  795,  795,  795,  885,  799,  799,
+
+      799,  794,  799,  466,  884,  799,  808,  808,  808,  465,
+      795,  800,  800,  800,  799,  800,  455,  885,  800,  805,
+      805,  805,  808,  805,  454,  453,  805,  817,  817,  817,
+      447,  817,  440,  436,  817,  805,  874,  874,  874,  879,
+      879,  879,  433,  817,  882,  882,  882,  886,  886,  886,
+      430,  426,  874,  423,  421,  879,  887,  887,  887,  416,
+      882,  408,  405,  886,  889,  889,  889,  892,  892,  892,
+      404,  397,  887,  894,  894,  894,  896,  896,  896,  396,
+      889,  395,  392,  892,  897,  897,  897,  389,  387,  894,
+      383,  380,  896,  378,  376,  374,  373,  368,  361,  349,
+
+      897,  900,  900,  900,  900,  900,  900,  900,  901,  901,
+      901,  901,  901,  901,  901,  902,  902,  902,  902,  902,
+      902,  902,  903,  903,  903,  903,  903,  903,  903,  904,
+      904,  904,  904,  904,  904,  904,  905,  905,  905,  905,
+      905,  905,  905,  906,  906,  906,  906,  906,  906,  906,
+      907,  907,  907,  907,  907,  907,  907,  908,  908,  908,
+      908,  908,  908,  908,  909,  909,  909,  909,  909,  909,
+      909,  910,  910,  910,  910,  910,  910,  910,  911,  911,
+      911,  911,  911,  911,  911,  912,  912,  912,  912,  912,
+      912,  912,  913,  913,  913,  913,  913,  913,  913,  914,
+
+      914,  914,  347,  914,  915,  915,  915,  346,  915,  916,
+      916,  916,  343,  916,  917,  917,  917,  338,  917,  918,
+      918,  918,  337,  918,  919,  919,  919,  919,  919,  332,
+      919,  920,  330,  920,  921,  329,  921,  922,  327,  922,
+      923,  326,  923,  924,  321,  924,  925,  925,  925,  925,
+      925,  925,  925,  926,  320,  318,  926,  927,  927,  927,
+      927,  927,  927,  928,  928,  928,  928,  928,  928,  929,
+      929,  929,  929,  929,  929,  930,  930,  930,  930,  930,
+      930,  931,  931,  931,  931,  931,  931,  932,  932,  932,
+      932,  932,  932,  932,  933,  933,  933,  933,  933,  933,
+
+      933,  934,  934,  934,  934,  934,  934,  934,  935,  935,
+      935,  935,  935,  935,  935,  936,  936,  936,  936,  936,
+      936,  936,  937,  937,  937,  937,  937,  937,  937,  938,
+      938,  938,  938,  938,  938,  938,  317,  316,  315,  314,
+      313,  312,  309,  308,  307,  305,  301,  299,  295,  289,
+      288,  287,  286,  285,  284,  283,  282,  279,  278,  277,
+      274,  273,  272,  271,  270,  269,  268,  265,  264,  263,
+      262,  261,  260,  259,  258,  257,  255,  254,  253,  252,
+      251,  247,  245,  244,  243,  242,  241,  240,  237,  236,
+      235,  232,  231,  230,  229,  228,  227,  226,  225,  222,
+
+      221,  220,  219,  218,  214,  213,  212,  211,  210,  209,
+      208,  207,  206,  205,  204,  203,  202,  201,  200,  199,
+      196,  195,  194,  193,  192,  186,  185,  183,  180,  179,
+      175,  171,  162,  158,  150,  149,  148,  147,  146,  142,
+      133,  132,  131,  130,  126,  115,  114,  113,  112,  111,
+      110,  105,  101,  100,   99,   93,   92,   90,   87,   75,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899,
+      899,  899,  899,  899,  899,  899,  899,  899,  899,  899
+    } ;
+
+/* Table of booleans, true if rule could match eol. */
+static yyconst flex_int32_t yy_rule_can_match_eol[143] =
+    {   0,
+0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 
+    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
+    1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
+    1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
+    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 
+    1, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 
+    0, 1, 0,     };
+
+static yy_state_type yy_last_accepting_state;
+static char *yy_last_accepting_cpos;
+
+extern int dax__flex_debug;
+int dax__flex_debug = 0;
+
+/* The intent behind this definition is that it'll catch
+ * any uses of REJECT which flex missed.
+ */
+#define REJECT reject_used_but_not_detected
+#define yymore() yymore_used_but_not_detected
+#define YY_MORE_ADJ 0
+#define YY_RESTORE_YY_MORE_OFFSET
+char *dax_text;
+/* Validating XML processor for simdag/dax.dtd.
+ * Generated 2009/10/05 17:12:40.
+ *
+ * This program was generated with the FleXML XML processor generator.
+ * FleXML is Copyright (C) 1999-2005 Kristoffer Rose.  All rights reserved.
+ * FleXML is Copyright (C) 2003-2006 Martin Quinson.  All rights reserved.
+ * (Id: flexml.pl,v 1.62 2007/10/11 10:00:14 mquinson Exp).
+ * 
+ * There are two, intertwined parts to this program, part A and part B.
+ *
+ * Part A
+ * ------
+ * 
+ * Some parts, here collectively called "Part A", are found in the 
+ * FleXML package.  They are Copyright (C) 1999-2005 Kristoffer Rose
+ * and Copyright (C) 2003-2006 Martin Quinson. All rights reserved.
+ *
+ * You can redistribute, use, perform, display and/or modify "Part A"
+ * provided the following two conditions hold:
+ *
+ * 1. The program is distributed WITHOUT ANY WARRANTY from the author of
+ *    FleXML; without even the implied warranty of MERCHANTABILITY or
+ *    FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * 2. The program distribution conditions do not in any way affect the
+ *    distribution conditions of the FleXML system used to generate this
+ *    file or any version of FleXML derived from that system.
+ *
+ * Notice that these are explicit rights granted to you for files
+ * generated by the FleXML system.  For your rights in connection with
+ * the FleXML system itself please consult the GNU General Public License.
+ * 
+ * Part B
+ * ------
+ * 
+ * The other parts, here collectively called "Part B", and which came 
+ * from the DTD used by FleXML to generate this program, can be 
+ * distributed (or not, as the case may be) under the terms of whoever
+ * wrote them, provided these terms respect and obey the two conditions 
+ * above under the heading "Part A".
+ *
+ * The author of and contributors to FleXML specifically disclaim
+ * any copyright interest in "Part B", unless "Part B" was written 
+ * by the author of or contributors to FleXML.
+ * 
+ */
+
+/* Version strings. */
+const char rcs_dax__flexml_skeleton[] =
+ "$" "Id: skel,v 1.40 2007/10/11 09:57:24 mquinson Exp $";
+const char rcs_dax__flexml[] =
+ "$" "Id: flexml.pl,v 1.62 2007/10/11 10:00:14 mquinson Exp $";
+
+/* ANSI headers. */
+#include <stdlib.h> /* for realloc() -- needed here when using flex 2.5.4 */
+#include <stdio.h>
+#include <string.h>
+#include <assert.h>
+#include <stdarg.h>
+#include <ctype.h>
+     
+#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__)
+# ifndef __STRICT_ANSI__
+#  include <io.h>
+#  include <process.h>
+# endif
+#else
+# include <unistd.h>
+#endif
+     
+#ifndef FLEXML_INDEXSTACKSIZE
+#define FLEXML_INDEXSTACKSIZE 1000
+#endif
+
+/* Generated definitions. */
+#define FLEXML_yylineno
+#ifndef FLEXML_BUFFERSTACKSIZE
+#define FLEXML_BUFFERSTACKSIZE 1000000
+#endif
+#define FLEXML_NEED_BUFFERLIT
+
+/* XML processor api. */
+/* FleXML-provided data. */
+int dax__pcdata_ix;
+extern char *dax__bufferstack;
+#define dax__pcdata (dax__bufferstack + dax__pcdata_ix)
+AT_dax__adag_version AX_dax__adag_version;
+#define A_dax__adag_version (dax__bufferstack + AX_dax__adag_version)
+AT_dax__uses_type AX_dax__uses_type;
+#define A_dax__uses_type (dax__bufferstack + AX_dax__uses_type)
+AT_dax__uses_optional AX_dax__uses_optional;
+#define A_dax__uses_optional AX_dax__uses_optional
+AT_dax__adag_name AX_dax__adag_name;
+#define A_dax__adag_name (dax__bufferstack + AX_dax__adag_name)
+AT_dax__child_ref AX_dax__child_ref;
+#define A_dax__child_ref (dax__bufferstack + AX_dax__child_ref)
+AT_dax__adag_xmlns AX_dax__adag_xmlns;
+#define A_dax__adag_xmlns (dax__bufferstack + AX_dax__adag_xmlns)
+AT_dax__uses_transfer AX_dax__uses_transfer;
+#define A_dax__uses_transfer AX_dax__uses_transfer
+AT_dax__job_id AX_dax__job_id;
+#define A_dax__job_id (dax__bufferstack + AX_dax__job_id)
+AT_dax__uses_file AX_dax__uses_file;
+#define A_dax__uses_file (dax__bufferstack + AX_dax__uses_file)
+AT_dax__parent_ref AX_dax__parent_ref;
+#define A_dax__parent_ref (dax__bufferstack + AX_dax__parent_ref)
+AT_dax__adag_count AX_dax__adag_count;
+#define A_dax__adag_count (dax__bufferstack + AX_dax__adag_count)
+AT_dax__adag_xmlns_c_xsi AX_dax__adag_xmlns_c_xsi;
+#define A_dax__adag_xmlns_c_xsi (dax__bufferstack + AX_dax__adag_xmlns_c_xsi)
+AT_dax__adag_index AX_dax__adag_index;
+#define A_dax__adag_index (dax__bufferstack + AX_dax__adag_index)
+AT_dax__uses_size AX_dax__uses_size;
+#define A_dax__uses_size (dax__bufferstack + AX_dax__uses_size)
+AT_dax__adag_childCount AX_dax__adag_childCount;
+#define A_dax__adag_childCount (dax__bufferstack + AX_dax__adag_childCount)
+AT_dax__uses_link AX_dax__uses_link;
+#define A_dax__uses_link AX_dax__uses_link
+AT_dax__job_runtime AX_dax__job_runtime;
+#define A_dax__job_runtime (dax__bufferstack + AX_dax__job_runtime)
+AT_dax__job_namespace AX_dax__job_namespace;
+#define A_dax__job_namespace (dax__bufferstack + AX_dax__job_namespace)
+AT_dax__job_name AX_dax__job_name;
+#define A_dax__job_name (dax__bufferstack + AX_dax__job_name)
+AT_dax__adag_jobCount AX_dax__adag_jobCount;
+#define A_dax__adag_jobCount (dax__bufferstack + AX_dax__adag_jobCount)
+AT_dax__adag_xmlns_c_schemaLocation AX_dax__adag_xmlns_c_schemaLocation;
+#define A_dax__adag_xmlns_c_schemaLocation (dax__bufferstack + AX_dax__adag_xmlns_c_schemaLocation)
+AT_dax__job_version AX_dax__job_version;
+#define A_dax__job_version (dax__bufferstack + AX_dax__job_version)
+AT_dax__uses_register AX_dax__uses_register;
+#define A_dax__uses_register AX_dax__uses_register
+AT_dax__adag_fileCount AX_dax__adag_fileCount;
+#define A_dax__adag_fileCount (dax__bufferstack + AX_dax__adag_fileCount)
+
+/* XML state. */
+#ifdef FLEX_DEBUG
+# define ENTER(state)  debug_enter(state,#state)
+# define LEAVE         debug_leave()
+# define SET(state)    debug_set(state,#state)
+  static void debug_enter(int, const char*);
+  static void debug_leave(void);
+  static void debug_set(int, const char*);
+#else
+# define ENTER(state)  (yy_push_state(state))
+# define LEAVE         (yy_pop_state())
+# define SET(state)    BEGIN(state)
+#endif
+
+/* Generic actions. */
+#define SKIP   /*skip*/
+#define SUCCEED        CLEANUP; return 0
+
+#define FAIL   return fail
+static int fail(const char*, ...);
+
+enum {flexml_max_err_msg_size = 512};
+static char flexml_err_msg[flexml_max_err_msg_size];
+const char * dax__parse_err_msg()
+{
+    return flexml_err_msg;
+}
+static void reset_dax__parse_err_msg()
+{
+    flexml_err_msg[0] = '\0';
+}
+
+/* Cleanup */
+static void cleanup(void);
+#define CLEANUP  cleanup()
+
+/* Text buffer stack handling. */
+char *dax__bufferstack = NULL;
+static int blimit = FLEXML_BUFFERSTACKSIZE;
+static int bnext = 1;
+
+static int *indexstack = NULL;
+static int ilimit = FLEXML_INDEXSTACKSIZE;
+static int inext = 1;
+
+#define BUFFERSET(P)  (P = bnext)
+#define BUFFERPUTC(C) (ck_blimit(), dax__bufferstack[bnext++] = (C))
+#define BUFFERDONE    (BUFFERPUTC('\0'))
+
+#define BUFFERLITERAL(C, P) dax__bufferliteral(C, &(P), dax_text)
+
+/* after this is called, there are at least 2 slots left in the stack */
+static int ck_blimit()
+{
+     if (bnext >= blimit) {
+        blimit += FLEXML_BUFFERSTACKSIZE + 2;
+        {
+            char *temp = (char *) realloc(dax__bufferstack, blimit);
+            assert(temp);
+            dax__bufferstack = temp;
+        }
+     }
+     return 0;
+}
+
+/* after this is called, there are at least 2 slots left in the stack */
+static int ck_ilimit()
+{
+     if (inext >= ilimit) {
+        ilimit += FLEXML_INDEXSTACKSIZE + 2;
+        {
+            int *temp = (int *) realloc(indexstack, ilimit);
+            assert(temp);
+            indexstack = temp;
+        }
+     }
+     return 0;
+}
+
+#ifdef FLEXML_NEED_BUFFERLIT
+static void dax__bufferliteral(char c, int* pp, const char* text)
+{
+  const char *s = (c ? strchr(text,c) : text-1), *e = strrchr(text,c);
+  assert(s <= e); BUFFERSET(*pp);
+  while (++s<e) {
+    if (isspace(*s) && c) { BUFFERPUTC(' '); while (isspace(*s)) ++s; }
+    else BUFFERPUTC(*s);
+  }
+  BUFFERDONE;
+}
+#endif
+
+static void pushbuffer(int p)
+{
+    ck_ilimit();
+    indexstack[inext++] = p;
+    indexstack[inext++] = bnext;    
+}
+
+static int popbuffer(void)
+{
+    assert(inext >= 2);
+    bnext = indexstack[--inext];
+    return indexstack[--inext];
+}
+
+/* General internal entities are `unput' back onto the input stream... */
+#define ENTITYTEXT(T) \
+  { char *s = (T), *e = s+strlen(s);\
+    while (--e >= s) { unput(*e); }}
+
+/* Flex standard options. */
+#define YY_NO_INPUT 1
+/* Flex user-requested options. */
+/* XML character classes (currently restricted to ASCII). */
+/* "Common syntactic structures." */
+/* "Names and Tokens." */
+/* Miscellaneous. */
+/* Parser states (flex `exclusive start conditions'):
+ *
+ * PROLOG      the XML prolog of the document before <?xml...>
+ * DOCTYPE     the XML prolog of the document after <?xml...>
+ * EPILOG      after the root element
+ * INCOMMENT   inside an XML comment <!--....-->
+ * INPI                inside an XML PI <?...?>
+ * VALUE1      inside a '...'-delimited literal
+ * VALUE2      inside a "..."-delimited literal
+ * CDATA       inside a <![CDATA[...] ]> section.
+ * ROOT_<tag>  expect root element <tag>
+ * AL_<tag>    inside the attribute list for <tag>
+ * IN_<tag>    inside a <tag> with element contents (ready for end tag)
+ * IMPOSSIBLE  dummy to permit disabling rules; must be last
+ */
+
+/* State names. */
+const char* *dax__statenames=NULL;
+
+#define INITIAL 0
+#define PROLOG 1
+#define DOCTYPE 2
+#define EPILOG 3
+#define INCOMMENT 4
+#define INPI 5
+#define VALUE1 6
+#define VALUE2 7
+#define CDATA 8
+#define ROOT_dax__adag 9
+#define AL_dax__adag 10
+#define S_dax__adag 11
+#define S_dax__adag_1 12
+#define S_dax__adag_2 13
+#define S_dax__adag_3 14
+#define S_dax__adag_4 15
+#define S_dax__adag_5 16
+#define E_dax__adag 17
+#define ROOT_dax__job 18
+#define AL_dax__job 19
+#define S_dax__job 20
+#define S_dax__job_1 21
+#define S_dax__job_2 22
+#define E_dax__job 23
+#define ROOT_dax__uses 24
+#define AL_dax__uses 25
+#define E_dax__uses 26
+#define ROOT_dax__child 27
+#define AL_dax__child 28
+#define S_dax__child 29
+#define S_dax__child_1 30
+#define S_dax__child_2 31
+#define E_dax__child 32
+#define ROOT_dax__parent 33
+#define AL_dax__parent 34
+#define E_dax__parent 35
+#define IMPOSSIBLE 36
+
+#ifndef YY_NO_UNISTD_H
+/* Special case for "unistd.h", since it is non-ANSI. We include it way
+ * down here because we want the user's section 1 to have been scanned first.
+ * The user has a chance to override it with an option.
+ */
+#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__)
+#  ifndef __STRICT_ANSI__
+#    include <io.h>
+#    include <process.h>
+#  endif
+#else
+#  include <unistd.h>
+#endif
+#endif
+
+#ifndef YY_EXTRA_TYPE
+#define YY_EXTRA_TYPE void *
+#endif
+
+static int yy_init_globals (void );
+
+/* Accessor methods to globals.
+   These are made visible to non-reentrant scanners for convenience. */
+
+int dax_lex_destroy (void );
+
+int dax_get_debug (void );
+
+void dax_set_debug (int debug_flag  );
+
+YY_EXTRA_TYPE dax_get_extra (void );
+
+void dax_set_extra (YY_EXTRA_TYPE user_defined  );
+
+FILE *dax_get_in (void );
+
+void dax_set_in  (FILE * in_str  );
+
+FILE *dax_get_out (void );
+
+void dax_set_out  (FILE * out_str  );
+
+int dax_get_leng (void );
+
+char *dax_get_text (void );
+
+int dax_get_lineno (void );
+
+void dax_set_lineno (int line_number  );
+
+/* Macros after this point can all be overridden by user definitions in
+ * section 1.
+ */
+
+#ifndef YY_SKIP_YYWRAP
+#ifdef __cplusplus
+extern "C" int dax_wrap (void );
+#else
+extern int dax_wrap (void );
+#endif
+#endif
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy (char *,yyconst char *,int );
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen (yyconst char * );
+#endif
+
+#ifndef YY_NO_INPUT
+
+#ifdef __cplusplus
+static int yyinput (void );
+#else
+static int input (void );
+#endif
+
+#endif
+
+        static int yy_start_stack_ptr = 0;
+        static int yy_start_stack_depth = 0;
+        static int *yy_start_stack = NULL;
+    
+    static void yy_push_state (int new_state );
+    
+    static void yy_pop_state (void );
+    
+/* Amount of stuff to slurp up with each read. */
+#ifndef YY_READ_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k */
+#define YY_READ_BUF_SIZE 16384
+#else
+#define YY_READ_BUF_SIZE 8192
+#endif /* __ia64__ */
+#endif
+
+/* Copy whatever the last rule matched to the standard output. */
+#ifndef ECHO
+/* This used to be an fputs(), but since the string might contain NUL's,
+ * we now use fwrite().
+ */
+#define ECHO do { if (fwrite( dax_text, dax_leng, 1, dax_out )) {} } while (0)
+#endif
+
+/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
+ * is returned in "result".
+ */
+#ifndef YY_INPUT
+#define YY_INPUT(buf,result,max_size) \
+       if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
+               { \
+               int c = '*'; \
+               size_t n; \
+               for ( n = 0; n < max_size && \
+                            (c = getc( dax_in )) != EOF && c != '\n'; ++n ) \
+                       buf[n] = (char) c; \
+               if ( c == '\n' ) \
+                       buf[n++] = (char) c; \
+               if ( c == EOF && ferror( dax_in ) ) \
+                       YY_FATAL_ERROR( "input in flex scanner failed" ); \
+               result = n; \
+               } \
+       else \
+               { \
+               errno=0; \
+               while ( (result = fread(buf, 1, max_size, dax_in))==0 && ferror(dax_in)) \
+                       { \
+                       if( errno != EINTR) \
+                               { \
+                               YY_FATAL_ERROR( "input in flex scanner failed" ); \
+                               break; \
+                               } \
+                       errno=0; \
+                       clearerr(dax_in); \
+                       } \
+               }\
+\
+
+#endif
+
+/* No semi-colon after return; correct usage is to write "yyterminate();" -
+ * we don't want an extra ';' after the "return" because that will cause
+ * some compilers to complain about unreachable statements.
+ */
+#ifndef yyterminate
+#define yyterminate() return YY_NULL
+#endif
+
+/* Number of entries by which start-condition stack grows. */
+#ifndef YY_START_STACK_INCR
+#define YY_START_STACK_INCR 25
+#endif
+
+/* Report a fatal error. */
+#ifndef YY_FATAL_ERROR
+#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
+#endif
+
+/* end tables serialization structures and prototypes */
+
+/* Default declaration of generated scanner - a define so the user can
+ * easily add parameters.
+ */
+#ifndef YY_DECL
+#define YY_DECL_IS_OURS 1
+
+extern int dax_lex (void);
+
+#define YY_DECL int dax_lex (void)
+#endif /* !YY_DECL */
+
+/* Code executed at the beginning of each rule, after dax_text and dax_leng
+ * have been set up.
+ */
+#ifndef YY_USER_ACTION
+#define YY_USER_ACTION
+#endif
+
+/* Code executed at the end of each rule. */
+#ifndef YY_BREAK
+#define YY_BREAK break;
+#endif
+
+#define YY_RULE_SETUP \
+       YY_USER_ACTION
+
+/** The main scanner function which does all the work.
+ */
+YY_DECL
+{
+       register yy_state_type yy_current_state;
+       register char *yy_cp, *yy_bp;
+       register int yy_act;
+    
+ /* Bypass Flex's default INITIAL state and begin by parsing the XML prolog. */
+ SET(PROLOG);
+ reset_dax__parse_err_msg();
+ dax__bufferstack = (char *) malloc(FLEXML_BUFFERSTACKSIZE);
+ assert(dax__bufferstack);
+ #ifdef FLEX_DEBUG
+ {
+     int i;
+     for (i = 0; i < blimit; i++) {
+         dax__bufferstack[i] = '\377';
+     }
+ }
+ #endif
+ dax__bufferstack[0] = '\0';
+ indexstack = (int *) malloc(FLEXML_INDEXSTACKSIZE * sizeof(int));
+ assert(indexstack);
+ indexstack[0] = 0;
+
+  /* FleXML_init */
+  bnext = inext = 1;
+  dax__bufferliteral('\0', &bnext, "http://pegasus.isi.edu/schema/DAX");
+  dax__bufferliteral('\0', &bnext, "http://www.w3.org/2001/XMLSchema-instance");
+  dax__bufferliteral('\0', &bnext, "http://pegasus.isi.edu/schema/DAX http://pegasus.isi.edu/schema/dax-2.1.xsd");
+  dax__bufferliteral('\0', &bnext, "0.0");
+  dax__bufferliteral('\0', &bnext, "0.0");
+  dax__bufferliteral('\0', &bnext, "data");
+  if(!dax__statenames) {dax__statenames= (const char **)calloc(IMPOSSIBLE,sizeof(char*));
+  dax__statenames[PROLOG] = NULL;
+  dax__statenames[DOCTYPE] = NULL;
+  dax__statenames[EPILOG] = NULL;
+  dax__statenames[INCOMMENT] = NULL;
+  dax__statenames[INPI] = NULL;
+  dax__statenames[VALUE1] = NULL;
+  dax__statenames[VALUE2] = NULL;
+  dax__statenames[CDATA] = NULL;
+  dax__statenames[ROOT_dax__adag] = NULL;
+  dax__statenames[AL_dax__adag] = NULL;
+  dax__statenames[S_dax__adag] = "adag";
+  dax__statenames[S_dax__adag_1] = "adag";
+  dax__statenames[S_dax__adag_2] = "adag";
+  dax__statenames[S_dax__adag_3] = "adag";
+  dax__statenames[S_dax__adag_4] = "adag";
+  dax__statenames[S_dax__adag_5] = "adag";
+  dax__statenames[E_dax__adag] = "adag";
+  dax__statenames[ROOT_dax__job] = NULL;
+  dax__statenames[AL_dax__job] = NULL;
+  dax__statenames[S_dax__job] = "job";
+  dax__statenames[S_dax__job_1] = "job";
+  dax__statenames[S_dax__job_2] = "job";
+  dax__statenames[E_dax__job] = "job";
+  dax__statenames[ROOT_dax__uses] = NULL;
+  dax__statenames[AL_dax__uses] = NULL;
+  dax__statenames[E_dax__uses] = "uses";
+  dax__statenames[ROOT_dax__child] = NULL;
+  dax__statenames[AL_dax__child] = NULL;
+  dax__statenames[S_dax__child] = "child";
+  dax__statenames[S_dax__child_1] = "child";
+  dax__statenames[S_dax__child_2] = "child";
+  dax__statenames[E_dax__child] = "child";
+  dax__statenames[ROOT_dax__parent] = NULL;
+  dax__statenames[AL_dax__parent] = NULL;
+  dax__statenames[E_dax__parent] = "parent";
+  }
+
+ /* COMMENTS and PIs: handled uniformly for efficiency. */
+
+       if ( !(yy_init) )
+               {
+               (yy_init) = 1;
+
+#ifdef YY_USER_INIT
+               YY_USER_INIT;
+#endif
+
+               if ( ! (yy_start) )
+                       (yy_start) = 1; /* first start state */
+
+               if ( ! dax_in )
+                       dax_in = stdin;
+
+               if ( ! dax_out )
+                       dax_out = stdout;
+
+               if ( ! YY_CURRENT_BUFFER ) {
+                       dax_ensure_buffer_stack ();
+                       YY_CURRENT_BUFFER_LVALUE =
+                               dax__create_buffer(dax_in,YY_BUF_SIZE );
+               }
+
+               dax__load_buffer_state( );
+               }
+
+       while ( 1 )             /* loops until end-of-file is reached */
+               {
+               yy_cp = (yy_c_buf_p);
+
+               /* Support of dax_text. */
+               *yy_cp = (yy_hold_char);
+
+               /* yy_bp points to the position in yy_ch_buf of the start of
+                * the current run.
+                */
+               yy_bp = yy_cp;
+
+               yy_current_state = (yy_start);
+yy_match:
+               do
+                       {
+                       register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+                       if ( yy_accept[yy_current_state] )
+                               {
+                               (yy_last_accepting_state) = yy_current_state;
+                               (yy_last_accepting_cpos) = yy_cp;
+                               }
+                       while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+                               {
+                               yy_current_state = (int) yy_def[yy_current_state];
+                               if ( yy_current_state >= 900 )
+                                       yy_c = yy_meta[(unsigned int) yy_c];
+                               }
+                       yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+                       ++yy_cp;
+                       }
+               while ( yy_base[yy_current_state] != 2461 );
+
+yy_find_action:
+               yy_act = yy_accept[yy_current_state];
+               if ( yy_act == 0 )
+                       { /* have to back up */
+                       yy_cp = (yy_last_accepting_cpos);
+                       yy_current_state = (yy_last_accepting_state);
+                       yy_act = yy_accept[yy_current_state];
+                       }
+
+               YY_DO_BEFORE_ACTION;
+
+               if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
+                       {
+                       int yyl;
+                       for ( yyl = 0; yyl < dax_leng; ++yyl )
+                               if ( dax_text[yyl] == '\n' )
+                                          
+    dax_lineno++;
+;
+                       }
+
+do_action:     /* This label is used only to access EOF actions. */
+
+               switch ( yy_act )
+       { /* beginning of action switch */
+                       case 0: /* must back up */
+                       /* undo the effects of YY_DO_BEFORE_ACTION */
+                       *yy_cp = (yy_hold_char);
+                       yy_cp = (yy_last_accepting_cpos);
+                       yy_current_state = (yy_last_accepting_state);
+                       goto yy_find_action;
+
+case 1:
+YY_RULE_SETUP
+ENTER(INCOMMENT);
+       YY_BREAK
+case 2:
+YY_RULE_SETUP
+ENTER(INPI);
+       YY_BREAK
+
+case 3:
+YY_RULE_SETUP
+LEAVE;
+       YY_BREAK
+case 4:
+case 5:
+case 6:
+/* rule 6 can match eol */
+YY_RULE_SETUP
+SKIP;
+       YY_BREAK
+case YY_STATE_EOF(INCOMMENT):
+FAIL("EOF in comment.");
+       YY_BREAK
+
+case 7:
+YY_RULE_SETUP
+LEAVE;
+       YY_BREAK
+case 8:
+case 9:
+/* rule 9 can match eol */
+YY_RULE_SETUP
+SKIP;
+       YY_BREAK
+case YY_STATE_EOF(INPI):
+FAIL("EOF in PI (processing instruction).");
+       YY_BREAK
+
+/* SPACES: skipped uniformly */
+case 10:
+/* rule 10 can match eol */
+YY_RULE_SETUP
+SKIP;
+       YY_BREAK
+/* PROLOG: determine root element and process it. */
+
+case 11:
+/* rule 11 can match eol */
+YY_RULE_SETUP
+SET(DOCTYPE); 
+       YY_BREAK
+case 12:
+/* rule 12 can match eol */
+YY_RULE_SETUP
+FAIL("Bad declaration %s.",dax_text);
+       YY_BREAK
+
+case 13:
+/* rule 13 can match eol */
+YY_RULE_SETUP
+SET(ROOT_dax__parent);
+       YY_BREAK
+case 14:
+/* rule 14 can match eol */
+YY_RULE_SETUP
+SET(ROOT_dax__uses);
+       YY_BREAK
+case 15:
+/* rule 15 can match eol */
+YY_RULE_SETUP
+SET(ROOT_dax__child);
+       YY_BREAK
+case 16:
+/* rule 16 can match eol */
+YY_RULE_SETUP
+SET(ROOT_dax__adag);
+       YY_BREAK
+case 17:
+/* rule 17 can match eol */
+YY_RULE_SETUP
+SET(ROOT_dax__job);
+       YY_BREAK
+case 18:
+/* rule 18 can match eol */
+YY_RULE_SETUP
+FAIL("Bad declaration %s.",dax_text);
+       YY_BREAK
+case 19:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c' in prolog.", dax_text[0]);
+       YY_BREAK
+case YY_STATE_EOF(PROLOG):
+case YY_STATE_EOF(DOCTYPE):
+FAIL("EOF in prolog.");
+       YY_BREAK
+
+/* RULES DERIVED FROM DTD. */
+/* <!-- Small DTD for DAX files. -->  */
+case 20:
+/* rule 20 can match eol */
+YY_RULE_SETUP
+FAIL("Starting tag <adag> is not allowed here.");
+       YY_BREAK
+case 21:
+/* rule 21 can match eol */
+YY_RULE_SETUP
+{
+  AX_dax__adag_xmlns = 1;
+  AX_dax__adag_xmlns_c_xsi = 35;
+  AX_dax__adag_xmlns_c_schemaLocation = 77;
+  AX_dax__adag_version = 153;
+  AX_dax__adag_count = 0;
+  AX_dax__adag_index = 0;
+  AX_dax__adag_name = 0;
+  AX_dax__adag_jobCount = 0;
+  AX_dax__adag_fileCount = 0;
+  AX_dax__adag_childCount = 0;
+  ENTER(AL_dax__adag); pushbuffer(0);
+  }
+       YY_BREAK
+
+case 22:
+/* rule 22 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_xmlns);
+       YY_BREAK
+case 23:
+/* rule 23 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_xmlns);
+       YY_BREAK
+case 24:
+/* rule 24 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_xmlns_c_xsi);
+       YY_BREAK
+case 25:
+/* rule 25 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_xmlns_c_xsi);
+       YY_BREAK
+case 26:
+/* rule 26 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_xmlns_c_schemaLocation);
+       YY_BREAK
+case 27:
+/* rule 27 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_xmlns_c_schemaLocation);
+       YY_BREAK
+case 28:
+/* rule 28 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_version);
+       YY_BREAK
+case 29:
+/* rule 29 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_version);
+       YY_BREAK
+case 30:
+/* rule 30 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_count);
+       YY_BREAK
+case 31:
+/* rule 31 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_count);
+       YY_BREAK
+case 32:
+/* rule 32 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_index);
+       YY_BREAK
+case 33:
+/* rule 33 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_index);
+       YY_BREAK
+case 34:
+/* rule 34 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_name);
+       YY_BREAK
+case 35:
+/* rule 35 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_name);
+       YY_BREAK
+case 36:
+/* rule 36 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_jobCount);
+       YY_BREAK
+case 37:
+/* rule 37 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_jobCount);
+       YY_BREAK
+case 38:
+/* rule 38 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_fileCount);
+       YY_BREAK
+case 39:
+/* rule 39 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_fileCount);
+       YY_BREAK
+case 40:
+/* rule 40 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__adag_childCount);
+       YY_BREAK
+case 41:
+/* rule 41 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__adag_childCount);
+       YY_BREAK
+case 42:
+YY_RULE_SETUP
+{
+  LEAVE; STag_dax__adag();dax__pcdata_ix = 0; ENTER(S_dax__adag);
+ }
+       YY_BREAK
+case 43:
+YY_RULE_SETUP
+{
+  LEAVE; STag_dax__adag(); dax__pcdata_ix = 0; ETag_dax__adag(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case ROOT_dax__adag: SET(EPILOG); break;
+  }
+ }
+       YY_BREAK
+case 44:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c' in attribute list of adag element.", dax_text[0]);
+       YY_BREAK
+case 45:
+YY_RULE_SETUP
+FAIL("Bad attribute `%s' in `adag' element start tag.",dax_text);
+       YY_BREAK
+case YY_STATE_EOF(AL_dax__adag):
+FAIL("EOF in attribute list of `adag' element.");
+       YY_BREAK
+
+case 46:
+/* rule 46 can match eol */
+YY_RULE_SETUP
+{
+  LEAVE;
+  ETag_dax__adag();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case ROOT_dax__adag: SET(EPILOG); break;
+  }
+ }
+       YY_BREAK
+case 47:
+/* rule 47 can match eol */
+YY_RULE_SETUP
+FAIL("Unexpected end-tag `%s': `</adag>' expected.",dax_text);
+       YY_BREAK
+case 48:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c': `</adag>' expected.",dax_text[0]);
+       YY_BREAK
+case YY_STATE_EOF(S_dax__adag_1):
+case YY_STATE_EOF(S_dax__adag_5):
+case YY_STATE_EOF(E_dax__adag):
+case YY_STATE_EOF(S_dax__adag_3):
+case YY_STATE_EOF(S_dax__adag):
+FAIL("Premature EOF: `</adag>' expected.");
+       YY_BREAK
+
+case 49:
+/* rule 49 can match eol */
+YY_RULE_SETUP
+FAIL("Starting tag <job> is not allowed here.");
+       YY_BREAK
+case 50:
+/* rule 50 can match eol */
+YY_RULE_SETUP
+{
+  AX_dax__job_id = 0;
+  AX_dax__job_namespace = 0;
+  AX_dax__job_name = 0;
+  AX_dax__job_version = 157;
+  AX_dax__job_runtime = 0;
+  ENTER(AL_dax__job); pushbuffer(0);
+  }
+       YY_BREAK
+
+case 51:
+/* rule 51 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__job_id);
+       YY_BREAK
+case 52:
+/* rule 52 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__job_id);
+       YY_BREAK
+case 53:
+/* rule 53 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__job_namespace);
+       YY_BREAK
+case 54:
+/* rule 54 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__job_namespace);
+       YY_BREAK
+case 55:
+/* rule 55 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__job_name);
+       YY_BREAK
+case 56:
+/* rule 56 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__job_name);
+       YY_BREAK
+case 57:
+/* rule 57 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__job_version);
+       YY_BREAK
+case 58:
+/* rule 58 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__job_version);
+       YY_BREAK
+case 59:
+/* rule 59 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__job_runtime);
+       YY_BREAK
+case 60:
+/* rule 60 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__job_runtime);
+       YY_BREAK
+case 61:
+YY_RULE_SETUP
+{
+  if (!AX_dax__job_id) FAIL("Required attribute `id' not set for `job' element.");
+  if (!AX_dax__job_name) FAIL("Required attribute `name' not set for `job' element.");
+  if (!AX_dax__job_runtime) FAIL("Required attribute `runtime' not set for `job' element.");
+  LEAVE; STag_dax__job();dax__pcdata_ix = 0; ENTER(S_dax__job);
+ }
+       YY_BREAK
+case 62:
+YY_RULE_SETUP
+{
+  if (!AX_dax__job_id) FAIL("Required attribute `id' not set for `job' element.");
+  if (!AX_dax__job_name) FAIL("Required attribute `name' not set for `job' element.");
+  if (!AX_dax__job_runtime) FAIL("Required attribute `runtime' not set for `job' element.");
+  LEAVE; STag_dax__job(); dax__pcdata_ix = 0; ETag_dax__job(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__adag_2: case S_dax__adag_3: case S_dax__adag: SET(S_dax__adag_3); break;
+   case ROOT_dax__job: SET(EPILOG); break;
+  }
+ }
+       YY_BREAK
+case 63:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c' in attribute list of job element.", dax_text[0]);
+       YY_BREAK
+case 64:
+YY_RULE_SETUP
+FAIL("Bad attribute `%s' in `job' element start tag.",dax_text);
+       YY_BREAK
+case YY_STATE_EOF(AL_dax__job):
+FAIL("EOF in attribute list of `job' element.");
+       YY_BREAK
+
+case 65:
+/* rule 65 can match eol */
+YY_RULE_SETUP
+{
+  LEAVE;
+  ETag_dax__job();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__adag_2: case S_dax__adag_3: case S_dax__adag: SET(S_dax__adag_3); break;
+   case ROOT_dax__job: SET(EPILOG); break;
+  }
+ }
+       YY_BREAK
+case 66:
+/* rule 66 can match eol */
+YY_RULE_SETUP
+FAIL("Unexpected end-tag `%s': `</job>' expected.",dax_text);
+       YY_BREAK
+case 67:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c': `</job>' expected.",dax_text[0]);
+       YY_BREAK
+case YY_STATE_EOF(S_dax__job):
+case YY_STATE_EOF(E_dax__job):
+case YY_STATE_EOF(S_dax__job_2):
+FAIL("Premature EOF: `</job>' expected.");
+       YY_BREAK
+
+case 68:
+/* rule 68 can match eol */
+YY_RULE_SETUP
+FAIL("Starting tag <uses> is not allowed here.");
+       YY_BREAK
+case 69:
+/* rule 69 can match eol */
+YY_RULE_SETUP
+{
+  AX_dax__uses_file = 0;
+  AX_dax__uses_link = AU_dax__uses_link;
+  AX_dax__uses_register = A_dax__uses_register_true;
+  AX_dax__uses_transfer = A_dax__uses_transfer_true;
+  AX_dax__uses_optional = A_dax__uses_optional_false;
+  AX_dax__uses_type = 161;
+  AX_dax__uses_size = 0;
+  ENTER(AL_dax__uses); pushbuffer(0);
+  }
+       YY_BREAK
+
+case 70:
+/* rule 70 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__uses_file);
+       YY_BREAK
+case 71:
+/* rule 71 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__uses_file);
+       YY_BREAK
+case 72:
+/* rule 72 can match eol */
+case 73:
+/* rule 73 can match eol */
+YY_RULE_SETUP
+A_dax__uses_link = A_dax__uses_link_input;
+       YY_BREAK
+case 74:
+/* rule 74 can match eol */
+case 75:
+/* rule 75 can match eol */
+YY_RULE_SETUP
+A_dax__uses_link = A_dax__uses_link_output;
+       YY_BREAK
+case 76:
+/* rule 76 can match eol */
+case 77:
+/* rule 77 can match eol */
+YY_RULE_SETUP
+A_dax__uses_register = A_dax__uses_register_false;
+       YY_BREAK
+case 78:
+/* rule 78 can match eol */
+case 79:
+/* rule 79 can match eol */
+YY_RULE_SETUP
+A_dax__uses_register = A_dax__uses_register_true;
+       YY_BREAK
+case 80:
+/* rule 80 can match eol */
+case 81:
+/* rule 81 can match eol */
+YY_RULE_SETUP
+A_dax__uses_transfer = A_dax__uses_transfer_false;
+       YY_BREAK
+case 82:
+/* rule 82 can match eol */
+case 83:
+/* rule 83 can match eol */
+YY_RULE_SETUP
+A_dax__uses_transfer = A_dax__uses_transfer_true;
+       YY_BREAK
+case 84:
+/* rule 84 can match eol */
+case 85:
+/* rule 85 can match eol */
+YY_RULE_SETUP
+A_dax__uses_optional = A_dax__uses_optional_false;
+       YY_BREAK
+case 86:
+/* rule 86 can match eol */
+case 87:
+/* rule 87 can match eol */
+YY_RULE_SETUP
+A_dax__uses_optional = A_dax__uses_optional_true;
+       YY_BREAK
+case 88:
+/* rule 88 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__uses_type);
+       YY_BREAK
+case 89:
+/* rule 89 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__uses_type);
+       YY_BREAK
+case 90:
+/* rule 90 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__uses_size);
+       YY_BREAK
+case 91:
+/* rule 91 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__uses_size);
+       YY_BREAK
+case 92:
+YY_RULE_SETUP
+{
+  if (!AX_dax__uses_file) FAIL("Required attribute `file' not set for `uses' element.");
+  if (!AX_dax__uses_size) FAIL("Required attribute `size' not set for `uses' element.");
+  LEAVE; STag_dax__uses();dax__pcdata_ix = 0; ENTER(E_dax__uses);
+ }
+       YY_BREAK
+case 93:
+YY_RULE_SETUP
+{
+  if (!AX_dax__uses_file) FAIL("Required attribute `file' not set for `uses' element.");
+  if (!AX_dax__uses_size) FAIL("Required attribute `size' not set for `uses' element.");
+  LEAVE; STag_dax__uses(); dax__pcdata_ix = 0; ETag_dax__uses(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__job: case S_dax__job_2: case S_dax__job_1: SET(S_dax__job_2); break;
+   case ROOT_dax__uses: SET(EPILOG); break;
+  }
+ }
+       YY_BREAK
+case 94:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c' in attribute list of uses element.", dax_text[0]);
+       YY_BREAK
+case 95:
+YY_RULE_SETUP
+FAIL("Bad attribute `%s' in `uses' element start tag.",dax_text);
+       YY_BREAK
+case YY_STATE_EOF(AL_dax__uses):
+FAIL("EOF in attribute list of `uses' element.");
+       YY_BREAK
+
+case 96:
+/* rule 96 can match eol */
+YY_RULE_SETUP
+{
+  LEAVE;
+  ETag_dax__uses();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__job: case S_dax__job_2: case S_dax__job_1: SET(S_dax__job_2); break;
+   case ROOT_dax__uses: SET(EPILOG); break;
+  }
+ }
+       YY_BREAK
+case 97:
+/* rule 97 can match eol */
+YY_RULE_SETUP
+FAIL("Unexpected end-tag `%s': `</uses>' expected.",dax_text);
+       YY_BREAK
+case 98:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c': `</uses>' expected.",dax_text[0]);
+       YY_BREAK
+case YY_STATE_EOF(E_dax__uses):
+FAIL("Premature EOF: `</uses>' expected.");
+       YY_BREAK
+
+case 99:
+/* rule 99 can match eol */
+YY_RULE_SETUP
+FAIL("Starting tag <child> is not allowed here.");
+       YY_BREAK
+case 100:
+/* rule 100 can match eol */
+YY_RULE_SETUP
+{
+  AX_dax__child_ref = 0;
+  ENTER(AL_dax__child); pushbuffer(0);
+  }
+       YY_BREAK
+
+case 101:
+/* rule 101 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__child_ref);
+       YY_BREAK
+case 102:
+/* rule 102 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__child_ref);
+       YY_BREAK
+case 103:
+YY_RULE_SETUP
+{
+  if (!AX_dax__child_ref) FAIL("Required attribute `ref' not set for `child' element.");
+  LEAVE; STag_dax__child();dax__pcdata_ix = 0; ENTER(S_dax__child);
+ }
+       YY_BREAK
+case 104:
+YY_RULE_SETUP
+{
+  if (!AX_dax__child_ref) FAIL("Required attribute `ref' not set for `child' element.");
+  LEAVE; STag_dax__child(); dax__pcdata_ix = 0; ETag_dax__child(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__adag_1: case S_dax__adag_4: case S_dax__adag_5: case S_dax__adag_3: case S_dax__adag: SET(S_dax__adag_5); break;
+   case ROOT_dax__child: SET(EPILOG); break;
+  }
+ }
+       YY_BREAK
+case 105:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c' in attribute list of child element.", dax_text[0]);
+       YY_BREAK
+case 106:
+YY_RULE_SETUP
+FAIL("Bad attribute `%s' in `child' element start tag.",dax_text);
+       YY_BREAK
+case YY_STATE_EOF(AL_dax__child):
+FAIL("EOF in attribute list of `child' element.");
+       YY_BREAK
+
+case 107:
+/* rule 107 can match eol */
+YY_RULE_SETUP
+{
+  LEAVE;
+  ETag_dax__child();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__adag_1: case S_dax__adag_4: case S_dax__adag_5: case S_dax__adag_3: case S_dax__adag: SET(S_dax__adag_5); break;
+   case ROOT_dax__child: SET(EPILOG); break;
+  }
+ }
+       YY_BREAK
+case 108:
+/* rule 108 can match eol */
+YY_RULE_SETUP
+FAIL("Unexpected end-tag `%s': `</child>' expected.",dax_text);
+       YY_BREAK
+case 109:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c': `</child>' expected.",dax_text[0]);
+       YY_BREAK
+case YY_STATE_EOF(S_dax__child_2):
+case YY_STATE_EOF(E_dax__child):
+case YY_STATE_EOF(S_dax__child):
+FAIL("Premature EOF: `</child>' expected.");
+       YY_BREAK
+
+case 110:
+/* rule 110 can match eol */
+YY_RULE_SETUP
+FAIL("Starting tag <parent> is not allowed here.");
+       YY_BREAK
+case 111:
+/* rule 111 can match eol */
+YY_RULE_SETUP
+{
+  AX_dax__parent_ref = 0;
+  ENTER(AL_dax__parent); pushbuffer(0);
+  }
+       YY_BREAK
+
+case 112:
+/* rule 112 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE1); BUFFERSET(AX_dax__parent_ref);
+       YY_BREAK
+case 113:
+/* rule 113 can match eol */
+YY_RULE_SETUP
+ENTER(VALUE2); BUFFERSET(AX_dax__parent_ref);
+       YY_BREAK
+case 114:
+YY_RULE_SETUP
+{
+  if (!AX_dax__parent_ref) FAIL("Required attribute `ref' not set for `parent' element.");
+  LEAVE; STag_dax__parent();dax__pcdata_ix = 0; ENTER(E_dax__parent);
+ }
+       YY_BREAK
+case 115:
+YY_RULE_SETUP
+{
+  if (!AX_dax__parent_ref) FAIL("Required attribute `ref' not set for `parent' element.");
+  LEAVE; STag_dax__parent(); dax__pcdata_ix = 0; ETag_dax__parent(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case ROOT_dax__parent: SET(EPILOG); break;
+   case S_dax__child_2: case S_dax__child: case S_dax__child_1: SET(S_dax__child_2); break;
+  }
+ }
+       YY_BREAK
+case 116:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c' in attribute list of parent element.", dax_text[0]);
+       YY_BREAK
+case 117:
+YY_RULE_SETUP
+FAIL("Bad attribute `%s' in `parent' element start tag.",dax_text);
+       YY_BREAK
+case YY_STATE_EOF(AL_dax__parent):
+FAIL("EOF in attribute list of `parent' element.");
+       YY_BREAK
+
+case 118:
+/* rule 118 can match eol */
+YY_RULE_SETUP
+{
+  LEAVE;
+  ETag_dax__parent();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case ROOT_dax__parent: SET(EPILOG); break;
+   case S_dax__child_2: case S_dax__child: case S_dax__child_1: SET(S_dax__child_2); break;
+  }
+ }
+       YY_BREAK
+case 119:
+/* rule 119 can match eol */
+YY_RULE_SETUP
+FAIL("Unexpected end-tag `%s': `</parent>' expected.",dax_text);
+       YY_BREAK
+case 120:
+YY_RULE_SETUP
+FAIL("Unexpected character `%c': `</parent>' expected.",dax_text[0]);
+       YY_BREAK
+case YY_STATE_EOF(E_dax__parent):
+FAIL("Premature EOF: `</parent>' expected.");
+       YY_BREAK
+
+/* EPILOG: after the root element. */
+
+case 121:
+YY_RULE_SETUP
+{SET(PROLOG); yyless(0); CLEANUP; return -1;}
+       YY_BREAK
+case YY_STATE_EOF(EPILOG):
+SUCCEED;
+       YY_BREAK
+
+/* CHARACTER DATA. */
+
+/* Non-defined standard entities... */
+case 122:
+YY_RULE_SETUP
+BUFFERPUTC('&');
+       YY_BREAK
+case 123:
+YY_RULE_SETUP
+BUFFERPUTC('<');
+       YY_BREAK
+case 124:
+YY_RULE_SETUP
+BUFFERPUTC('>');
+       YY_BREAK
+case 125:
+YY_RULE_SETUP
+BUFFERPUTC('\'');
+       YY_BREAK
+case 126:
+YY_RULE_SETUP
+BUFFERPUTC('"');
+       YY_BREAK
+/* Character entities. */
+case 127:
+YY_RULE_SETUP
+BUFFERPUTC((unsigned char)atoi(dax_text+2));
+       YY_BREAK
+case 128:
+YY_RULE_SETUP
+BUFFERPUTC((unsigned char)strtol(dax_text+3,NULL,16));
+       YY_BREAK
+
+case 129:
+/* rule 129 can match eol */
+case 130:
+/* rule 130 can match eol */
+case 131:
+/* rule 131 can match eol */
+case 132:
+/* rule 132 can match eol */
+YY_RULE_SETUP
+BUFFERPUTC('\n');
+       YY_BREAK
+
+case 133:
+YY_RULE_SETUP
+ENTER(CDATA);
+       YY_BREAK
+case 134:
+YY_RULE_SETUP
+FAIL("Unexpected `]""]>' in character data.");
+       YY_BREAK
+
+case 135:
+YY_RULE_SETUP
+BUFFERDONE; LEAVE;
+       YY_BREAK
+case YY_STATE_EOF(VALUE1):
+FAIL("EOF in literal (\"'\" expected).");
+       YY_BREAK
+
+case 136:
+YY_RULE_SETUP
+BUFFERDONE; LEAVE;
+       YY_BREAK
+case YY_STATE_EOF(VALUE2):
+FAIL("EOF in literal (`\"' expected).");
+       YY_BREAK
+
+case 137:
+/* rule 137 can match eol */
+YY_RULE_SETUP
+BUFFERPUTC(dax_text[0]);
+       YY_BREAK
+case 138:
+YY_RULE_SETUP
+FAIL("Spurious `%c' in character data.",dax_text[0]);
+       YY_BREAK
+
+case 139:
+YY_RULE_SETUP
+LEAVE;
+       YY_BREAK
+/* "]""]"              BUFFERPUTC(dax_text[0]); BUFFERPUTC(dax_text[1]); */
+case 140:
+YY_RULE_SETUP
+BUFFERPUTC(dax_text[0]);
+       YY_BREAK
+case YY_STATE_EOF(CDATA):
+FAIL("EOF in CDATA section.");
+       YY_BREAK
+
+/* Impossible rules to avoid warnings from flex(1). */
+/* Ideally, this should be replaced by code in flexml.pl that
+    generates just the states not covered by other rules. */
+
+case 141:
+/* rule 141 can match eol */
+YY_RULE_SETUP
+FAIL("Syntax error on character `%c'.", dax_text[0]);
+       YY_BREAK
+
+case 142:
+YY_RULE_SETUP
+ECHO;
+       YY_BREAK
+case YY_STATE_EOF(INITIAL):
+case YY_STATE_EOF(ROOT_dax__adag):
+case YY_STATE_EOF(S_dax__adag_2):
+case YY_STATE_EOF(S_dax__adag_4):
+case YY_STATE_EOF(ROOT_dax__job):
+case YY_STATE_EOF(S_dax__job_1):
+case YY_STATE_EOF(ROOT_dax__uses):
+case YY_STATE_EOF(ROOT_dax__child):
+case YY_STATE_EOF(S_dax__child_1):
+case YY_STATE_EOF(ROOT_dax__parent):
+case YY_STATE_EOF(IMPOSSIBLE):
+       yyterminate();
+
+       case YY_END_OF_BUFFER:
+               {
+               /* Amount of text matched not including the EOB char. */
+               int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
+
+               /* Undo the effects of YY_DO_BEFORE_ACTION. */
+               *yy_cp = (yy_hold_char);
+               YY_RESTORE_YY_MORE_OFFSET
+
+               if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
+                       {
+                       /* We're scanning a new file or input source.  It's
+                        * possible that this happened because the user
+                        * just pointed dax_in at a new source and called
+                        * dax_lex().  If so, then we have to assure
+                        * consistency between YY_CURRENT_BUFFER and our
+                        * globals.  Here is the right place to do so, because
+                        * this is the first action (other than possibly a
+                        * back-up) that will match for the new input source.
+                        */
+                       (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
+                       YY_CURRENT_BUFFER_LVALUE->yy_input_file = dax_in;
+                       YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
+                       }
+
+               /* Note that here we test for yy_c_buf_p "<=" to the position
+                * of the first EOB in the buffer, since yy_c_buf_p will
+                * already have been incremented past the NUL character
+                * (since all states make transitions on EOB to the
+                * end-of-buffer state).  Contrast this with the test
+                * in input().
+                */
+               if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
+                       { /* This was really a NUL. */
+                       yy_state_type yy_next_state;
+
+                       (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
+
+                       yy_current_state = yy_get_previous_state(  );
+
+                       /* Okay, we're now positioned to make the NUL
+                        * transition.  We couldn't have
+                        * yy_get_previous_state() go ahead and do it
+                        * for us because it doesn't know how to deal
+                        * with the possibility of jamming (and we don't
+                        * want to build jamming into it because then it
+                        * will run more slowly).
+                        */
+
+                       yy_next_state = yy_try_NUL_trans( yy_current_state );
+
+                       yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+
+                       if ( yy_next_state )
+                               {
+                               /* Consume the NUL. */
+                               yy_cp = ++(yy_c_buf_p);
+                               yy_current_state = yy_next_state;
+                               goto yy_match;
+                               }
+
+                       else
+                               {
+                               yy_cp = (yy_c_buf_p);
+                               goto yy_find_action;
+                               }
+                       }
+
+               else switch ( yy_get_next_buffer(  ) )
+                       {
+                       case EOB_ACT_END_OF_FILE:
+                               {
+                               (yy_did_buffer_switch_on_eof) = 0;
+
+                               if ( dax_wrap( ) )
+                                       {
+                                       /* Note: because we've taken care in
+                                        * yy_get_next_buffer() to have set up
+                                        * dax_text, we can now set up
+                                        * yy_c_buf_p so that if some total
+                                        * hoser (like flex itself) wants to
+                                        * call the scanner after we return the
+                                        * YY_NULL, it'll still work - another
+                                        * YY_NULL will get returned.
+                                        */
+                                       (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
+
+                                       yy_act = YY_STATE_EOF(YY_START);
+                                       goto do_action;
+                                       }
+
+                               else
+                                       {
+                                       if ( ! (yy_did_buffer_switch_on_eof) )
+                                               YY_NEW_FILE;
+                                       }
+                               break;
+                               }
+
+                       case EOB_ACT_CONTINUE_SCAN:
+                               (yy_c_buf_p) =
+                                       (yytext_ptr) + yy_amount_of_matched_text;
+
+                               yy_current_state = yy_get_previous_state(  );
+
+                               yy_cp = (yy_c_buf_p);
+                               yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+                               goto yy_match;
+
+                       case EOB_ACT_LAST_MATCH:
+                               (yy_c_buf_p) =
+                               &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
+
+                               yy_current_state = yy_get_previous_state(  );
+
+                               yy_cp = (yy_c_buf_p);
+                               yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+                               goto yy_find_action;
+                       }
+               break;
+               }
+
+       default:
+               YY_FATAL_ERROR(
+                       "fatal flex scanner internal error--no action found" );
+       } /* end of action switch */
+               } /* end of scanning one token */
+} /* end of dax_lex */
+
+/* yy_get_next_buffer - try to read in a new buffer
+ *
+ * Returns a code representing an action:
+ *     EOB_ACT_LAST_MATCH -
+ *     EOB_ACT_CONTINUE_SCAN - continue scanning from current position
+ *     EOB_ACT_END_OF_FILE - end of file
+ */
+static int yy_get_next_buffer (void)
+{
+       register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
+       register char *source = (yytext_ptr);
+       register int number_to_move, i;
+       int ret_val;
+
+       if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
+               YY_FATAL_ERROR(
+               "fatal flex scanner internal error--end of buffer missed" );
+
+       if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
+               { /* Don't try to fill the buffer, so this is an EOF. */
+               if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
+                       {
+                       /* We matched a single character, the EOB, so
+                        * treat this as a final EOF.
+                        */
+                       return EOB_ACT_END_OF_FILE;
+                       }
+
+               else
+                       {
+                       /* We matched some text prior to the EOB, first
+                        * process it.
+                        */
+                       return EOB_ACT_LAST_MATCH;
+                       }
+               }
+
+       /* Try to read more data. */
+
+       /* First move last chars to start of buffer. */
+       number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
+
+       for ( i = 0; i < number_to_move; ++i )
+               *(dest++) = *(source++);
+
+       if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
+               /* don't do the read, it's not guaranteed to return an EOF,
+                * just force an EOF
+                */
+               YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
+
+       else
+               {
+                       int num_to_read =
+                       YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
+
+               while ( num_to_read <= 0 )
+                       { /* Not enough room in the buffer - grow it. */
+
+                       /* just a shorter name for the current buffer */
+                       YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
+
+                       int yy_c_buf_p_offset =
+                               (int) ((yy_c_buf_p) - b->yy_ch_buf);
+
+                       if ( b->yy_is_our_buffer )
+                               {
+                               int new_size = b->yy_buf_size * 2;
+
+                               if ( new_size <= 0 )
+                                       b->yy_buf_size += b->yy_buf_size / 8;
+                               else
+                                       b->yy_buf_size *= 2;
+
+                               b->yy_ch_buf = (char *)
+                                       /* Include room in for 2 EOB chars. */
+                                       dax_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2  );
+                               }
+                       else
+                               /* Can't grow it, we don't own it. */
+                               b->yy_ch_buf = 0;
+
+                       if ( ! b->yy_ch_buf )
+                               YY_FATAL_ERROR(
+                               "fatal error - scanner input buffer overflow" );
+
+                       (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+                       num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
+                                               number_to_move - 1;
+
+                       }
+
+               if ( num_to_read > YY_READ_BUF_SIZE )
+                       num_to_read = YY_READ_BUF_SIZE;
+
+               /* Read in more data. */
+               YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
+                       (yy_n_chars), (size_t) num_to_read );
+
+               YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+               }
+
+       if ( (yy_n_chars) == 0 )
+               {
+               if ( number_to_move == YY_MORE_ADJ )
+                       {
+                       ret_val = EOB_ACT_END_OF_FILE;
+                       dax_restart(dax_in  );
+                       }
+
+               else
+                       {
+                       ret_val = EOB_ACT_LAST_MATCH;
+                       YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
+                               YY_BUFFER_EOF_PENDING;
+                       }
+               }
+
+       else
+               ret_val = EOB_ACT_CONTINUE_SCAN;
+
+       if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
+               /* Extend the array by 50%, plus the number we really need. */
+               yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
+               YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) dax_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size  );
+               if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
+                       YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
+       }
+
+       (yy_n_chars) += number_to_move;
+       YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
+       YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
+
+       (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
+
+       return ret_val;
+}
+
+/* yy_get_previous_state - get the state just before the EOB char was reached */
+
+    static yy_state_type yy_get_previous_state (void)
+{
+       register yy_state_type yy_current_state;
+       register char *yy_cp;
+    
+       yy_current_state = (yy_start);
+
+       for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
+               {
+               register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+               if ( yy_accept[yy_current_state] )
+                       {
+                       (yy_last_accepting_state) = yy_current_state;
+                       (yy_last_accepting_cpos) = yy_cp;
+                       }
+               while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+                       {
+                       yy_current_state = (int) yy_def[yy_current_state];
+                       if ( yy_current_state >= 900 )
+                               yy_c = yy_meta[(unsigned int) yy_c];
+                       }
+               yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+               }
+
+       return yy_current_state;
+}
+
+/* yy_try_NUL_trans - try to make a transition on the NUL character
+ *
+ * synopsis
+ *     next_state = yy_try_NUL_trans( current_state );
+ */
+    static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
+{
+       register int yy_is_jam;
+       register char *yy_cp = (yy_c_buf_p);
+
+       register YY_CHAR yy_c = 1;
+       if ( yy_accept[yy_current_state] )
+               {
+               (yy_last_accepting_state) = yy_current_state;
+               (yy_last_accepting_cpos) = yy_cp;
+               }
+       while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+               {
+               yy_current_state = (int) yy_def[yy_current_state];
+               if ( yy_current_state >= 900 )
+                       yy_c = yy_meta[(unsigned int) yy_c];
+               }
+       yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+       yy_is_jam = (yy_current_state == 899);
+
+       return yy_is_jam ? 0 : yy_current_state;
+}
+
+#ifndef YY_NO_INPUT
+#ifdef __cplusplus
+    static int yyinput (void)
+#else
+    static int input  (void)
+#endif
+
+{
+       int c;
+    
+       *(yy_c_buf_p) = (yy_hold_char);
+
+       if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
+               {
+               /* yy_c_buf_p now points to the character we want to return.
+                * If this occurs *before* the EOB characters, then it's a
+                * valid NUL; if not, then we've hit the end of the buffer.
+                */
+               if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
+                       /* This was really a NUL. */
+                       *(yy_c_buf_p) = '\0';
+
+               else
+                       { /* need more input */
+                       int offset = (yy_c_buf_p) - (yytext_ptr);
+                       ++(yy_c_buf_p);
+
+                       switch ( yy_get_next_buffer(  ) )
+                               {
+                               case EOB_ACT_LAST_MATCH:
+                                       /* This happens because yy_g_n_b()
+                                        * sees that we've accumulated a
+                                        * token and flags that we need to
+                                        * try matching the token before
+                                        * proceeding.  But for input(),
+                                        * there's no matching to consider.
+                                        * So convert the EOB_ACT_LAST_MATCH
+                                        * to EOB_ACT_END_OF_FILE.
+                                        */
+
+                                       /* Reset buffer status. */
+                                       dax_restart(dax_in );
+
+                                       /*FALLTHROUGH*/
+
+                               case EOB_ACT_END_OF_FILE:
+                                       {
+                                       if ( dax_wrap( ) )
+                                               return EOF;
+
+                                       if ( ! (yy_did_buffer_switch_on_eof) )
+                                               YY_NEW_FILE;
+#ifdef __cplusplus
+                                       return yyinput();
+#else
+                                       return input();
+#endif
+                                       }
+
+                               case EOB_ACT_CONTINUE_SCAN:
+                                       (yy_c_buf_p) = (yytext_ptr) + offset;
+                                       break;
+                               }
+                       }
+               }
+
+       c = *(unsigned char *) (yy_c_buf_p);    /* cast for 8-bit char's */
+       *(yy_c_buf_p) = '\0';   /* preserve dax_text */
+       (yy_hold_char) = *++(yy_c_buf_p);
+
+       if ( c == '\n' )
+                  
+    dax_lineno++;
+;
+
+       return c;
+}
+#endif /* ifndef YY_NO_INPUT */
+
+/** Immediately switch to a different input stream.
+ * @param input_file A readable stream.
+ * 
+ * @note This function does not reset the start condition to @c INITIAL .
+ */
+    void dax_restart  (FILE * input_file )
+{
+    
+       if ( ! YY_CURRENT_BUFFER ){
+        dax_ensure_buffer_stack ();
+               YY_CURRENT_BUFFER_LVALUE =
+            dax__create_buffer(dax_in,YY_BUF_SIZE );
+       }
+
+       dax__init_buffer(YY_CURRENT_BUFFER,input_file );
+       dax__load_buffer_state( );
+}
+
+/** Switch to a different input buffer.
+ * @param new_buffer The new input buffer.
+ * 
+ */
+    void dax__switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
+{
+    
+       /* TODO. We should be able to replace this entire function body
+        * with
+        *              dax_pop_buffer_state();
+        *              dax_push_buffer_state(new_buffer);
+     */
+       dax_ensure_buffer_stack ();
+       if ( YY_CURRENT_BUFFER == new_buffer )
+               return;
+
+       if ( YY_CURRENT_BUFFER )
+               {
+               /* Flush out information for old buffer. */
+               *(yy_c_buf_p) = (yy_hold_char);
+               YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
+               YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+               }
+
+       YY_CURRENT_BUFFER_LVALUE = new_buffer;
+       dax__load_buffer_state( );
+
+       /* We don't actually know whether we did this switch during
+        * EOF (dax_wrap()) processing, but the only time this flag
+        * is looked at is after dax_wrap() is called, so it's safe
+        * to go ahead and always set it.
+        */
+       (yy_did_buffer_switch_on_eof) = 1;
+}
+
+static void dax__load_buffer_state  (void)
+{
+       (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
+       (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
+       dax_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
+       (yy_hold_char) = *(yy_c_buf_p);
+}
+
+/** Allocate and initialize an input buffer state.
+ * @param file A readable stream.
+ * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
+ * 
+ * @return the allocated buffer state.
+ */
+    YY_BUFFER_STATE dax__create_buffer  (FILE * file, int  size )
+{
+       YY_BUFFER_STATE b;
+    
+       b = (YY_BUFFER_STATE) dax_alloc(sizeof( struct yy_buffer_state )  );
+       if ( ! b )
+               YY_FATAL_ERROR( "out of dynamic memory in dax__create_buffer()" );
+
+       b->yy_buf_size = size;
+
+       /* yy_ch_buf has to be 2 characters longer than the size given because
+        * we need to put in 2 end-of-buffer characters.
+        */
+       b->yy_ch_buf = (char *) dax_alloc(b->yy_buf_size + 2  );
+       if ( ! b->yy_ch_buf )
+               YY_FATAL_ERROR( "out of dynamic memory in dax__create_buffer()" );
+
+       b->yy_is_our_buffer = 1;
+
+       dax__init_buffer(b,file );
+
+       return b;
+}
+
+/** Destroy the buffer.
+ * @param b a buffer created with dax__create_buffer()
+ * 
+ */
+    void dax__delete_buffer (YY_BUFFER_STATE  b )
+{
+    
+       if ( ! b )
+               return;
+
+       if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
+               YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
+
+       if ( b->yy_is_our_buffer )
+               dax_free((void *) b->yy_ch_buf  );
+
+       dax_free((void *) b  );
+}
+
+#ifndef __cplusplus
+extern int isatty (int );
+#endif /* __cplusplus */
+    
+/* Initializes or reinitializes a buffer.
+ * This function is sometimes called more than once on the same buffer,
+ * such as during a dax_restart() or at EOF.
+ */
+    static void dax__init_buffer  (YY_BUFFER_STATE  b, FILE * file )
+
+{
+       int oerrno = errno;
+    
+       dax__flush_buffer(b );
+
+       b->yy_input_file = file;
+       b->yy_fill_buffer = 1;
+
+    /* If b is the current buffer, then dax__init_buffer was _probably_
+     * called from dax_restart() or through yy_get_next_buffer.
+     * In that case, we don't want to reset the lineno or column.
+     */
+    if (b != YY_CURRENT_BUFFER){
+        b->yy_bs_lineno = 1;
+        b->yy_bs_column = 0;
+    }
+
+        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
+    
+       errno = oerrno;
+}
+
+/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
+ * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
+ * 
+ */
+    void dax__flush_buffer (YY_BUFFER_STATE  b )
+{
+       if ( ! b )
+               return;
+
+       b->yy_n_chars = 0;
+
+       /* We always need two end-of-buffer characters.  The first causes
+        * a transition to the end-of-buffer state.  The second causes
+        * a jam in that state.
+        */
+       b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
+       b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
+
+       b->yy_buf_pos = &b->yy_ch_buf[0];
+
+       b->yy_at_bol = 1;
+       b->yy_buffer_status = YY_BUFFER_NEW;
+
+       if ( b == YY_CURRENT_BUFFER )
+               dax__load_buffer_state( );
+}
+
+/** Pushes the new state onto the stack. The new state becomes
+ *  the current state. This function will allocate the stack
+ *  if necessary.
+ *  @param new_buffer The new state.
+ *  
+ */
+void dax_push_buffer_state (YY_BUFFER_STATE new_buffer )
+{
+       if (new_buffer == NULL)
+               return;
+
+       dax_ensure_buffer_stack();
+
+       /* This block is copied from dax__switch_to_buffer. */
+       if ( YY_CURRENT_BUFFER )
+               {
+               /* Flush out information for old buffer. */
+               *(yy_c_buf_p) = (yy_hold_char);
+               YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
+               YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+               }
+
+       /* Only push if top exists. Otherwise, replace top. */
+       if (YY_CURRENT_BUFFER)
+               (yy_buffer_stack_top)++;
+       YY_CURRENT_BUFFER_LVALUE = new_buffer;
+
+       /* copied from dax__switch_to_buffer. */
+       dax__load_buffer_state( );
+       (yy_did_buffer_switch_on_eof) = 1;
+}
+
+/** Removes and deletes the top of the stack, if present.
+ *  The next element becomes the new top.
+ *  
+ */
+void dax_pop_buffer_state (void)
+{
+       if (!YY_CURRENT_BUFFER)
+               return;
+
+       dax__delete_buffer(YY_CURRENT_BUFFER );
+       YY_CURRENT_BUFFER_LVALUE = NULL;
+       if ((yy_buffer_stack_top) > 0)
+               --(yy_buffer_stack_top);
+
+       if (YY_CURRENT_BUFFER) {
+               dax__load_buffer_state( );
+               (yy_did_buffer_switch_on_eof) = 1;
+       }
+}
+
+/* Allocates the stack if it does not exist.
+ *  Guarantees space for at least one push.
+ */
+static void dax_ensure_buffer_stack (void)
+{
+       int num_to_alloc;
+    
+       if (!(yy_buffer_stack)) {
+
+               /* First allocation is just for 2 elements, since we don't know if this
+                * scanner will even need a stack. We use 2 instead of 1 to avoid an
+                * immediate realloc on the next call.
+         */
+               num_to_alloc = 1;
+               (yy_buffer_stack) = (struct yy_buffer_state**)dax_alloc
+                                                               (num_to_alloc * sizeof(struct yy_buffer_state*)
+                                                               );
+               if ( ! (yy_buffer_stack) )
+                       YY_FATAL_ERROR( "out of dynamic memory in dax_ensure_buffer_stack()" );
+                                                                 
+               memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
+                               
+               (yy_buffer_stack_max) = num_to_alloc;
+               (yy_buffer_stack_top) = 0;
+               return;
+       }
+
+       if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
+
+               /* Increase the buffer to prepare for a possible push. */
+               int grow_size = 8 /* arbitrary grow size */;
+
+               num_to_alloc = (yy_buffer_stack_max) + grow_size;
+               (yy_buffer_stack) = (struct yy_buffer_state**)dax_realloc
+                                                               ((yy_buffer_stack),
+                                                               num_to_alloc * sizeof(struct yy_buffer_state*)
+                                                               );
+               if ( ! (yy_buffer_stack) )
+                       YY_FATAL_ERROR( "out of dynamic memory in dax_ensure_buffer_stack()" );
+
+               /* zero only the new slots.*/
+               memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
+               (yy_buffer_stack_max) = num_to_alloc;
+       }
+}
+
+/** Setup the input buffer state to scan directly from a user-specified character buffer.
+ * @param base the character buffer
+ * @param size the size in bytes of the character buffer
+ * 
+ * @return the newly allocated buffer state object. 
+ */
+YY_BUFFER_STATE dax__scan_buffer  (char * base, yy_size_t  size )
+{
+       YY_BUFFER_STATE b;
+    
+       if ( size < 2 ||
+            base[size-2] != YY_END_OF_BUFFER_CHAR ||
+            base[size-1] != YY_END_OF_BUFFER_CHAR )
+               /* They forgot to leave room for the EOB's. */
+               return 0;
+
+       b = (YY_BUFFER_STATE) dax_alloc(sizeof( struct yy_buffer_state )  );
+       if ( ! b )
+               YY_FATAL_ERROR( "out of dynamic memory in dax__scan_buffer()" );
+
+       b->yy_buf_size = size - 2;      /* "- 2" to take care of EOB's */
+       b->yy_buf_pos = b->yy_ch_buf = base;
+       b->yy_is_our_buffer = 0;
+       b->yy_input_file = 0;
+       b->yy_n_chars = b->yy_buf_size;
+       b->yy_is_interactive = 0;
+       b->yy_at_bol = 1;
+       b->yy_fill_buffer = 0;
+       b->yy_buffer_status = YY_BUFFER_NEW;
+
+       dax__switch_to_buffer(b  );
+
+       return b;
+}
+
+/** Setup the input buffer state to scan a string. The next call to dax_lex() will
+ * scan from a @e copy of @a str.
+ * @param yystr a NUL-terminated string to scan
+ * 
+ * @return the newly allocated buffer state object.
+ * @note If you want to scan bytes that may contain NUL values, then use
+ *       dax__scan_bytes() instead.
+ */
+YY_BUFFER_STATE dax__scan_string (yyconst char * yystr )
+{
+    
+       return dax__scan_bytes(yystr,strlen(yystr) );
+}
+
+/** Setup the input buffer state to scan the given bytes. The next call to dax_lex() will
+ * scan from a @e copy of @a bytes.
+ * @param yybytes the byte buffer to scan
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
+ * 
+ * @return the newly allocated buffer state object.
+ */
+YY_BUFFER_STATE dax__scan_bytes  (yyconst char * yybytes, int  _yybytes_len )
+{
+       YY_BUFFER_STATE b;
+       char *buf;
+       yy_size_t n;
+       int i;
+    
+       /* Get memory for full buffer, including space for trailing EOB's. */
+       n = _yybytes_len + 2;
+       buf = (char *) dax_alloc(n  );
+       if ( ! buf )
+               YY_FATAL_ERROR( "out of dynamic memory in dax__scan_bytes()" );
+
+       for ( i = 0; i < _yybytes_len; ++i )
+               buf[i] = yybytes[i];
+
+       buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
+
+       b = dax__scan_buffer(buf,n );
+       if ( ! b )
+               YY_FATAL_ERROR( "bad buffer in dax__scan_bytes()" );
+
+       /* It's okay to grow etc. this buffer, and we should throw it
+        * away when we're done.
+        */
+       b->yy_is_our_buffer = 1;
+
+       return b;
+}
+
+    static void yy_push_state (int  new_state )
+{
+       if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) )
+               {
+               yy_size_t new_size;
+
+               (yy_start_stack_depth) += YY_START_STACK_INCR;
+               new_size = (yy_start_stack_depth) * sizeof( int );
+
+               if ( ! (yy_start_stack) )
+                       (yy_start_stack) = (int *) dax_alloc(new_size  );
+
+               else
+                       (yy_start_stack) = (int *) dax_realloc((void *) (yy_start_stack),new_size  );
+
+               if ( ! (yy_start_stack) )
+                       YY_FATAL_ERROR( "out of memory expanding start-condition stack" );
+               }
+
+       (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START;
+
+       BEGIN(new_state);
+}
+
+    static void yy_pop_state  (void)
+{
+       if ( --(yy_start_stack_ptr) < 0 )
+               YY_FATAL_ERROR( "start-condition stack underflow" );
+
+       BEGIN((yy_start_stack)[(yy_start_stack_ptr)]);
+}
+
+#ifndef YY_EXIT_FAILURE
+#define YY_EXIT_FAILURE 2
+#endif
+
+static void yy_fatal_error (yyconst char* msg )
+{
+       (void) fprintf( stderr, "%s\n", msg );
+       exit( YY_EXIT_FAILURE );
+}
+
+/* Redefine yyless() so it works in section 3 code. */
+
+#undef yyless
+#define yyless(n) \
+       do \
+               { \
+               /* Undo effects of setting up dax_text. */ \
+        int yyless_macro_arg = (n); \
+        YY_LESS_LINENO(yyless_macro_arg);\
+               dax_text[dax_leng] = (yy_hold_char); \
+               (yy_c_buf_p) = dax_text + yyless_macro_arg; \
+               (yy_hold_char) = *(yy_c_buf_p); \
+               *(yy_c_buf_p) = '\0'; \
+               dax_leng = yyless_macro_arg; \
+               } \
+       while ( 0 )
+
+/* Accessor  methods (get/set functions) to struct members. */
+
+/** Get the current line number.
+ * 
+ */
+int dax_get_lineno  (void)
+{
+        
+    return dax_lineno;
+}
+
+/** Get the input stream.
+ * 
+ */
+FILE *dax_get_in  (void)
+{
+        return dax_in;
+}
+
+/** Get the output stream.
+ * 
+ */
+FILE *dax_get_out  (void)
+{
+        return dax_out;
+}
+
+/** Get the length of the current token.
+ * 
+ */
+int dax_get_leng  (void)
+{
+        return dax_leng;
+}
+
+/** Get the current token.
+ * 
+ */
+
+char *dax_get_text  (void)
+{
+        return dax_text;
+}
+
+/** Set the current line number.
+ * @param line_number
+ * 
+ */
+void dax_set_lineno (int  line_number )
+{
+    
+    dax_lineno = line_number;
+}
+
+/** Set the input stream. This does not discard the current
+ * input buffer.
+ * @param in_str A readable stream.
+ * 
+ * @see dax__switch_to_buffer
+ */
+void dax_set_in (FILE *  in_str )
+{
+        dax_in = in_str ;
+}
+
+void dax_set_out (FILE *  out_str )
+{
+        dax_out = out_str ;
+}
+
+int dax_get_debug  (void)
+{
+        return dax__flex_debug;
+}
+
+void dax_set_debug (int  bdebug )
+{
+        dax__flex_debug = bdebug ;
+}
+
+static int yy_init_globals (void)
+{
+        /* Initialization is the same as for the non-reentrant scanner.
+     * This function is called from dax_lex_destroy(), so don't allocate here.
+     */
+
+    /* We do not touch dax_lineno unless the option is enabled. */
+    dax_lineno =  1;
+    
+    (yy_buffer_stack) = 0;
+    (yy_buffer_stack_top) = 0;
+    (yy_buffer_stack_max) = 0;
+    (yy_c_buf_p) = (char *) 0;
+    (yy_init) = 0;
+    (yy_start) = 0;
+
+    (yy_start_stack_ptr) = 0;
+    (yy_start_stack_depth) = 0;
+    (yy_start_stack) =  NULL;
+
+/* Defined in main.c */
+#ifdef YY_STDINIT
+    dax_in = stdin;
+    dax_out = stdout;
+#else
+    dax_in = (FILE *) 0;
+    dax_out = (FILE *) 0;
+#endif
+
+    /* For future reference: Set errno on error, since we are called by
+     * dax_lex_init()
+     */
+    return 0;
+}
+
+/* dax_lex_destroy is for both reentrant and non-reentrant scanners. */
+int dax_lex_destroy  (void)
+{
+    
+    /* Pop the buffer stack, destroying each element. */
+       while(YY_CURRENT_BUFFER){
+               dax__delete_buffer(YY_CURRENT_BUFFER  );
+               YY_CURRENT_BUFFER_LVALUE = NULL;
+               dax_pop_buffer_state();
+       }
+
+       /* Destroy the stack itself. */
+       dax_free((yy_buffer_stack) );
+       (yy_buffer_stack) = NULL;
+
+    /* Destroy the start condition stack. */
+        dax_free((yy_start_stack)  );
+        (yy_start_stack) = NULL;
+
+    /* Reset the globals. This is important in a non-reentrant scanner so the next time
+     * dax_lex() is called, initialization will occur. */
+    yy_init_globals( );
+
+    return 0;
+}
+
+/*
+ * Internal utility routines.
+ */
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
+{
+       register int i;
+       for ( i = 0; i < n; ++i )
+               s1[i] = s2[i];
+}
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen (yyconst char * s )
+{
+       register int n;
+       for ( n = 0; s[n]; ++n )
+               ;
+
+       return n;
+}
+#endif
+
+void *dax_alloc (yy_size_t  size )
+{
+       return (void *) malloc( size );
+}
+
+void *dax_realloc  (void * ptr, yy_size_t  size )
+{
+       /* The cast to (char *) in the following accommodates both
+        * implementations that use char* generic pointers, and those
+        * that use void* generic pointers.  It works with the latter
+        * because both ANSI C and C++ allow castless assignment from
+        * any pointer type to void*, and deal with argument conversions
+        * as though doing an assignment.
+        */
+       return (void *) realloc( (char *) ptr, size );
+}
+
+void dax_free (void * ptr )
+{
+       free( (char *) ptr );   /* see dax_realloc() for (char *) cast */
+}
+
+#define YYTABLES_NAME "yytables"
+
+/* Element context stack lookup. */
+int dax__element_context(int i)
+{
+  return (0<i && i<yy_start_stack_depth
+         ? yy_start_stack[yy_start_stack_ptr - i]
+         : 0);
+}
+
+#ifdef FLEX_DEBUG
+void print_yy_stack(char* fmt, ...)
+{
+  int i = 0; va_list ap; va_start(ap, fmt);
+  vfprintf(stderr, fmt, ap);
+  if (dax__statenames) {
+      for (i=1; i<yy_start_stack_ptr; i++) {
+          fprintf(stderr, "%s/", dax__statenames[yy_start_stack[i] ]);
+      }
+      fprintf(stderr,"%s\n", dax__statenames[YY_START]);
+  }
+  va_end(ap);
+}
+
+void print_dax__bufferstack()
+{
+    int i;
+    fputs("Buffer: ", stderr);
+    for (i = 0; i < blimit; i++) {
+       if ( dax__bufferstack[i] == '\377' ) break;
+         putc(dax__bufferstack[i], stderr);
+    }
+    putc('\n', stderr);
+}
+
+static void debug_enter(int state, const char* statename) {
+  yy_push_state(state);
+  if (dax__flex_debug) {
+       print_yy_stack("--ENTER(%s) : ",statename);
+       print_dax__bufferstack();
+  }
+}
+
+static void debug_leave(void) {
+    if (dax__flex_debug) {
+        print_yy_stack("--LEAVE : ");
+       print_dax__bufferstack();
+    }
+  yy_pop_state();
+}
+
+static void debug_set(int state, const char* statename) {
+  BEGIN(state);
+  if (dax__flex_debug) print_yy_stack("--SET(%s) : ",statename);
+}
+#endif
+
+static void cleanup(void)
+{
+    if (dax__statenames) {
+        free(dax__statenames);
+       dax__statenames = NULL;
+    }
+    free(dax__bufferstack);
+    dax__bufferstack = NULL;
+
+    free(indexstack);
+    indexstack = NULL;
+}
+
+static int fail(const char* fmt, ...)
+{
+    int chars_left, used;
+    va_list ap; va_start(ap, fmt);
+#ifdef FLEXML_yylineno
+    used = sprintf(flexml_err_msg,
+                  "Invalid XML (XML input line %d, state %d): ",
+                  dax_lineno, YY_START);
+#else
+    used = sprintf(flexml_err_msg,
+                  "Invalid XML (state %d): ",
+                  YY_START);
+#endif
+    chars_left = flexml_max_err_msg_size - used - 1;
+    vsnprintf(flexml_err_msg + used, chars_left, fmt, ap);
+    va_end(ap);
+
+#ifndef FLEXML_quiet_parser
+    /* print directly to sdterr */
+    fprintf(stderr, "%s\n", flexml_err_msg);
+    flexml_err_msg[0] = '\0';
+#endif
+
+    cleanup();
+
+    return 1;
+}
+
diff --git a/src/simdag/dax_dtd.h b/src/simdag/dax_dtd.h
new file mode 100644 (file)
index 0000000..f195f2f
--- /dev/null
@@ -0,0 +1,170 @@
+/* XML processor/application API for simdag/dax.dtd.
+ * Generated 2009/10/05 17:12:40.
+ *
+ * This program was generated with the FleXML XML processor generator.
+ * FleXML is Copyright (C) 1999-2005 Kristoffer Rose.  All rights reserved.
+ * FleXML is Copyright (C) 2003-2006 Martin Quinson.  All rights reserved.
+ * (Id: flexml.pl,v 1.62 2007/10/11 10:00:14 mquinson Exp).
+ * 
+ * There are two, intertwined parts to this program, part A and part B.
+ *
+ * Part A
+ * ------
+ * 
+ * Some parts, here collectively called "Part A", are found in the 
+ * FleXML package.  They are Copyright (C) 1999-2005 Kristoffer Rose
+ * and Copyright (C) 2003-2006 Martin Quinson. All rights reserved.
+ *
+ * You can redistribute, use, perform, display and/or modify "Part A"
+ * provided the following two conditions hold:
+ *
+ * 1. The program is distributed WITHOUT ANY WARRANTY from the author of
+ *    FleXML; without even the implied warranty of MERCHANTABILITY or
+ *    FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * 2. The program distribution conditions do not in any way affect the
+ *    distribution conditions of the FleXML system used to generate this
+ *    file or any version of FleXML derived from that system.
+ *
+ * Notice that these are explicit rights granted to you for files
+ * generated by the FleXML system.  For your rights in connection with
+ * the FleXML system itself please consult the GNU General Public License.
+ * 
+ * Part B
+ * ------
+ * 
+ * The other parts, here collectively called "Part B", and which came 
+ * from the DTD used by FleXML to generate this program, can be 
+ * distributed (or not, as the case may be) under the terms of whoever
+ * wrote them, provided these terms respect and obey the two conditions 
+ * above under the heading "Part A".
+ *
+ * The author of and contributors to FleXML specifically disclaim
+ * any copyright interest in "Part B", unless "Part B" was written 
+ * by the author of or contributors to FleXML.
+ * 
+ */
+
+#ifndef _FLEXML_dax_H
+#define _FLEXML_dax_H
+
+/* XML application entry points. */
+XBT_PUBLIC(void ) STag_dax__adag(void);
+XBT_PUBLIC(void ) ETag_dax__adag(void);
+XBT_PUBLIC(void ) STag_dax__job(void);
+XBT_PUBLIC(void ) ETag_dax__job(void);
+XBT_PUBLIC(void ) STag_dax__uses(void);
+XBT_PUBLIC(void ) ETag_dax__uses(void);
+XBT_PUBLIC(void ) STag_dax__child(void);
+XBT_PUBLIC(void ) ETag_dax__child(void);
+XBT_PUBLIC(void ) STag_dax__parent(void);
+XBT_PUBLIC(void ) ETag_dax__parent(void);
+
+/* XML application data. */
+typedef int AT_dax__adag_version;
+#define AU_dax__adag_version NULL
+typedef int AT_dax__uses_type;
+#define AU_dax__uses_type NULL
+typedef enum { AU_dax__uses_optional, A_dax__uses_optional_false,A_dax__uses_optional_true } AT_dax__uses_optional;
+typedef int AT_dax__adag_name;
+#define AU_dax__adag_name NULL
+typedef int AT_dax__child_ref;
+#define AU_dax__child_ref NULL
+typedef int AT_dax__adag_xmlns;
+#define AU_dax__adag_xmlns NULL
+typedef enum { AU_dax__uses_transfer, A_dax__uses_transfer_false,A_dax__uses_transfer_true } AT_dax__uses_transfer;
+typedef int AT_dax__job_id;
+#define AU_dax__job_id NULL
+typedef int AT_dax__uses_file;
+#define AU_dax__uses_file NULL
+typedef int AT_dax__parent_ref;
+#define AU_dax__parent_ref NULL
+typedef int AT_dax__adag_count;
+#define AU_dax__adag_count NULL
+typedef int AT_dax__adag_xmlns_c_xsi;
+#define AU_dax__adag_xmlns_c_xsi NULL
+typedef int AT_dax__adag_index;
+#define AU_dax__adag_index NULL
+typedef int AT_dax__uses_size;
+#define AU_dax__uses_size NULL
+typedef int AT_dax__adag_childCount;
+#define AU_dax__adag_childCount NULL
+typedef enum { AU_dax__uses_link, A_dax__uses_link_input,A_dax__uses_link_output } AT_dax__uses_link;
+typedef int AT_dax__job_runtime;
+#define AU_dax__job_runtime NULL
+typedef int AT_dax__job_namespace;
+#define AU_dax__job_namespace NULL
+typedef int AT_dax__job_name;
+#define AU_dax__job_name NULL
+typedef int AT_dax__adag_jobCount;
+#define AU_dax__adag_jobCount NULL
+typedef int AT_dax__adag_xmlns_c_schemaLocation;
+#define AU_dax__adag_xmlns_c_schemaLocation NULL
+typedef int AT_dax__job_version;
+#define AU_dax__job_version NULL
+typedef enum { AU_dax__uses_register, A_dax__uses_register_false,A_dax__uses_register_true } AT_dax__uses_register;
+typedef int AT_dax__adag_fileCount;
+#define AU_dax__adag_fileCount NULL
+
+/* FleXML-provided data. */
+XBT_PUBLIC_DATA(int ) dax__pcdata_ix;
+XBT_PUBLIC_DATA(char *) dax__bufferstack;
+#define dax__pcdata (dax__bufferstack + dax__pcdata_ix)
+XBT_PUBLIC_DATA(AT_dax__adag_version ) AX_dax__adag_version;
+#define A_dax__adag_version (dax__bufferstack + AX_dax__adag_version)
+XBT_PUBLIC_DATA(AT_dax__uses_type ) AX_dax__uses_type;
+#define A_dax__uses_type (dax__bufferstack + AX_dax__uses_type)
+XBT_PUBLIC_DATA(AT_dax__uses_optional ) AX_dax__uses_optional;
+#define A_dax__uses_optional AX_dax__uses_optional
+XBT_PUBLIC_DATA(AT_dax__adag_name ) AX_dax__adag_name;
+#define A_dax__adag_name (dax__bufferstack + AX_dax__adag_name)
+XBT_PUBLIC_DATA(AT_dax__child_ref ) AX_dax__child_ref;
+#define A_dax__child_ref (dax__bufferstack + AX_dax__child_ref)
+XBT_PUBLIC_DATA(AT_dax__adag_xmlns ) AX_dax__adag_xmlns;
+#define A_dax__adag_xmlns (dax__bufferstack + AX_dax__adag_xmlns)
+XBT_PUBLIC_DATA(AT_dax__uses_transfer ) AX_dax__uses_transfer;
+#define A_dax__uses_transfer AX_dax__uses_transfer
+XBT_PUBLIC_DATA(AT_dax__job_id ) AX_dax__job_id;
+#define A_dax__job_id (dax__bufferstack + AX_dax__job_id)
+XBT_PUBLIC_DATA(AT_dax__uses_file ) AX_dax__uses_file;
+#define A_dax__uses_file (dax__bufferstack + AX_dax__uses_file)
+XBT_PUBLIC_DATA(AT_dax__parent_ref ) AX_dax__parent_ref;
+#define A_dax__parent_ref (dax__bufferstack + AX_dax__parent_ref)
+XBT_PUBLIC_DATA(AT_dax__adag_count ) AX_dax__adag_count;
+#define A_dax__adag_count (dax__bufferstack + AX_dax__adag_count)
+XBT_PUBLIC_DATA(AT_dax__adag_xmlns_c_xsi ) AX_dax__adag_xmlns_c_xsi;
+#define A_dax__adag_xmlns_c_xsi (dax__bufferstack + AX_dax__adag_xmlns_c_xsi)
+XBT_PUBLIC_DATA(AT_dax__adag_index ) AX_dax__adag_index;
+#define A_dax__adag_index (dax__bufferstack + AX_dax__adag_index)
+XBT_PUBLIC_DATA(AT_dax__uses_size ) AX_dax__uses_size;
+#define A_dax__uses_size (dax__bufferstack + AX_dax__uses_size)
+XBT_PUBLIC_DATA(AT_dax__adag_childCount ) AX_dax__adag_childCount;
+#define A_dax__adag_childCount (dax__bufferstack + AX_dax__adag_childCount)
+XBT_PUBLIC_DATA(AT_dax__uses_link ) AX_dax__uses_link;
+#define A_dax__uses_link AX_dax__uses_link
+XBT_PUBLIC_DATA(AT_dax__job_runtime ) AX_dax__job_runtime;
+#define A_dax__job_runtime (dax__bufferstack + AX_dax__job_runtime)
+XBT_PUBLIC_DATA(AT_dax__job_namespace ) AX_dax__job_namespace;
+#define A_dax__job_namespace (dax__bufferstack + AX_dax__job_namespace)
+XBT_PUBLIC_DATA(AT_dax__job_name ) AX_dax__job_name;
+#define A_dax__job_name (dax__bufferstack + AX_dax__job_name)
+XBT_PUBLIC_DATA(AT_dax__adag_jobCount ) AX_dax__adag_jobCount;
+#define A_dax__adag_jobCount (dax__bufferstack + AX_dax__adag_jobCount)
+XBT_PUBLIC_DATA(AT_dax__adag_xmlns_c_schemaLocation ) AX_dax__adag_xmlns_c_schemaLocation;
+#define A_dax__adag_xmlns_c_schemaLocation (dax__bufferstack + AX_dax__adag_xmlns_c_schemaLocation)
+XBT_PUBLIC_DATA(AT_dax__job_version ) AX_dax__job_version;
+#define A_dax__job_version (dax__bufferstack + AX_dax__job_version)
+XBT_PUBLIC_DATA(AT_dax__uses_register ) AX_dax__uses_register;
+#define A_dax__uses_register AX_dax__uses_register
+XBT_PUBLIC_DATA(AT_dax__adag_fileCount ) AX_dax__adag_fileCount;
+#define A_dax__adag_fileCount (dax__bufferstack + AX_dax__adag_fileCount)
+
+/* XML application utilities. */
+XBT_PUBLIC(int ) dax__element_context(int);
+
+/* XML processor entry point. */
+XBT_PUBLIC(int ) yylex(void);
+
+/* Flexml error handling function (useful only when -q flag passed to flexml) */
+const char * dax__parse_err_msg(void);
+#endif
diff --git a/src/simdag/dax_dtd.l b/src/simdag/dax_dtd.l
new file mode 100644 (file)
index 0000000..91b5196
--- /dev/null
@@ -0,0 +1,884 @@
+/* Validating XML processor for simdag/dax.dtd.
+ * Generated 2009/10/05 17:12:40.
+ *
+ * This program was generated with the FleXML XML processor generator.
+ * FleXML is Copyright (C) 1999-2005 Kristoffer Rose.  All rights reserved.
+ * FleXML is Copyright (C) 2003-2006 Martin Quinson.  All rights reserved.
+ * (Id: flexml.pl,v 1.62 2007/10/11 10:00:14 mquinson Exp).
+ * 
+ * There are two, intertwined parts to this program, part A and part B.
+ *
+ * Part A
+ * ------
+ * 
+ * Some parts, here collectively called "Part A", are found in the 
+ * FleXML package.  They are Copyright (C) 1999-2005 Kristoffer Rose
+ * and Copyright (C) 2003-2006 Martin Quinson. All rights reserved.
+ *
+ * You can redistribute, use, perform, display and/or modify "Part A"
+ * provided the following two conditions hold:
+ *
+ * 1. The program is distributed WITHOUT ANY WARRANTY from the author of
+ *    FleXML; without even the implied warranty of MERCHANTABILITY or
+ *    FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * 2. The program distribution conditions do not in any way affect the
+ *    distribution conditions of the FleXML system used to generate this
+ *    file or any version of FleXML derived from that system.
+ *
+ * Notice that these are explicit rights granted to you for files
+ * generated by the FleXML system.  For your rights in connection with
+ * the FleXML system itself please consult the GNU General Public License.
+ * 
+ * Part B
+ * ------
+ * 
+ * The other parts, here collectively called "Part B", and which came 
+ * from the DTD used by FleXML to generate this program, can be 
+ * distributed (or not, as the case may be) under the terms of whoever
+ * wrote them, provided these terms respect and obey the two conditions 
+ * above under the heading "Part A".
+ *
+ * The author of and contributors to FleXML specifically disclaim
+ * any copyright interest in "Part B", unless "Part B" was written 
+ * by the author of or contributors to FleXML.
+ * 
+ */
+
+%{
+
+/* Version strings. */
+const char rcs_dax__flexml_skeleton[] =
+ "$" "Id: skel,v 1.40 2007/10/11 09:57:24 mquinson Exp $";
+const char rcs_dax__flexml[] =
+ "$" "Id: flexml.pl,v 1.62 2007/10/11 10:00:14 mquinson Exp $";
+
+/* ANSI headers. */
+#include <stdlib.h> /* for realloc() -- needed here when using flex 2.5.4 */
+#include <stdio.h>
+#include <string.h>
+#include <assert.h>
+#include <stdarg.h>
+#include <ctype.h>
+     
+#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__TOS_WIN__)
+# ifndef __STRICT_ANSI__
+#  include <io.h>
+#  include <process.h>
+# endif
+#else
+# include <unistd.h>
+#endif
+     
+#ifndef FLEXML_INDEXSTACKSIZE
+#define FLEXML_INDEXSTACKSIZE 1000
+#endif
+
+/* Generated definitions. */
+#define FLEXML_yylineno
+#ifndef FLEXML_BUFFERSTACKSIZE
+#define FLEXML_BUFFERSTACKSIZE 1000000
+#endif
+#define FLEXML_NEED_BUFFERLIT
+
+/* XML processor api. */
+/* FleXML-provided data. */
+int dax__pcdata_ix;
+extern char *dax__bufferstack;
+#define dax__pcdata (dax__bufferstack + dax__pcdata_ix)
+AT_dax__adag_version AX_dax__adag_version;
+#define A_dax__adag_version (dax__bufferstack + AX_dax__adag_version)
+AT_dax__uses_type AX_dax__uses_type;
+#define A_dax__uses_type (dax__bufferstack + AX_dax__uses_type)
+AT_dax__uses_optional AX_dax__uses_optional;
+#define A_dax__uses_optional AX_dax__uses_optional
+AT_dax__adag_name AX_dax__adag_name;
+#define A_dax__adag_name (dax__bufferstack + AX_dax__adag_name)
+AT_dax__child_ref AX_dax__child_ref;
+#define A_dax__child_ref (dax__bufferstack + AX_dax__child_ref)
+AT_dax__adag_xmlns AX_dax__adag_xmlns;
+#define A_dax__adag_xmlns (dax__bufferstack + AX_dax__adag_xmlns)
+AT_dax__uses_transfer AX_dax__uses_transfer;
+#define A_dax__uses_transfer AX_dax__uses_transfer
+AT_dax__job_id AX_dax__job_id;
+#define A_dax__job_id (dax__bufferstack + AX_dax__job_id)
+AT_dax__uses_file AX_dax__uses_file;
+#define A_dax__uses_file (dax__bufferstack + AX_dax__uses_file)
+AT_dax__parent_ref AX_dax__parent_ref;
+#define A_dax__parent_ref (dax__bufferstack + AX_dax__parent_ref)
+AT_dax__adag_count AX_dax__adag_count;
+#define A_dax__adag_count (dax__bufferstack + AX_dax__adag_count)
+AT_dax__adag_xmlns_c_xsi AX_dax__adag_xmlns_c_xsi;
+#define A_dax__adag_xmlns_c_xsi (dax__bufferstack + AX_dax__adag_xmlns_c_xsi)
+AT_dax__adag_index AX_dax__adag_index;
+#define A_dax__adag_index (dax__bufferstack + AX_dax__adag_index)
+AT_dax__uses_size AX_dax__uses_size;
+#define A_dax__uses_size (dax__bufferstack + AX_dax__uses_size)
+AT_dax__adag_childCount AX_dax__adag_childCount;
+#define A_dax__adag_childCount (dax__bufferstack + AX_dax__adag_childCount)
+AT_dax__uses_link AX_dax__uses_link;
+#define A_dax__uses_link AX_dax__uses_link
+AT_dax__job_runtime AX_dax__job_runtime;
+#define A_dax__job_runtime (dax__bufferstack + AX_dax__job_runtime)
+AT_dax__job_namespace AX_dax__job_namespace;
+#define A_dax__job_namespace (dax__bufferstack + AX_dax__job_namespace)
+AT_dax__job_name AX_dax__job_name;
+#define A_dax__job_name (dax__bufferstack + AX_dax__job_name)
+AT_dax__adag_jobCount AX_dax__adag_jobCount;
+#define A_dax__adag_jobCount (dax__bufferstack + AX_dax__adag_jobCount)
+AT_dax__adag_xmlns_c_schemaLocation AX_dax__adag_xmlns_c_schemaLocation;
+#define A_dax__adag_xmlns_c_schemaLocation (dax__bufferstack + AX_dax__adag_xmlns_c_schemaLocation)
+AT_dax__job_version AX_dax__job_version;
+#define A_dax__job_version (dax__bufferstack + AX_dax__job_version)
+AT_dax__uses_register AX_dax__uses_register;
+#define A_dax__uses_register AX_dax__uses_register
+AT_dax__adag_fileCount AX_dax__adag_fileCount;
+#define A_dax__adag_fileCount (dax__bufferstack + AX_dax__adag_fileCount)
+
+/* XML state. */
+#ifdef FLEX_DEBUG
+# define ENTER(state)  debug_enter(state,#state)
+# define LEAVE         debug_leave()
+# define SET(state)    debug_set(state,#state)
+  static void debug_enter(int, const char*);
+  static void debug_leave(void);
+  static void debug_set(int, const char*);
+#else
+# define ENTER(state)  (yy_push_state(state))
+# define LEAVE         (yy_pop_state())
+# define SET(state)    BEGIN(state)
+#endif
+
+/* Generic actions. */
+#define SKIP   /*skip*/
+#define SUCCEED        CLEANUP; return 0
+
+#define FAIL   return fail
+static int fail(const char*, ...);
+
+enum {flexml_max_err_msg_size = 512};
+static char flexml_err_msg[flexml_max_err_msg_size];
+const char * dax__parse_err_msg()
+{
+    return flexml_err_msg;
+}
+static void reset_dax__parse_err_msg()
+{
+    flexml_err_msg[0] = '\0';
+}
+
+/* Cleanup */
+static void cleanup(void);
+#define CLEANUP  cleanup()
+
+/* Text buffer stack handling. */
+char *dax__bufferstack = NULL;
+static int blimit = FLEXML_BUFFERSTACKSIZE;
+static int bnext = 1;
+
+static int *indexstack = NULL;
+static int ilimit = FLEXML_INDEXSTACKSIZE;
+static int inext = 1;
+
+#define BUFFERSET(P)  (P = bnext)
+#define BUFFERPUTC(C) (ck_blimit(), dax__bufferstack[bnext++] = (C))
+#define BUFFERDONE    (BUFFERPUTC('\0'))
+
+#define BUFFERLITERAL(C, P) dax__bufferliteral(C, &(P), yytext)
+
+/* after this is called, there are at least 2 slots left in the stack */
+static int ck_blimit()
+{
+     if (bnext >= blimit) {
+        blimit += FLEXML_BUFFERSTACKSIZE + 2;
+        {
+            char *temp = (char *) realloc(dax__bufferstack, blimit);
+            assert(temp);
+            dax__bufferstack = temp;
+        }
+     }
+     return 0;
+}
+
+/* after this is called, there are at least 2 slots left in the stack */
+static int ck_ilimit()
+{
+     if (inext >= ilimit) {
+        ilimit += FLEXML_INDEXSTACKSIZE + 2;
+        {
+            int *temp = (int *) realloc(indexstack, ilimit);
+            assert(temp);
+            indexstack = temp;
+        }
+     }
+     return 0;
+}
+
+#ifdef FLEXML_NEED_BUFFERLIT
+static void dax__bufferliteral(char c, int* pp, const char* text)
+{
+  const char *s = (c ? strchr(text,c) : text-1), *e = strrchr(text,c);
+  assert(s <= e); BUFFERSET(*pp);
+  while (++s<e) {
+    if (isspace(*s) && c) { BUFFERPUTC(' '); while (isspace(*s)) ++s; }
+    else BUFFERPUTC(*s);
+  }
+  BUFFERDONE;
+}
+#endif
+
+static void pushbuffer(int p)
+{
+    ck_ilimit();
+    indexstack[inext++] = p;
+    indexstack[inext++] = bnext;    
+}
+
+static int popbuffer(void)
+{
+    assert(inext >= 2);
+    bnext = indexstack[--inext];
+    return indexstack[--inext];
+}
+
+/* General internal entities are `unput' back onto the input stream... */
+#define ENTITYTEXT(T) \
+  { char *s = (T), *e = s+strlen(s);\
+    while (--e >= s) { unput(*e); }}
+
+
+%}
+
+/* Flex standard options. */
+%option stack
+%option noyy_top_state
+%option noinput
+%option noreject
+%option noyymore
+%option noyywrap
+
+/* Flex user-requested options. */
+%option yylineno
+%option nounput
+
+/* XML character classes (currently restricted to ASCII). */
+
+/* "Common syntactic structures." */
+S              [ \t\n\r\f]+
+s              [ \t\n\r\f]*
+
+/* "Names and Tokens." */
+NameChar       [A-Za-z0-9.:_-]
+Name           [A-Za-z_:]{NameChar}*
+Names          {Name}({S}{Name})*
+Nmtoken                ({NameChar})+
+Nmtokens       {Nmtoken}({S}{Nmtoken})*
+
+/* Miscellaneous. */
+VersionNum     [a-zA-Z0-9_.:-]+
+Eq             {s}"="{s}
+Literal                \'[^'']*\'|\"[^""]*\"
+
+/* Parser states (flex `exclusive start conditions'):
+ *
+ * PROLOG      the XML prolog of the document before <?xml...>
+ * DOCTYPE     the XML prolog of the document after <?xml...>
+ * EPILOG      after the root element
+ * INCOMMENT   inside an XML comment <!--....-->
+ * INPI                inside an XML PI <?...?>
+ * VALUE1      inside a '...'-delimited literal
+ * VALUE2      inside a "..."-delimited literal
+ * CDATA       inside a <![CDATA[...] ]> section.
+ * ROOT_<tag>  expect root element <tag>
+ * AL_<tag>    inside the attribute list for <tag>
+ * IN_<tag>    inside a <tag> with element contents (ready for end tag)
+ * IMPOSSIBLE  dummy to permit disabling rules; must be last
+ */
+%x PROLOG DOCTYPE EPILOG INCOMMENT INPI VALUE1 VALUE2 CDATA
+%x ROOT_dax__adag AL_dax__adag S_dax__adag S_dax__adag_1 S_dax__adag_2 S_dax__adag_3 S_dax__adag_4 S_dax__adag_5 E_dax__adag
+%x ROOT_dax__job AL_dax__job S_dax__job S_dax__job_1 S_dax__job_2 E_dax__job
+%x ROOT_dax__uses AL_dax__uses E_dax__uses
+%x ROOT_dax__child AL_dax__child S_dax__child S_dax__child_1 S_dax__child_2 E_dax__child
+%x ROOT_dax__parent AL_dax__parent E_dax__parent
+%x IMPOSSIBLE
+
+%{
+/* State names. */
+const char* *dax__statenames=NULL;
+%}
+
+%%
+
+ /* Bypass Flex's default INITIAL state and begin by parsing the XML prolog. */
+ SET(PROLOG);
+ reset_dax__parse_err_msg();
+ dax__bufferstack = (char *) malloc(FLEXML_BUFFERSTACKSIZE);
+ assert(dax__bufferstack);
+ #ifdef FLEX_DEBUG
+ {
+     int i;
+     for (i = 0; i < blimit; i++) {
+         dax__bufferstack[i] = '\377';
+     }
+ }
+ #endif
+ dax__bufferstack[0] = '\0';
+ indexstack = (int *) malloc(FLEXML_INDEXSTACKSIZE * sizeof(int));
+ assert(indexstack);
+ indexstack[0] = 0;
+
+  /* FleXML_init */
+  bnext = inext = 1;
+  dax__bufferliteral('\0', &bnext, "http://pegasus.isi.edu/schema/DAX");
+  dax__bufferliteral('\0', &bnext, "http://www.w3.org/2001/XMLSchema-instance");
+  dax__bufferliteral('\0', &bnext, "http://pegasus.isi.edu/schema/DAX http://pegasus.isi.edu/schema/dax-2.1.xsd");
+  dax__bufferliteral('\0', &bnext, "0.0");
+  dax__bufferliteral('\0', &bnext, "0.0");
+  dax__bufferliteral('\0', &bnext, "data");
+  if(!dax__statenames) {dax__statenames= (const char **)calloc(IMPOSSIBLE,sizeof(char*));
+  dax__statenames[PROLOG] = NULL;
+  dax__statenames[DOCTYPE] = NULL;
+  dax__statenames[EPILOG] = NULL;
+  dax__statenames[INCOMMENT] = NULL;
+  dax__statenames[INPI] = NULL;
+  dax__statenames[VALUE1] = NULL;
+  dax__statenames[VALUE2] = NULL;
+  dax__statenames[CDATA] = NULL;
+  dax__statenames[ROOT_dax__adag] = NULL;
+  dax__statenames[AL_dax__adag] = NULL;
+  dax__statenames[S_dax__adag] = "adag";
+  dax__statenames[S_dax__adag_1] = "adag";
+  dax__statenames[S_dax__adag_2] = "adag";
+  dax__statenames[S_dax__adag_3] = "adag";
+  dax__statenames[S_dax__adag_4] = "adag";
+  dax__statenames[S_dax__adag_5] = "adag";
+  dax__statenames[E_dax__adag] = "adag";
+  dax__statenames[ROOT_dax__job] = NULL;
+  dax__statenames[AL_dax__job] = NULL;
+  dax__statenames[S_dax__job] = "job";
+  dax__statenames[S_dax__job_1] = "job";
+  dax__statenames[S_dax__job_2] = "job";
+  dax__statenames[E_dax__job] = "job";
+  dax__statenames[ROOT_dax__uses] = NULL;
+  dax__statenames[AL_dax__uses] = NULL;
+  dax__statenames[E_dax__uses] = "uses";
+  dax__statenames[ROOT_dax__child] = NULL;
+  dax__statenames[AL_dax__child] = NULL;
+  dax__statenames[S_dax__child] = "child";
+  dax__statenames[S_dax__child_1] = "child";
+  dax__statenames[S_dax__child_2] = "child";
+  dax__statenames[E_dax__child] = "child";
+  dax__statenames[ROOT_dax__parent] = NULL;
+  dax__statenames[AL_dax__parent] = NULL;
+  dax__statenames[E_dax__parent] = "parent";
+  }
+
+ /* COMMENTS and PIs: handled uniformly for efficiency. */
+
+<ROOT_dax__adag,AL_dax__adag,S_dax__adag,S_dax__adag_1,S_dax__adag_2,S_dax__adag_3,S_dax__adag_4,S_dax__adag_5,E_dax__adag,ROOT_dax__job,AL_dax__job,S_dax__job,S_dax__job_1,S_dax__job_2,E_dax__job,ROOT_dax__uses,AL_dax__uses,E_dax__uses,ROOT_dax__child,AL_dax__child,S_dax__child,S_dax__child_1,S_dax__child_2,E_dax__child,ROOT_dax__parent,AL_dax__parent,E_dax__parent,PROLOG,DOCTYPE,EPILOG>{
+ "<!--" ENTER(INCOMMENT);
+ "<?" ENTER(INPI);
+}
+<INCOMMENT>{
+ "-->"         LEAVE;
+ "--"          |
+ .             |
+ \n            SKIP;
+ <<EOF>>       FAIL("EOF in comment.");
+}
+<INPI>{
+ "?>"          LEAVE;
+ .             |
+ \n            SKIP;
+ <<EOF>>       FAIL("EOF in PI (processing instruction).");
+}
+
+ /* SPACES: skipped uniformly */
+
+<ROOT_dax__adag,AL_dax__adag,S_dax__adag,S_dax__adag_1,S_dax__adag_2,S_dax__adag_3,S_dax__adag_4,S_dax__adag_5,E_dax__adag,ROOT_dax__job,AL_dax__job,S_dax__job,S_dax__job_1,S_dax__job_2,E_dax__job,ROOT_dax__uses,AL_dax__uses,E_dax__uses,ROOT_dax__child,AL_dax__child,S_dax__child,S_dax__child_1,S_dax__child_2,E_dax__child,ROOT_dax__parent,AL_dax__parent,E_dax__parent,PROLOG,DOCTYPE,EPILOG>{S} SKIP;
+
+ /* PROLOG: determine root element and process it. */
+
+<PROLOG>{
+ "<?xml"({S}version{Eq}(\'{VersionNum}\'|\"{VersionNum}\"))?({S}encoding{Eq}(\'[^']*\'|\"[^"]*\"))?"?>" SET(DOCTYPE); 
+ "<?xml"[^>]*">" FAIL("Bad declaration %s.",yytext);
+}
+
+<PROLOG,DOCTYPE>{
+ "<!DOCTYPE"{S}"parent"{S}SYSTEM{S}("'dax.dtd'"|"\"dax.dtd\""){s}">" SET(ROOT_dax__parent);
+ "<!DOCTYPE"{S}"uses"{S}SYSTEM{S}("'dax.dtd'"|"\"dax.dtd\""){s}">" SET(ROOT_dax__uses);
+ "<!DOCTYPE"{S}"child"{S}SYSTEM{S}("'dax.dtd'"|"\"dax.dtd\""){s}">" SET(ROOT_dax__child);
+ "<!DOCTYPE"{S}"adag"{S}SYSTEM{S}("'dax.dtd'"|"\"dax.dtd\""){s}">" SET(ROOT_dax__adag);
+ "<!DOCTYPE"{S}"job"{S}SYSTEM{S}("'dax.dtd'"|"\"dax.dtd\""){s}">" SET(ROOT_dax__job);
+ "<!"[^>-][^>]*">" FAIL("Bad declaration %s.",yytext);
+ .             FAIL("Unexpected character `%c' in prolog.", yytext[0]);
+ <<EOF>>       FAIL("EOF in prolog.");
+}
+
+ /* RULES DERIVED FROM DTD. */
+
+ /* <!-- Small DTD for DAX files. -->  */
+
+<S_dax__child_1,S_dax__job,S_dax__adag_3,S_dax__child_2,S_dax__adag_5,S_dax__job_1,E_dax__job,E_dax__adag,S_dax__child,S_dax__adag_4,S_dax__job_2,S_dax__adag,S_dax__adag_2,S_dax__adag_1,E_dax__child>"<adag"{s} FAIL("Starting tag <adag> is not allowed here.");
+
+<ROOT_dax__adag>"<adag"{s} {
+  AX_dax__adag_xmlns = 1;
+  AX_dax__adag_xmlns_c_xsi = 35;
+  AX_dax__adag_xmlns_c_schemaLocation = 77;
+  AX_dax__adag_version = 153;
+  AX_dax__adag_count = 0;
+  AX_dax__adag_index = 0;
+  AX_dax__adag_name = 0;
+  AX_dax__adag_jobCount = 0;
+  AX_dax__adag_fileCount = 0;
+  AX_dax__adag_childCount = 0;
+  ENTER(AL_dax__adag); pushbuffer(0);
+  }
+
+<AL_dax__adag>{
+ "xmlns"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_xmlns);
+ "xmlns"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_xmlns);
+
+ "xmlns:xsi"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_xmlns_c_xsi);
+ "xmlns:xsi"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_xmlns_c_xsi);
+
+ "xmlns:schemaLocation"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_xmlns_c_schemaLocation);
+ "xmlns:schemaLocation"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_xmlns_c_schemaLocation);
+
+ "version"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_version);
+ "version"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_version);
+
+ "count"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_count);
+ "count"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_count);
+
+ "index"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_index);
+ "index"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_index);
+
+ "name"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_name);
+ "name"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_name);
+
+ "jobCount"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_jobCount);
+ "jobCount"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_jobCount);
+
+ "fileCount"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_fileCount);
+ "fileCount"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_fileCount);
+
+ "childCount"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__adag_childCount);
+ "childCount"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__adag_childCount);
+
+ ">" {
+  LEAVE; STag_dax__adag();dax__pcdata_ix = 0; ENTER(S_dax__adag);
+ }
+ "/>" {
+  LEAVE; STag_dax__adag(); dax__pcdata_ix = 0; ETag_dax__adag(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case ROOT_dax__adag: SET(EPILOG); break;
+  }
+ }
+ .       FAIL("Unexpected character `%c' in attribute list of adag element.", yytext[0]);
+ {Name} FAIL("Bad attribute `%s' in `adag' element start tag.",yytext);
+ <<EOF>> FAIL("EOF in attribute list of `adag' element.");
+}
+
+<S_dax__adag_1,S_dax__adag_5,E_dax__adag,S_dax__adag_3,S_dax__adag>{
+ "</adag"{s}">" {
+  LEAVE;
+  ETag_dax__adag();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case ROOT_dax__adag: SET(EPILOG); break;
+  }
+ }
+ "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</adag>' expected.",yytext);
+ .       FAIL("Unexpected character `%c': `</adag>' expected.",yytext[0]);
+ <<EOF>> FAIL("Premature EOF: `</adag>' expected.");
+}
+
+<S_dax__child_1,S_dax__job,S_dax__child_2,S_dax__adag_5,S_dax__job_1,E_dax__job,E_dax__adag,S_dax__child,S_dax__adag_4,S_dax__job_2,E_dax__child,S_dax__adag_1>"<job"{s} FAIL("Starting tag <job> is not allowed here.");
+
+<ROOT_dax__job,S_dax__adag_2,S_dax__adag_3,S_dax__adag>"<job"{s} {
+  AX_dax__job_id = 0;
+  AX_dax__job_namespace = 0;
+  AX_dax__job_name = 0;
+  AX_dax__job_version = 157;
+  AX_dax__job_runtime = 0;
+  ENTER(AL_dax__job); pushbuffer(0);
+  }
+
+<AL_dax__job>{
+ "id"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__job_id);
+ "id"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__job_id);
+
+ "namespace"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__job_namespace);
+ "namespace"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__job_namespace);
+
+ "name"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__job_name);
+ "name"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__job_name);
+
+ "version"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__job_version);
+ "version"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__job_version);
+
+ "runtime"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__job_runtime);
+ "runtime"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__job_runtime);
+
+ ">" {
+  if (!AX_dax__job_id) FAIL("Required attribute `id' not set for `job' element.");
+  if (!AX_dax__job_name) FAIL("Required attribute `name' not set for `job' element.");
+  if (!AX_dax__job_runtime) FAIL("Required attribute `runtime' not set for `job' element.");
+  LEAVE; STag_dax__job();dax__pcdata_ix = 0; ENTER(S_dax__job);
+ }
+ "/>" {
+  if (!AX_dax__job_id) FAIL("Required attribute `id' not set for `job' element.");
+  if (!AX_dax__job_name) FAIL("Required attribute `name' not set for `job' element.");
+  if (!AX_dax__job_runtime) FAIL("Required attribute `runtime' not set for `job' element.");
+  LEAVE; STag_dax__job(); dax__pcdata_ix = 0; ETag_dax__job(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__adag_2: case S_dax__adag_3: case S_dax__adag: SET(S_dax__adag_3); break;
+   case ROOT_dax__job: SET(EPILOG); break;
+  }
+ }
+ .       FAIL("Unexpected character `%c' in attribute list of job element.", yytext[0]);
+ {Name} FAIL("Bad attribute `%s' in `job' element start tag.",yytext);
+ <<EOF>> FAIL("EOF in attribute list of `job' element.");
+}
+
+<S_dax__job,E_dax__job,S_dax__job_2>{
+ "</job"{s}">" {
+  LEAVE;
+  ETag_dax__job();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__adag_2: case S_dax__adag_3: case S_dax__adag: SET(S_dax__adag_3); break;
+   case ROOT_dax__job: SET(EPILOG); break;
+  }
+ }
+ "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</job>' expected.",yytext);
+ .       FAIL("Unexpected character `%c': `</job>' expected.",yytext[0]);
+ <<EOF>> FAIL("Premature EOF: `</job>' expected.");
+}
+
+<S_dax__child_1,S_dax__adag_3,S_dax__child_2,S_dax__adag_5,E_dax__job,E_dax__adag,S_dax__child,S_dax__adag_4,S_dax__adag,S_dax__adag_2,E_dax__child,S_dax__adag_1>"<uses"{s} FAIL("Starting tag <uses> is not allowed here.");
+
+<ROOT_dax__uses,S_dax__job,S_dax__job_2,S_dax__job_1>"<uses"{s} {
+  AX_dax__uses_file = 0;
+  AX_dax__uses_link = AU_dax__uses_link;
+  AX_dax__uses_register = A_dax__uses_register_true;
+  AX_dax__uses_transfer = A_dax__uses_transfer_true;
+  AX_dax__uses_optional = A_dax__uses_optional_false;
+  AX_dax__uses_type = 161;
+  AX_dax__uses_size = 0;
+  ENTER(AL_dax__uses); pushbuffer(0);
+  }
+
+<AL_dax__uses>{
+ "file"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__uses_file);
+ "file"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__uses_file);
+
+ "link"{Eq}"'input'" |
+ "link"{Eq}"\"input\"" A_dax__uses_link = A_dax__uses_link_input;
+ "link"{Eq}"'output'" |
+ "link"{Eq}"\"output\"" A_dax__uses_link = A_dax__uses_link_output;
+
+ "register"{Eq}"'false'" |
+ "register"{Eq}"\"false\"" A_dax__uses_register = A_dax__uses_register_false;
+ "register"{Eq}"'true'" |
+ "register"{Eq}"\"true\"" A_dax__uses_register = A_dax__uses_register_true;
+
+ "transfer"{Eq}"'false'" |
+ "transfer"{Eq}"\"false\"" A_dax__uses_transfer = A_dax__uses_transfer_false;
+ "transfer"{Eq}"'true'" |
+ "transfer"{Eq}"\"true\"" A_dax__uses_transfer = A_dax__uses_transfer_true;
+
+ "optional"{Eq}"'false'" |
+ "optional"{Eq}"\"false\"" A_dax__uses_optional = A_dax__uses_optional_false;
+ "optional"{Eq}"'true'" |
+ "optional"{Eq}"\"true\"" A_dax__uses_optional = A_dax__uses_optional_true;
+
+ "type"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__uses_type);
+ "type"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__uses_type);
+
+ "size"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__uses_size);
+ "size"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__uses_size);
+
+ ">" {
+  if (!AX_dax__uses_file) FAIL("Required attribute `file' not set for `uses' element.");
+  if (!AX_dax__uses_size) FAIL("Required attribute `size' not set for `uses' element.");
+  LEAVE; STag_dax__uses();dax__pcdata_ix = 0; ENTER(E_dax__uses);
+ }
+ "/>" {
+  if (!AX_dax__uses_file) FAIL("Required attribute `file' not set for `uses' element.");
+  if (!AX_dax__uses_size) FAIL("Required attribute `size' not set for `uses' element.");
+  LEAVE; STag_dax__uses(); dax__pcdata_ix = 0; ETag_dax__uses(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__job: case S_dax__job_2: case S_dax__job_1: SET(S_dax__job_2); break;
+   case ROOT_dax__uses: SET(EPILOG); break;
+  }
+ }
+ .       FAIL("Unexpected character `%c' in attribute list of uses element.", yytext[0]);
+ {Name} FAIL("Bad attribute `%s' in `uses' element start tag.",yytext);
+ <<EOF>> FAIL("EOF in attribute list of `uses' element.");
+}
+
+<E_dax__uses>{
+ "</uses"{s}">" {
+  LEAVE;
+  ETag_dax__uses();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__job: case S_dax__job_2: case S_dax__job_1: SET(S_dax__job_2); break;
+   case ROOT_dax__uses: SET(EPILOG); break;
+  }
+ }
+ "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</uses>' expected.",yytext);
+ .       FAIL("Unexpected character `%c': `</uses>' expected.",yytext[0]);
+ <<EOF>> FAIL("Premature EOF: `</uses>' expected.");
+}
+
+<S_dax__child_1,S_dax__job,S_dax__child_2,S_dax__job_1,E_dax__job,E_dax__adag,S_dax__child,S_dax__job_2,S_dax__adag_2,E_dax__child>"<child"{s} FAIL("Starting tag <child> is not allowed here.");
+
+<ROOT_dax__child,S_dax__adag_1,S_dax__adag_4,S_dax__adag_5,S_dax__adag_3,S_dax__adag>"<child"{s} {
+  AX_dax__child_ref = 0;
+  ENTER(AL_dax__child); pushbuffer(0);
+  }
+
+<AL_dax__child>{
+ "ref"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__child_ref);
+ "ref"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__child_ref);
+
+ ">" {
+  if (!AX_dax__child_ref) FAIL("Required attribute `ref' not set for `child' element.");
+  LEAVE; STag_dax__child();dax__pcdata_ix = 0; ENTER(S_dax__child);
+ }
+ "/>" {
+  if (!AX_dax__child_ref) FAIL("Required attribute `ref' not set for `child' element.");
+  LEAVE; STag_dax__child(); dax__pcdata_ix = 0; ETag_dax__child(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__adag_1: case S_dax__adag_4: case S_dax__adag_5: case S_dax__adag_3: case S_dax__adag: SET(S_dax__adag_5); break;
+   case ROOT_dax__child: SET(EPILOG); break;
+  }
+ }
+ .       FAIL("Unexpected character `%c' in attribute list of child element.", yytext[0]);
+ {Name} FAIL("Bad attribute `%s' in `child' element start tag.",yytext);
+ <<EOF>> FAIL("EOF in attribute list of `child' element.");
+}
+
+<S_dax__child_2,E_dax__child,S_dax__child>{
+ "</child"{s}">" {
+  LEAVE;
+  ETag_dax__child();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case S_dax__adag_1: case S_dax__adag_4: case S_dax__adag_5: case S_dax__adag_3: case S_dax__adag: SET(S_dax__adag_5); break;
+   case ROOT_dax__child: SET(EPILOG); break;
+  }
+ }
+ "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</child>' expected.",yytext);
+ .       FAIL("Unexpected character `%c': `</child>' expected.",yytext[0]);
+ <<EOF>> FAIL("Premature EOF: `</child>' expected.");
+}
+
+<S_dax__job,S_dax__adag_3,S_dax__adag_5,S_dax__job_1,E_dax__job,E_dax__adag,S_dax__adag_4,S_dax__job_2,S_dax__adag,S_dax__adag_2,E_dax__child,S_dax__adag_1>"<parent"{s} FAIL("Starting tag <parent> is not allowed here.");
+
+<ROOT_dax__parent,S_dax__child_2,S_dax__child,S_dax__child_1>"<parent"{s} {
+  AX_dax__parent_ref = 0;
+  ENTER(AL_dax__parent); pushbuffer(0);
+  }
+
+<AL_dax__parent>{
+ "ref"{Eq}\' ENTER(VALUE1); BUFFERSET(AX_dax__parent_ref);
+ "ref"{Eq}\" ENTER(VALUE2); BUFFERSET(AX_dax__parent_ref);
+
+ ">" {
+  if (!AX_dax__parent_ref) FAIL("Required attribute `ref' not set for `parent' element.");
+  LEAVE; STag_dax__parent();dax__pcdata_ix = 0; ENTER(E_dax__parent);
+ }
+ "/>" {
+  if (!AX_dax__parent_ref) FAIL("Required attribute `ref' not set for `parent' element.");
+  LEAVE; STag_dax__parent(); dax__pcdata_ix = 0; ETag_dax__parent(); popbuffer(); /* attribute */
+  switch (YY_START) {
+   case ROOT_dax__parent: SET(EPILOG); break;
+   case S_dax__child_2: case S_dax__child: case S_dax__child_1: SET(S_dax__child_2); break;
+  }
+ }
+ .       FAIL("Unexpected character `%c' in attribute list of parent element.", yytext[0]);
+ {Name} FAIL("Bad attribute `%s' in `parent' element start tag.",yytext);
+ <<EOF>> FAIL("EOF in attribute list of `parent' element.");
+}
+
+<E_dax__parent>{
+ "</parent"{s}">" {
+  LEAVE;
+  ETag_dax__parent();
+  popbuffer(); /* attribute */
+  switch (YY_START) {
+   case ROOT_dax__parent: SET(EPILOG); break;
+   case S_dax__child_2: case S_dax__child: case S_dax__child_1: SET(S_dax__child_2); break;
+  }
+ }
+ "</"{Name}{s}">" FAIL("Unexpected end-tag `%s': `</parent>' expected.",yytext);
+ .       FAIL("Unexpected character `%c': `</parent>' expected.",yytext[0]);
+ <<EOF>> FAIL("Premature EOF: `</parent>' expected.");
+}
+
+ /* EPILOG: after the root element. */
+
+<EPILOG>{
+ . {SET(PROLOG); yyless(0); CLEANUP; return -1;}
+ <<EOF>>       SUCCEED;
+}
+
+ /* CHARACTER DATA. */
+
+<IMPOSSIBLE,VALUE1,VALUE2>{
+ /* Non-defined standard entities... */
+"&amp;"  BUFFERPUTC('&');
+"&lt;"   BUFFERPUTC('<');
+"&gt;"   BUFFERPUTC('>');
+"&apos;" BUFFERPUTC('\'');
+"&quot;" BUFFERPUTC('"');
+
+ /* Character entities. */
+ "&#"[[:digit:]]+";"   BUFFERPUTC((unsigned char)atoi(yytext+2));
+ "&#x"[[:xdigit:]]+";" BUFFERPUTC((unsigned char)strtol(yytext+3,NULL,16));
+}
+
+<IMPOSSIBLE,VALUE1,VALUE2,CDATA>{
+ "\n"          |
+ "\r"          |
+ "\r\n"                |
+ "\n\r"                BUFFERPUTC('\n');
+}
+
+<IMPOSSIBLE>{
+ "<![CDATA["   ENTER(CDATA);
+ "]""]>"               FAIL("Unexpected `]""]>' in character data.");
+}
+
+<VALUE1>{
+ \'            BUFFERDONE; LEAVE;
+ <<EOF>>       FAIL("EOF in literal (\"'\" expected).");
+}
+
+<VALUE2>{
+ \"            BUFFERDONE; LEAVE;
+ <<EOF>>       FAIL("EOF in literal (`\"' expected).");
+}
+
+<IMPOSSIBLE,VALUE1,VALUE2>{
+ [^<&]         BUFFERPUTC(yytext[0]);
+ [<&]          FAIL("Spurious `%c' in character data.",yytext[0]);
+}
+
+<CDATA>{
+ "]""]>"               LEAVE;
+ /* "]""]"             BUFFERPUTC(yytext[0]); BUFFERPUTC(yytext[1]); */
+ .             BUFFERPUTC(yytext[0]);
+ <<EOF>>       FAIL("EOF in CDATA section.");
+}
+
+ /* Impossible rules to avoid warnings from flex(1). */
+ /* Ideally, this should be replaced by code in flexml.pl that
+    generates just the states not covered by other rules. */
+<*>{
+ .|[\n] FAIL("Syntax error on character `%c'.", yytext[0]);
+}
+
+%%
+
+/* Element context stack lookup. */
+int dax__element_context(int i)
+{
+  return (0<i && i<yy_start_stack_depth
+         ? yy_start_stack[yy_start_stack_ptr - i]
+         : 0);
+}
+
+#ifdef FLEX_DEBUG
+void print_yy_stack(char* fmt, ...)
+{
+  int i = 0; va_list ap; va_start(ap, fmt);
+  vfprintf(stderr, fmt, ap);
+  if (dax__statenames) {
+      for (i=1; i<yy_start_stack_ptr; i++) {
+          fprintf(stderr, "%s/", dax__statenames[yy_start_stack[i] ]);
+      }
+      fprintf(stderr,"%s\n", dax__statenames[YY_START]);
+  }
+  va_end(ap);
+}
+
+void print_dax__bufferstack()
+{
+    int i;
+    fputs("Buffer: ", stderr);
+    for (i = 0; i < blimit; i++) {
+       if ( dax__bufferstack[i] == '\377' ) break;
+         putc(dax__bufferstack[i], stderr);
+    }
+    putc('\n', stderr);
+}
+
+static void debug_enter(int state, const char* statename) {
+  yy_push_state(state);
+  if (yy_flex_debug) {
+       print_yy_stack("--ENTER(%s) : ",statename);
+       print_dax__bufferstack();
+  }
+}
+
+static void debug_leave(void) {
+    if (yy_flex_debug) {
+        print_yy_stack("--LEAVE : ");
+       print_dax__bufferstack();
+    }
+  yy_pop_state();
+}
+
+static void debug_set(int state, const char* statename) {
+  BEGIN(state);
+  if (yy_flex_debug) print_yy_stack("--SET(%s) : ",statename);
+}
+#endif
+
+
+static void cleanup(void)
+{
+    if (dax__statenames) {
+        free(dax__statenames);
+       dax__statenames = NULL;
+    }
+    free(dax__bufferstack);
+    dax__bufferstack = NULL;
+
+    free(indexstack);
+    indexstack = NULL;
+}
+
+
+static int fail(const char* fmt, ...)
+{
+    int chars_left, used;
+    va_list ap; va_start(ap, fmt);
+#ifdef FLEXML_yylineno
+    used = sprintf(flexml_err_msg,
+                  "Invalid XML (XML input line %d, state %d): ",
+                  yylineno, YY_START);
+#else
+    used = sprintf(flexml_err_msg,
+                  "Invalid XML (state %d): ",
+                  YY_START);
+#endif
+    chars_left = flexml_max_err_msg_size - used - 1;
+    vsnprintf(flexml_err_msg + used, chars_left, fmt, ap);
+    va_end(ap);
+
+#ifndef FLEXML_quiet_parser
+    /* print directly to sdterr */
+    fprintf(stderr, "%s\n", flexml_err_msg);
+    flexml_err_msg[0] = '\0';
+#endif
+
+    cleanup();
+
+    return 1;
+}
diff --git a/src/simdag/sd_daxloader.c b/src/simdag/sd_daxloader.c
new file mode 100644 (file)
index 0000000..2e580ee
--- /dev/null
@@ -0,0 +1,63 @@
+/* Copyright (c) 2009 Da SimGrid Team.  All rights reserved.                */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#include "private.h"
+#include "simdag/simdag.h"
+#include "xbt/misc.h"
+#include "xbt/log.h"
+
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sd_daxparse, sd,"Parsing DAX files");
+
+#undef CLEANUP
+#include "dax_dtd.h"
+#include "dax_dtd.c"
+
+static YY_BUFFER_STATE input_buffer;
+
+static xbt_dynar_t result;
+
+static void SD_task_free(void*t){
+  SD_task_destroy(t);
+}
+
+xbt_dynar_t SD_daxload(const char*filename) {
+  FILE* in_file = fopen(filename,"r");
+  xbt_assert1(in_file, "Unable to open \"%s\"\n", filename);
+  input_buffer =
+    dax__create_buffer(in_file, 10);
+  dax__switch_to_buffer(input_buffer);
+  dax_lineno = 1;
+
+  result = xbt_dynar_new(sizeof(SD_task_t),SD_task_free);
+  xbt_assert1(dax_lex(),"Parse error in %s",filename);
+  dax__delete_buffer(input_buffer);
+  fclose(in_file);
+  return result;
+}
+
+void STag_dax__adag(void) {
+
+}
+void STag_dax__job(void) {
+
+}
+void STag_dax__child(void) {
+
+}
+void STag_dax__parent(void) {
+
+}
+void ETag_dax__adag(void) {
+
+}
+void ETag_dax__job(void) {
+
+}
+void ETag_dax__child(void) {
+
+}
+void ETag_dax__parent(void) {
+
+}
index 8dea332..7a72041 100644 (file)
@@ -204,7 +204,7 @@ double SD_task_get_remaining_amount(SD_task_t task)
 }
 
 /* temporary function for debbuging */
-static void __SD_print_dependencies(SD_task_t task)
+void SD_task_dump(SD_task_t task)
 {
   xbt_dynar_t dynar;
   int length;
index ad5a67f..b51fb15 100644 (file)
@@ -1,5 +1,3 @@
-/*     $Id$     */
-
 /* a generic graph library.                                                 */
 
 /* Copyright (c) 2006 Darina Dimitrova, Arnaud Legrand.                     */