{
  "step-sum": [
    {
      "argument": -3,
      "visited": [],
      "expected": 0
    },
    {
      "argument": -1,
      "visited": [],
      "expected": 0
    },
    {
      "argument": 0,
      "visited": [],
      "expected": 0
    },
    {
      "argument": 1,
      "visited": [
        0
      ],
      "expected": 0
    },
    {
      "argument": 2,
      "visited": [
        0
      ],
      "expected": 0
    },
    {
      "argument": 3,
      "visited": [
        0,
        2
      ],
      "expected": 2
    },
    {
      "argument": 4,
      "visited": [
        0,
        2
      ],
      "expected": 2
    },
    {
      "argument": 5,
      "visited": [
        0,
        2,
        4
      ],
      "expected": 6
    },
    {
      "argument": 6,
      "visited": [
        0,
        2,
        4
      ],
      "expected": 6
    },
    {
      "argument": 7,
      "visited": [
        0,
        2,
        4,
        6
      ],
      "expected": 12
    },
    {
      "argument": 8,
      "visited": [
        0,
        2,
        4,
        6
      ],
      "expected": 12
    },
    {
      "argument": 9,
      "visited": [
        0,
        2,
        4,
        6,
        8
      ],
      "expected": 20
    }
  ],
  "iter-sum": [
    {
      "argument": 0,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 0
    },
    {
      "argument": 1,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 2
    },
    {
      "argument": 2,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 6
    },
    {
      "argument": 3,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 12
    },
    {
      "argument": 4,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 20
    },
    {
      "argument": 5,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 30
    },
    {
      "argument": 6,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 42
    },
    {
      "argument": 7,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 56
    },
    {
      "argument": 8,
      "input": [
        2,
        4,
        6,
        8,
        10,
        12,
        14,
        16
      ],
      "expected": 72
    },
    {
      "argument": 0,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 1,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 2,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 3,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 4,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 5,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 6,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 7,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 8,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": 0
    },
    {
      "argument": 0,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": 0
    },
    {
      "argument": 1,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": -3
    },
    {
      "argument": 2,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": -5
    },
    {
      "argument": 3,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": -6
    },
    {
      "argument": 4,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": -6
    },
    {
      "argument": 5,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": -5
    },
    {
      "argument": 6,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": -3
    },
    {
      "argument": 7,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": 0
    },
    {
      "argument": 8,
      "input": [
        -3,
        -2,
        -1,
        0,
        1,
        2,
        3,
        4
      ],
      "expected": 4
    },
    {
      "argument": 0,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 0
    },
    {
      "argument": 1,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 9
    },
    {
      "argument": 2,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 4
    },
    {
      "argument": 3,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 11
    },
    {
      "argument": 4,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 8
    },
    {
      "argument": 5,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 9
    },
    {
      "argument": 6,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 8
    },
    {
      "argument": 7,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 10
    },
    {
      "argument": 8,
      "input": [
        9,
        -5,
        7,
        -3,
        1,
        -1,
        2,
        -2
      ],
      "expected": 8
    }
  ],
  "while-sum": [
    {
      "argument": -2,
      "visited": [],
      "body_executions": 0,
      "condition_executions": 1,
      "expected": 0
    },
    {
      "argument": -1,
      "visited": [],
      "body_executions": 0,
      "condition_executions": 1,
      "expected": 0
    },
    {
      "argument": 0,
      "visited": [],
      "body_executions": 0,
      "condition_executions": 1,
      "expected": 0
    },
    {
      "argument": 1,
      "visited": [
        0
      ],
      "body_executions": 1,
      "condition_executions": 2,
      "expected": 0
    },
    {
      "argument": 2,
      "visited": [
        0,
        1
      ],
      "body_executions": 2,
      "condition_executions": 3,
      "expected": 1
    },
    {
      "argument": 3,
      "visited": [
        0,
        1,
        2
      ],
      "body_executions": 3,
      "condition_executions": 4,
      "expected": 3
    },
    {
      "argument": 4,
      "visited": [
        0,
        1,
        2,
        3
      ],
      "body_executions": 4,
      "condition_executions": 5,
      "expected": 6
    },
    {
      "argument": 5,
      "visited": [
        0,
        1,
        2,
        3,
        4
      ],
      "body_executions": 5,
      "condition_executions": 6,
      "expected": 10
    },
    {
      "argument": 6,
      "visited": [
        0,
        1,
        2,
        3,
        4,
        5
      ],
      "body_executions": 6,
      "condition_executions": 7,
      "expected": 15
    },
    {
      "argument": 7,
      "visited": [
        0,
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "body_executions": 7,
      "condition_executions": 8,
      "expected": 21
    },
    {
      "argument": 8,
      "visited": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7
      ],
      "body_executions": 8,
      "condition_executions": 9,
      "expected": 28
    }
  ],
  "triangle": [
    {
      "argument": 0,
      "input": [
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ],
      "visited": [],
      "written": [],
      "expected": [
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ]
    },
    {
      "argument": 1,
      "input": [
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ],
      "visited": [
        [
          0,
          0
        ]
      ],
      "written": [],
      "expected": [
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ]
    },
    {
      "argument": 2,
      "input": [
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ],
      "visited": [
        [
          0,
          0
        ],
        [
          1,
          0
        ],
        [
          1,
          1
        ]
      ],
      "written": [
        [
          1,
          0
        ]
      ],
      "expected": [
        -1,
        -1,
        -1,
        -1,
        10,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ]
    },
    {
      "argument": 3,
      "input": [
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ],
      "visited": [
        [
          0,
          0
        ],
        [
          1,
          0
        ],
        [
          1,
          1
        ],
        [
          2,
          0
        ],
        [
          2,
          1
        ],
        [
          2,
          2
        ]
      ],
      "written": [
        [
          1,
          0
        ],
        [
          2,
          0
        ],
        [
          2,
          1
        ]
      ],
      "expected": [
        -1,
        -1,
        -1,
        -1,
        10,
        -1,
        -1,
        -1,
        20,
        21,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ]
    },
    {
      "argument": 4,
      "input": [
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1,
        -1
      ],
      "visited": [
        [
          0,
          0
        ],
        [
          1,
          0
        ],
        [
          1,
          1
        ],
        [
          2,
          0
        ],
        [
          2,
          1
        ],
        [
          2,
          2
        ],
        [
          3,
          0
        ],
        [
          3,
          1
        ],
        [
          3,
          2
        ],
        [
          3,
          3
        ]
      ],
      "written": [
        [
          1,
          0
        ],
        [
          2,
          0
        ],
        [
          2,
          1
        ],
        [
          3,
          0
        ],
        [
          3,
          1
        ],
        [
          3,
          2
        ]
      ],
      "expected": [
        -1,
        -1,
        -1,
        -1,
        10,
        -1,
        -1,
        -1,
        20,
        21,
        -1,
        -1,
        30,
        31,
        32,
        -1
      ]
    },
    {
      "argument": 0,
      "input": [
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99
      ],
      "visited": [],
      "written": [],
      "expected": [
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99
      ]
    },
    {
      "argument": 1,
      "input": [
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99
      ],
      "visited": [
        [
          0,
          0
        ]
      ],
      "written": [],
      "expected": [
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99
      ]
    },
    {
      "argument": 2,
      "input": [
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99
      ],
      "visited": [
        [
          0,
          0
        ],
        [
          1,
          0
        ],
        [
          1,
          1
        ]
      ],
      "written": [
        [
          1,
          0
        ]
      ],
      "expected": [
        99,
        99,
        99,
        99,
        10,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99
      ]
    },
    {
      "argument": 3,
      "input": [
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99
      ],
      "visited": [
        [
          0,
          0
        ],
        [
          1,
          0
        ],
        [
          1,
          1
        ],
        [
          2,
          0
        ],
        [
          2,
          1
        ],
        [
          2,
          2
        ]
      ],
      "written": [
        [
          1,
          0
        ],
        [
          2,
          0
        ],
        [
          2,
          1
        ]
      ],
      "expected": [
        99,
        99,
        99,
        99,
        10,
        99,
        99,
        99,
        20,
        21,
        99,
        99,
        99,
        99,
        99,
        99
      ]
    },
    {
      "argument": 4,
      "input": [
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99,
        99
      ],
      "visited": [
        [
          0,
          0
        ],
        [
          1,
          0
        ],
        [
          1,
          1
        ],
        [
          2,
          0
        ],
        [
          2,
          1
        ],
        [
          2,
          2
        ],
        [
          3,
          0
        ],
        [
          3,
          1
        ],
        [
          3,
          2
        ],
        [
          3,
          3
        ]
      ],
      "written": [
        [
          1,
          0
        ],
        [
          2,
          0
        ],
        [
          2,
          1
        ],
        [
          3,
          0
        ],
        [
          3,
          1
        ],
        [
          3,
          2
        ]
      ],
      "expected": [
        99,
        99,
        99,
        99,
        10,
        99,
        99,
        99,
        20,
        21,
        99,
        99,
        30,
        31,
        32,
        99
      ]
    }
  ],
  "prefix-inplace": [
    {
      "argument": 0,
      "input": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "expected": [
        1,
        2,
        3,
        4,
        5,
        6
      ]
    },
    {
      "argument": 1,
      "input": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "expected": [
        1,
        2,
        3,
        4,
        5,
        6
      ]
    },
    {
      "argument": 2,
      "input": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "expected": [
        1,
        3,
        3,
        4,
        5,
        6
      ]
    },
    {
      "argument": 3,
      "input": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "expected": [
        1,
        3,
        6,
        4,
        5,
        6
      ]
    },
    {
      "argument": 4,
      "input": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "expected": [
        1,
        3,
        6,
        10,
        5,
        6
      ]
    },
    {
      "argument": 5,
      "input": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "expected": [
        1,
        3,
        6,
        10,
        15,
        6
      ]
    },
    {
      "argument": 6,
      "input": [
        1,
        2,
        3,
        4,
        5,
        6
      ],
      "expected": [
        1,
        3,
        6,
        10,
        15,
        21
      ]
    },
    {
      "argument": 0,
      "input": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ],
      "expected": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ]
    },
    {
      "argument": 1,
      "input": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ],
      "expected": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ]
    },
    {
      "argument": 2,
      "input": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ],
      "expected": [
        -1,
        -3,
        -3,
        -4,
        -5,
        -6
      ]
    },
    {
      "argument": 3,
      "input": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ],
      "expected": [
        -1,
        -3,
        -6,
        -4,
        -5,
        -6
      ]
    },
    {
      "argument": 4,
      "input": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ],
      "expected": [
        -1,
        -3,
        -6,
        -10,
        -5,
        -6
      ]
    },
    {
      "argument": 5,
      "input": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ],
      "expected": [
        -1,
        -3,
        -6,
        -10,
        -15,
        -6
      ]
    },
    {
      "argument": 6,
      "input": [
        -1,
        -2,
        -3,
        -4,
        -5,
        -6
      ],
      "expected": [
        -1,
        -3,
        -6,
        -10,
        -15,
        -21
      ]
    },
    {
      "argument": 0,
      "input": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ],
      "expected": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ]
    },
    {
      "argument": 1,
      "input": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ],
      "expected": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ]
    },
    {
      "argument": 2,
      "input": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ],
      "expected": [
        4,
        2,
        7,
        0,
        -3,
        1
      ]
    },
    {
      "argument": 3,
      "input": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ],
      "expected": [
        4,
        2,
        9,
        0,
        -3,
        1
      ]
    },
    {
      "argument": 4,
      "input": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ],
      "expected": [
        4,
        2,
        9,
        9,
        -3,
        1
      ]
    },
    {
      "argument": 5,
      "input": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ],
      "expected": [
        4,
        2,
        9,
        9,
        6,
        1
      ]
    },
    {
      "argument": 6,
      "input": [
        4,
        -2,
        7,
        0,
        -3,
        1
      ],
      "expected": [
        4,
        2,
        9,
        9,
        6,
        7
      ]
    },
    {
      "argument": 0,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": [
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    {
      "argument": 1,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": [
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    {
      "argument": 2,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": [
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    {
      "argument": 3,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": [
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    {
      "argument": 4,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": [
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    {
      "argument": 5,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": [
        0,
        0,
        0,
        0,
        0,
        0
      ]
    },
    {
      "argument": 6,
      "input": [
        0,
        0,
        0,
        0,
        0,
        0
      ],
      "expected": [
        0,
        0,
        0,
        0,
        0,
        0
      ]
    }
  ]
}
