
int bash_delete_history_range(int first,int last)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();
  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {
    iVar2 = 0;
    do {
      piVar1 = piVar1 + 1;
      iVar2 = iVar2 + 1;
      (*(code *)PTR_free_history_entry_001454b8)();
    } while (*piVar1 != 0);
    *(int *)PTR_history_lines_this_session_001447e4 =
         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;
    return 1;
  }
  *(undefined4 *)PTR_history_lines_this_session_001447e4 =
       *(undefined4 *)PTR_history_lines_this_session_001447e4;
  return 1;
}



undefined4 bash_delete_history_range(void)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();
  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {
    iVar2 = 0;
    do {
      piVar1 = piVar1 + 1;
      iVar2 = iVar2 + 1;
      (*(code *)PTR_free_history_entry_001454b8)();
    } while (*piVar1 != 0);
    *(int *)PTR_history_lines_this_session_001447e4 =
         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;
    return 1;
  }
  *(undefined4 *)PTR_history_lines_this_session_001447e4 =
       *(undefined4 *)PTR_history_lines_this_session_001447e4;
  return 1;
}


lui gp,0xb
addiu gp,gp,0x34f0
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7084(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
jalr t9
_sw s0,0x1c(sp)
beq v0,zero,0x000990d4
_lw gp,0x10(sp)
lw a0,0x0(v0)
beq a0,zero,0x000990d4
_addiu s0,v0,0x4
or s1,zero,zero
lw t9,-0x7088(gp)
addiu s0,s0,0x4
jalr t9
_addiu s1,s1,0x1
lw a0,-0x4(s0)
bne a0,zero,0x00099090
_lw gp,0x10(sp)
lw a0,-0x7d5c(gp)
li v0,0x1
lw ra,0x24(sp)
lw s0,0x1c(sp)
lw v1,0x0(a0)
subu s1,v1,s1
sw s1,0x0(a0)
lw s1,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw a0,-0x7d5c(gp)
or s1,zero,zero
lw ra,0x24(sp)
li v0,0x1
lw s0,0x1c(sp)
lw v1,0x0(a0)
subu s1,v1,s1
sw s1,0x0(a0)
lw s1,0x20(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "undefined4 bash_delete_history_range(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}\n\n" (function_definition "undefined4 bash_delete_history_range(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}" type_identifier (function_declarator "bash_delete_history_range(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)()" identifier = (cast_expression "(int *)(*(code *)PTR_remove_history_range_001454bc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_remove_history_range_001454bc)()" (parenthesized_expression "(*(code *)PTR_remove_history_range_001454bc)" ( (pointer_expression "*(code *)PTR_remove_history_range_001454bc" * (cast_expression "(code *)PTR_remove_history_range_001454bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 != 0))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 != 0)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) ))) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);" do (compound_statement "{\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    }" { (expression_statement "piVar1 = piVar1 + 1;" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_history_entry_001454b8)();" (call_expression "(*(code *)PTR_free_history_entry_001454b8)()" (parenthesized_expression "(*(code *)PTR_free_history_entry_001454b8)" ( (pointer_expression "*(code *)PTR_free_history_entry_001454b8" * (cast_expression "(code *)PTR_free_history_entry_001454b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (expression_statement "*(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;" (assignment_expression "*(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2" (pointer_expression "*(int *)PTR_history_lines_this_session_001447e4" * (cast_expression "(int *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)PTR_history_lines_this_session_001447e4 - iVar2" (pointer_expression "*(int *)PTR_history_lines_this_session_001447e4" * (cast_expression "(int *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) - identifier)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;" (assignment_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4" (pointer_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4" * (cast_expression "(undefined4 *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4" * (cast_expression "(undefined4 *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int bash_delete_history_range(int first,int last)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}\n\n" (function_definition "int bash_delete_history_range(int first,int last)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}" primitive_type (function_declarator "bash_delete_history_range(int first,int last)" identifier (parameter_list "(int first,int last)" ( (parameter_declaration "int first" primitive_type identifier) , (parameter_declaration "int last" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)()" identifier = (cast_expression "(int *)(*(code *)PTR_remove_history_range_001454bc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_remove_history_range_001454bc)()" (parenthesized_expression "(*(code *)PTR_remove_history_range_001454bc)" ( (pointer_expression "*(code *)PTR_remove_history_range_001454bc" * (cast_expression "(code *)PTR_remove_history_range_001454bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 != 0))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 != 0)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) ))) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);" do (compound_statement "{\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    }" { (expression_statement "piVar1 = piVar1 + 1;" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_history_entry_001454b8)();" (call_expression "(*(code *)PTR_free_history_entry_001454b8)()" (parenthesized_expression "(*(code *)PTR_free_history_entry_001454b8)" ( (pointer_expression "*(code *)PTR_free_history_entry_001454b8" * (cast_expression "(code *)PTR_free_history_entry_001454b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (expression_statement "*(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;" (assignment_expression "*(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2" (pointer_expression "*(int *)PTR_history_lines_this_session_001447e4" * (cast_expression "(int *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)PTR_history_lines_this_session_001447e4 - iVar2" (pointer_expression "*(int *)PTR_history_lines_this_session_001447e4" * (cast_expression "(int *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) - identifier)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;" (assignment_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4" (pointer_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4" * (cast_expression "(undefined4 *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4" * (cast_expression "(undefined4 *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 bash_delete_history_range(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}\n\n" (function_definition "undefined4 bash_delete_history_range(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}" type_identifier (function_declarator "bash_delete_history_range(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)()" identifier = (cast_expression "(int *)(*(code *)PTR_remove_history_range_001454bc)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_remove_history_range_001454bc)()" (parenthesized_expression "(*(code *)PTR_remove_history_range_001454bc)" ( (pointer_expression "*(code *)PTR_remove_history_range_001454bc" * (cast_expression "(code *)PTR_remove_history_range_001454bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }" if (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 != 0))" ( (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 != 0)" (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) ))) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);" do (compound_statement "{\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    }" { (expression_statement "piVar1 = piVar1 + 1;" (assignment_expression "piVar1 = piVar1 + 1" identifier = (binary_expression "piVar1 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_history_entry_001454b8)();" (call_expression "(*(code *)PTR_free_history_entry_001454b8)()" (parenthesized_expression "(*(code *)PTR_free_history_entry_001454b8)" ( (pointer_expression "*(code *)PTR_free_history_entry_001454b8" * (cast_expression "(code *)PTR_free_history_entry_001454b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (expression_statement "*(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;" (assignment_expression "*(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2" (pointer_expression "*(int *)PTR_history_lines_this_session_001447e4" * (cast_expression "(int *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)PTR_history_lines_this_session_001447e4 - iVar2" (pointer_expression "*(int *)PTR_history_lines_this_session_001447e4" * (cast_expression "(int *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) - identifier)) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "*(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;" (assignment_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4" (pointer_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4" * (cast_expression "(undefined4 *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4" * (cast_expression "(undefined4 *)PTR_history_lines_this_session_001447e4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) - IDENT)) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 bash_delete_history_range(void)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "bash_delete_history_range(void)" (identifier "bash_delete_history_range") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();\n  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }\n  *(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;\n  return 1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)()" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR_remove_history_range_001454bc)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_remove_history_range_001454bc)()" (parenthesized_expression "(*(code *)PTR_remove_history_range_001454bc)" (( "(") (pointer_expression "*(code *)PTR_remove_history_range_001454bc" (* "*") (cast_expression "(code *)PTR_remove_history_range_001454bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_remove_history_range_001454bc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }" (if "if") (parenthesized_expression "((piVar1 != (int *)0x0) && (*piVar1 != 0))" (( "(") (binary_expression "(piVar1 != (int *)0x0) && (*piVar1 != 0)" (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = 0;\n    do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);\n    *(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;\n    return 1;\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    } while (*piVar1 != 0);" (do "do") (compound_statement "{\n      piVar1 = piVar1 + 1;\n      iVar2 = iVar2 + 1;\n      (*(code *)PTR_free_history_entry_001454b8)();\n    }" ({ "{") (expression_statement "piVar1 = piVar1 + 1;" (assignment_expression "piVar1 = piVar1 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)PTR_free_history_entry_001454b8)();" (call_expression "(*(code *)PTR_free_history_entry_001454b8)()" (parenthesized_expression "(*(code *)PTR_free_history_entry_001454b8)" (( "(") (pointer_expression "*(code *)PTR_free_history_entry_001454b8" (* "*") (cast_expression "(code *)PTR_free_history_entry_001454b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_history_entry_001454b8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "*(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;" (assignment_expression "*(int *)PTR_history_lines_this_session_001447e4 =\n         *(int *)PTR_history_lines_this_session_001447e4 - iVar2" (pointer_expression "*(int *)PTR_history_lines_this_session_001447e4" (* "*") (cast_expression "(int *)PTR_history_lines_this_session_001447e4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_history_lines_this_session_001447e4"))) (= "=") (binary_expression "*(int *)PTR_history_lines_this_session_001447e4 - iVar2" (pointer_expression "*(int *)PTR_history_lines_this_session_001447e4" (* "*") (cast_expression "(int *)PTR_history_lines_this_session_001447e4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_history_lines_this_session_001447e4"))) (- "-") (identifier "iVar2"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4;" (assignment_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4 =\n       *(undefined4 *)PTR_history_lines_this_session_001447e4" (pointer_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4" (* "*") (cast_expression "(undefined4 *)PTR_history_lines_this_session_001447e4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_history_lines_this_session_001447e4"))) (= "=") (pointer_expression "*(undefined4 *)PTR_history_lines_this_session_001447e4" (* "*") (cast_expression "(undefined4 *)PTR_history_lines_this_session_001447e4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_history_lines_this_session_001447e4")))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (return_statement (number_literal)))))

undefined4 MASKED(void)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = (int *)(*(code *)PTR_remove_history_range_001454bc)();
  if ((piVar1 != (int *)0x0) && (*piVar1 != 0)) {
    iVar2 = 0;
    do {
      piVar1 = piVar1 + 1;
      iVar2 = iVar2 + 1;
      (*(code *)PTR_free_history_entry_001454b8)();
    } while (*piVar1 != 0);
    *(int *)PTR_history_lines_this_session_001447e4 =
         *(int *)PTR_history_lines_this_session_001447e4 - iVar2;
    return 1;
  }
  *(undefined4 *)PTR_history_lines_this_session_001447e4 =
       *(undefined4 *)PTR_history_lines_this_session_001447e4;
  return 1;
}

