
ptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  char *pcVar5;
  char **ppcVar6;
  char *pcVar7;
  int iVar8;
  int iVar9;
  
  iVar2 = (*(code *)PTR_strlen_00045564)();
  pcVar5 = *arglist;
  if (pcVar5 == (char *)0x0) {
    iVar4 = -1;
  }
  else {
    ppcVar6 = arglist + 1;
    bVar1 = false;
    iVar8 = 0;
    pcVar7 = vallist;
    iVar9 = -1;
    do {
      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);
      iVar4 = iVar9;
      if (iVar3 == 0) {
        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);
        if (iVar4 == iVar2) {
          return iVar8;
        }
        iVar4 = iVar8;
        if (iVar9 != -1) {
          if (vallist == (char *)0x0) {
            bVar1 = true;
            iVar4 = iVar9;
          }
          else {
            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);
            iVar4 = iVar9;
            if (iVar3 != 0) {
              bVar1 = true;
            }
          }
        }
      }
      iVar8 = iVar8 + 1;
      pcVar5 = *ppcVar6;
      ppcVar6 = ppcVar6 + 1;
      pcVar7 = pcVar7 + valsize;
      iVar9 = iVar4;
    } while (pcVar5 != (char *)0x0);
    if (bVar1) {
      iVar4 = -2;
    }
  }
  return iVar4;
}



int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar2 = (*(code *)PTR_strlen_00045564)();
  iVar4 = *param_2;
  if (iVar4 == 0) {
    iVar8 = -1;
  }
  else {
    param_2 = param_2 + 1;
    bVar1 = false;
    iVar6 = 0;
    iVar5 = param_3;
    iVar7 = -1;
    do {
      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);
      iVar8 = iVar7;
      if (iVar3 == 0) {
        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);
        if (iVar4 == iVar2) {
          return iVar6;
        }
        iVar8 = iVar6;
        if (iVar7 != -1) {
          if (param_3 == 0) {
            bVar1 = true;
            iVar8 = iVar7;
          }
          else {
            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);
            iVar8 = iVar7;
            if (iVar4 != 0) {
              bVar1 = true;
            }
          }
        }
      }
      iVar6 = iVar6 + 1;
      iVar4 = *param_2;
      param_2 = param_2 + 1;
      iVar5 = iVar5 + param_4;
      iVar7 = iVar8;
    } while (iVar4 != 0);
    if (bVar1) {
      iVar8 = -2;
    }
  }
  return iVar8;
}


