
char * full_pathname(char *file)

{
  int iVar1;
  undefined4 uVar2;
  char *pcVar3;
  char *pcVar4;
  
  if (*file == '~') {
    pcVar3 = bash_tilde_expand(file,0);
  }
  else {
    iVar1 = (*(code *)PTR_strlen_00146390)();
    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);
    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file);
  }
  pcVar4 = pcVar3;
  if (*pcVar3 != '/') {
    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);
    (*(code *)PTR_free_001464fc)(pcVar3);
  }
  return pcVar4;
}



char * full_pathname(char *param_1)

{
  int iVar1;
  undefined4 uVar2;
  char *pcVar3;
  char *pcVar4;
  
  if (*param_1 == '~') {
    pcVar3 = (char *)bash_tilde_expand(param_1,0);
  }
  else {
    iVar1 = (*(code *)PTR_strlen_00146390)();
    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);
    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);
  }
  pcVar4 = pcVar3;
  if (*pcVar3 != '/') {
    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);
    (*(code *)PTR_free_001464fc)(pcVar3);
  }
  return pcVar4;
}


lui gp,0x11
addiu gp,gp,-0x5e84
addu gp,gp,t9
addiu sp,sp,-0x20
li v0,0x7e
sw gp,0x10(sp)
sw ra,0x1c(sp)
sw s0,0x18(sp)
lb v1,0x0(a0)
beq v1,v0,0x0004246c
_lw t9,-0x61b0(gp)
jalr t9
_or s0,a0,zero
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
jalr t9
_addiu a0,v0,0x1
or a1,s0,zero
lw gp,0x10(sp)
lw t9,-0x6128(gp)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
or s0,v0,zero
lb v1,0x0(s0)
li v0,0x2f
beq v1,v0,0x00042458
_lw t9,-0x7a70(gp)
li a2,0x6
or a0,zero,zero
jalr t9
_or a1,s0,zero
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x6044(gp)
jalr t9
_or s0,v0,zero
lw ra,0x1c(sp)
or v0,s0,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7a54(gp)
bal 0x00042238
_or a1,zero,zero
lw gp,0x10(sp)
b 0x00042424
_or s0,v0,zero
(translation_unit "char * full_pathname(char *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}\n\n" (function_definition "char * full_pathname(char *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}" primitive_type (pointer_declarator "* full_pathname(char *param_1)" * (function_declarator "full_pathname(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" if (parenthesized_expression "(*param_1 == '~')" ( (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" * identifier) == (char_literal "'~'" ' character ')) )) (compound_statement "{\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }" { (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" identifier = (cast_expression "(char *)bash_tilde_expand(param_1,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bash_tilde_expand(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);" (assignment_expression "uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1)" identifier = (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar1 + 1)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" identifier = (cast_expression "(char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_1)" ( identifier , identifier ))))) ;) }))) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (if_statement "if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }" if (parenthesized_expression "(*pcVar3 != '/')" ( (binary_expression "*pcVar3 != '/'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }" { (expression_statement "pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" identifier = (cast_expression "(char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" (parenthesized_expression "(*(code *)PTR_sh_makepath_00144ad0)" ( (pointer_expression "*(code *)PTR_sh_makepath_00144ad0" * (cast_expression "(code *)PTR_sh_makepath_00144ad0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar3,6)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar3);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar3)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier ))) ;) })) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "char * full_pathname(char *file)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*file == '~') {\n    pcVar3 = bash_tilde_expand(file,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}\n\n" (function_definition "char * full_pathname(char *file)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*file == '~') {\n    pcVar3 = bash_tilde_expand(file,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}" primitive_type (pointer_declarator "* full_pathname(char *file)" * (function_declarator "full_pathname(char *file)" identifier (parameter_list "(char *file)" ( (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*file == '~') {\n    pcVar3 = bash_tilde_expand(file,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (*file == '~') {\n    pcVar3 = bash_tilde_expand(file,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file);\n  }" if (parenthesized_expression "(*file == '~')" ( (binary_expression "*file == '~'" (pointer_expression "*file" * identifier) == (char_literal "'~'" ' character ')) )) (compound_statement "{\n    pcVar3 = bash_tilde_expand(file,0);\n  }" { (expression_statement "pcVar3 = bash_tilde_expand(file,0);" (assignment_expression "pcVar3 = bash_tilde_expand(file,0)" identifier = (call_expression "bash_tilde_expand(file,0)" identifier (argument_list "(file,0)" ( identifier , number_literal )))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);" (assignment_expression "uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1)" identifier = (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar1 + 1)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,file)" identifier = (cast_expression "(char *)(*(code *)PTR_strcpy_00146418)(uVar2,file)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strcpy_00146418)(uVar2,file)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,file)" ( identifier , identifier ))))) ;) }))) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (if_statement "if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }" if (parenthesized_expression "(*pcVar3 != '/')" ( (binary_expression "*pcVar3 != '/'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }" { (expression_statement "pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" identifier = (cast_expression "(char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" (parenthesized_expression "(*(code *)PTR_sh_makepath_00144ad0)" ( (pointer_expression "*(code *)PTR_sh_makepath_00144ad0" * (cast_expression "(code *)PTR_sh_makepath_00144ad0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar3,6)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar3);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar3)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier ))) ;) })) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "char * full_pathname(char *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}\n\n" (function_definition "char * full_pathname(char *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}" primitive_type (pointer_declarator "* full_pathname(char *param_1)" * (function_declarator "full_pathname(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" if (parenthesized_expression "(*param_1 == '~')" ( (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" * identifier) == (char_literal "'~'" ' character ')) )) (compound_statement "{\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }" { (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" identifier = (cast_expression "(char *)bash_tilde_expand(param_1,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "bash_tilde_expand(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))))) ;) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);" (assignment_expression "uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1)" identifier = (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar1 + 1)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" identifier = (cast_expression "(char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_1)" ( identifier , identifier ))))) ;) }))) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) ;) (if_statement "if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }" if (parenthesized_expression "(*pcVar3 != '/')" ( (binary_expression "*pcVar3 != '/'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }" { (expression_statement "pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" identifier = (cast_expression "(char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" (parenthesized_expression "(*(code *)PTR_sh_makepath_00144ad0)" ( (pointer_expression "*(code *)PTR_sh_makepath_00144ad0" * (cast_expression "(code *)PTR_sh_makepath_00144ad0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,pcVar3,6)" ( number_literal , identifier , number_literal ))))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar3);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar3)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier ))) ;) })) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (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 ( IDENT , IDENT ))))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (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 ( LIT , IDENT , LIT ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * full_pathname(char *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}" (primitive_type "char") (pointer_declarator "* full_pathname(char *param_1)" (* "*") (function_declarator "full_pathname(char *param_1)" (identifier "full_pathname") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }\n  pcVar4 = pcVar3;\n  if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }\n  return pcVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (if_statement "if (*param_1 == '~') {\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }\n  else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" (if "if") (parenthesized_expression "(*param_1 == '~')" (( "(") (binary_expression "*param_1 == '~'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'~'" (' "'") (character "~") (' "'"))) () ")")) (compound_statement "{\n    pcVar3 = (char *)bash_tilde_expand(param_1,0);\n  }" ({ "{") (expression_statement "pcVar3 = (char *)bash_tilde_expand(param_1,0);" (assignment_expression "pcVar3 = (char *)bash_tilde_expand(param_1,0)" (identifier "pcVar3") (= "=") (cast_expression "(char *)bash_tilde_expand(param_1,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "bash_tilde_expand(param_1,0)" (identifier "bash_tilde_expand") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" (else "else") (compound_statement "{\n    iVar1 = (*(code *)PTR_strlen_00146390)();\n    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);\n    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);" (assignment_expression "uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar1 + 1)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_001445b0" (* "*") (cast_expression "(code *)PTR_xmalloc_001445b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_001445b0"))) () ")")) (argument_list "(iVar1 + 1)" (( "(") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar2,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(uVar2,param_1)" (( "(") (identifier "uVar2") (, ",") (identifier "param_1") () ")"))))) (; ";")) (} "}")))) (expression_statement "pcVar4 = pcVar3;" (assignment_expression "pcVar4 = pcVar3" (identifier "pcVar4") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if (*pcVar3 != '/') {\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }" (if "if") (parenthesized_expression "(*pcVar3 != '/')" (( "(") (binary_expression "*pcVar3 != '/'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);\n    (*(code *)PTR_free_001464fc)(pcVar3);\n  }" ({ "{") (expression_statement "pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" (identifier "pcVar4") (= "=") (cast_expression "(char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6)" (parenthesized_expression "(*(code *)PTR_sh_makepath_00144ad0)" (( "(") (pointer_expression "*(code *)PTR_sh_makepath_00144ad0" (* "*") (cast_expression "(code *)PTR_sh_makepath_00144ad0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sh_makepath_00144ad0"))) () ")")) (argument_list "(0,pcVar3,6)" (( "(") (number_literal "0") (, ",") (identifier "pcVar3") (, ",") (number_literal "6") () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(pcVar3);" (call_expression "(*(code *)PTR_free_001464fc)(pcVar3)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))) (; ";")) (} "}"))) (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}")))

char * function_1(char *file)

{
  int var_2;
  type_1 uVar2;
  char *pcVar3;
  char *pcVar4;
  
  if (*file == '~') {
    pcVar3 = var_1(file,0);
  }
  else {
    var_2 = (*(type_2 *)PTR_strlen_00146390)();
    uVar2 = (*(type_2 *)PTR_xmalloc_001445b0)(var_2 + 1);
    pcVar3 = (char *)(*(type_2 *)PTR_strcpy_00146418)(uVar2,file);
  }
  pcVar4 = pcVar3;
  if (*pcVar3 != '/') {
    pcVar4 = (char *)(*(type_2 *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);
    (*(type_2 *)PTR_free_001464fc)(pcVar3);
  }
  return pcVar4;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))))) alternative: (else_clause (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)))) (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: (identifier) right: (number_literal)))))) (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 (identifier) (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (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 (number_literal) (identifier) (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)))))) (return_statement (identifier)))))

char * MASKED(char *param_1)

{
  int iVar1;
  undefined4 uVar2;
  char *pcVar3;
  char *pcVar4;
  
  if (*param_1 == '~') {
    pcVar3 = (char *)bash_tilde_expand(param_1,0);
  }
  else {
    iVar1 = (*(code *)PTR_strlen_00146390)();
    uVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar1 + 1);
    pcVar3 = (char *)(*(code *)PTR_strcpy_00146418)(uVar2,param_1);
  }
  pcVar4 = pcVar3;
  if (*pcVar3 != '/') {
    pcVar4 = (char *)(*(code *)PTR_sh_makepath_00144ad0)(0,pcVar3,6);
    (*(code *)PTR_free_001464fc)(pcVar3);
  }
  return pcVar4;
}

