
int rl_tilde_expand(int ignore,int key)

{
  char cVar1;
  char *pcVar2;
  char *text;
  int start;
  int iVar3;
  int end;
  
  iVar3 = *(int *)PTR_rl_point_001575f0;
  start = iVar3 + -1;
  if ((*(int *)PTR_rl_end_001575ec == iVar3) &&
     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')) {
    pcVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);
    _rl_replace_text(pcVar2,start,iVar3);
    (*(code *)PTR_xfree_00156bb4)(pcVar2);
    return 0;
  }
  if (-1 < start) {
    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start);
    if (cVar1 != '~') {
      if ((cVar1 != ' ') && (cVar1 != '\t')) {
        iVar3 = iVar3 + -2;
        do {
          start = iVar3;
          if ((start == -1) ||
             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;
          iVar3 = start + -1;
        } while (cVar1 != '\t');
      }
      start = start + 1;
      goto LAB_0010ff8c;
    }
  }
  if (start < 0) {
    start = 0;
  }
LAB_0010ff8c:
  iVar3 = start;
  do {
    end = iVar3;
    iVar3 = end + 1;
    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);
    if ((cVar1 == ' ') || (cVar1 == '\t')) break;
  } while (iVar3 < *(int *)PTR_rl_end_001575ec);
  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start) == '~') {
    pcVar2 = (char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2);
    iVar3 = (end - start) + 1;
    (*(code *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3);
    pcVar2[iVar3] = '\0';
    text = tilde_expand(pcVar2);
    (*(code *)PTR_xfree_00156bb4)(pcVar2);
    _rl_replace_text(text,start,end);
    (*(code *)PTR_xfree_00156bb4)(text);
  }
  return 0;
}



undefined4 rl_tilde_expand(void)

{
  char cVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  
  iVar4 = *(int *)PTR_rl_point_001575f0;
  iVar3 = iVar4 + -1;
  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&
     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {
    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);
    _rl_replace_text(uVar2,iVar3,iVar4);
    (*(code *)PTR_xfree_00156bb4)(uVar2);
    return 0;
  }
  if (-1 < iVar3) {
    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);
    if (cVar1 != '~') {
      if ((cVar1 != ' ') && (cVar1 != '\t')) {
        iVar4 = iVar4 + -2;
        do {
          iVar3 = iVar4;
          if ((iVar3 == -1) ||
             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;
          iVar4 = iVar3 + -1;
        } while (cVar1 != '\t');
      }
      iVar3 = iVar3 + 1;
      goto LAB_0010ff8c;
    }
  }
  if (iVar3 < 0) {
    iVar3 = 0;
  }
LAB_0010ff8c:
  iVar4 = iVar3;
  do {
    iVar5 = iVar4;
    iVar4 = iVar5 + 1;
    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);
    if ((cVar1 == ' ') || (cVar1 == '\t')) break;
  } while (iVar4 < *(int *)PTR_rl_end_001575ec);
  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {
    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);
    iVar6 = (iVar5 - iVar3) + 1;
    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);
    *(undefined1 *)(iVar4 + iVar6) = 0;
    uVar2 = tilde_expand(iVar4);
    (*(code *)PTR_xfree_00156bb4)(iVar4);
    _rl_replace_text(uVar2,iVar3,iVar5);
    (*(code *)PTR_xfree_00156bb4)(uVar2);
  }
  return 0;
}


