Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

Backtrace

{
  "frames": []
}

Context

{
  "current_block_id": {
    "index": 0,
    "address": 7411,
    "block_type": "Entry"
  },
  "current_ast_node_stack": [
    {
      "StandaloneNode": {
        "Expression": {
          "Literal": {
            "metadata": {
              "properties": {},
              "comments": []
            },
            "ptr": {
              "String": "scriptedRCQuickReplaceText"
            },
            "node_id": 34524
          }
        }
      }
    },
    {
      "StandaloneNode": {
        "Expression": {
          "Literal": {
            "metadata": {
              "properties": {},
              "comments": []
            },
            "ptr": {
              "String": "scriptedRCQuickReplaceText"
            },
            "node_id": 34525
          }
        }
      }
    },
    {
      "StandaloneNode": {
        "Expression": {
          "Literal": {
            "metadata": {
              "properties": {},
              "comments": []
            },
            "node_id": 34526,
            "ptr": {
              "String": "scriptedRCQuickReplaceText"
            }
          }
        }
      }
    },
    {
      "StandaloneNode": {
        "Expression": {
          "Literal": {
            "metadata": {
              "properties": {},
              "comments": []
            },
            "node_id": 34527,
            "ptr": {
              "String": "scriptedRCQuickReplaceText"
            }
          }
        }
      }
    },
    {
      "StandaloneNode": {
        "Expression": {
          "Literal": {
            "metadata": {
              "properties": {},
              "comments": []
            },
            "ptr": {
              "String": "GuiMLTextCtrl"
            },
            "node_id": 34528
          }
        }
      }
    }
  ],
  "current_instruction": {
    "opcode": "NewObject",
    "operand": null,
    "address": 7434
  }
}
function quickReplaceText(temp.text, temp.oldchar, temp.newchar, temp.casesensitive)
{
    lit#5 = "scriptedRCQuickReplaceText";
    gbf_new_obj#6 = lit#5;
    lit#7 = "GuiMLTextCtrl";
    new_node#8 = new lit#7(gbf_new_obj#6);
    gbf_new_obj#9 = new_node#8;
    // RegionId(0)
    // RegionId(1)
    with (gbf_new_obj#6) 
    {
        lit#11 = true;
        useownprofile#12 = lit#11;
        lit#15 = false;
        profile.modal = lit#15;
        lit#17 = false;
        visible#18 = lit#17;
        lit#20 = "";
        allowedtags#21 = lit#20;
        lit#23 = false;
        parsetags#24 = lit#23;
        text#25 = temp.text;
        fn_call#27 = replacetext#26(temp.oldchar, temp.newchar, temp.casesensitive);
        temp.newtext = text#25;
        fn_call#31 = this.destroy();
    }
    fn_call#33 = addcontrol#32(phi<idx=0, regions=()>);
    return temp.newtext;
}