lui gp,0x2
addiu gp,gp,-0x1908
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s8,0x38(sp)
sw s7,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
sw a0,0x40(sp)
or s1,a1,zero
or s7,a2,zero
or s5,a3,zero
lw t9,-0x7b8c(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw s0,0x0(s1)
beq s0,zero,0x0002eb50
_or s4,v0,zero
addiu s1,s1,0x4
or s2,s7,zero
or s8,zero,zero
li s6,-0x1
b 0x0002ea98
_or s3,zero,zero
b 0x0002eb1c
_or s6,s3,zero
or s6,s3,zero
addiu s3,s3,0x1
lw s0,0x0(s1)
addiu s1,s1,0x4
beq s0,zero,0x0002eb14
_addu s2,s2,s5
or a2,s4,zero
lw a1,0x40(sp)
or a0,s0,zero
lw t9,-0x7c80(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x0002ea84
_or a0,s0,zero
lw t9,-0x7b8c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,s4,0x0002ea78
_li v0,-0x1
beq s6,v0,0x0002ea80
_nop
beq s7,zero,0x0002eb0c
_or a2,s5,zero
or a1,s2,zero
mul v0,s6,s5
addu a0,v0,s7
lw t9,-0x7ad8(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v1,0x1
b 0x0002ea84
_movn s8,v1,v0
b 0x0002ea84
_li s8,0x1
li v0,-0x2
movn s6,v0,s8
or v0,s6,zero
lw ra,0x3c(sp)
lw s8,0x38(sp)
lw s7,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x40
b 0x0002eb1c
_li s6,-0x1
(translation_unit "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  iVar4 = *param_2;\n  if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }\n  return iVar8;\n}\n\n" (function_definition "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  iVar4 = *param_2;\n  if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }\n  return iVar8;\n}" primitive_type (function_declarator "argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  iVar4 = *param_2;\n  if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }\n  return iVar8;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00045564)();" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00045564)()" identifier = (call_expression "(*(code *)PTR_strlen_00045564)()" (parenthesized_expression "(*(code *)PTR_strlen_00045564)" ( (pointer_expression "*(code *)PTR_strlen_00045564" * (cast_expression "(code *)PTR_strlen_00045564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar8 = -1;\n  }" { (expression_statement "iVar8 = -1;" (assignment_expression "iVar8 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" else (compound_statement "{\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);" do (compound_statement "{\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2)" identifier = (call_expression "(*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_strncmp_00045470)" ( (pointer_expression "*(code *)PTR_strncmp_00045470" * (cast_expression "(code *)PTR_strncmp_00045470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00045564)(iVar4)" identifier = (call_expression "(*(code *)PTR_strlen_00045564)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00045564)" ( (pointer_expression "*(code *)PTR_strlen_00045564" * (cast_expression "(code *)PTR_strlen_00045564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar4 == iVar2) {\n          return iVar6;\n        }" if (parenthesized_expression "(iVar4 == iVar2)" ( (binary_expression "iVar4 == iVar2" identifier == identifier) )) (compound_statement "{\n          return iVar6;\n        }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" identifier = identifier) ;) (if_statement "if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" if (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) (compound_statement "{\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" { (if_statement "if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n            bVar1 = true;\n            iVar8 = iVar7;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) }) (else_clause "else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" else (compound_statement "{\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" { (expression_statement "iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);" (assignment_expression "iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4)" identifier = (call_expression "(*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4)" (parenthesized_expression "(*(code *)PTR_memcmp_00045618)" ( (pointer_expression "*(code *)PTR_memcmp_00045618" * (cast_expression "(code *)PTR_memcmp_00045618" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 * param_4 + param_3,iVar5,param_4)" ( (binary_expression "iVar7 * param_4 + param_3" (binary_expression "iVar7 * param_4" identifier * identifier) + identifier) , identifier , identifier )))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n              bVar1 = true;\n            }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n              bVar1 = true;\n            }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) })) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + param_4;" (assignment_expression "iVar5 = iVar5 + param_4" identifier = (binary_expression "iVar5 + param_4" identifier + identifier)) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (if_statement "if (bVar1) {\n      iVar8 = -2;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar8 = -2;\n    }" { (expression_statement "iVar8 = -2;" (assignment_expression "iVar8 = -2" identifier = number_literal) ;) })) }))) (return_statement "return iVar8;" return identifier ;) })))
(translation_unit "ptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char **ppcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  pcVar5 = *arglist;\n  if (pcVar5 == (char *)0x0) {\n    iVar4 = -1;\n  }\n  else {\n    ppcVar6 = arglist + 1;\n    bVar1 = false;\n    iVar8 = 0;\n    pcVar7 = vallist;\n    iVar9 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);\n      iVar4 = iVar9;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar8 = iVar8 + 1;\n      pcVar5 = *ppcVar6;\n      ppcVar6 = ppcVar6 + 1;\n      pcVar7 = pcVar7 + valsize;\n      iVar9 = iVar4;\n    } while (pcVar5 != (char *)0x0);\n    if (bVar1) {\n      iVar4 = -2;\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "ptrdiff_t argmatch(char *arg,char **arglist,char *vallist,size_t valsize)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char **ppcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  pcVar5 = *arglist;\n  if (pcVar5 == (char *)0x0) {\n    iVar4 = -1;\n  }\n  else {\n    ppcVar6 = arglist + 1;\n    bVar1 = false;\n    iVar8 = 0;\n    pcVar7 = vallist;\n    iVar9 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);\n      iVar4 = iVar9;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar8 = iVar8 + 1;\n      pcVar5 = *ppcVar6;\n      ppcVar6 = ppcVar6 + 1;\n      pcVar7 = pcVar7 + valsize;\n      iVar9 = iVar4;\n    } while (pcVar5 != (char *)0x0);\n    if (bVar1) {\n      iVar4 = -2;\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "argmatch(char *arg,char **arglist,char *vallist,size_t valsize)" identifier (parameter_list "(char *arg,char **arglist,char *vallist,size_t valsize)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) , (parameter_declaration "char **arglist" primitive_type (pointer_declarator "**arglist" * (pointer_declarator "*arglist" * identifier))) , (parameter_declaration "char *vallist" primitive_type (pointer_declarator "*vallist" * identifier)) , (parameter_declaration "size_t valsize" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char **ppcVar6;\n  char *pcVar7;\n  int iVar8;\n  int iVar9;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  pcVar5 = *arglist;\n  if (pcVar5 == (char *)0x0) {\n    iVar4 = -1;\n  }\n  else {\n    ppcVar6 = arglist + 1;\n    bVar1 = false;\n    iVar8 = 0;\n    pcVar7 = vallist;\n    iVar9 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);\n      iVar4 = iVar9;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar8 = iVar8 + 1;\n      pcVar5 = *ppcVar6;\n      ppcVar6 = ppcVar6 + 1;\n      pcVar7 = pcVar7 + valsize;\n      iVar9 = iVar4;\n    } while (pcVar5 != (char *)0x0);\n    if (bVar1) {\n      iVar4 = -2;\n    }\n  }\n  return iVar4;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char **ppcVar6;" primitive_type (pointer_declarator "**ppcVar6" * (pointer_declarator "*ppcVar6" * identifier)) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00045564)();" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00045564)()" identifier = (call_expression "(*(code *)PTR_strlen_00045564)()" (parenthesized_expression "(*(code *)PTR_strlen_00045564)" ( (pointer_expression "*(code *)PTR_strlen_00045564" * (cast_expression "(code *)PTR_strlen_00045564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = *arglist;" (assignment_expression "pcVar5 = *arglist" identifier = (pointer_expression "*arglist" * identifier)) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n    iVar4 = -1;\n  }\n  else {\n    ppcVar6 = arglist + 1;\n    bVar1 = false;\n    iVar8 = 0;\n    pcVar7 = vallist;\n    iVar9 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);\n      iVar4 = iVar9;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar8 = iVar8 + 1;\n      pcVar5 = *ppcVar6;\n      ppcVar6 = ppcVar6 + 1;\n      pcVar7 = pcVar7 + valsize;\n      iVar9 = iVar4;\n    } while (pcVar5 != (char *)0x0);\n    if (bVar1) {\n      iVar4 = -2;\n    }\n  }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = -1;\n  }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    ppcVar6 = arglist + 1;\n    bVar1 = false;\n    iVar8 = 0;\n    pcVar7 = vallist;\n    iVar9 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);\n      iVar4 = iVar9;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar8 = iVar8 + 1;\n      pcVar5 = *ppcVar6;\n      ppcVar6 = ppcVar6 + 1;\n      pcVar7 = pcVar7 + valsize;\n      iVar9 = iVar4;\n    } while (pcVar5 != (char *)0x0);\n    if (bVar1) {\n      iVar4 = -2;\n    }\n  }" else (compound_statement "{\n    ppcVar6 = arglist + 1;\n    bVar1 = false;\n    iVar8 = 0;\n    pcVar7 = vallist;\n    iVar9 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);\n      iVar4 = iVar9;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar8 = iVar8 + 1;\n      pcVar5 = *ppcVar6;\n      ppcVar6 = ppcVar6 + 1;\n      pcVar7 = pcVar7 + valsize;\n      iVar9 = iVar4;\n    } while (pcVar5 != (char *)0x0);\n    if (bVar1) {\n      iVar4 = -2;\n    }\n  }" { (expression_statement "ppcVar6 = arglist + 1;" (assignment_expression "ppcVar6 = arglist + 1" identifier = (binary_expression "arglist + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = vallist;" (assignment_expression "pcVar7 = vallist" identifier = identifier) ;) (expression_statement "iVar9 = -1;" (assignment_expression "iVar9 = -1" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);\n      iVar4 = iVar9;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar8 = iVar8 + 1;\n      pcVar5 = *ppcVar6;\n      ppcVar6 = ppcVar6 + 1;\n      pcVar7 = pcVar7 + valsize;\n      iVar9 = iVar4;\n    } while (pcVar5 != (char *)0x0);" do (compound_statement "{\n      iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);\n      iVar4 = iVar9;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar8 = iVar8 + 1;\n      pcVar5 = *ppcVar6;\n      ppcVar6 = ppcVar6 + 1;\n      pcVar7 = pcVar7 + valsize;\n      iVar9 = iVar4;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2)" identifier = (call_expression "(*(code *)PTR_strncmp_00045470)(pcVar5,arg,iVar2)" (parenthesized_expression "(*(code *)PTR_strncmp_00045470)" ( (pointer_expression "*(code *)PTR_strncmp_00045470" * (cast_expression "(code *)PTR_strncmp_00045470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5,arg,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = iVar9;" (assignment_expression "iVar4 = iVar9" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);\n        if (iVar4 == iVar2) {\n          return iVar8;\n        }\n        iVar4 = iVar8;\n        if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00045564)(pcVar5)" identifier = (call_expression "(*(code *)PTR_strlen_00045564)(pcVar5)" (parenthesized_expression "(*(code *)PTR_strlen_00045564)" ( (pointer_expression "*(code *)PTR_strlen_00045564" * (cast_expression "(code *)PTR_strlen_00045564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (iVar4 == iVar2) {\n          return iVar8;\n        }" if (parenthesized_expression "(iVar4 == iVar2)" ( (binary_expression "iVar4 == iVar2" identifier == identifier) )) (compound_statement "{\n          return iVar8;\n        }" { (return_statement "return iVar8;" return identifier ;) })) (expression_statement "iVar4 = iVar8;" (assignment_expression "iVar4 = iVar8" identifier = identifier) ;) (if_statement "if (iVar9 != -1) {\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" if (parenthesized_expression "(iVar9 != -1)" ( (binary_expression "iVar9 != -1" identifier != number_literal) )) (compound_statement "{\n          if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" { (if_statement "if (vallist == (char *)0x0) {\n            bVar1 = true;\n            iVar4 = iVar9;\n          }\n          else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" if (parenthesized_expression "(vallist == (char *)0x0)" ( (binary_expression "vallist == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            bVar1 = true;\n            iVar4 = iVar9;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar4 = iVar9;" (assignment_expression "iVar4 = iVar9" identifier = identifier) ;) }) (else_clause "else {\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" else (compound_statement "{\n            iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);\n            iVar4 = iVar9;\n            if (iVar3 != 0) {\n              bVar1 = true;\n            }\n          }" { (expression_statement "iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize);" (assignment_expression "iVar3 = (*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize)" identifier = (call_expression "(*(code *)PTR_memcmp_00045618)(vallist + iVar9 * valsize,pcVar7,valsize)" (parenthesized_expression "(*(code *)PTR_memcmp_00045618)" ( (pointer_expression "*(code *)PTR_memcmp_00045618" * (cast_expression "(code *)PTR_memcmp_00045618" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(vallist + iVar9 * valsize,pcVar7,valsize)" ( (binary_expression "vallist + iVar9 * valsize" identifier + (binary_expression "iVar9 * valsize" identifier * identifier)) , identifier , identifier )))) ;) (expression_statement "iVar4 = iVar9;" (assignment_expression "iVar4 = iVar9" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n              bVar1 = true;\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              bVar1 = true;\n            }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) })) })) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = *ppcVar6;" (assignment_expression "pcVar5 = *ppcVar6" identifier = (pointer_expression "*ppcVar6" * identifier)) ;) (expression_statement "ppcVar6 = ppcVar6 + 1;" (assignment_expression "ppcVar6 = ppcVar6 + 1" identifier = (binary_expression "ppcVar6 + 1" identifier + number_literal)) ;) (expression_statement "pcVar7 = pcVar7 + valsize;" (assignment_expression "pcVar7 = pcVar7 + valsize" identifier = (binary_expression "pcVar7 + valsize" identifier + identifier)) ;) (expression_statement "iVar9 = iVar4;" (assignment_expression "iVar9 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar5 != (char *)0x0)" ( (binary_expression "pcVar5 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (bVar1) {\n      iVar4 = -2;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar4 = -2;\n    }" { (expression_statement "iVar4 = -2;" (assignment_expression "iVar4 = -2" identifier = number_literal) ;) })) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  iVar4 = *param_2;\n  if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }\n  return iVar8;\n}\n\n" (function_definition "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  iVar4 = *param_2;\n  if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }\n  return iVar8;\n}" primitive_type (function_declarator "argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  iVar4 = *param_2;\n  if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }\n  return iVar8;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "iVar2 = (*(code *)PTR_strlen_00045564)();" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00045564)()" identifier = (call_expression "(*(code *)PTR_strlen_00045564)()" (parenthesized_expression "(*(code *)PTR_strlen_00045564)" ( (pointer_expression "*(code *)PTR_strlen_00045564" * (cast_expression "(code *)PTR_strlen_00045564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar8 = -1;\n  }" { (expression_statement "iVar8 = -1;" (assignment_expression "iVar8 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" else (compound_statement "{\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (do_statement "do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);" do (compound_statement "{\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2)" identifier = (call_expression "(*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_strncmp_00045470)" ( (pointer_expression "*(code *)PTR_strncmp_00045470" * (cast_expression "(code *)PTR_strncmp_00045470" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,param_1,iVar2)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00045564)(iVar4)" identifier = (call_expression "(*(code *)PTR_strlen_00045564)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00045564)" ( (pointer_expression "*(code *)PTR_strlen_00045564" * (cast_expression "(code *)PTR_strlen_00045564" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (if_statement "if (iVar4 == iVar2) {\n          return iVar6;\n        }" if (parenthesized_expression "(iVar4 == iVar2)" ( (binary_expression "iVar4 == iVar2" identifier == identifier) )) (compound_statement "{\n          return iVar6;\n        }" { (return_statement "return iVar6;" return identifier ;) })) (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" identifier = identifier) ;) (if_statement "if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" if (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) (compound_statement "{\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" { (if_statement "if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n            bVar1 = true;\n            iVar8 = iVar7;\n          }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) }) (else_clause "else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" else (compound_statement "{\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" { (expression_statement "iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);" (assignment_expression "iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4)" identifier = (call_expression "(*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4)" (parenthesized_expression "(*(code *)PTR_memcmp_00045618)" ( (pointer_expression "*(code *)PTR_memcmp_00045618" * (cast_expression "(code *)PTR_memcmp_00045618" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 * param_4 + param_3,iVar5,param_4)" ( (binary_expression "iVar7 * param_4 + param_3" (binary_expression "iVar7 * param_4" identifier * identifier) + identifier) , identifier , identifier )))) ;) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n              bVar1 = true;\n            }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n              bVar1 = true;\n            }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) })) }))) })) })) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + param_4;" (assignment_expression "iVar5 = iVar5 + param_4" identifier = (binary_expression "iVar5 + param_4" identifier + identifier)) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (if_statement "if (bVar1) {\n      iVar8 = -2;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      iVar8 = -2;\n    }" { (expression_statement "iVar8 = -2;" (assignment_expression "iVar8 = -2" identifier = number_literal) ;) })) }))) (return_statement "return iVar8;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT * IDENT) + IDENT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) })) }))) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "int argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  iVar4 = *param_2;\n  if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }\n  return iVar8;\n}" (primitive_type "int") (function_declarator "argmatch(undefined4 param_1,int *param_2,int param_3,int param_4)" (identifier "argmatch") (parameter_list "(undefined4 param_1,int *param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar2 = (*(code *)PTR_strlen_00045564)();\n  iVar4 = *param_2;\n  if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }\n  return iVar8;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strlen_00045564)();" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00045564)()" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_00045564)()" (parenthesized_expression "(*(code *)PTR_strlen_00045564)" (( "(") (pointer_expression "*(code *)PTR_strlen_00045564" (* "*") (cast_expression "(code *)PTR_strlen_00045564" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00045564"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" (identifier "iVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (iVar4 == 0) {\n    iVar8 = -1;\n  }\n  else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar8 = -1;\n  }" ({ "{") (expression_statement "iVar8 = -1;" (assignment_expression "iVar8 = -1" (identifier "iVar8") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" (else "else") (compound_statement "{\n    param_2 = param_2 + 1;\n    bVar1 = false;\n    iVar6 = 0;\n    iVar5 = param_3;\n    iVar7 = -1;\n    do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);\n    if (bVar1) {\n      iVar8 = -2;\n    }\n  }" ({ "{") (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" (identifier "iVar5") (= "=") (identifier "param_3")) (; ";")) (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" (identifier "iVar7") (= "=") (number_literal "-1")) (; ";")) (do_statement "do {\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    } while (iVar4 != 0);" (do "do") (compound_statement "{\n      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);\n      iVar8 = iVar7;\n      if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }\n      iVar6 = iVar6 + 1;\n      iVar4 = *param_2;\n      param_2 = param_2 + 1;\n      iVar5 = iVar5 + param_4;\n      iVar7 = iVar8;\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2)" (parenthesized_expression "(*(code *)PTR_strncmp_00045470)" (( "(") (pointer_expression "*(code *)PTR_strncmp_00045470" (* "*") (cast_expression "(code *)PTR_strncmp_00045470" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncmp_00045470"))) () ")")) (argument_list "(iVar4,param_1,iVar2)" (( "(") (identifier "iVar4") (, ",") (identifier "param_1") (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" (identifier "iVar8") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar3 == 0) {\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);\n        if (iVar4 == iVar2) {\n          return iVar6;\n        }\n        iVar8 = iVar6;\n        if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }\n      }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00045564)(iVar4)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_00045564)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00045564)" (( "(") (pointer_expression "*(code *)PTR_strlen_00045564" (* "*") (cast_expression "(code *)PTR_strlen_00045564" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00045564"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if (iVar4 == iVar2) {\n          return iVar6;\n        }" (if "if") (parenthesized_expression "(iVar4 == iVar2)" (( "(") (binary_expression "iVar4 == iVar2" (identifier "iVar4") (== "==") (identifier "iVar2")) () ")")) (compound_statement "{\n          return iVar6;\n        }" ({ "{") (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}"))) (expression_statement "iVar8 = iVar6;" (assignment_expression "iVar8 = iVar6" (identifier "iVar8") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (iVar7 != -1) {\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" (if "if") (parenthesized_expression "(iVar7 != -1)" (( "(") (binary_expression "iVar7 != -1" (identifier "iVar7") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n          if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }\n        }" ({ "{") (if_statement "if (param_3 == 0) {\n            bVar1 = true;\n            iVar8 = iVar7;\n          }\n          else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            bVar1 = true;\n            iVar8 = iVar7;\n          }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" (identifier "iVar8") (= "=") (identifier "iVar7")) (; ";")) (} "}")) (else_clause "else {\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" (else "else") (compound_statement "{\n            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);\n            iVar8 = iVar7;\n            if (iVar4 != 0) {\n              bVar1 = true;\n            }\n          }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);" (assignment_expression "iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4)" (parenthesized_expression "(*(code *)PTR_memcmp_00045618)" (( "(") (pointer_expression "*(code *)PTR_memcmp_00045618" (* "*") (cast_expression "(code *)PTR_memcmp_00045618" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_00045618"))) () ")")) (argument_list "(iVar7 * param_4 + param_3,iVar5,param_4)" (( "(") (binary_expression "iVar7 * param_4 + param_3" (binary_expression "iVar7 * param_4" (identifier "iVar7") (* "*") (identifier "param_4")) (+ "+") (identifier "param_3")) (, ",") (identifier "iVar5") (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "iVar8 = iVar7;" (assignment_expression "iVar8 = iVar7" (identifier "iVar8") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar4 != 0) {\n              bVar1 = true;\n            }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              bVar1 = true;\n            }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (} "}"))) (} "}")))) (} "}"))) (} "}"))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = *param_2;" (assignment_expression "iVar4 = *param_2" (identifier "iVar4") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar5 + param_4;" (assignment_expression "iVar5 = iVar5 + param_4" (identifier "iVar5") (= "=") (binary_expression "iVar5 + param_4" (identifier "iVar5") (+ "+") (identifier "param_4"))) (; ";")) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" (identifier "iVar7") (= "=") (identifier "iVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (; ";")) (if_statement "if (bVar1) {\n      iVar8 = -2;\n    }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n      iVar8 = -2;\n    }" ({ "{") (expression_statement "iVar8 = -2;" (assignment_expression "iVar8 = -2" (identifier "iVar8") (= "=") (number_literal "-2")) (; ";")) (} "}"))) (} "}")))) (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) 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: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true)))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,int *param_2,int param_3,int param_4)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar2 = (*(code *)PTR_strlen_00045564)();
  iVar4 = *param_2;
  if (iVar4 == 0) {
    iVar8 = -1;
  }
  else {
    param_2 = param_2 + 1;
    bVar1 = false;
    iVar6 = 0;
    iVar5 = param_3;
    iVar7 = -1;
    do {
      iVar3 = (*(code *)PTR_strncmp_00045470)(iVar4,param_1,iVar2);
      iVar8 = iVar7;
      if (iVar3 == 0) {
        iVar4 = (*(code *)PTR_strlen_00045564)(iVar4);
        if (iVar4 == iVar2) {
          return iVar6;
        }
        iVar8 = iVar6;
        if (iVar7 != -1) {
          if (param_3 == 0) {
            bVar1 = true;
            iVar8 = iVar7;
          }
          else {
            iVar4 = (*(code *)PTR_memcmp_00045618)(iVar7 * param_4 + param_3,iVar5,param_4);
            iVar8 = iVar7;
            if (iVar4 != 0) {
              bVar1 = true;
            }
          }
        }
      }
      iVar6 = iVar6 + 1;
      iVar4 = *param_2;
      param_2 = param_2 + 1;
      iVar5 = iVar5 + param_4;
      iVar7 = iVar8;
    } while (iVar4 != 0);
    if (bVar1) {
      iVar8 = -2;
    }
  }
  return iVar8;
}

