
STRINGLIST * strlist_resize(STRINGLIST *sl,int n)

{
  char **ppcVar1;
  STRINGLIST *pSVar2;
  char **ppcVar3;
  
  if (sl == (STRINGLIST *)0x0) {
    pSVar2 = strlist_create(n);
    return pSVar2;
  }
  if (n <= sl->list_size) {
    return sl;
  }
  ppcVar1 = strvec_resize(sl->list,n + 1);
  sl->list = ppcVar1;
  if (sl->list_size <= n) {
    ppcVar3 = ppcVar1 + sl->list_size;
    do {
      *ppcVar3 = (char *)0x0;
      ppcVar3 = ppcVar3 + 1;
    } while (ppcVar3 != ppcVar1 + n + 1);
  }
  sl->list_size = n;
  return sl;
}



int * strlist_resize(int *param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  
  if (param_1 == (int *)0x0) {
    piVar2 = (int *)strlist_create(param_2);
    return piVar2;
  }
  if (param_2 <= param_1[1]) {
    return param_1;
  }
  iVar1 = strvec_resize(*param_1,param_2 + 1);
  *param_1 = iVar1;
  if (param_1[1] <= param_2) {
    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);
    do {
      *puVar3 = 0;
      puVar3 = puVar3 + 1;
    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));
  }
  param_1[1] = param_2;
  return param_1;
}


