Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

Backtrace

{
  "frames": []
}

Context

{
  "current_block_id": {
    "index": 1,
    "block_type": "Normal",
    "address": 32
  },
  "current_ast_node_stack": [
    {
      "StandaloneNode": {
        "Expression": {
          "Literal": {
            "metadata": {
              "properties": {},
              "comments": []
            },
            "node_id": 25572,
            "ptr": {
              "Number": 0
            }
          }
        }
      }
    },
    {
      "StandaloneNode": {
        "Expression": {
          "Assignable": {
            "MemberAccess": {
              "metadata": {
                "properties": {},
                "comments": []
              },
              "ptr": {
                "rhs": {
                  "Identifier": {
                    "metadata": {
                      "properties": {},
                      "comments": []
                    },
                    "node_id": 25574,
                    "ptr": {
                      "ssa_version": null,
                      "id": "arr"
                    }
                  }
                },
                "lhs": {
                  "Identifier": {
                    "metadata": {
                      "properties": {},
                      "comments": []
                    },
                    "ptr": {
                      "ssa_version": null,
                      "id": "temp"
                    },
                    "node_id": 25573
                  }
                },
                "ssa_version": 5
              },
              "node_id": 25575
            }
          }
        }
      }
    },
    {
      "StandaloneNode": {
        "Expression": {
          "Assignable": {
            "MemberAccess": {
              "metadata": {
                "properties": {},
                "comments": []
              },
              "ptr": {
                "rhs": {
                  "Identifier": {
                    "metadata": {
                      "properties": {},
                      "comments": []
                    },
                    "node_id": 25577,
                    "ptr": {
                      "ssa_version": null,
                      "id": "elem"
                    }
                  }
                },
                "lhs": {
                  "Identifier": {
                    "metadata": {
                      "properties": {},
                      "comments": []
                    },
                    "node_id": 25576,
                    "ptr": {
                      "ssa_version": null,
                      "id": "temp"
                    }
                  }
                },
                "ssa_version": 2
              },
              "node_id": 25578
            }
          }
        }
      }
    }
  ],
  "current_instruction": {
    "opcode": "ForEach",
    "operand": {
      "Number": 41
    },
    "address": 32
  }
}
function onCreated()
{
    lit#4 = "baz";
    lit#5 = "bar";
    lit#6 = "foo";
    temp.arr = {lit#6, lit#5, lit#4};
    lit#7 = 0;
    for (temp.elem : temp.arr) 
    {
        fn_call#8 = echo#2(temp.elem);
        lit#9 = lit#7 + 1;
    }
    lit#10 = 0;
    return lit#10;
}