lui gp,0x5
addiu gp,gp,-0x1928
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
lw v0,-0x6f50(gp)
lw s1,0x0(v0)
lw v0,-0x6f54(gp)
lw a1,0x0(v0)
beq a1,s1,0x0010ff18
_addiu s0,s1,-0x1
bltz s0,0x0010ff84
_lw v0,-0x6f58(gp)
lw v1,0x0(v0)
addu v0,v1,s0
lb v0,0x0(v0)
li a0,0x7e
beq v0,a0,0x0010ff84
_nop
li a0,0x20
beq v0,a0,0x0010ff10
_nop
li a0,0x9
beq v0,a0,0x0010ff10
_nop
li a0,-0x1
li a2,0x20
li a3,0x9
addiu s0,s0,-0x1
beq s0,a0,0x0010ff10
_addu v0,v1,s0
lb v0,0x0(v0)
beq v0,a2,0x0010ff10
_nop
bne v0,a3,0x0010fef0
_addiu s0,s0,-0x1
addiu s0,s0,0x1
b 0x0010ff8c
_addiu s0,s0,0x1
lw v0,-0x6f58(gp)
lw v0,0x0(v0)
addu v0,v0,s1
lb v1,0x0(v0)
li v0,0x7e
bne v1,v0,0x0010fea8
_lw a0,-0x7eec(gp)
addiu a0,a0,-0x4ddc
lw t9,-0x7a34(gp)
bal 0x001225cc
_nop
lw gp,0x10(sp)
or s2,v0,zero
or a2,s1,zero
or a1,s0,zero
or a0,v0,zero
lw t9,-0x6710(gp)
bal 0x00116154
_nop
lw gp,0x10(sp)
or a0,s2,zero
lw t9,-0x798c(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0010ffe4
_or v0,zero,zero
slti v0,s0,0x0
movn s0,zero,v0
lw v0,-0x6f58(gp)
lw a0,0x0(v0)
or s1,s0,zero
li a2,0x20
b 0x0010ffa8
_li a3,0x9
or s1,v0,zero
addiu v0,s1,0x1
addu v1,a0,v0
lb v1,0x0(v1)
beq v1,a2,0x0010ffcc
_nop
beq v1,a3,0x0010ffcc
_slt v1,v0,a1
bne v1,zero,0x0010ffa4
_nop
addu a0,a0,s0
lb v1,0x0(a0)
li v0,0x7e
beq v1,v0,0x00110000
_subu s2,s1,s0
or v0,zero,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
addiu a0,s2,0x2
lw t9,-0x7f88(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s3,v0,zero
addiu s2,s2,0x1
lw v0,-0x6f58(gp)
lw a1,0x0(v0)
or a2,s2,zero
addu a1,a1,s0
or a0,s3,zero
lw t9,-0x615c(gp)
jalr t9
_nop
lw gp,0x10(sp)
addu s2,s3,s2
sb zero,0x0(s2)
or a0,s3,zero
lw t9,-0x7a34(gp)
bal 0x001225cc
_nop
lw gp,0x10(sp)
or s2,v0,zero
or a0,s3,zero
lw t9,-0x798c(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a2,s1,zero
or a1,s0,zero
or a0,s2,zero
lw t9,-0x6710(gp)
bal 0x00116154
_nop
lw gp,0x10(sp)
or a0,s2,zero
lw t9,-0x798c(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0010ffe4
_or v0,zero,zero
(translation_unit "undefined4 rl_tilde_expand(void)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)PTR_rl_point_001575f0;\n  iVar3 = iVar4 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }\n  if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (iVar3 < 0) {\n    iVar3 = 0;\n  }\nLAB_0010ff8c:\n  iVar4 = iVar3;\n  do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 rl_tilde_expand(void)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)PTR_rl_point_001575f0;\n  iVar3 = iVar4 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }\n  if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (iVar3 < 0) {\n    iVar3 = 0;\n  }\nLAB_0010ff8c:\n  iVar4 = iVar3;\n  do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }\n  return 0;\n}" type_identifier (function_declarator "rl_tilde_expand(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)PTR_rl_point_001575f0;\n  iVar3 = iVar4 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }\n  if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (iVar3 < 0) {\n    iVar3 = 0;\n  }\nLAB_0010ff8c:\n  iVar4 = iVar3;\n  do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar4 = *(int *)PTR_rl_point_001575f0;" (assignment_expression "iVar4 = *(int *)PTR_rl_point_001575f0" identifier = (pointer_expression "*(int *)PTR_rl_point_001575f0" * (cast_expression "(int *)PTR_rl_point_001575f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }" if (parenthesized_expression "((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~'))" ( (binary_expression "(*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')" (parenthesized_expression "(*(int *)PTR_rl_end_001575ec == iVar4)" ( (binary_expression "*(int *)PTR_rl_end_001575ec == iVar4" (pointer_expression "*(int *)PTR_rl_end_001575ec" * (cast_expression "(int *)PTR_rl_end_001575ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) && (parenthesized_expression "(*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')" ( (binary_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~'" (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar4" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) == (char_literal "'~'" ' character ')) ))) )) (compound_statement "{\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }" { (expression_statement "uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);" (assignment_expression "uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" identifier = (call_expression "tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" identifier (argument_list "(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" ( (binary_expression "PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc" identifier + number_literal) )))) ;) (expression_statement "_rl_replace_text(uVar2,iVar3,iVar4);" (call_expression "_rl_replace_text(uVar2,iVar3,iVar4)" identifier (argument_list "(uVar2,iVar3,iVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }" { (expression_statement "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) ;) (if_statement "if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }" if (parenthesized_expression "(cVar1 != '~')" ( (binary_expression "cVar1 != '~'" identifier != (char_literal "'~'" ' character ')) )) (compound_statement "{\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }" { (if_statement "if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }" if (parenthesized_expression "((cVar1 != ' ') && (cVar1 != '\t'))" ( (binary_expression "(cVar1 != ' ') && (cVar1 != '\t')" (parenthesized_expression "(cVar1 != ' ')" ( (binary_expression "cVar1 != ' '" identifier != (char_literal "' '" ' character ')) )) && (parenthesized_expression "(cVar1 != '\t')" ( (binary_expression "cVar1 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }" { (expression_statement "iVar4 = iVar4 + -2;" (assignment_expression "iVar4 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (do_statement "do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');" do (compound_statement "{\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        }" { (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;" if (parenthesized_expression "((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' '))" ( (binary_expression "(iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')" (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) || (parenthesized_expression "(cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')" ( (comma_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' '" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) , (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character '))) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar3 + -1;" (assignment_expression "iVar4 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\t')" ( (binary_expression "cVar1 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) )) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0010ff8c;" goto statement_identifier ;) })) })) (if_statement "if (iVar3 < 0) {\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0010ff8c:\n  iVar4 = iVar3;" statement_identifier : (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;)) (do_statement "do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);" do (compound_statement "{\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar5 + 1;" (assignment_expression "iVar4 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar4" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) ;) (if_statement "if ((cVar1 == ' ') || (cVar1 == '\t')) break;" if (parenthesized_expression "((cVar1 == ' ') || (cVar1 == '\t'))" ( (binary_expression "(cVar1 == ' ') || (cVar1 == '\t')" (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) )) || (parenthesized_expression "(cVar1 == '\t')" ( (binary_expression "cVar1 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(iVar4 < *(int *)PTR_rl_end_001575ec)" ( (binary_expression "iVar4 < *(int *)PTR_rl_end_001575ec" identifier < (pointer_expression "*(int *)PTR_rl_end_001575ec" * (cast_expression "(int *)PTR_rl_end_001575ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) ;) (if_statement "if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }" if (parenthesized_expression "(*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')" ( (binary_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~'" (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) == (char_literal "'~'" ' character ')) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }" { (expression_statement "iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);" (assignment_expression "iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2)" identifier = (call_expression "(*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001565b8)" ( (pointer_expression "*(code *)PTR_xmalloc_001565b8" * (cast_expression "(code *)PTR_xmalloc_001565b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((iVar5 - iVar3) + 2)" ( (binary_expression "(iVar5 - iVar3) + 2" (parenthesized_expression "(iVar5 - iVar3)" ( (binary_expression "iVar5 - iVar3" identifier - identifier) )) + number_literal) )))) ;) (expression_statement "iVar6 = (iVar5 - iVar3) + 1;" (assignment_expression "iVar6 = (iVar5 - iVar3) + 1" identifier = (binary_expression "(iVar5 - iVar3) + 1" (parenthesized_expression "(iVar5 - iVar3)" ( (binary_expression "iVar5 - iVar3" identifier - identifier) )) + number_literal)) ;) (expression_statement "(*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);" (call_expression "(*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6)" (parenthesized_expression "(*(code *)PTR_strncpy_001583e4)" ( (pointer_expression "*(code *)PTR_strncpy_001583e4" * (cast_expression "(code *)PTR_strncpy_001583e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6)" ( identifier , (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) , identifier ))) ;) (expression_statement "*(undefined1 *)(iVar4 + iVar6) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + iVar6) = 0" (pointer_expression "*(undefined1 *)(iVar4 + iVar6)" * (cast_expression "(undefined1 *)(iVar4 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar2 = tilde_expand(iVar4);" (assignment_expression "uVar2 = tilde_expand(iVar4)" identifier = (call_expression "tilde_expand(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(iVar4);" (call_expression "(*(code *)PTR_xfree_00156bb4)(iVar4)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "_rl_replace_text(uVar2,iVar3,iVar5);" (call_expression "_rl_replace_text(uVar2,iVar3,iVar5)" identifier (argument_list "(uVar2,iVar3,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int rl_tilde_expand(int ignore,int key)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *text;\n  int start;\n  int iVar3;\n  int end;\n  \n  iVar3 = *(int *)PTR_rl_point_001575f0;\n  start = iVar3 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar3) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')) {\n    pcVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(pcVar2,start,iVar3);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    return 0;\n  }\n  if (-1 < start) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }\n      start = start + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (start < 0) {\n    start = 0;\n  }\nLAB_0010ff8c:\n  iVar3 = start;\n  do {\n    end = iVar3;\n    iVar3 = end + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar3 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start) == '~') {\n    pcVar2 = (char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2);\n    iVar3 = (end - start) + 1;\n    (*(code *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3);\n    pcVar2[iVar3] = '\0';\n    text = tilde_expand(pcVar2);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    _rl_replace_text(text,start,end);\n    (*(code *)PTR_xfree_00156bb4)(text);\n  }\n  return 0;\n}\n\n" (function_definition "int rl_tilde_expand(int ignore,int key)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *text;\n  int start;\n  int iVar3;\n  int end;\n  \n  iVar3 = *(int *)PTR_rl_point_001575f0;\n  start = iVar3 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar3) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')) {\n    pcVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(pcVar2,start,iVar3);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    return 0;\n  }\n  if (-1 < start) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }\n      start = start + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (start < 0) {\n    start = 0;\n  }\nLAB_0010ff8c:\n  iVar3 = start;\n  do {\n    end = iVar3;\n    iVar3 = end + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar3 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start) == '~') {\n    pcVar2 = (char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2);\n    iVar3 = (end - start) + 1;\n    (*(code *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3);\n    pcVar2[iVar3] = '\0';\n    text = tilde_expand(pcVar2);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    _rl_replace_text(text,start,end);\n    (*(code *)PTR_xfree_00156bb4)(text);\n  }\n  return 0;\n}" primitive_type (function_declarator "rl_tilde_expand(int ignore,int key)" identifier (parameter_list "(int ignore,int key)" ( (parameter_declaration "int ignore" primitive_type identifier) , (parameter_declaration "int key" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  char *text;\n  int start;\n  int iVar3;\n  int end;\n  \n  iVar3 = *(int *)PTR_rl_point_001575f0;\n  start = iVar3 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar3) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')) {\n    pcVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(pcVar2,start,iVar3);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    return 0;\n  }\n  if (-1 < start) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }\n      start = start + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (start < 0) {\n    start = 0;\n  }\nLAB_0010ff8c:\n  iVar3 = start;\n  do {\n    end = iVar3;\n    iVar3 = end + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar3 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start) == '~') {\n    pcVar2 = (char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2);\n    iVar3 = (end - start) + 1;\n    (*(code *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3);\n    pcVar2[iVar3] = '\0';\n    text = tilde_expand(pcVar2);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    _rl_replace_text(text,start,end);\n    (*(code *)PTR_xfree_00156bb4)(text);\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *text;" primitive_type (pointer_declarator "*text" * identifier) ;) (declaration "int start;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int end;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)PTR_rl_point_001575f0;" (assignment_expression "iVar3 = *(int *)PTR_rl_point_001575f0" identifier = (pointer_expression "*(int *)PTR_rl_point_001575f0" * (cast_expression "(int *)PTR_rl_point_001575f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "start = iVar3 + -1;" (assignment_expression "start = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if ((*(int *)PTR_rl_end_001575ec == iVar3) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')) {\n    pcVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(pcVar2,start,iVar3);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    return 0;\n  }" if (parenthesized_expression "((*(int *)PTR_rl_end_001575ec == iVar3) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~'))" ( (binary_expression "(*(int *)PTR_rl_end_001575ec == iVar3) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')" (parenthesized_expression "(*(int *)PTR_rl_end_001575ec == iVar3)" ( (binary_expression "*(int *)PTR_rl_end_001575ec == iVar3" (pointer_expression "*(int *)PTR_rl_end_001575ec" * (cast_expression "(int *)PTR_rl_end_001575ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) && (parenthesized_expression "(*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')" ( (binary_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~'" (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) == (char_literal "'~'" ' character ')) ))) )) (compound_statement "{\n    pcVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(pcVar2,start,iVar3);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    return 0;\n  }" { (expression_statement "pcVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);" (assignment_expression "pcVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" identifier = (call_expression "tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" identifier (argument_list "(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" ( (binary_expression "PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc" identifier + number_literal) )))) ;) (expression_statement "_rl_replace_text(pcVar2,start,iVar3);" (call_expression "_rl_replace_text(pcVar2,start,iVar3)" identifier (argument_list "(pcVar2,start,iVar3)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(pcVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(pcVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (-1 < start) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }\n      start = start + 1;\n      goto LAB_0010ff8c;\n    }\n  }" if (parenthesized_expression "(-1 < start)" ( (binary_expression "-1 < start" number_literal < identifier) )) (compound_statement "{\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }\n      start = start + 1;\n      goto LAB_0010ff8c;\n    }\n  }" { (expression_statement "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start);" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + start)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + start" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) ;) (if_statement "if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }\n      start = start + 1;\n      goto LAB_0010ff8c;\n    }" if (parenthesized_expression "(cVar1 != '~')" ( (binary_expression "cVar1 != '~'" identifier != (char_literal "'~'" ' character ')) )) (compound_statement "{\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }\n      start = start + 1;\n      goto LAB_0010ff8c;\n    }" { (if_statement "if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }" if (parenthesized_expression "((cVar1 != ' ') && (cVar1 != '\t'))" ( (binary_expression "(cVar1 != ' ') && (cVar1 != '\t')" (parenthesized_expression "(cVar1 != ' ')" ( (binary_expression "cVar1 != ' '" identifier != (char_literal "' '" ' character ')) )) && (parenthesized_expression "(cVar1 != '\t')" ( (binary_expression "cVar1 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar3 = iVar3 + -2;\n        do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');\n      }" { (expression_statement "iVar3 = iVar3 + -2;" (assignment_expression "iVar3 = iVar3 + -2" identifier = (binary_expression "iVar3 + -2" identifier + number_literal)) ;) (do_statement "do {\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        } while (cVar1 != '\t');" do (compound_statement "{\n          start = iVar3;\n          if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;\n          iVar3 = start + -1;\n        }" { (expression_statement "start = iVar3;" (assignment_expression "start = iVar3" identifier = identifier) ;) (if_statement "if ((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')) break;" if (parenthesized_expression "((start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' '))" ( (binary_expression "(start == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')" (parenthesized_expression "(start == -1)" ( (binary_expression "start == -1" identifier == number_literal) )) || (parenthesized_expression "(cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' ')" ( (comma_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start), cVar1 == ' '" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + start)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + start" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) , (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character '))) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = start + -1;" (assignment_expression "iVar3 = start + -1" identifier = (binary_expression "start + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\t')" ( (binary_expression "cVar1 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) )) ;) })) (expression_statement "start = start + 1;" (assignment_expression "start = start + 1" identifier = (binary_expression "start + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0010ff8c;" goto statement_identifier ;) })) })) (if_statement "if (start < 0) {\n    start = 0;\n  }" if (parenthesized_expression "(start < 0)" ( (binary_expression "start < 0" identifier < number_literal) )) (compound_statement "{\n    start = 0;\n  }" { (expression_statement "start = 0;" (assignment_expression "start = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0010ff8c:\n  iVar3 = start;" statement_identifier : (expression_statement "iVar3 = start;" (assignment_expression "iVar3 = start" identifier = identifier) ;)) (do_statement "do {\n    end = iVar3;\n    iVar3 = end + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar3 < *(int *)PTR_rl_end_001575ec);" do (compound_statement "{\n    end = iVar3;\n    iVar3 = end + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  }" { (expression_statement "end = iVar3;" (assignment_expression "end = iVar3" identifier = identifier) ;) (expression_statement "iVar3 = end + 1;" (assignment_expression "iVar3 = end + 1" identifier = (binary_expression "end + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) ;) (if_statement "if ((cVar1 == ' ') || (cVar1 == '\t')) break;" if (parenthesized_expression "((cVar1 == ' ') || (cVar1 == '\t'))" ( (binary_expression "(cVar1 == ' ') || (cVar1 == '\t')" (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) )) || (parenthesized_expression "(cVar1 == '\t')" ( (binary_expression "cVar1 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(iVar3 < *(int *)PTR_rl_end_001575ec)" ( (binary_expression "iVar3 < *(int *)PTR_rl_end_001575ec" identifier < (pointer_expression "*(int *)PTR_rl_end_001575ec" * (cast_expression "(int *)PTR_rl_end_001575ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) ;) (if_statement "if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start) == '~') {\n    pcVar2 = (char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2);\n    iVar3 = (end - start) + 1;\n    (*(code *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3);\n    pcVar2[iVar3] = '\0';\n    text = tilde_expand(pcVar2);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    _rl_replace_text(text,start,end);\n    (*(code *)PTR_xfree_00156bb4)(text);\n  }" if (parenthesized_expression "(*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start) == '~')" ( (binary_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start) == '~'" (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + start)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + start)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + start" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) == (char_literal "'~'" ' character ')) )) (compound_statement "{\n    pcVar2 = (char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2);\n    iVar3 = (end - start) + 1;\n    (*(code *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3);\n    pcVar2[iVar3] = '\0';\n    text = tilde_expand(pcVar2);\n    (*(code *)PTR_xfree_00156bb4)(pcVar2);\n    _rl_replace_text(text,start,end);\n    (*(code *)PTR_xfree_00156bb4)(text);\n  }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_001565b8)((end - start) + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001565b8)((end - start) + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001565b8)" ( (pointer_expression "*(code *)PTR_xmalloc_001565b8" * (cast_expression "(code *)PTR_xmalloc_001565b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((end - start) + 2)" ( (binary_expression "(end - start) + 2" (parenthesized_expression "(end - start)" ( (binary_expression "end - start" identifier - identifier) )) + number_literal) ))))) ;) (expression_statement "iVar3 = (end - start) + 1;" (assignment_expression "iVar3 = (end - start) + 1" identifier = (binary_expression "(end - start) + 1" (parenthesized_expression "(end - start)" ( (binary_expression "end - start" identifier - identifier) )) + number_literal)) ;) (expression_statement "(*(code *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3);" (call_expression "(*(code *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3)" (parenthesized_expression "(*(code *)PTR_strncpy_001583e4)" ( (pointer_expression "*(code *)PTR_strncpy_001583e4" * (cast_expression "(code *)PTR_strncpy_001583e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + start,iVar3)" ( identifier , (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + start" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) , identifier ))) ;) (expression_statement "pcVar2[iVar3] = '\0';" (assignment_expression "pcVar2[iVar3] = '\0'" (subscript_expression "pcVar2[iVar3]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "text = tilde_expand(pcVar2);" (assignment_expression "text = tilde_expand(pcVar2)" identifier = (call_expression "tilde_expand(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(pcVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(pcVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "_rl_replace_text(text,start,end);" (call_expression "_rl_replace_text(text,start,end)" identifier (argument_list "(text,start,end)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(text);" (call_expression "(*(code *)PTR_xfree_00156bb4)(text)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(text)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 rl_tilde_expand(void)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)PTR_rl_point_001575f0;\n  iVar3 = iVar4 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }\n  if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (iVar3 < 0) {\n    iVar3 = 0;\n  }\nLAB_0010ff8c:\n  iVar4 = iVar3;\n  do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 rl_tilde_expand(void)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)PTR_rl_point_001575f0;\n  iVar3 = iVar4 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }\n  if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (iVar3 < 0) {\n    iVar3 = 0;\n  }\nLAB_0010ff8c:\n  iVar4 = iVar3;\n  do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }\n  return 0;\n}" type_identifier (function_declarator "rl_tilde_expand(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)PTR_rl_point_001575f0;\n  iVar3 = iVar4 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }\n  if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (iVar3 < 0) {\n    iVar3 = 0;\n  }\nLAB_0010ff8c:\n  iVar4 = iVar3;\n  do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }\n  return 0;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "iVar4 = *(int *)PTR_rl_point_001575f0;" (assignment_expression "iVar4 = *(int *)PTR_rl_point_001575f0" identifier = (pointer_expression "*(int *)PTR_rl_point_001575f0" * (cast_expression "(int *)PTR_rl_point_001575f0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }" if (parenthesized_expression "((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~'))" ( (binary_expression "(*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')" (parenthesized_expression "(*(int *)PTR_rl_end_001575ec == iVar4)" ( (binary_expression "*(int *)PTR_rl_end_001575ec == iVar4" (pointer_expression "*(int *)PTR_rl_end_001575ec" * (cast_expression "(int *)PTR_rl_end_001575ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == identifier) )) && (parenthesized_expression "(*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')" ( (binary_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~'" (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar4" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) == (char_literal "'~'" ' character ')) ))) )) (compound_statement "{\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }" { (expression_statement "uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);" (assignment_expression "uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" identifier = (call_expression "tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" identifier (argument_list "(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" ( (binary_expression "PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc" identifier + number_literal) )))) ;) (expression_statement "_rl_replace_text(uVar2,iVar3,iVar4);" (call_expression "_rl_replace_text(uVar2,iVar3,iVar4)" identifier (argument_list "(uVar2,iVar3,iVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }" { (expression_statement "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) ;) (if_statement "if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }" if (parenthesized_expression "(cVar1 != '~')" ( (binary_expression "cVar1 != '~'" identifier != (char_literal "'~'" ' character ')) )) (compound_statement "{\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }" { (if_statement "if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }" if (parenthesized_expression "((cVar1 != ' ') && (cVar1 != '\t'))" ( (binary_expression "(cVar1 != ' ') && (cVar1 != '\t')" (parenthesized_expression "(cVar1 != ' ')" ( (binary_expression "cVar1 != ' '" identifier != (char_literal "' '" ' character ')) )) && (parenthesized_expression "(cVar1 != '\t')" ( (binary_expression "cVar1 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }" { (expression_statement "iVar4 = iVar4 + -2;" (assignment_expression "iVar4 = iVar4 + -2" identifier = (binary_expression "iVar4 + -2" identifier + number_literal)) ;) (do_statement "do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');" do (compound_statement "{\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        }" { (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (if_statement "if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;" if (parenthesized_expression "((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' '))" ( (binary_expression "(iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')" (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) || (parenthesized_expression "(cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')" ( (comma_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' '" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) , (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character '))) ))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar3 + -1;" (assignment_expression "iVar4 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\t')" ( (binary_expression "cVar1 != '\t'" identifier != (char_literal "'\t'" ' escape_sequence ')) )) ;) })) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_0010ff8c;" goto statement_identifier ;) })) })) (if_statement "if (iVar3 < 0) {\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0010ff8c:\n  iVar4 = iVar3;" statement_identifier : (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;)) (do_statement "do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);" do (compound_statement "{\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  }" { (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) (expression_statement "iVar4 = iVar5 + 1;" (assignment_expression "iVar4 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" identifier = (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar4" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) ))))) ;) (if_statement "if ((cVar1 == ' ') || (cVar1 == '\t')) break;" if (parenthesized_expression "((cVar1 == ' ') || (cVar1 == '\t'))" ( (binary_expression "(cVar1 == ' ') || (cVar1 == '\t')" (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) )) || (parenthesized_expression "(cVar1 == '\t')" ( (binary_expression "cVar1 == '\t'" identifier == (char_literal "'\t'" ' escape_sequence ')) ))) )) (break_statement "break;" break ;)) }) while (parenthesized_expression "(iVar4 < *(int *)PTR_rl_end_001575ec)" ( (binary_expression "iVar4 < *(int *)PTR_rl_end_001575ec" identifier < (pointer_expression "*(int *)PTR_rl_end_001575ec" * (cast_expression "(int *)PTR_rl_end_001575ec" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) ;) (if_statement "if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }" if (parenthesized_expression "(*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')" ( (binary_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~'" (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" * (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" ( (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) == (char_literal "'~'" ' character ')) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }" { (expression_statement "iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);" (assignment_expression "iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2)" identifier = (call_expression "(*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001565b8)" ( (pointer_expression "*(code *)PTR_xmalloc_001565b8" * (cast_expression "(code *)PTR_xmalloc_001565b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((iVar5 - iVar3) + 2)" ( (binary_expression "(iVar5 - iVar3) + 2" (parenthesized_expression "(iVar5 - iVar3)" ( (binary_expression "iVar5 - iVar3" identifier - identifier) )) + number_literal) )))) ;) (expression_statement "iVar6 = (iVar5 - iVar3) + 1;" (assignment_expression "iVar6 = (iVar5 - iVar3) + 1" identifier = (binary_expression "(iVar5 - iVar3) + 1" (parenthesized_expression "(iVar5 - iVar3)" ( (binary_expression "iVar5 - iVar3" identifier - identifier) )) + number_literal)) ;) (expression_statement "(*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);" (call_expression "(*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6)" (parenthesized_expression "(*(code *)PTR_strncpy_001583e4)" ( (pointer_expression "*(code *)PTR_strncpy_001583e4" * (cast_expression "(code *)PTR_strncpy_001583e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6)" ( identifier , (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" * (cast_expression "(int *)PTR_rl_line_buffer_001575e8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) , identifier ))) ;) (expression_statement "*(undefined1 *)(iVar4 + iVar6) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + iVar6) = 0" (pointer_expression "*(undefined1 *)(iVar4 + iVar6)" * (cast_expression "(undefined1 *)(iVar4 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar2 = tilde_expand(iVar4);" (assignment_expression "uVar2 = tilde_expand(iVar4)" identifier = (call_expression "tilde_expand(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(iVar4);" (call_expression "(*(code *)PTR_xfree_00156bb4)(iVar4)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "_rl_replace_text(uVar2,iVar3,iVar5);" (call_expression "_rl_replace_text(uVar2,iVar3,iVar5)" identifier (argument_list "(uVar2,iVar3,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" ( (pointer_expression "*(code *)PTR_xfree_00156bb4" * (cast_expression "(code *)PTR_xfree_00156bb4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) )))) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) ))))) , (binary_expression IDENT == (char_literal ' character '))) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (break_statement break ;)) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) )))) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 rl_tilde_expand(void)\n\n{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)PTR_rl_point_001575f0;\n  iVar3 = iVar4 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }\n  if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (iVar3 < 0) {\n    iVar3 = 0;\n  }\nLAB_0010ff8c:\n  iVar4 = iVar3;\n  do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "rl_tilde_expand(void)" (identifier "rl_tilde_expand") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  \n  iVar4 = *(int *)PTR_rl_point_001575f0;\n  iVar3 = iVar4 + -1;\n  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }\n  if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }\n  if (iVar3 < 0) {\n    iVar3 = 0;\n  }\nLAB_0010ff8c:\n  iVar4 = iVar3;\n  do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);\n  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }\n  return 0;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "iVar4 = *(int *)PTR_rl_point_001575f0;" (assignment_expression "iVar4 = *(int *)PTR_rl_point_001575f0" (identifier "iVar4") (= "=") (pointer_expression "*(int *)PTR_rl_point_001575f0" (* "*") (cast_expression "(int *)PTR_rl_point_001575f0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_point_001575f0")))) (; ";")) (expression_statement "iVar3 = iVar4 + -1;" (assignment_expression "iVar3 = iVar4 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if ((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }" (if "if") (parenthesized_expression "((*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~'))" (( "(") (binary_expression "(*(int *)PTR_rl_end_001575ec == iVar4) &&\n     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')" (parenthesized_expression "(*(int *)PTR_rl_end_001575ec == iVar4)" (( "(") (binary_expression "*(int *)PTR_rl_end_001575ec == iVar4" (pointer_expression "*(int *)PTR_rl_end_001575ec" (* "*") (cast_expression "(int *)PTR_rl_end_001575ec" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_end_001575ec"))) (== "==") (identifier "iVar4")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')" (( "(") (binary_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~'" (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" (* "*") (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" (( "(") (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar4" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" (* "*") (cast_expression "(int *)PTR_rl_line_buffer_001575e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_line_buffer_001575e8"))) (+ "+") (identifier "iVar4")) () ")")))) (== "==") (char_literal "'~'" (' "'") (character "~") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);\n    _rl_replace_text(uVar2,iVar3,iVar4);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n    return 0;\n  }" ({ "{") (expression_statement "uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);" (assignment_expression "uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" (identifier "uVar2") (= "=") (call_expression "tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" (identifier "tilde_expand") (argument_list "(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc)" (( "(") (binary_expression "PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc" (identifier "PTR_s_at_element__and_the_COMMANDS_are_00156654") (+ "+") (number_literal "-0x4ddc")) () ")")))) (; ";")) (expression_statement "_rl_replace_text(uVar2,iVar3,iVar4);" (call_expression "_rl_replace_text(uVar2,iVar3,iVar4)" (identifier "_rl_replace_text") (argument_list "(uVar2,iVar3,iVar4)" (( "(") (identifier "uVar2") (, ",") (identifier "iVar3") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" (( "(") (pointer_expression "*(code *)PTR_xfree_00156bb4" (* "*") (cast_expression "(code *)PTR_xfree_00156bb4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xfree_00156bb4"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (-1 < iVar3) {\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);\n    if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }\n  }" ({ "{") (expression_statement "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (* "*") (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (( "(") (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" (* "*") (cast_expression "(int *)PTR_rl_line_buffer_001575e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_line_buffer_001575e8"))) (+ "+") (identifier "iVar3")) () ")"))))) (; ";")) (if_statement "if (cVar1 != '~') {\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }" (if "if") (parenthesized_expression "(cVar1 != '~')" (( "(") (binary_expression "cVar1 != '~'" (identifier "cVar1") (!= "!=") (char_literal "'~'" (' "'") (character "~") (' "'"))) () ")")) (compound_statement "{\n      if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }\n      iVar3 = iVar3 + 1;\n      goto LAB_0010ff8c;\n    }" ({ "{") (if_statement "if ((cVar1 != ' ') && (cVar1 != '\t')) {\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }" (if "if") (parenthesized_expression "((cVar1 != ' ') && (cVar1 != '\t'))" (( "(") (binary_expression "(cVar1 != ' ') && (cVar1 != '\t')" (parenthesized_expression "(cVar1 != ' ')" (( "(") (binary_expression "cVar1 != ' '" (identifier "cVar1") (!= "!=") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar1 != '\t')" (( "(") (binary_expression "cVar1 != '\t'" (identifier "cVar1") (!= "!=") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        iVar4 = iVar4 + -2;\n        do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');\n      }" ({ "{") (expression_statement "iVar4 = iVar4 + -2;" (assignment_expression "iVar4 = iVar4 + -2" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -2" (identifier "iVar4") (+ "+") (number_literal "-2"))) (; ";")) (do_statement "do {\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        } while (cVar1 != '\t');" (do "do") (compound_statement "{\n          iVar3 = iVar4;\n          if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;\n          iVar4 = iVar3 + -1;\n        }" ({ "{") (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" (identifier "iVar3") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if ((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;" (if "if") (parenthesized_expression "((iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' '))" (( "(") (binary_expression "(iVar3 == -1) ||\n             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')" (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (|| "||") (parenthesized_expression "(cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')" (( "(") (comma_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' '" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (* "*") (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (( "(") (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" (* "*") (cast_expression "(int *)PTR_rl_line_buffer_001575e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_line_buffer_001575e8"))) (+ "+") (identifier "iVar3")) () ")"))))) (, ",") (binary_expression "cVar1 == ' '" (identifier "cVar1") (== "==") (char_literal "' '" (' "'") (character " ") (' "'")))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = iVar3 + -1;" (assignment_expression "iVar4 = iVar3 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\t')" (( "(") (binary_expression "cVar1 != '\t'" (identifier "cVar1") (!= "!=") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_0010ff8c;" (goto "goto") (statement_identifier "LAB_0010ff8c") (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar3 < 0) {\n    iVar3 = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = 0;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (labeled_statement "LAB_0010ff8c:\n  iVar4 = iVar3;" (statement_identifier "LAB_0010ff8c") (: ":") (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";"))) (do_statement "do {\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  } while (iVar4 < *(int *)PTR_rl_end_001575ec);" (do "do") (compound_statement "{\n    iVar5 = iVar4;\n    iVar4 = iVar5 + 1;\n    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);\n    if ((cVar1 == ' ') || (cVar1 == '\t')) break;\n  }" ({ "{") (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar4 = iVar5 + 1;" (assignment_expression "iVar4 = iVar5 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);" (assignment_expression "cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" (* "*") (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar4)" (( "(") (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar4" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" (* "*") (cast_expression "(int *)PTR_rl_line_buffer_001575e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_line_buffer_001575e8"))) (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (if_statement "if ((cVar1 == ' ') || (cVar1 == '\t')) break;" (if "if") (parenthesized_expression "((cVar1 == ' ') || (cVar1 == '\t'))" (( "(") (binary_expression "(cVar1 == ' ') || (cVar1 == '\t')" (parenthesized_expression "(cVar1 == ' ')" (( "(") (binary_expression "cVar1 == ' '" (identifier "cVar1") (== "==") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar1 == '\t')" (( "(") (binary_expression "cVar1 == '\t'" (identifier "cVar1") (== "==") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}")) (while "while") (parenthesized_expression "(iVar4 < *(int *)PTR_rl_end_001575ec)" (( "(") (binary_expression "iVar4 < *(int *)PTR_rl_end_001575ec" (identifier "iVar4") (< "<") (pointer_expression "*(int *)PTR_rl_end_001575ec" (* "*") (cast_expression "(int *)PTR_rl_end_001575ec" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_end_001575ec")))) () ")")) (; ";")) (if_statement "if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~')" (( "(") (binary_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~'" (pointer_expression "*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (* "*") (cast_expression "(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_rl_line_buffer_001575e8 + iVar3)" (( "(") (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" (* "*") (cast_expression "(int *)PTR_rl_line_buffer_001575e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_line_buffer_001575e8"))) (+ "+") (identifier "iVar3")) () ")")))) (== "==") (char_literal "'~'" (' "'") (character "~") (' "'"))) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);\n    iVar6 = (iVar5 - iVar3) + 1;\n    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);\n    *(undefined1 *)(iVar4 + iVar6) = 0;\n    uVar2 = tilde_expand(iVar4);\n    (*(code *)PTR_xfree_00156bb4)(iVar4);\n    _rl_replace_text(uVar2,iVar3,iVar5);\n    (*(code *)PTR_xfree_00156bb4)(uVar2);\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);" (assignment_expression "iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001565b8)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_001565b8" (* "*") (cast_expression "(code *)PTR_xmalloc_001565b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_001565b8"))) () ")")) (argument_list "((iVar5 - iVar3) + 2)" (( "(") (binary_expression "(iVar5 - iVar3) + 2" (parenthesized_expression "(iVar5 - iVar3)" (( "(") (binary_expression "iVar5 - iVar3" (identifier "iVar5") (- "-") (identifier "iVar3")) () ")")) (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "iVar6 = (iVar5 - iVar3) + 1;" (assignment_expression "iVar6 = (iVar5 - iVar3) + 1" (identifier "iVar6") (= "=") (binary_expression "(iVar5 - iVar3) + 1" (parenthesized_expression "(iVar5 - iVar3)" (( "(") (binary_expression "iVar5 - iVar3" (identifier "iVar5") (- "-") (identifier "iVar3")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);" (call_expression "(*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6)" (parenthesized_expression "(*(code *)PTR_strncpy_001583e4)" (( "(") (pointer_expression "*(code *)PTR_strncpy_001583e4" (* "*") (cast_expression "(code *)PTR_strncpy_001583e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncpy_001583e4"))) () ")")) (argument_list "(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6)" (( "(") (identifier "iVar4") (, ",") (binary_expression "*(int *)PTR_rl_line_buffer_001575e8 + iVar3" (pointer_expression "*(int *)PTR_rl_line_buffer_001575e8" (* "*") (cast_expression "(int *)PTR_rl_line_buffer_001575e8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_line_buffer_001575e8"))) (+ "+") (identifier "iVar3")) (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(iVar4 + iVar6) = 0;" (assignment_expression "*(undefined1 *)(iVar4 + iVar6) = 0" (pointer_expression "*(undefined1 *)(iVar4 + iVar6)" (* "*") (cast_expression "(undefined1 *)(iVar4 + iVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar6)" (( "(") (binary_expression "iVar4 + iVar6" (identifier "iVar4") (+ "+") (identifier "iVar6")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = tilde_expand(iVar4);" (assignment_expression "uVar2 = tilde_expand(iVar4)" (identifier "uVar2") (= "=") (call_expression "tilde_expand(iVar4)" (identifier "tilde_expand") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_xfree_00156bb4)(iVar4);" (call_expression "(*(code *)PTR_xfree_00156bb4)(iVar4)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" (( "(") (pointer_expression "*(code *)PTR_xfree_00156bb4" (* "*") (cast_expression "(code *)PTR_xfree_00156bb4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xfree_00156bb4"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "_rl_replace_text(uVar2,iVar3,iVar5);" (call_expression "_rl_replace_text(uVar2,iVar3,iVar5)" (identifier "_rl_replace_text") (argument_list "(uVar2,iVar3,iVar5)" (( "(") (identifier "uVar2") (, ",") (identifier "iVar3") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_xfree_00156bb4)(uVar2);" (call_expression "(*(code *)PTR_xfree_00156bb4)(uVar2)" (parenthesized_expression "(*(code *)PTR_xfree_00156bb4)" (( "(") (pointer_expression "*(code *)PTR_xfree_00156bb4" (* "*") (cast_expression "(code *)PTR_xfree_00156bb4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xfree_00156bb4"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(int ignore,int key)

{
  char var_6;
  char *pcVar2;
  char *text;
  int var_5;
  int var_1;
  int var_7;
  
  var_1 = *(int *)PTR_rl_point_001575f0;
  var_5 = var_1 + -1;
  if ((*(int *)PTR_rl_end_001575ec == var_1) &&
     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + var_1) == '~')) {
    pcVar2 = var_2(var_3 + -0x4ddc);
    var_4(pcVar2,var_5,var_1);
    (*(type_1 *)PTR_xfree_00156bb4)(pcVar2);
    return 0;
  }
  if (-1 < var_5) {
    var_6 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + var_5);
    if (var_6 != '~') {
      if ((var_6 != ' ') && (var_6 != '\t')) {
        var_1 = var_1 + -2;
        do {
          var_5 = var_1;
          if ((var_5 == -1) ||
             (var_6 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + var_5), var_6 == ' ')) break;
          var_1 = var_5 + -1;
        } while (var_6 != '\t');
      }
      var_5 = var_5 + 1;
      goto LAB_0010ff8c;
    }
  }
  if (var_5 < 0) {
    var_5 = 0;
  }
LAB_0010ff8c:
  var_1 = var_5;
  do {
    var_7 = var_1;
    var_1 = var_7 + 1;
    var_6 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + var_1);
    if ((var_6 == ' ') || (var_6 == '\t')) break;
  } while (var_1 < *(int *)PTR_rl_end_001575ec);
  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + var_5) == '~') {
    pcVar2 = (char *)(*(type_1 *)PTR_xmalloc_001565b8)((var_7 - var_5) + 2);
    var_1 = (var_7 - var_5) + 1;
    (*(type_1 *)PTR_strncpy_001583e4)(pcVar2,*(int *)PTR_rl_line_buffer_001575e8 + var_5,var_1);
    pcVar2[var_1] = '\0';
    text = var_2(pcVar2);
    (*(type_1 *)PTR_xfree_00156bb4)(pcVar2);
    var_4(text,var_5,var_7);
    (*(type_1 *)PTR_xfree_00156bb4)(text);
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))))) right: (char_literal (character)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))))) right: (binary_expression left: (identifier) right: (char_literal (character))))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (break_statement))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))))) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))) (return_statement (number_literal)))))

undefined4 MASKED(void)

{
  char cVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  
  iVar4 = *(int *)PTR_rl_point_001575f0;
  iVar3 = iVar4 + -1;
  if ((*(int *)PTR_rl_end_001575ec == iVar4) &&
     (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4) == '~')) {
    uVar2 = tilde_expand(PTR_s_at_element__and_the_COMMANDS_are_00156654 + -0x4ddc);
    _rl_replace_text(uVar2,iVar3,iVar4);
    (*(code *)PTR_xfree_00156bb4)(uVar2);
    return 0;
  }
  if (-1 < iVar3) {
    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3);
    if (cVar1 != '~') {
      if ((cVar1 != ' ') && (cVar1 != '\t')) {
        iVar4 = iVar4 + -2;
        do {
          iVar3 = iVar4;
          if ((iVar3 == -1) ||
             (cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3), cVar1 == ' ')) break;
          iVar4 = iVar3 + -1;
        } while (cVar1 != '\t');
      }
      iVar3 = iVar3 + 1;
      goto LAB_0010ff8c;
    }
  }
  if (iVar3 < 0) {
    iVar3 = 0;
  }
LAB_0010ff8c:
  iVar4 = iVar3;
  do {
    iVar5 = iVar4;
    iVar4 = iVar5 + 1;
    cVar1 = *(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar4);
    if ((cVar1 == ' ') || (cVar1 == '\t')) break;
  } while (iVar4 < *(int *)PTR_rl_end_001575ec);
  if (*(char *)(*(int *)PTR_rl_line_buffer_001575e8 + iVar3) == '~') {
    iVar4 = (*(code *)PTR_xmalloc_001565b8)((iVar5 - iVar3) + 2);
    iVar6 = (iVar5 - iVar3) + 1;
    (*(code *)PTR_strncpy_001583e4)(iVar4,*(int *)PTR_rl_line_buffer_001575e8 + iVar3,iVar6);
    *(undefined1 *)(iVar4 + iVar6) = 0;
    uVar2 = tilde_expand(iVar4);
    (*(code *)PTR_xfree_00156bb4)(iVar4);
    _rl_replace_text(uVar2,iVar3,iVar5);
    (*(code *)PTR_xfree_00156bb4)(uVar2);
  }
  return 0;
}

