<?xml version="1.0" encoding="UTF-8"?>
<net name="test" type="iopt-flow">
  <place id="p1" x="495" y="200" init_marking="0">
    <name off_x="-10" off_y="-10" text="p1"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </place>
  <place id="p2" x="490" y="335" init_marking="0">
    <name off_x="-10" off_y="-10" text="p2"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </place>
  <transition id="t3" x="425" y="265" priority="0" microstep="0">
    <name off_x="-10" off_y="-10" text="t3"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </transition>
  <transition id="t4" x="550" y="270" priority="0" microstep="0">
    <name off_x="-10" off_y="-10" text="t4"/>
    <comment off_x="-10" off_y="20" text="-"/>
  </transition>
  <arc id="a5" type="normal" source="t3" target="p1"/>
  <arc id="a6" type="normal" source="p1" target="t4"/>
  <arc id="a7" type="normal" source="t4" target="p2"/>
  <arc id="a8" type="normal" source="p2" target="t3"/>
  <signal id="s9" x="105" y="260" mode="input" type="range" min="0" max="100" frac="0" value="0" dynamic="none" microstep="0" nano-step="0" io_pin="11"/>
  <signal id="s10" x="105" y="415" mode="input" type="range" min="0" max="100" frac="0" value="0" dynamic="none" microstep="0" nano-step="0" io_pin="12"/>
  <operation id="o11" x="285" y="265" rot="0" shape="arrow" size="24">
    <name off_x="-10" off_y="5" text="o11"/>
    <input off_x="-24" off_y="-8" name="s9" id="o11.s9" type="range" min="0" max="100" dynamic="all" frac="0"/>
    <input off_x="-24" off_y="8" name="s10" id="o11.s10" type="range" min="0" max="100" dynamic="all" frac="0"/>
    <output off_x="24" off_y="0" name="out" id="o11.out" type="boolean" min="0" max="1" dynamic="type" frac="0" microstep="0" nano-step="1">
      <expression>
        <operand type="signal" idRef="s9"/>
        <operator type="more"/>
        <operand type="signal" idRef="s10"/>
        <text>s9 &gt; s10</text>
      </expression>
    </output>
  </operation>
  <arc id="a12" type="read" source="s9" target="o11.s9"/>
  <arc id="a13" type="read" source="s10" target="o11.s10"/>
  <arc id="a14" type="read" source="o11.out" target="t3"/>
  <operation id="o15" x="285" y="340" rot="0" shape="arrow" size="24">
    <name off_x="-10" off_y="5" text="o11"/>
    <input off_x="-24" off_y="-8" name="s9" id="o15.s9" type="range" min="0" max="100" dynamic="type" frac="0"/>
    <input off_x="-24" off_y="8" name="s10" id="o15.s10" type="range" min="0" max="100" dynamic="all" frac="0"/>
    <output off_x="24" off_y="0" name="out" id="o15.out" type="boolean" min="0" max="1" dynamic="type" frac="0" microstep="0" nano-step="1">
      <expression>
        <operand type="signal" idRef="s9"/>
        <operator type="less"/>
        <operand type="signal" idRef="s10"/>
        <text>s9 &lt; s10</text>
      </expression>
    </output>
  </operation>
  <arc id="a16" type="read" source="s9" target="o15.s9"/>
  <arc id="a17" type="read" source="s10" target="o15.s10"/>
  <arc id="a18" type="read" source="o15.out" target="t4"/>
  <place id="p19" x="495" y="50" init_marking="1">
    <name off_x="-10" off_y="-10" text="xxx p19"/>
    <comment off_x="0" off_y="20" text="-"/>
  </place>
  <transition id="t20" x="495" y="115" priority="0" microstep="0">
    <name off_x="-10" off_y="-10" text="Tr20"/>
    <comment off_x="0" off_y="20" text="-"/>
  </transition>
  <arc id="a22" type="normal" source="t20" target="p1"/>
  <arc id="a23" type="normal" source="p19" target="t20"/>
  <signal id="s25" x="840" y="410" mode="output" type="range" min="0" max="100" dynamic="type" frac="0" microstep="0" nano-step="1" value="5" io_pin="5"/>
  <operation id="o26" x="285" y="410" rot="0" shape="arrow" size="24">
    <name off_x="-10" off_y="5" text="o26"/>
    <input off_x="-24" off_y="-8" name="s9" id="o26.s9" type="range" min="0" max="100" dynamic="all" frac="0"/>
    <input off_x="-24" off_y="8" name="s10" id="o26.s10" type="range" min="0" max="100" dynamic="all" frac="0"/>
    <output off_x="24" off_y="0" name="out" id="o26.out" type="range" min="0" max="100" dynamic="type" frac="0" microstep="0" nano-step="1">
      <expression>
        <operand type="signal" idRef="s9"/>
        <operator type="when"/>
        <operand type="signal" idRef="s9"/>
        <operator type="more"/>
        <operand type="signal" idRef="s10"/>
        <text>s9 WHEN (s9 &gt; s10)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="s10"/>
        <text>s10 OTHERWISE</text>
      </expression>
    </output>
  </operation>
  <arc id="a27" type="read" source="s9" target="o26.s9"/>
  <arc id="a28" type="read" source="s10" target="o26.s10"/>
  <arc id="a29" type="read" source="o26.out" target="s25"/>
  <signal id="s30" x="835" y="200" mode="output" type="boolean" min="0" max="1" dynamic="none" microstep="0" nano-step="0" frac="0" value="0" io_pin="2"/>
  <event id="e32" x="835" y="270" mode="output" microstep="1" nano-step="0" io_pin="3"/>
  <arc id="a33" type="read" source="t4" target="e32"/>
  <signal id="s4" x="840" y="340" mode="output" type="range" min="0" max="1000" dynamic="type" frac="0" microstep="1" nano-step="1" value="4" io_pin="4"/>
  <operation id="o10" x="700" y="340" rot="0" shape="arrow" size="32">
    <name off_x="-10" off_y="5" text="o10"/>
    <input off_x="-32" off_y="-16" name="t4" id="o10.t4" type="range" min="-32768" max="32767" dynamic="all"/>
    <input off_x="-32" off_y="0" name="p2" id="o10.p2" type="range" min="-32768" max="32767" dynamic="all"/>
    <input off_x="-32" off_y="16" name="o10" id="o10.o10" type="range" min="0" max="1000" dynamic="all" frac="0"/>
    <output off_x="32" off_y="0" name="out" id="o10.out" type="range" min="0" max="1000" frac="0" dynamic="none" microstep="1" nano-step="1">
      <expression>
        <operand type="literal" value="0"/>
        <operator type="when"/>
        <operand type="signal" idRef="t4"/>
        <text>0 WHEN (t4)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="o10" delay="1"/>
        <operator type="add"/>
        <operand type="literal" value="1"/>
        <operator type="when"/>
        <operand type="signal" idRef="p2"/>
        <text>o10[-1] + 1 WHEN (p2)</text>
      </expression>
      <expression>
        <operand type="signal" idRef="o10" delay="1"/>
        <text>o10[-1] OTHERWISE</text>
      </expression>
    </output>
  </operation>
  <arc id="a11" type="read" source="t4" target="o10.t4"/>
  <arc id="a15" type="read" source="p2" target="o10.p2"/>
  <arc id="a19" type="read" source="o10.out" target="s4"/>
  <arc id="a20" type="read" source="o10.out" target="o10.o10" view="symbolic"/>
  <operation id="o1" x="665" y="200" rot="0" shape="arrow" size="16">
    <name off_x="-10" off_y="-5" text="o1"/>
    <input off_x="-16" off_y="0" name="p1" id="o1.p1" type="range" min="-32768" max="32767" dynamic="all"/>
    <output off_x="16" off_y="0" name="out" id="o1.out" type="boolean" min="0" max="1" dynamic="none" frac="0">
      <expression>
        <operand type="signal" idRef="p1" delay="5"/>
        <text>p1[-5]</text>
      </expression>
    </output>
  </operation>
  <arc id="a2" type="read" source="p1" target="o1.p1"/>
  <arc id="a3" type="read" source="o1.out" target="s30"/>
  <signal id="Start" x="105" y="115" mode="input" type="boolean" min="0" max="1" frac="0" value="0" dynamic="none" io_pin="10"/>
  <arc id="a4" type="read" source="Start" target="t20"/>
  <operation id="o2" x="700" y="90" constant="123" rot="0" shape="rect" size="20" locked="true">
    <name off_x="-15" off_y="-5" text="123"/>
    <output off_x="20" off_y="0" name="K" id="o2.K" type="range" min="123" max="123" dynamic="none">
      <expression>
        <text>123</text>
        <operand type="literal" value="123"/>
      </expression>
    </output>
  </operation>
  <signal id="s3" x="790" y="90" mode="output" type="range" min="123" max="123" dynamic="type" frac="0" value="123" io_pin="1"/>
  <arc id="a9" type="read" source="o2.K" target="s3"/>
  <operation id="o14" x="400" y="475" rot="0" shape="arrow" size="24">
    <name off_x="-10" off_y="5" text="o14"/>
    <input off_x="-24" off_y="-8" name="x" id="o14.x" type="range" min="0" max="10" frac="0"/>
    <input off_x="-24" off_y="8" name="y" id="o14.y" type="range" min="0" max="10" frac="0"/>
    <output off_x="24" off_y="0" name="out" id="o14.out" type="range" min="0" max="100" dynamic="none" frac="0">
      <expression>
        <operand type="signal" idRef="table[x,y]"/>
        <text>table[x,y]</text>
      </expression>
    </output>
    <table rows="10" cols="10" idx1="x" idx2="y" min="1" max="100">
      <item r="1" c="1" value="1"/>
      <item r="1" c="2" value="2"/>
      <item r="1" c="3" value="3"/>
      <item r="1" c="4" value="4"/>
      <item r="1" c="5" value="5"/>
      <item r="1" c="6" value="6"/>
      <item r="1" c="7" value="7"/>
      <item r="1" c="8" value="8"/>
      <item r="1" c="9" value="9"/>
      <item r="1" c="10" value="10"/>
      <item r="2" c="1" value="2"/>
      <item r="2" c="2" value="4"/>
      <item r="2" c="3" value="6"/>
      <item r="2" c="4" value="8"/>
      <item r="2" c="5" value="10"/>
      <item r="2" c="6" value="12"/>
      <item r="2" c="7" value="14"/>
      <item r="2" c="8" value="16"/>
      <item r="2" c="9" value="18"/>
      <item r="2" c="10" value="20"/>
      <item r="3" c="1" value="3"/>
      <item r="3" c="2" value="6"/>
      <item r="3" c="3" value="9"/>
      <item r="3" c="4" value="12"/>
      <item r="3" c="5" value="15"/>
      <item r="3" c="6" value="18"/>
      <item r="3" c="7" value="21"/>
      <item r="3" c="8" value="24"/>
      <item r="3" c="9" value="27"/>
      <item r="3" c="10" value="30"/>
      <item r="4" c="1" value="4"/>
      <item r="4" c="2" value="8"/>
      <item r="4" c="3" value="12"/>
      <item r="4" c="4" value="16"/>
      <item r="4" c="5" value="20"/>
      <item r="4" c="6" value="24"/>
      <item r="4" c="7" value="28"/>
      <item r="4" c="8" value="32"/>
      <item r="4" c="9" value="36"/>
      <item r="4" c="10" value="40"/>
      <item r="5" c="1" value="5"/>
      <item r="5" c="2" value="10"/>
      <item r="5" c="3" value="15"/>
      <item r="5" c="4" value="20"/>
      <item r="5" c="5" value="25"/>
      <item r="5" c="6" value="30"/>
      <item r="5" c="7" value="35"/>
      <item r="5" c="8" value="40"/>
      <item r="5" c="9" value="45"/>
      <item r="5" c="10" value="50"/>
      <item r="6" c="1" value="6"/>
      <item r="6" c="2" value="12"/>
      <item r="6" c="3" value="18"/>
      <item r="6" c="4" value="24"/>
      <item r="6" c="5" value="30"/>
      <item r="6" c="6" value="36"/>
      <item r="6" c="7" value="42"/>
      <item r="6" c="8" value="48"/>
      <item r="6" c="9" value="54"/>
      <item r="6" c="10" value="60"/>
      <item r="7" c="1" value="7"/>
      <item r="7" c="2" value="14"/>
      <item r="7" c="3" value="21"/>
      <item r="7" c="4" value="28"/>
      <item r="7" c="5" value="35"/>
      <item r="7" c="6" value="42"/>
      <item r="7" c="7" value="49"/>
      <item r="7" c="8" value="56"/>
      <item r="7" c="9" value="63"/>
      <item r="7" c="10" value="70"/>
      <item r="8" c="1" value="8"/>
      <item r="8" c="2" value="16"/>
      <item r="8" c="3" value="24"/>
      <item r="8" c="4" value="32"/>
      <item r="8" c="5" value="40"/>
      <item r="8" c="6" value="48"/>
      <item r="8" c="7" value="56"/>
      <item r="8" c="8" value="64"/>
      <item r="8" c="9" value="72"/>
      <item r="8" c="10" value="80"/>
      <item r="9" c="1" value="9"/>
      <item r="9" c="2" value="18"/>
      <item r="9" c="3" value="27"/>
      <item r="9" c="4" value="36"/>
      <item r="9" c="5" value="45"/>
      <item r="9" c="6" value="54"/>
      <item r="9" c="7" value="63"/>
      <item r="9" c="8" value="72"/>
      <item r="9" c="9" value="81"/>
      <item r="9" c="10" value="90"/>
      <item r="10" c="1" value="10"/>
      <item r="10" c="2" value="20"/>
      <item r="10" c="3" value="30"/>
      <item r="10" c="4" value="40"/>
      <item r="10" c="5" value="50"/>
      <item r="10" c="6" value="60"/>
      <item r="10" c="7" value="70"/>
      <item r="10" c="8" value="80"/>
      <item r="10" c="9" value="90"/>
      <item r="10" c="10" value="100"/>
      <expr>x*y</expr>
    </table>
  </operation>
  <arc id="a21" type="read" source="s9" target="o14.x"/>
  <arc id="a24" type="read" source="s10" target="o14.y"/>
  <signal id="Tbl" x="495" y="475" mode="output" type="range" min="0" max="100" dynamic="type" frac="0" value="6" io_pin="6"/>
  <arc id="a30" type="read" source="o14.out" target="Tbl"/>
</net>
