{
  "commands": [
    {
      "command": "loadProgram",
      "before": "unloaded",
      "after": "stopped",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "start",
      "before": "stopped",
      "after": "running",
      "result": "blocked",
      "diagnostics": [
        {
          "severity": "error",
          "code": "VC_STEP_LIMIT_EXCEEDED",
          "message": "Execution exceeded 1 steps"
        }
      ]
    },
    {
      "command": "stepInto",
      "before": "paused",
      "after": "paused",
      "result": "executed",
      "diagnostics": []
    },
    {
      "command": "hold",
      "before": "paused",
      "after": "hold",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "resume",
      "before": "hold",
      "after": "running",
      "result": "blocked",
      "diagnostics": [
        {
          "severity": "error",
          "code": "VC_STEP_LIMIT_EXCEEDED",
          "message": "Execution exceeded 3 steps"
        }
      ]
    },
    {
      "command": "stepMotion",
      "before": "running",
      "after": "running",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "stop",
      "before": "paused",
      "after": "stopped",
      "result": "ok",
      "diagnostics": []
    },
    {
      "command": "resetFault",
      "before": "stopped",
      "after": "stopped",
      "result": "ok",
      "diagnostics": []
    }
  ],
  "snapshot": {
    "state": {
      "state": "stopped",
      "diagnostics": []
    },
    "runtime": {
      "loaded": true,
      "procedure": "main",
      "pc": 8,
      "callStack": [
        {
          "procedure": "main",
          "pc": 8
        }
      ],
      "scopeStack": [
        {
          "id": "global",
          "variables": {}
        },
        {
          "id": "main",
          "variables": {}
        },
        {
          "id": "else:0",
          "variables": {
            "i": 1
          }
        },
        {
          "id": "for:3",
          "variables": {}
        },
        {
          "id": "switch:5",
          "variables": {}
        }
      ],
      "alarmQueue": [
        {
          "id": "NOT_READY",
          "message": "not ready",
          "severity": "error",
          "source": {
            "kind": "ALARM",
            "id": "main:ALARM:16:7",
            "sourceMap": {
              "line": 16,
              "column": 7
            },
            "procedureId": "main"
          },
          "time": 0
        },
        {
          "id": "MODE1",
          "message": "mode 1",
          "severity": "error",
          "source": {
            "kind": "ALARM",
            "id": "main:ALARM:27:9",
            "sourceMap": {
              "line": 27,
              "column": 9
            },
            "procedureId": "main"
          },
          "time": 0.1
        }
      ],
      "trace": [
        {
          "time": 0,
          "kind": "load",
          "procedure": "main",
          "pc": 0,
          "message": "Loaded W2ControlFlow",
          "source": {
            "kind": "EXEC_IF",
            "id": "main:EXEC_IF:11:5",
            "sourceMap": {
              "line": 11,
              "column": 5
            },
            "procedureId": "main"
          },
          "data": {
            "moduleName": "W2ControlFlow"
          },
          "id": 1
        },
        {
          "time": 0,
          "kind": "instruction",
          "procedure": "main",
          "pc": 1,
          "instructionKind": "EXEC_IF",
          "source": {
            "kind": "EXEC_IF",
            "id": "main:EXEC_IF:11:5",
            "sourceMap": {
              "line": 11,
              "column": 5
            },
            "procedureId": "main"
          },
          "id": 2
        },
        {
          "time": 0,
          "kind": "diagnostic",
          "procedure": "main",
          "pc": 1,
          "message": "Execution exceeded 1 steps",
          "source": {
            "kind": "ALARM",
            "id": "main:ALARM:16:7",
            "sourceMap": {
              "line": 16,
              "column": 7
            },
            "procedureId": "main"
          },
          "diagnostic": {
            "severity": "error",
            "code": "VC_STEP_LIMIT_EXCEEDED",
            "message": "Execution exceeded 1 steps"
          },
          "id": 3
        },
        {
          "time": 0,
          "kind": "alarm",
          "procedure": "main",
          "pc": 1,
          "message": "not ready",
          "source": {
            "kind": "ALARM",
            "id": "main:ALARM:16:7",
            "sourceMap": {
              "line": 16,
              "column": 7
            },
            "procedureId": "main"
          },
          "data": {
            "alarmId": "NOT_READY",
            "severity": "error"
          },
          "id": 4
        },
        {
          "time": 0,
          "kind": "instruction",
          "procedure": "main",
          "pc": 2,
          "instructionKind": "ALARM",
          "source": {
            "kind": "ALARM",
            "id": "main:ALARM:16:7",
            "sourceMap": {
              "line": 16,
              "column": 7
            },
            "procedureId": "main"
          },
          "id": 5
        },
        {
          "time": 0,
          "kind": "instruction",
          "procedure": "main",
          "pc": 3,
          "instructionKind": "EXEC_WHILE",
          "source": {
            "kind": "EXEC_WHILE",
            "id": "main:EXEC_WHILE:18:5",
            "sourceMap": {
              "line": 18,
              "column": 5
            },
            "procedureId": "main"
          },
          "id": 6
        },
        {
          "time": 0,
          "kind": "instruction",
          "procedure": "main",
          "pc": 4,
          "instructionKind": "EXEC_FOR",
          "source": {
            "kind": "EXEC_FOR",
            "id": "main:EXEC_FOR:22:5",
            "sourceMap": {
              "line": 22,
              "column": 5
            },
            "procedureId": "main"
          },
          "id": 7
        },
        {
          "time": 0,
          "kind": "instruction",
          "procedure": "main",
          "pc": 5,
          "instructionKind": "RAW_STATEMENT",
          "source": {
            "kind": "RAW_STATEMENT",
            "id": "main:RAW_STATEMENT:23:7",
            "sourceMap": {
              "line": 23,
              "column": 7
            },
            "procedureId": "main"
          },
          "id": 8
        },
        {
          "time": 0,
          "kind": "diagnostic",
          "procedure": "main",
          "pc": 5,
          "message": "Execution exceeded 3 steps",
          "source": {
            "kind": "EXEC_SWITCH",
            "id": "main:EXEC_SWITCH:25:5",
            "sourceMap": {
              "line": 25,
              "column": 5
            },
            "procedureId": "main"
          },
          "diagnostic": {
            "severity": "error",
            "code": "VC_STEP_LIMIT_EXCEEDED",
            "message": "Execution exceeded 3 steps"
          },
          "id": 9
        },
        {
          "time": 0.1,
          "kind": "instruction",
          "procedure": "main",
          "pc": 6,
          "instructionKind": "EXEC_SWITCH",
          "source": {
            "kind": "EXEC_SWITCH",
            "id": "main:EXEC_SWITCH:25:5",
            "sourceMap": {
              "line": 25,
              "column": 5
            },
            "procedureId": "main"
          },
          "id": 10
        },
        {
          "time": 0.1,
          "kind": "diagnostic",
          "procedure": "main",
          "pc": 7,
          "instructionKind": "BREAK",
          "source": {
            "kind": "BREAK",
            "id": "main:BREAK:28:9",
            "sourceMap": {
              "line": 28,
              "column": 9
            },
            "procedureId": "main"
          },
          "diagnostic": {
            "severity": "info",
            "code": "VC_BREAK",
            "message": "BREAK reached",
            "sourceMap": {
              "line": 28,
              "column": 9
            }
          },
          "id": 11
        },
        {
          "time": 0.1,
          "kind": "alarm",
          "procedure": "main",
          "pc": 7,
          "message": "mode 1",
          "source": {
            "kind": "ALARM",
            "id": "main:ALARM:27:9",
            "sourceMap": {
              "line": 27,
              "column": 9
            },
            "procedureId": "main"
          },
          "data": {
            "alarmId": "MODE1",
            "severity": "error"
          },
          "id": 12
        },
        {
          "time": 0.1,
          "kind": "instruction",
          "procedure": "main",
          "pc": 8,
          "instructionKind": "ALARM",
          "source": {
            "kind": "ALARM",
            "id": "main:ALARM:27:9",
            "sourceMap": {
              "line": 27,
              "column": 9
            },
            "procedureId": "main"
          },
          "id": 13
        }
      ],
      "completed": true
    },
    "motion": {
      "items": [],
      "activeIndex": 0,
      "virtualTime": 0.1
    },
    "io": {
      "time": 0.1,
      "image": {
        "io.di[1]": true,
        "io.di[2]": false,
        "io.di[3]": true,
        "io.di[4]": false,
        "io.di[5]": true,
        "io.di[6]": false,
        "io.di[7]": true,
        "io.di[10]": true,
        "io.ai[2]": 0.75
      },
      "events": [
        {
          "id": 1,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 1,
            "raw": "io.di[1]"
          },
          "value": true,
          "kind": "script"
        },
        {
          "id": 2,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 2,
            "raw": "io.di[2]"
          },
          "value": false,
          "kind": "script"
        },
        {
          "id": 3,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 3,
            "raw": "io.di[3]"
          },
          "value": true,
          "kind": "script"
        },
        {
          "id": 4,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 4,
            "raw": "io.di[4]"
          },
          "value": false,
          "kind": "script"
        },
        {
          "id": 5,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 5,
            "raw": "io.di[5]"
          },
          "value": false,
          "kind": "script"
        },
        {
          "id": 6,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 6,
            "raw": "io.di[6]"
          },
          "value": true,
          "kind": "script"
        },
        {
          "id": 7,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 7,
            "raw": "io.di[7]"
          },
          "value": false,
          "kind": "script"
        },
        {
          "id": 8,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 10,
            "raw": "io.di[10]"
          },
          "value": true,
          "kind": "script"
        },
        {
          "id": 9,
          "time": 0,
          "writer": "script",
          "target": {
            "domain": "ai",
            "index": 2,
            "raw": "io.ai[2]"
          },
          "value": 0.75,
          "kind": "script"
        },
        {
          "id": 10,
          "time": 0.1,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 5,
            "raw": "io.di[5]"
          },
          "previous": false,
          "value": true,
          "kind": "script"
        },
        {
          "id": 11,
          "time": 0.1,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 6,
            "raw": "io.di[6]"
          },
          "previous": true,
          "value": false,
          "kind": "script"
        },
        {
          "id": 12,
          "time": 0.1,
          "writer": "script",
          "target": {
            "domain": "di",
            "index": 7,
            "raw": "io.di[7]"
          },
          "previous": false,
          "value": true,
          "kind": "script"
        }
      ],
      "diagnostics": [],
      "scripts": [
        {
          "name": "W2_70_ControlFlow-edge-script",
          "nextIndex": 3,
          "elapsed": 0.1,
          "steps": [
            {
              "delay": 0.02,
              "target": {
                "domain": "di",
                "index": 5,
                "raw": "io.di[5]"
              },
              "value": true
            },
            {
              "delay": 0.04,
              "target": {
                "domain": "di",
                "index": 6,
                "raw": "io.di[6]"
              },
              "value": false
            },
            {
              "delay": 0.06,
              "target": {
                "domain": "di",
                "index": 7,
                "raw": "io.di[7]"
              },
              "value": true
            }
          ],
          "done": true
        }
      ]
    },
    "bridge": {
      "pathIds": [],
      "operationIds": [],
      "diagnostics": []
    }
  }
}
