<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="procedures_defnoreturn" x="679" y="-10">
    <mutation></mutation>
    <field name="NAME">test count by</field>
    <statement name="STACK">
      <block type="variables_set" inline="false">
        <field name="VAR">log</field>
        <value name="VALUE">
          <block type="text">
            <field name="TEXT"></field>
          </block>
        </value>
        <next>
          <block type="controls_for" inline="true">
            <field name="VAR">x</field>
            <value name="FROM">
              <block type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
            <value name="TO">
              <block type="math_number">
                <field name="NUM">8</field>
              </block>
            </value>
            <value name="BY">
              <block type="math_number">
                <field name="NUM">2</field>
              </block>
            </value>
            <statement name="DO">
              <block type="text_append" inline="false">
                <field name="VAR">log</field>
                <value name="TEXT">
                  <block type="variables_get">
                    <field name="VAR">x</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="unittest_assertequals" inline="false">
                <field name="MESSAGE">count up ints</field>
                <value name="ACTUAL">
                  <block type="variables_get">
                    <field name="VAR">log</field>
                  </block>
                </value>
                <value name="EXPECTED">
                  <block type="text">
                    <field name="TEXT">1357</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" inline="false">
                    <field name="VAR">log</field>
                    <value name="VALUE">
                      <block type="text">
                        <field name="TEXT"></field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_for" inline="true">
                        <field name="VAR">x</field>
                        <value name="FROM">
                          <block type="math_number">
                            <field name="NUM">8</field>
                          </block>
                        </value>
                        <value name="TO">
                          <block type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <value name="BY">
                          <block type="math_number">
                            <field name="NUM">2</field>
                          </block>
                        </value>
                        <statement name="DO">
                          <block type="text_append" inline="false">
                            <field name="VAR">log</field>
                            <value name="TEXT">
                              <block type="variables_get">
                                <field name="VAR">x</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="unittest_assertequals" inline="false">
                            <field name="MESSAGE">count down ints</field>
                            <value name="ACTUAL">
                              <block type="variables_get">
                                <field name="VAR">log</field>
                              </block>
                            </value>
                            <value name="EXPECTED">
                              <block type="text">
                                <field name="TEXT">8642</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" inline="false">
                                <field name="VAR">loglist</field>
                                <value name="VALUE">
                                  <block type="lists_create_empty"></block>
                                </value>
                                <next>
                                  <block type="controls_for" inline="true">
                                    <field name="VAR">x</field>
                                    <value name="FROM">
                                      <block type="math_number">
                                        <field name="NUM">1</field>
                                      </block>
                                    </value>
                                    <value name="TO">
                                      <block type="math_number">
                                        <field name="NUM">8</field>
                                      </block>
                                    </value>
                                    <value name="BY">
                                      <block type="math_number">
                                        <field name="NUM">1.5</field>
                                      </block>
                                    </value>
                                    <statement name="DO">
                                      <block type="lists_setIndex" inline="true">
                                        <mutation at="false"></mutation>
                                        <field name="MODE">INSERT</field>
                                        <field name="WHERE">LAST</field>
                                        <value name="LIST">
                                          <block type="variables_get">
                                            <field name="VAR">loglist</field>
                                          </block>
                                        </value>
                                        <value name="TO">
                                          <block type="variables_get">
                                            <field name="VAR">x</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="unittest_assertequals" inline="false">
                                        <field name="MESSAGE">count with floats</field>
                                        <value name="ACTUAL">
                                          <block type="variables_get">
                                            <field name="VAR">loglist</field>
                                          </block>
                                        </value>
                                        <value name="EXPECTED">
                                          <block type="lists_create_with" inline="false">
                                            <mutation items="5"></mutation>
                                            <value name="ADD0">
                                              <block type="math_number">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_number">
                                                <field name="NUM">2.5</field>
                                              </block>
                                            </value>
                                            <value name="ADD2">
                                              <block type="math_number">
                                                <field name="NUM">4</field>
                                              </block>
                                            </value>
                                            <value name="ADD3">
                                              <block type="math_number">
                                                <field name="NUM">5.5</field>
                                              </block>
                                            </value>
                                            <value name="ADD4">
                                              <block type="math_number">
                                                <field name="NUM">7</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" inline="false">
                                            <field name="VAR">loglist</field>
                                            <value name="VALUE">
                                              <block type="lists_create_empty"></block>
                                            </value>
                                            <next>
                                              <block type="controls_for" inline="true">
                                                <field name="VAR">x</field>
                                                <value name="FROM">
                                                  <block type="math_arithmetic" inline="true">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="TO">
                                                  <block type="math_arithmetic" inline="true">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">8</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="BY">
                                                  <block type="math_arithmetic" inline="true">
                                                    <field name="OP">MINUS</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">2</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO">
                                                  <block type="lists_setIndex" inline="true">
                                                    <mutation at="false"></mutation>
                                                    <field name="MODE">INSERT</field>
                                                    <field name="WHERE">LAST</field>
                                                    <value name="LIST">
                                                      <block type="variables_get">
                                                        <field name="VAR">loglist</field>
                                                      </block>
                                                    </value>
                                                    <value name="TO">
                                                      <block type="variables_get">
                                                        <field name="VAR">x</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="unittest_assertequals" inline="false">
                                                    <field name="MESSAGE">count up non-trivial ints</field>
                                                    <value name="ACTUAL">
                                                      <block type="variables_get">
                                                        <field name="VAR">loglist</field>
                                                      </block>
                                                    </value>
                                                    <value name="EXPECTED">
                                                      <block type="lists_create_with" inline="false">
                                                        <mutation items="8"></mutation>
                                                        <value name="ADD0">
                                                          <block type="math_number">
                                                            <field name="NUM">1</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="math_number">
                                                            <field name="NUM">2</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD2">
                                                          <block type="math_number">
                                                            <field name="NUM">3</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD3">
                                                          <block type="math_number">
                                                            <field name="NUM">4</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD4">
                                                          <block type="math_number">
                                                            <field name="NUM">5</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD5">
                                                          <block type="math_number">
                                                            <field name="NUM">6</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD6">
                                                          <block type="math_number">
                                                            <field name="NUM">7</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD7">
                                                          <block type="math_number">
                                                            <field name="NUM">8</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="variables_set" inline="false">
                                                        <field name="VAR">loglist</field>
                                                        <value name="VALUE">
                                                          <block type="lists_create_empty"></block>
                                                        </value>
                                                        <next>
                                                          <block type="controls_for" inline="true">
                                                            <field name="VAR">x</field>
                                                            <value name="FROM">
                                                              <block type="math_arithmetic" inline="true">
                                                                <field name="OP">ADD</field>
                                                                <value name="A">
                                                                  <block type="math_number">
                                                                    <field name="NUM">8</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="TO">
                                                              <block type="math_arithmetic" inline="true">
                                                                <field name="OP">ADD</field>
                                                                <value name="A">
                                                                  <block type="math_number">
                                                                    <field name="NUM">1</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="math_number">
                                                                    <field name="NUM">0</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="BY">
                                                              <block type="math_number">
                                                                <field name="NUM">2</field>
                                                              </block>
                                                            </value>
                                                            <statement name="DO">
                                                              <block type="lists_setIndex" inline="true">
                                                                <mutation at="false"></mutation>
                                                                <field name="MODE">INSERT</field>
                                                                <field name="WHERE">LAST</field>
                                                                <value name="LIST">
                                                                  <block type="variables_get">
                                                                    <field name="VAR">loglist</field>
                                                                  </block>
                                                                </value>
                                                                <value name="TO">
                                                                  <block type="variables_get">
                                                                    <field name="VAR">x</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="unittest_assertequals" inline="false">
                                                                <field name="MESSAGE">count down non-trivial ints</field>
                                                                <value name="ACTUAL">
                                                                  <block type="variables_get">
                                                                    <field name="VAR">loglist</field>
                                                                  </block>
                                                                </value>
                                                                <value name="EXPECTED">
                                                                  <block type="lists_create_with" inline="false">
                                                                    <mutation items="4"></mutation>
                                                                    <value name="ADD0">
                                                                      <block type="math_number">
                                                                        <field name="NUM">8</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD1">
                                                                      <block type="math_number">
                                                                        <field name="NUM">6</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD2">
                                                                      <block type="math_number">
                                                                        <field name="NUM">4</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="ADD3">
                                                                      <block type="math_number">
                                                                        <field name="NUM">2</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <next>
                                                                  <block type="variables_set" inline="false">
                                                                    <field name="VAR">loglist</field>
                                                                    <value name="VALUE">
                                                                      <block type="lists_create_empty"></block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="controls_for" inline="true">
                                                                        <field name="VAR">x</field>
                                                                        <value name="FROM">
                                                                          <block type="math_arithmetic" inline="true">
                                                                            <field name="OP">ADD</field>
                                                                            <value name="A">
                                                                              <block type="math_number">
                                                                                <field name="NUM">5</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="math_number">
                                                                                <field name="NUM">0.5</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="TO">
                                                                          <block type="math_arithmetic" inline="true">
                                                                            <field name="OP">ADD</field>
                                                                            <value name="A">
                                                                              <block type="math_number">
                                                                                <field name="NUM">1</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="math_number">
                                                                                <field name="NUM">0</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="BY">
                                                                          <block type="math_arithmetic" inline="true">
                                                                            <field name="OP">ADD</field>
                                                                            <value name="A">
                                                                              <block type="math_number">
                                                                                <field name="NUM">1</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="math_number">
                                                                                <field name="NUM">0</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <statement name="DO">
                                                                          <block type="lists_setIndex" inline="true">
                                                                            <mutation at="false"></mutation>
                                                                            <field name="MODE">INSERT</field>
                                                                            <field name="WHERE">LAST</field>
                                                                            <value name="LIST">
                                                                              <block type="variables_get">
                                                                                <field name="VAR">loglist</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="TO">
                                                                              <block type="variables_get">
                                                                                <field name="VAR">x</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </statement>
                                                                        <next>
                                                                          <block type="unittest_assertequals" inline="false">
                                                                            <field name="MESSAGE">count with floats</field>
                                                                            <value name="ACTUAL">
                                                                              <block type="variables_get">
                                                                                <field name="VAR">loglist</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="EXPECTED">
                                                                              <block type="lists_create_with" inline="false">
                                                                                <mutation items="5"></mutation>
                                                                                <value name="ADD0">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">5.5</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD1">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">4.5</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD2">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">3.5</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD3">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">2.5</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD4">
                                                                                  <block type="math_number">
                                                                                    <field name="NUM">1.5</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="unittest_main" x="66" y="-2">
    <statement name="DO">
      <block type="procedures_callnoreturn">
        <mutation name="test count"></mutation>
        <next>
          <block type="procedures_callnoreturn">
            <mutation name="test count by"></mutation>
          </block>
        </next>
      </block>
    </statement>
  </block>
  <block type="procedures_defnoreturn" x="29" y="184">
    <mutation></mutation>
    <field name="NAME">test count</field>
    <statement name="STACK">
      <block type="variables_set" inline="false">
        <field name="VAR">log</field>
        <value name="VALUE">
          <block type="text">
            <field name="TEXT"></field>
          </block>
        </value>
        <next>
          <block type="controls_for" inline="true">
            <field name="VAR">x</field>
            <value name="FROM">
              <block type="math_number">
                <field name="NUM">1</field>
              </block>
            </value>
            <value name="TO">
              <block type="math_number">
                <field name="NUM">8</field>
              </block>
            </value>
            <statement name="DO">
              <block type="text_append" inline="false">
                <field name="VAR">log</field>
                <value name="TEXT">
                  <block type="variables_get">
                    <field name="VAR">x</field>
                  </block>
                </value>
              </block>
            </statement>
            <next>
              <block type="unittest_assertequals" inline="false">
                <field name="MESSAGE">count up</field>
                <value name="ACTUAL">
                  <block type="variables_get">
                    <field name="VAR">log</field>
                  </block>
                </value>
                <value name="EXPECTED">
                  <block type="text">
                    <field name="TEXT">12345678</field>
                  </block>
                </value>
                <next>
                  <block type="variables_set" inline="false">
                    <field name="VAR">log</field>
                    <value name="VALUE">
                      <block type="text">
                        <field name="TEXT"></field>
                      </block>
                    </value>
                    <next>
                      <block type="controls_for" inline="true">
                        <field name="VAR">x</field>
                        <value name="FROM">
                          <block type="math_number">
                            <field name="NUM">8</field>
                          </block>
                        </value>
                        <value name="TO">
                          <block type="math_number">
                            <field name="NUM">1</field>
                          </block>
                        </value>
                        <statement name="DO">
                          <block type="text_append" inline="false">
                            <field name="VAR">log</field>
                            <value name="TEXT">
                              <block type="variables_get">
                                <field name="VAR">x</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <next>
                          <block type="unittest_assertequals" inline="false">
                            <field name="MESSAGE">count down</field>
                            <value name="ACTUAL">
                              <block type="variables_get">
                                <field name="VAR">log</field>
                              </block>
                            </value>
                            <value name="EXPECTED">
                              <block type="text">
                                <field name="TEXT">87654321</field>
                              </block>
                            </value>
                            <next>
                              <block type="variables_set" inline="false">
                                <field name="VAR">loglist</field>
                                <value name="VALUE">
                                  <block type="lists_create_empty"></block>
                                </value>
                                <next>
                                  <block type="controls_for" inline="true">
                                    <field name="VAR">x</field>
                                    <value name="FROM">
                                      <block type="math_arithmetic" inline="true">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <block type="math_number">
                                            <field name="NUM">1</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <value name="TO">
                                      <block type="math_arithmetic" inline="true">
                                        <field name="OP">ADD</field>
                                        <value name="A">
                                          <block type="math_number">
                                            <field name="NUM">4</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number">
                                            <field name="NUM">0</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO">
                                      <block type="lists_setIndex" inline="true">
                                        <mutation at="false"></mutation>
                                        <field name="MODE">INSERT</field>
                                        <field name="WHERE">LAST</field>
                                        <value name="LIST">
                                          <block type="variables_get">
                                            <field name="VAR">loglist</field>
                                          </block>
                                        </value>
                                        <value name="TO">
                                          <block type="variables_get">
                                            <field name="VAR">x</field>
                                          </block>
                                        </value>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="unittest_assertequals" inline="false">
                                        <field name="MESSAGE">count up non-trivial</field>
                                        <value name="ACTUAL">
                                          <block type="variables_get">
                                            <field name="VAR">loglist</field>
                                          </block>
                                        </value>
                                        <value name="EXPECTED">
                                          <block type="lists_create_with" inline="false">
                                            <mutation items="4"></mutation>
                                            <value name="ADD0">
                                              <block type="math_number">
                                                <field name="NUM">1</field>
                                              </block>
                                            </value>
                                            <value name="ADD1">
                                              <block type="math_number">
                                                <field name="NUM">2</field>
                                              </block>
                                            </value>
                                            <value name="ADD2">
                                              <block type="math_number">
                                                <field name="NUM">3</field>
                                              </block>
                                            </value>
                                            <value name="ADD3">
                                              <block type="math_number">
                                                <field name="NUM">4</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="variables_set" inline="false">
                                            <field name="VAR">loglist</field>
                                            <value name="VALUE">
                                              <block type="lists_create_empty"></block>
                                            </value>
                                            <next>
                                              <block type="controls_for" inline="true">
                                                <field name="VAR">x</field>
                                                <value name="FROM">
                                                  <block type="math_arithmetic" inline="true">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">3</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="TO">
                                                  <block type="math_arithmetic" inline="true">
                                                    <field name="OP">ADD</field>
                                                    <value name="A">
                                                      <block type="math_number">
                                                        <field name="NUM">1</field>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="math_number">
                                                        <field name="NUM">0</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO">
                                                  <block type="lists_setIndex" inline="true">
                                                    <mutation at="false"></mutation>
                                                    <field name="MODE">INSERT</field>
                                                    <field name="WHERE">LAST</field>
                                                    <value name="LIST">
                                                      <block type="variables_get">
                                                        <field name="VAR">loglist</field>
                                                      </block>
                                                    </value>
                                                    <value name="TO">
                                                      <block type="variables_get">
                                                        <field name="VAR">x</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </statement>
                                                <next>
                                                  <block type="unittest_assertequals" inline="false">
                                                    <field name="MESSAGE">count down non-trivial</field>
                                                    <value name="ACTUAL">
                                                      <block type="variables_get">
                                                        <field name="VAR">loglist</field>
                                                      </block>
                                                    </value>
                                                    <value name="EXPECTED">
                                                      <block type="lists_create_with" inline="false">
                                                        <mutation items="4"></mutation>
                                                        <value name="ADD0">
                                                          <block type="math_number">
                                                            <field name="NUM">4</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="math_number">
                                                            <field name="NUM">3</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD2">
                                                          <block type="math_number">
                                                            <field name="NUM">2</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD3">
                                                          <block type="math_number">
                                                            <field name="NUM">1</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </statement>
  </block>
</xml>
