Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

Backtrace

{
  "frames": [
    {
      "line": 39,
      "file": ".\\gbf_core\\src\\decompiler\\handlers\\special_two_operand.rs",
      "function": "gbf_core::decompiler::handlers::special_two_operand::impl$0::handle_instruction::closure$0"
    },
    {
      "line": 35,
      "file": ".\\gbf_core\\src\\decompiler\\handlers\\special_two_operand.rs",
      "function": "gbf_core::decompiler::handlers::special_two_operand::impl$0::handle_instruction"
    },
    {
      "line": 171,
      "file": ".\\gbf_core\\src\\decompiler\\function_decompiler_context.rs",
      "function": "gbf_core::decompiler::function_decompiler_context::FunctionDecompilerContext::process_instruction"
    },
    {
      "line": 466,
      "file": ".\\gbf_core\\src\\decompiler\\function_decompiler.rs",
      "function": "gbf_core::decompiler::function_decompiler::FunctionDecompiler::process_regions"
    },
    {
      "line": 286,
      "file": ".\\gbf_core\\src\\decompiler\\function_decompiler.rs",
      "function": "gbf_core::decompiler::function_decompiler::FunctionDecompiler::decompile"
    }
  ]
}

Context

{
  "current_block_id": {
    "index": 0,
    "address": 8972,
    "block_type": "Entry"
  },
  "current_ast_node_stack": [],
  "current_instruction": {
    "opcode": "AccessMember",
    "operand": null,
    "address": 8986
  }
}
function public.queueRequest(texttype#1, textoptions#0)
{
    fn_call#3 = getcallstack#2();
    lit#4 = 0;
    lit#6 = "-TextEditor";
    fn_call#8 = findweapon#7(lit#6);
    // RegionId(1)
    if (!(fn_call#3[lit#4].scriptcallobject in {this#9, fn_call#8})) 
    {
        lit#10 = 0;
        return lit#10;
    }
    // RegionId(2)
    else
    {
        fn_call#12 = requesttext#11(texttype#1, textoptions#0);
        lit#13 = 0;
        return lit#13;
    }
}