lui gp,0x7
addiu gp,gp,0x30c8
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a0,zero,0x000d9534
_sw s0,0x18(sp)
lw v0,0x4(a0)
or s1,a1,zero
slt v0,v0,a1
bne v0,zero,0x000d94d0
_or s0,a0,zero
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7874(gp)
addiu s2,a1,0x1
lw a0,0x0(a0)
bal 0x000da1ac
_or a1,s2,zero
lw v1,0x4(s0)
slt a0,s1,v1
bne a0,zero,0x000d9514
_sw v0,0x0(s0)
sll v1,v1,0x2
sll s2,s2,0x2
addu v1,v0,v1
addu v0,v0,s2
sw zero,0x0(v1)
addiu v1,v1,0x4
bne v1,v0,0x000d9504
_nop
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
sw s1,0x4(s0)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
or a0,a1,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x6dc8(gp)
b 0x000d93d0
_addiu sp,sp,0x28
(translation_unit "int * strlist_resize(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  \n  if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }\n  if (param_2 <= param_1[1]) {\n    return param_1;\n  }\n  iVar1 = strvec_resize(*param_1,param_2 + 1);\n  *param_1 = iVar1;\n  if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }\n  param_1[1] = param_2;\n  return param_1;\n}\n\n" (function_definition "int * strlist_resize(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  \n  if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }\n  if (param_2 <= param_1[1]) {\n    return param_1;\n  }\n  iVar1 = strvec_resize(*param_1,param_2 + 1);\n  *param_1 = iVar1;\n  if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }\n  param_1[1] = param_2;\n  return param_1;\n}" primitive_type (pointer_declarator "* strlist_resize(int *param_1,int param_2)" * (function_declarator "strlist_resize(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  \n  if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }\n  if (param_2 <= param_1[1]) {\n    return param_1;\n  }\n  iVar1 = strvec_resize(*param_1,param_2 + 1);\n  *param_1 = iVar1;\n  if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }\n  param_1[1] = param_2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }" { (expression_statement "piVar2 = (int *)strlist_create(param_2);" (assignment_expression "piVar2 = (int *)strlist_create(param_2)" identifier = (cast_expression "(int *)strlist_create(param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strlist_create(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (return_statement "return piVar2;" return identifier ;) })) (if_statement "if (param_2 <= param_1[1]) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 <= param_1[1])" ( (binary_expression "param_2 <= param_1[1]" identifier <= (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar1 = strvec_resize(*param_1,param_2 + 1);" (assignment_expression "iVar1 = strvec_resize(*param_1,param_2 + 1)" identifier = (call_expression "strvec_resize(*param_1,param_2 + 1)" identifier (argument_list "(*param_1,param_2 + 1)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_2 + 1" identifier + number_literal) )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }" if (parenthesized_expression "(param_1[1] <= param_2)" ( (binary_expression "param_1[1] <= param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }" { (expression_statement "puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);" (assignment_expression "puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4)" identifier = (cast_expression "(undefined4 *)(iVar1 + param_1[1] * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_1[1] * 4)" ( (binary_expression "iVar1 + param_1[1] * 4" identifier + (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) * number_literal)) )))) ;) (do_statement "do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));" do (compound_statement "{\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4))" ( (binary_expression "puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4)" identifier != (cast_expression "(undefined4 *)(iVar1 + (param_2 + 1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + (param_2 + 1) * 4)" ( (binary_expression "iVar1 + (param_2 + 1) * 4" identifier + (binary_expression "(param_2 + 1) * 4" (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )) * number_literal)) )))) )) ;) })) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "STRINGLIST * strlist_resize(STRINGLIST *sl,int n)\n\n{\n  char **ppcVar1;\n  STRINGLIST *pSVar2;\n  char **ppcVar3;\n  \n  if (sl == (STRINGLIST *)0x0) {\n    pSVar2 = strlist_create(n);\n    return pSVar2;\n  }\n  if (n <= sl->list_size) {\n    return sl;\n  }\n  ppcVar1 = strvec_resize(sl->list,n + 1);\n  sl->list = ppcVar1;\n  if (sl->list_size <= n) {\n    ppcVar3 = ppcVar1 + sl->list_size;\n    do {\n      *ppcVar3 = (char *)0x0;\n      ppcVar3 = ppcVar3 + 1;\n    } while (ppcVar3 != ppcVar1 + n + 1);\n  }\n  sl->list_size = n;\n  return sl;\n}\n\n" (function_definition "STRINGLIST * strlist_resize(STRINGLIST *sl,int n)\n\n{\n  char **ppcVar1;\n  STRINGLIST *pSVar2;\n  char **ppcVar3;\n  \n  if (sl == (STRINGLIST *)0x0) {\n    pSVar2 = strlist_create(n);\n    return pSVar2;\n  }\n  if (n <= sl->list_size) {\n    return sl;\n  }\n  ppcVar1 = strvec_resize(sl->list,n + 1);\n  sl->list = ppcVar1;\n  if (sl->list_size <= n) {\n    ppcVar3 = ppcVar1 + sl->list_size;\n    do {\n      *ppcVar3 = (char *)0x0;\n      ppcVar3 = ppcVar3 + 1;\n    } while (ppcVar3 != ppcVar1 + n + 1);\n  }\n  sl->list_size = n;\n  return sl;\n}" type_identifier (pointer_declarator "* strlist_resize(STRINGLIST *sl,int n)" * (function_declarator "strlist_resize(STRINGLIST *sl,int n)" identifier (parameter_list "(STRINGLIST *sl,int n)" ( (parameter_declaration "STRINGLIST *sl" type_identifier (pointer_declarator "*sl" * identifier)) , (parameter_declaration "int n" primitive_type identifier) )))) (compound_statement "{\n  char **ppcVar1;\n  STRINGLIST *pSVar2;\n  char **ppcVar3;\n  \n  if (sl == (STRINGLIST *)0x0) {\n    pSVar2 = strlist_create(n);\n    return pSVar2;\n  }\n  if (n <= sl->list_size) {\n    return sl;\n  }\n  ppcVar1 = strvec_resize(sl->list,n + 1);\n  sl->list = ppcVar1;\n  if (sl->list_size <= n) {\n    ppcVar3 = ppcVar1 + sl->list_size;\n    do {\n      *ppcVar3 = (char *)0x0;\n      ppcVar3 = ppcVar3 + 1;\n    } while (ppcVar3 != ppcVar1 + n + 1);\n  }\n  sl->list_size = n;\n  return sl;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "STRINGLIST *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "char **ppcVar3;" primitive_type (pointer_declarator "**ppcVar3" * (pointer_declarator "*ppcVar3" * identifier)) ;) (if_statement "if (sl == (STRINGLIST *)0x0) {\n    pSVar2 = strlist_create(n);\n    return pSVar2;\n  }" if (parenthesized_expression "(sl == (STRINGLIST *)0x0)" ( (binary_expression "sl == (STRINGLIST *)0x0" identifier == (cast_expression "(STRINGLIST *)0x0" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pSVar2 = strlist_create(n);\n    return pSVar2;\n  }" { (expression_statement "pSVar2 = strlist_create(n);" (assignment_expression "pSVar2 = strlist_create(n)" identifier = (call_expression "strlist_create(n)" identifier (argument_list "(n)" ( identifier )))) ;) (return_statement "return pSVar2;" return identifier ;) })) (if_statement "if (n <= sl->list_size) {\n    return sl;\n  }" if (parenthesized_expression "(n <= sl->list_size)" ( (binary_expression "n <= sl->list_size" identifier <= (field_expression "sl->list_size" identifier -> field_identifier)) )) (compound_statement "{\n    return sl;\n  }" { (return_statement "return sl;" return identifier ;) })) (expression_statement "ppcVar1 = strvec_resize(sl->list,n + 1);" (assignment_expression "ppcVar1 = strvec_resize(sl->list,n + 1)" identifier = (call_expression "strvec_resize(sl->list,n + 1)" identifier (argument_list "(sl->list,n + 1)" ( (field_expression "sl->list" identifier -> field_identifier) , (binary_expression "n + 1" identifier + number_literal) )))) ;) (expression_statement "sl->list = ppcVar1;" (assignment_expression "sl->list = ppcVar1" (field_expression "sl->list" identifier -> field_identifier) = identifier) ;) (if_statement "if (sl->list_size <= n) {\n    ppcVar3 = ppcVar1 + sl->list_size;\n    do {\n      *ppcVar3 = (char *)0x0;\n      ppcVar3 = ppcVar3 + 1;\n    } while (ppcVar3 != ppcVar1 + n + 1);\n  }" if (parenthesized_expression "(sl->list_size <= n)" ( (binary_expression "sl->list_size <= n" (field_expression "sl->list_size" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    ppcVar3 = ppcVar1 + sl->list_size;\n    do {\n      *ppcVar3 = (char *)0x0;\n      ppcVar3 = ppcVar3 + 1;\n    } while (ppcVar3 != ppcVar1 + n + 1);\n  }" { (expression_statement "ppcVar3 = ppcVar1 + sl->list_size;" (assignment_expression "ppcVar3 = ppcVar1 + sl->list_size" identifier = (binary_expression "ppcVar1 + sl->list_size" identifier + (field_expression "sl->list_size" identifier -> field_identifier))) ;) (do_statement "do {\n      *ppcVar3 = (char *)0x0;\n      ppcVar3 = ppcVar3 + 1;\n    } while (ppcVar3 != ppcVar1 + n + 1);" do (compound_statement "{\n      *ppcVar3 = (char *)0x0;\n      ppcVar3 = ppcVar3 + 1;\n    }" { (expression_statement "*ppcVar3 = (char *)0x0;" (assignment_expression "*ppcVar3 = (char *)0x0" (pointer_expression "*ppcVar3" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ppcVar3 = ppcVar3 + 1;" (assignment_expression "ppcVar3 = ppcVar3 + 1" identifier = (binary_expression "ppcVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(ppcVar3 != ppcVar1 + n + 1)" ( (binary_expression "ppcVar3 != ppcVar1 + n + 1" identifier != (binary_expression "ppcVar1 + n + 1" (binary_expression "ppcVar1 + n" identifier + identifier) + number_literal)) )) ;) })) (expression_statement "sl->list_size = n;" (assignment_expression "sl->list_size = n" (field_expression "sl->list_size" identifier -> field_identifier) = identifier) ;) (return_statement "return sl;" return identifier ;) })))
(translation_unit "int * strlist_resize(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  \n  if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }\n  if (param_2 <= param_1[1]) {\n    return param_1;\n  }\n  iVar1 = strvec_resize(*param_1,param_2 + 1);\n  *param_1 = iVar1;\n  if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }\n  param_1[1] = param_2;\n  return param_1;\n}\n\n" (function_definition "int * strlist_resize(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  \n  if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }\n  if (param_2 <= param_1[1]) {\n    return param_1;\n  }\n  iVar1 = strvec_resize(*param_1,param_2 + 1);\n  *param_1 = iVar1;\n  if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }\n  param_1[1] = param_2;\n  return param_1;\n}" primitive_type (pointer_declarator "* strlist_resize(int *param_1,int param_2)" * (function_declarator "strlist_resize(int *param_1,int param_2)" identifier (parameter_list "(int *param_1,int param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  \n  if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }\n  if (param_2 <= param_1[1]) {\n    return param_1;\n  }\n  iVar1 = strvec_resize(*param_1,param_2 + 1);\n  *param_1 = iVar1;\n  if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }\n  param_1[1] = param_2;\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }" { (expression_statement "piVar2 = (int *)strlist_create(param_2);" (assignment_expression "piVar2 = (int *)strlist_create(param_2)" identifier = (cast_expression "(int *)strlist_create(param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strlist_create(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (return_statement "return piVar2;" return identifier ;) })) (if_statement "if (param_2 <= param_1[1]) {\n    return param_1;\n  }" if (parenthesized_expression "(param_2 <= param_1[1])" ( (binary_expression "param_2 <= param_1[1]" identifier <= (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar1 = strvec_resize(*param_1,param_2 + 1);" (assignment_expression "iVar1 = strvec_resize(*param_1,param_2 + 1)" identifier = (call_expression "strvec_resize(*param_1,param_2 + 1)" identifier (argument_list "(*param_1,param_2 + 1)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "param_2 + 1" identifier + number_literal) )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }" if (parenthesized_expression "(param_1[1] <= param_2)" ( (binary_expression "param_1[1] <= param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) <= identifier) )) (compound_statement "{\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }" { (expression_statement "puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);" (assignment_expression "puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4)" identifier = (cast_expression "(undefined4 *)(iVar1 + param_1[1] * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_1[1] * 4)" ( (binary_expression "iVar1 + param_1[1] * 4" identifier + (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" identifier [ number_literal ]) * number_literal)) )))) ;) (do_statement "do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));" do (compound_statement "{\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4))" ( (binary_expression "puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4)" identifier != (cast_expression "(undefined4 *)(iVar1 + (param_2 + 1) * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + (param_2 + 1) * 4)" ( (binary_expression "iVar1 + (param_2 + 1) * 4" identifier + (binary_expression "(param_2 + 1) * 4" (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )) * number_literal)) )))) )) ;) })) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (subscript_expression IDENT [ LIT ])) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) )))) )) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int * strlist_resize(int *param_1,int param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  \n  if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }\n  if (param_2 <= param_1[1]) {\n    return param_1;\n  }\n  iVar1 = strvec_resize(*param_1,param_2 + 1);\n  *param_1 = iVar1;\n  if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }\n  param_1[1] = param_2;\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* strlist_resize(int *param_1,int param_2)" (* "*") (function_declarator "strlist_resize(int *param_1,int param_2)" (identifier "strlist_resize") (parameter_list "(int *param_1,int param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 *puVar3;\n  \n  if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }\n  if (param_2 <= param_1[1]) {\n    return param_1;\n  }\n  iVar1 = strvec_resize(*param_1,param_2 + 1);\n  *param_1 = iVar1;\n  if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }\n  param_1[1] = param_2;\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar2 = (int *)strlist_create(param_2);\n    return piVar2;\n  }" ({ "{") (expression_statement "piVar2 = (int *)strlist_create(param_2);" (assignment_expression "piVar2 = (int *)strlist_create(param_2)" (identifier "piVar2") (= "=") (cast_expression "(int *)strlist_create(param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "strlist_create(param_2)" (identifier "strlist_create") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (if_statement "if (param_2 <= param_1[1]) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_2 <= param_1[1])" (( "(") (binary_expression "param_2 <= param_1[1]" (identifier "param_2") (<= "<=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar1 = strvec_resize(*param_1,param_2 + 1);" (assignment_expression "iVar1 = strvec_resize(*param_1,param_2 + 1)" (identifier "iVar1") (= "=") (call_expression "strvec_resize(*param_1,param_2 + 1)" (identifier "strvec_resize") (argument_list "(*param_1,param_2 + 1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (param_1[1] <= param_2) {\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }" (if "if") (parenthesized_expression "(param_1[1] <= param_2)" (( "(") (binary_expression "param_1[1] <= param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);" (assignment_expression "puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)(iVar1 + param_1[1] * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + param_1[1] * 4)" (( "(") (binary_expression "iVar1 + param_1[1] * 4" (identifier "iVar1") (+ "+") (binary_expression "param_1[1] * 4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "4"))) () ")")))) (; ";")) (do_statement "do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));" (do "do") (compound_statement "{\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4))" (( "(") (binary_expression "puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4)" (identifier "puVar3") (!= "!=") (cast_expression "(undefined4 *)(iVar1 + (param_2 + 1) * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + (param_2 + 1) * 4)" (( "(") (binary_expression "iVar1 + (param_2 + 1) * 4" (identifier "iVar1") (+ "+") (binary_expression "(param_2 + 1) * 4" (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "4"))) () ")")))) () ")")) (; ";")) (} "}"))) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

type_1 * function_1(type_1 *var_1,int var_3)

{
  char **var_5;
  type_1 *pSVar2;
  char **var_6;
  
  if (var_1 == (type_1 *)0x0) {
    pSVar2 = var_2(var_3);
    return pSVar2;
  }
  if (var_3 <= var_1->list_size) {
    return var_1;
  }
  var_5 = var_4(var_1->list,var_3 + 1);
  var_1->list = var_5;
  if (var_1->list_size <= var_3) {
    var_6 = var_5 + var_1->list_size;
    do {
      *var_6 = (char *)0x0;
      var_6 = var_6 + 1;
    } while (var_6 != var_5 + var_3 + 1);
  }
  var_1->list_size = var_3;
  return var_1;
}


(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))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) 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)))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier)))))

int * MASKED(int *param_1,int param_2)

{
  int iVar1;
  int *piVar2;
  undefined4 *puVar3;
  
  if (param_1 == (int *)0x0) {
    piVar2 = (int *)strlist_create(param_2);
    return piVar2;
  }
  if (param_2 <= param_1[1]) {
    return param_1;
  }
  iVar1 = strvec_resize(*param_1,param_2 + 1);
  *param_1 = iVar1;
  if (param_1[1] <= param_2) {
    puVar3 = (undefined4 *)(iVar1 + param_1[1] * 4);
    do {
      *puVar3 = 0;
      puVar3 = puVar3 + 1;
    } while (puVar3 != (undefined4 *)(iVar1 + (param_2 + 1) * 4));
  }
  param_1[1] = param_2;
  return param_1;
}

