
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

STRINGLIST * strlist_append(STRINGLIST *m1,STRINGLIST *m2)

{
  int iVar1;
  STRINGLIST *pSVar2;
  size_t sVar3;
  char *__dest;
  char *__s;
  char **ppcVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  
  if (m1 == (STRINGLIST *)0x0) {
    if (m2 != (STRINGLIST *)0x0) {
      pSVar2 = strlist_copy(m2);
      return pSVar2;
    }
  }
  else if ((m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0)) {
    iVar5 = m1->list_len;
    iVar6 = iVar5 + iVar1;
    pSVar2 = strlist_resize(m1,iVar6 + 1);
    if (iVar1 < 1) {
      ppcVar4 = pSVar2->list;
      iVar6 = iVar5;
    }
    else {
      iVar5 = iVar5 << 2;
      iVar7 = 0;
      do {
        __s = m2->list[iVar7];
        if (__s != (char *)0x0) {
          sVar3 = strlen(__s);
          __dest = (char *)xmalloc(sVar3 + 1);
          __s = strcpy(__dest,__s);
        }
        ppcVar4 = pSVar2->list;
        iVar7 = iVar7 + 1;
        *(char **)((int)ppcVar4 + iVar5) = __s;
        iVar5 = iVar5 + 4;
      } while (iVar1 != iVar7);
    }
    ppcVar4[iVar6] = (char *)0x0;
    pSVar2->list_len = iVar6;
    return pSVar2;
  }
  return m1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * strlist_append(int *param_1,int *param_2)

{
  int iVar1;
  int *piVar2;
  size_t sVar3;
  char *__dest;
  char *__s;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  
  if (param_1 == (int *)0x0) {
    if (param_2 != (int *)0x0) {
      piVar2 = (int *)strlist_copy();
      return piVar2;
    }
  }
  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {
    iVar5 = param_1[2];
    iVar6 = iVar5 + iVar1;
    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);
    if (iVar1 < 1) {
      iVar4 = *piVar2;
      iVar6 = iVar5;
    }
    else {
      iVar5 = iVar5 << 2;
      iVar7 = 0;
      do {
        __s = *(char **)(*param_2 + iVar7 * 4);
        if (__s != (char *)0x0) {
          sVar3 = strlen(__s);
          __dest = (char *)xmalloc(sVar3 + 1);
          __s = strcpy(__dest,__s);
        }
        iVar4 = *piVar2;
        iVar7 = iVar7 + 1;
        *(char **)(iVar4 + iVar5) = __s;
        iVar5 = iVar5 + 4;
      } while (iVar1 != iVar7);
    }
    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;
    piVar2[2] = iVar6;
    return piVar2;
  }
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x8b527
SUB ESP,0x1c
MOV EDX,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x34]
TEST EDX,EDX
JZ 0x000bebb8
TEST ECX,ECX
JZ 0x000beb00
MOV EAX,dword ptr [ECX + 0x8]
MOV dword ptr [ESP],EAX
TEST EAX,EAX
JNZ 0x000beb10
ADD ESP,0x1c
MOV EAX,EDX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x4],ECX
SUB ESP,0x8
MOV EBP,dword ptr [EDX + 0x8]
MOV EDI,dword ptr [ESP + 0x8]
LEA EAX,[EBP + EDI*0x1]
MOV dword ptr [ESP + 0x14],EAX
ADD EAX,0x1
PUSH EAX
PUSH EDX
CALL 0x000be680
ADD ESP,0x10
MOV EDX,EAX
TEST EDI,EDI
JLE 0x000bebd0
MOV ECX,dword ptr [ESP + 0x4]
SHL EBP,0x2
XOR EDI,EDI
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,dword ptr [ECX]
MOV ESI,dword ptr [EAX + EDI*0x4]
TEST ESI,ESI
JZ 0x000beb8b
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0xc
MOV dword ptr [ESP + 0x10],EDX
PUSH ESI
CALL 0x0002f760
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x00099200
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x0002f580
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0x4]
MOV ESI,EAX
MOV EAX,dword ptr [EDX]
ADD EDI,0x1
MOV dword ptr [EAX + EBP*0x1],ESI
ADD EBP,0x4
CMP dword ptr [ESP],EDI
JNZ 0x000beb50
MOV EBP,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + EBP*0x4],0x0
MOV EAX,EDX
MOV dword ptr [EDX + 0x8],EBP
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST ECX,ECX
JZ 0x000beb00
MOV dword ptr [ESP + 0x30],ECX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x000be7e0
MOV EAX,dword ptr [EAX]
JMP 0x000beb9f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * strlist_append(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }\n  return param_1;\n}\n\n" comment (function_definition "int * strlist_append(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* strlist_append(int *param_1,int *param_2)" * (function_declarator "strlist_append(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 (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\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    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }" { (if_statement "if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }" if (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }" { (expression_statement "piVar2 = (int *)strlist_copy();" (assignment_expression "piVar2 = (int *)strlist_copy()" identifier = (cast_expression "(int *)strlist_copy()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strlist_copy()" identifier (argument_list "()" ( ))))) ;) (return_statement "return piVar2;" return identifier ;) })) }) (else_clause "else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" else (if_statement "if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" if (parenthesized_expression "((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0))" ( (binary_expression "(param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)" (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = param_2[2], iVar1 != 0)" ( (comma_expression "iVar1 = param_2[2], iVar1 != 0" (assignment_expression "iVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" { (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar5 + iVar1;" (assignment_expression "iVar6 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) (expression_statement "piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);" (assignment_expression "piVar2 = (int *)strlist_resize(param_1,iVar6 + 1)" identifier = (cast_expression "(int *)strlist_resize(param_1,iVar6 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strlist_resize(param_1,iVar6 + 1)" identifier (argument_list "(param_1,iVar6 + 1)" ( identifier , (binary_expression "iVar6 + 1" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }" { (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) (else_clause "else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" else (compound_statement "{\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" { (expression_statement "iVar5 = iVar5 << 2;" (assignment_expression "iVar5 = iVar5 << 2" identifier = (binary_expression "iVar5 << 2" identifier << number_literal)) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);" do (compound_statement "{\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      }" { (expression_statement "__s = *(char **)(*param_2 + iVar7 * 4);" (assignment_expression "__s = *(char **)(*param_2 + iVar7 * 4)" identifier = (pointer_expression "*(char **)(*param_2 + iVar7 * 4)" * (cast_expression "(char **)(*param_2 + iVar7 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + iVar7 * 4)" ( (binary_expression "*param_2 + iVar7 * 4" (pointer_expression "*param_2" * identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar3 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar3 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" identifier = (call_expression "strcpy(__dest,__s)" identifier (argument_list "(__dest,__s)" ( identifier , identifier )))) ;) })) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(char **)(iVar4 + iVar5) = __s;" (assignment_expression "*(char **)(iVar4 + iVar5) = __s" (pointer_expression "*(char **)(iVar4 + iVar5)" * (cast_expression "(char **)(iVar4 + iVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + iVar5)" ( (binary_expression "iVar4 + iVar5" identifier + identifier) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iVar7)" ( (binary_expression "iVar1 != iVar7" identifier != identifier) )) ;) }))) (expression_statement "*(undefined4 *)(iVar4 + iVar6 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + iVar6 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + iVar6 * 4)" * (cast_expression "(undefined4 *)(iVar4 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6 * 4)" ( (binary_expression "iVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "piVar2[2] = iVar6;" (assignment_expression "piVar2[2] = iVar6" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nSTRINGLIST * strlist_append(STRINGLIST *m1,STRINGLIST *m2)\n\n{\n  int iVar1;\n  STRINGLIST *pSVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  char **ppcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (m1 == (STRINGLIST *)0x0) {\n    if (m2 != (STRINGLIST *)0x0) {\n      pSVar2 = strlist_copy(m2);\n      return pSVar2;\n    }\n  }\n  else if ((m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0)) {\n    iVar5 = m1->list_len;\n    iVar6 = iVar5 + iVar1;\n    pSVar2 = strlist_resize(m1,iVar6 + 1);\n    if (iVar1 < 1) {\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    ppcVar4[iVar6] = (char *)0x0;\n    pSVar2->list_len = iVar6;\n    return pSVar2;\n  }\n  return m1;\n}\n\n" comment (function_definition "STRINGLIST * strlist_append(STRINGLIST *m1,STRINGLIST *m2)\n\n{\n  int iVar1;\n  STRINGLIST *pSVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  char **ppcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (m1 == (STRINGLIST *)0x0) {\n    if (m2 != (STRINGLIST *)0x0) {\n      pSVar2 = strlist_copy(m2);\n      return pSVar2;\n    }\n  }\n  else if ((m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0)) {\n    iVar5 = m1->list_len;\n    iVar6 = iVar5 + iVar1;\n    pSVar2 = strlist_resize(m1,iVar6 + 1);\n    if (iVar1 < 1) {\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    ppcVar4[iVar6] = (char *)0x0;\n    pSVar2->list_len = iVar6;\n    return pSVar2;\n  }\n  return m1;\n}" type_identifier (pointer_declarator "* strlist_append(STRINGLIST *m1,STRINGLIST *m2)" * (function_declarator "strlist_append(STRINGLIST *m1,STRINGLIST *m2)" identifier (parameter_list "(STRINGLIST *m1,STRINGLIST *m2)" ( (parameter_declaration "STRINGLIST *m1" type_identifier (pointer_declarator "*m1" * identifier)) , (parameter_declaration "STRINGLIST *m2" type_identifier (pointer_declarator "*m2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  STRINGLIST *pSVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  char **ppcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (m1 == (STRINGLIST *)0x0) {\n    if (m2 != (STRINGLIST *)0x0) {\n      pSVar2 = strlist_copy(m2);\n      return pSVar2;\n    }\n  }\n  else if ((m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0)) {\n    iVar5 = m1->list_len;\n    iVar6 = iVar5 + iVar1;\n    pSVar2 = strlist_resize(m1,iVar6 + 1);\n    if (iVar1 < 1) {\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    ppcVar4[iVar6] = (char *)0x0;\n    pSVar2->list_len = iVar6;\n    return pSVar2;\n  }\n  return m1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "STRINGLIST *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if (m1 == (STRINGLIST *)0x0) {\n    if (m2 != (STRINGLIST *)0x0) {\n      pSVar2 = strlist_copy(m2);\n      return pSVar2;\n    }\n  }\n  else if ((m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0)) {\n    iVar5 = m1->list_len;\n    iVar6 = iVar5 + iVar1;\n    pSVar2 = strlist_resize(m1,iVar6 + 1);\n    if (iVar1 < 1) {\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    ppcVar4[iVar6] = (char *)0x0;\n    pSVar2->list_len = iVar6;\n    return pSVar2;\n  }" if (parenthesized_expression "(m1 == (STRINGLIST *)0x0)" ( (binary_expression "m1 == (STRINGLIST *)0x0" identifier == (cast_expression "(STRINGLIST *)0x0" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (m2 != (STRINGLIST *)0x0) {\n      pSVar2 = strlist_copy(m2);\n      return pSVar2;\n    }\n  }" { (if_statement "if (m2 != (STRINGLIST *)0x0) {\n      pSVar2 = strlist_copy(m2);\n      return pSVar2;\n    }" if (parenthesized_expression "(m2 != (STRINGLIST *)0x0)" ( (binary_expression "m2 != (STRINGLIST *)0x0" identifier != (cast_expression "(STRINGLIST *)0x0" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pSVar2 = strlist_copy(m2);\n      return pSVar2;\n    }" { (expression_statement "pSVar2 = strlist_copy(m2);" (assignment_expression "pSVar2 = strlist_copy(m2)" identifier = (call_expression "strlist_copy(m2)" identifier (argument_list "(m2)" ( identifier )))) ;) (return_statement "return pSVar2;" return identifier ;) })) }) (else_clause "else if ((m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0)) {\n    iVar5 = m1->list_len;\n    iVar6 = iVar5 + iVar1;\n    pSVar2 = strlist_resize(m1,iVar6 + 1);\n    if (iVar1 < 1) {\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    ppcVar4[iVar6] = (char *)0x0;\n    pSVar2->list_len = iVar6;\n    return pSVar2;\n  }" else (if_statement "if ((m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0)) {\n    iVar5 = m1->list_len;\n    iVar6 = iVar5 + iVar1;\n    pSVar2 = strlist_resize(m1,iVar6 + 1);\n    if (iVar1 < 1) {\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    ppcVar4[iVar6] = (char *)0x0;\n    pSVar2->list_len = iVar6;\n    return pSVar2;\n  }" if (parenthesized_expression "((m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0))" ( (binary_expression "(m2 != (STRINGLIST *)0x0) && (iVar1 = m2->list_len, iVar1 != 0)" (parenthesized_expression "(m2 != (STRINGLIST *)0x0)" ( (binary_expression "m2 != (STRINGLIST *)0x0" identifier != (cast_expression "(STRINGLIST *)0x0" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = m2->list_len, iVar1 != 0)" ( (comma_expression "iVar1 = m2->list_len, iVar1 != 0" (assignment_expression "iVar1 = m2->list_len" identifier = (field_expression "m2->list_len" identifier -> field_identifier)) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar5 = m1->list_len;\n    iVar6 = iVar5 + iVar1;\n    pSVar2 = strlist_resize(m1,iVar6 + 1);\n    if (iVar1 < 1) {\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    ppcVar4[iVar6] = (char *)0x0;\n    pSVar2->list_len = iVar6;\n    return pSVar2;\n  }" { (expression_statement "iVar5 = m1->list_len;" (assignment_expression "iVar5 = m1->list_len" identifier = (field_expression "m1->list_len" identifier -> field_identifier)) ;) (expression_statement "iVar6 = iVar5 + iVar1;" (assignment_expression "iVar6 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) (expression_statement "pSVar2 = strlist_resize(m1,iVar6 + 1);" (assignment_expression "pSVar2 = strlist_resize(m1,iVar6 + 1)" identifier = (call_expression "strlist_resize(m1,iVar6 + 1)" identifier (argument_list "(m1,iVar6 + 1)" ( identifier , (binary_expression "iVar6 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar1 < 1) {\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n      ppcVar4 = pSVar2->list;\n      iVar6 = iVar5;\n    }" { (expression_statement "ppcVar4 = pSVar2->list;" (assignment_expression "ppcVar4 = pSVar2->list" identifier = (field_expression "pSVar2->list" identifier -> field_identifier)) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) (else_clause "else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" else (compound_statement "{\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" { (expression_statement "iVar5 = iVar5 << 2;" (assignment_expression "iVar5 = iVar5 << 2" identifier = (binary_expression "iVar5 << 2" identifier << number_literal)) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);" do (compound_statement "{\n        __s = m2->list[iVar7];\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        ppcVar4 = pSVar2->list;\n        iVar7 = iVar7 + 1;\n        *(char **)((int)ppcVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      }" { (expression_statement "__s = m2->list[iVar7];" (assignment_expression "__s = m2->list[iVar7]" identifier = (subscript_expression "m2->list[iVar7]" (field_expression "m2->list" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar3 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar3 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" identifier = (call_expression "strcpy(__dest,__s)" identifier (argument_list "(__dest,__s)" ( identifier , identifier )))) ;) })) (expression_statement "ppcVar4 = pSVar2->list;" (assignment_expression "ppcVar4 = pSVar2->list" identifier = (field_expression "pSVar2->list" identifier -> field_identifier)) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(char **)((int)ppcVar4 + iVar5) = __s;" (assignment_expression "*(char **)((int)ppcVar4 + iVar5) = __s" (pointer_expression "*(char **)((int)ppcVar4 + iVar5)" * (cast_expression "(char **)((int)ppcVar4 + iVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)ppcVar4 + iVar5)" ( (binary_expression "(int)ppcVar4 + iVar5" (cast_expression "(int)ppcVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iVar7)" ( (binary_expression "iVar1 != iVar7" identifier != identifier) )) ;) }))) (expression_statement "ppcVar4[iVar6] = (char *)0x0;" (assignment_expression "ppcVar4[iVar6] = (char *)0x0" (subscript_expression "ppcVar4[iVar6]" identifier [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar2->list_len = iVar6;" (assignment_expression "pSVar2->list_len = iVar6" (field_expression "pSVar2->list_len" identifier -> field_identifier) = identifier) ;) (return_statement "return pSVar2;" return identifier ;) })))) (return_statement "return m1;" return identifier ;) })))
(translation_unit "int * strlist_append(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }\n  return param_1;\n}\n\n" (function_definition "int * strlist_append(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* strlist_append(int *param_1,int *param_2)" * (function_declarator "strlist_append(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 (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\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    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }" { (if_statement "if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }" if (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }" { (expression_statement "piVar2 = (int *)strlist_copy();" (assignment_expression "piVar2 = (int *)strlist_copy()" identifier = (cast_expression "(int *)strlist_copy()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strlist_copy()" identifier (argument_list "()" ( ))))) ;) (return_statement "return piVar2;" return identifier ;) })) }) (else_clause "else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" else (if_statement "if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" if (parenthesized_expression "((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0))" ( (binary_expression "(param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)" (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar1 = param_2[2], iVar1 != 0)" ( (comma_expression "iVar1 = param_2[2], iVar1 != 0" (assignment_expression "iVar1 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" { (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = iVar5 + iVar1;" (assignment_expression "iVar6 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) (expression_statement "piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);" (assignment_expression "piVar2 = (int *)strlist_resize(param_1,iVar6 + 1)" identifier = (cast_expression "(int *)strlist_resize(param_1,iVar6 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "strlist_resize(param_1,iVar6 + 1)" identifier (argument_list "(param_1,iVar6 + 1)" ( identifier , (binary_expression "iVar6 + 1" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }" { (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) }) (else_clause "else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" else (compound_statement "{\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" { (expression_statement "iVar5 = iVar5 << 2;" (assignment_expression "iVar5 = iVar5 << 2" identifier = (binary_expression "iVar5 << 2" identifier << number_literal)) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);" do (compound_statement "{\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      }" { (expression_statement "__s = *(char **)(*param_2 + iVar7 * 4);" (assignment_expression "__s = *(char **)(*param_2 + iVar7 * 4)" identifier = (pointer_expression "*(char **)(*param_2 + iVar7 * 4)" * (cast_expression "(char **)(*param_2 + iVar7 * 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + iVar7 * 4)" ( (binary_expression "*param_2 + iVar7 * 4" (pointer_expression "*param_2" * identifier) + (binary_expression "iVar7 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar3 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar3 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" identifier = (call_expression "strcpy(__dest,__s)" identifier (argument_list "(__dest,__s)" ( identifier , identifier )))) ;) })) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(char **)(iVar4 + iVar5) = __s;" (assignment_expression "*(char **)(iVar4 + iVar5) = __s" (pointer_expression "*(char **)(iVar4 + iVar5)" * (cast_expression "(char **)(iVar4 + iVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + iVar5)" ( (binary_expression "iVar4 + iVar5" identifier + identifier) )))) = identifier) ;) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iVar7)" ( (binary_expression "iVar1 != iVar7" identifier != identifier) )) ;) }))) (expression_statement "*(undefined4 *)(iVar4 + iVar6 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + iVar6 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + iVar6 * 4)" * (cast_expression "(undefined4 *)(iVar4 + iVar6 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6 * 4)" ( (binary_expression "iVar4 + iVar6 * 4" identifier + (binary_expression "iVar6 * 4" identifier * number_literal)) )))) = number_literal) ;) (expression_statement "piVar2[2] = iVar6;" (assignment_expression "piVar2[2] = iVar6" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return piVar2;" return 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 (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 ( ))))) ;) (return_statement return IDENT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))) (return_statement return IDENT ;) })))
(function_definition "int * strlist_append(int *param_1,int *param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* strlist_append(int *param_1,int *param_2)" (* "*") (function_declarator "strlist_append(int *param_1,int *param_2)" (identifier "strlist_append") (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") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  size_t sVar3;\n  char *__dest;\n  char *__s;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  \n  if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }\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 "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }\n  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\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    if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }\n  }" ({ "{") (if_statement "if (param_2 != (int *)0x0) {\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }" (if "if") (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      piVar2 = (int *)strlist_copy();\n      return piVar2;\n    }" ({ "{") (expression_statement "piVar2 = (int *)strlist_copy();" (assignment_expression "piVar2 = (int *)strlist_copy()" (identifier "piVar2") (= "=") (cast_expression "(int *)strlist_copy()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "strlist_copy()" (identifier "strlist_copy") (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" (else "else") (if_statement "if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" (if "if") (parenthesized_expression "((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0))" (( "(") (binary_expression "(param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)" (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = param_2[2], iVar1 != 0)" (( "(") (comma_expression "iVar1 = param_2[2], iVar1 != 0" (assignment_expression "iVar1 = param_2[2]" (identifier "iVar1") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar5 = param_1[2];\n    iVar6 = iVar5 + iVar1;\n    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);\n    if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }\n    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;\n    piVar2[2] = iVar6;\n    return piVar2;\n  }" ({ "{") (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" (identifier "iVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar6 = iVar5 + iVar1;" (assignment_expression "iVar6 = iVar5 + iVar1" (identifier "iVar6") (= "=") (binary_expression "iVar5 + iVar1" (identifier "iVar5") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);" (assignment_expression "piVar2 = (int *)strlist_resize(param_1,iVar6 + 1)" (identifier "piVar2") (= "=") (cast_expression "(int *)strlist_resize(param_1,iVar6 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "strlist_resize(param_1,iVar6 + 1)" (identifier "strlist_resize") (argument_list "(param_1,iVar6 + 1)" (( "(") (identifier "param_1") (, ",") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if (iVar1 < 1) {\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }\n    else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar4 = *piVar2;\n      iVar6 = iVar5;\n    }" ({ "{") (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" (identifier "iVar6") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (else_clause "else {\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" (else "else") (compound_statement "{\n      iVar5 = iVar5 << 2;\n      iVar7 = 0;\n      do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);\n    }" ({ "{") (expression_statement "iVar5 = iVar5 << 2;" (assignment_expression "iVar5 = iVar5 << 2" (identifier "iVar5") (= "=") (binary_expression "iVar5 << 2" (identifier "iVar5") (<< "<<") (number_literal "2"))) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      } while (iVar1 != iVar7);" (do "do") (compound_statement "{\n        __s = *(char **)(*param_2 + iVar7 * 4);\n        if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }\n        iVar4 = *piVar2;\n        iVar7 = iVar7 + 1;\n        *(char **)(iVar4 + iVar5) = __s;\n        iVar5 = iVar5 + 4;\n      }" ({ "{") (expression_statement "__s = *(char **)(*param_2 + iVar7 * 4);" (assignment_expression "__s = *(char **)(*param_2 + iVar7 * 4)" (identifier "__s") (= "=") (pointer_expression "*(char **)(*param_2 + iVar7 * 4)" (* "*") (cast_expression "(char **)(*param_2 + iVar7 * 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + iVar7 * 4)" (( "(") (binary_expression "*param_2 + iVar7 * 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (__s != (char *)0x0) {\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          sVar3 = strlen(__s);\n          __dest = (char *)xmalloc(sVar3 + 1);\n          __s = strcpy(__dest,__s);\n        }" ({ "{") (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" (identifier "sVar3") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "__dest = (char *)xmalloc(sVar3 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar3 + 1)" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc(sVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar3 + 1)" (identifier "xmalloc") (argument_list "(sVar3 + 1)" (( "(") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "__s = strcpy(__dest,__s);" (assignment_expression "__s = strcpy(__dest,__s)" (identifier "__s") (= "=") (call_expression "strcpy(__dest,__s)" (identifier "strcpy") (argument_list "(__dest,__s)" (( "(") (identifier "__dest") (, ",") (identifier "__s") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(char **)(iVar4 + iVar5) = __s;" (assignment_expression "*(char **)(iVar4 + iVar5) = __s" (pointer_expression "*(char **)(iVar4 + iVar5)" (* "*") (cast_expression "(char **)(iVar4 + iVar5)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + iVar5)" (( "(") (binary_expression "iVar4 + iVar5" (identifier "iVar4") (+ "+") (identifier "iVar5")) () ")")))) (= "=") (identifier "__s")) (; ";")) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != iVar7)" (( "(") (binary_expression "iVar1 != iVar7" (identifier "iVar1") (!= "!=") (identifier "iVar7")) () ")")) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(iVar4 + iVar6 * 4) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + iVar6 * 4) = 0" (pointer_expression "*(undefined4 *)(iVar4 + iVar6 * 4)" (* "*") (cast_expression "(undefined4 *)(iVar4 + iVar6 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar6 * 4)" (( "(") (binary_expression "iVar4 + iVar6 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[2] = iVar6;" (assignment_expression "piVar2[2] = iVar6" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 * function_1(type_1 *var_1,type_1 *var_2)

{
  int var_4;
  type_1 *pSVar2;
  size_t var_11;
  char *__dest;
  char *var_8;
  char **ppcVar4;
  int var_5;
  int var_7;
  int var_13;
  
  if (var_1 == (type_1 *)0x0) {
    if (var_2 != (type_1 *)0x0) {
      pSVar2 = var_3(var_2);
      return pSVar2;
    }
  }
  else if ((var_2 != (type_1 *)0x0) && (var_4 = var_2->list_len, var_4 != 0)) {
    var_5 = var_1->list_len;
    var_7 = var_5 + var_4;
    pSVar2 = var_6(var_1,var_7 + 1);
    if (var_4 < 1) {
      ppcVar4 = pSVar2->list;
      var_7 = var_5;
    }
    else {
      var_5 = var_5 << 2;
      var_13 = 0;
      do {
        var_8 = var_2->list[var_13];
        if (var_8 != (char *)0x0) {
          var_11 = var_9(var_8);
          __dest = (char *)var_10(var_11 + 1);
          var_8 = var_12(__dest,var_8);
        }
        ppcVar4 = pSVar2->list;
        var_13 = var_13 + 1;
        *(char **)((int)ppcVar4 + var_5) = var_8;
        var_5 = var_5 + 4;
      } while (var_4 != var_13);
    }
    ppcVar4[var_7] = (char *)0x0;
    pSVar2->list_len = var_7;
    return pSVar2;
  }
  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: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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 (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))))) (return_statement (identifier))))) alternative: (else_clause (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 (comma_expression left: (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (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) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (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: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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 (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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)))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * MASKED(int *param_1,int *param_2)

{
  int iVar1;
  int *piVar2;
  size_t sVar3;
  char *__dest;
  char *__s;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  
  if (param_1 == (int *)0x0) {
    if (param_2 != (int *)0x0) {
      piVar2 = (int *)strlist_copy();
      return piVar2;
    }
  }
  else if ((param_2 != (int *)0x0) && (iVar1 = param_2[2], iVar1 != 0)) {
    iVar5 = param_1[2];
    iVar6 = iVar5 + iVar1;
    piVar2 = (int *)strlist_resize(param_1,iVar6 + 1);
    if (iVar1 < 1) {
      iVar4 = *piVar2;
      iVar6 = iVar5;
    }
    else {
      iVar5 = iVar5 << 2;
      iVar7 = 0;
      do {
        __s = *(char **)(*param_2 + iVar7 * 4);
        if (__s != (char *)0x0) {
          sVar3 = strlen(__s);
          __dest = (char *)xmalloc(sVar3 + 1);
          __s = strcpy(__dest,__s);
        }
        iVar4 = *piVar2;
        iVar7 = iVar7 + 1;
        *(char **)(iVar4 + iVar5) = __s;
        iVar5 = iVar5 + 4;
      } while (iVar1 != iVar7);
    }
    *(undefined4 *)(iVar4 + iVar6 * 4) = 0;
    piVar2[2] = iVar6;
    return piVar2;
  }
  return param_1;
}

