
int countargv(char **argv)

{
  int iVar1;
  
  iVar1 = 0;
  if ((argv != (char **)0x0) && (*argv != (char *)0x0)) {
    do {
      iVar1 = iVar1 + 1;
    } while (argv[iVar1] != (char *)0x0);
    return iVar1;
  }
  return iVar1;
}



void FUN_0002cd90(int *param_1)

{
  int iVar1;
  
  iVar1 = 0;
  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {
    do {
      iVar1 = iVar1 + 1;
    } while (param_1[iVar1] != 0);
    return;
  }
  return;
}


MOV EDX,dword ptr [ESP + 0x4]
XOR EAX,EAX
TEST EDX,EDX
JZ 0x0002cdb0
MOV ECX,dword ptr [EDX]
TEST ECX,ECX
JZ 0x0002cdb0
ADD EAX,0x1
MOV ECX,dword ptr [EDX + EAX*0x4]
TEST ECX,ECX
JNZ 0x0002cda0
RET
RET
(translation_unit "void FUN_0002cd90(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002cd90(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002cd90(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }" if (parenthesized_expression "((param_1 != (int *)0x0) && (*param_1 != 0))" ( (binary_expression "(param_1 != (int *)0x0) && (*param_1 != 0)" (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)) )) && (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) ))) )) (compound_statement "{\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }" { (do_statement "do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1[iVar1] != 0)" ( (binary_expression "param_1[iVar1] != 0" (subscript_expression "param_1[iVar1]" identifier [ identifier ]) != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "int countargv(char **argv)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((argv != (char **)0x0) && (*argv != (char *)0x0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (argv[iVar1] != (char *)0x0);\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int countargv(char **argv)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((argv != (char **)0x0) && (*argv != (char *)0x0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (argv[iVar1] != (char *)0x0);\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "countargv(char **argv)" identifier (parameter_list "(char **argv)" ( (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((argv != (char **)0x0) && (*argv != (char *)0x0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (argv[iVar1] != (char *)0x0);\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((argv != (char **)0x0) && (*argv != (char *)0x0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (argv[iVar1] != (char *)0x0);\n    return iVar1;\n  }" if (parenthesized_expression "((argv != (char **)0x0) && (*argv != (char *)0x0))" ( (binary_expression "(argv != (char **)0x0) && (*argv != (char *)0x0)" (parenthesized_expression "(argv != (char **)0x0)" ( (binary_expression "argv != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) && (parenthesized_expression "(*argv != (char *)0x0)" ( (binary_expression "*argv != (char *)0x0" (pointer_expression "*argv" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    do {\n      iVar1 = iVar1 + 1;\n    } while (argv[iVar1] != (char *)0x0);\n    return iVar1;\n  }" { (do_statement "do {\n      iVar1 = iVar1 + 1;\n    } while (argv[iVar1] != (char *)0x0);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(argv[iVar1] != (char *)0x0)" ( (binary_expression "argv[iVar1] != (char *)0x0" (subscript_expression "argv[iVar1]" identifier [ identifier ]) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void FUN_0002cd90(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002cd90(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002cd90(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }" if (parenthesized_expression "((param_1 != (int *)0x0) && (*param_1 != 0))" ( (binary_expression "(param_1 != (int *)0x0) && (*param_1 != 0)" (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)) )) && (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) ))) )) (compound_statement "{\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }" { (do_statement "do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1[iVar1] != 0)" ( (binary_expression "param_1[iVar1] != 0" (subscript_expression "param_1[iVar1]" identifier [ identifier ]) != number_literal) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0002cd90(int *param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002cd90(int *param_1)" (identifier "FUN_0002cd90") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 0;\n  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_1 != (int *)0x0) && (*param_1 != 0)) {\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }" (if "if") (parenthesized_expression "((param_1 != (int *)0x0) && (*param_1 != 0))" (( "(") (binary_expression "(param_1 != (int *)0x0) && (*param_1 != 0)" (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"))) () ")")) (&& "&&") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);\n    return;\n  }" ({ "{") (do_statement "do {\n      iVar1 = iVar1 + 1;\n    } while (param_1[iVar1] != 0);" (do "do") (compound_statement "{\n      iVar1 = iVar1 + 1;\n    }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1[iVar1] != 0)" (( "(") (binary_expression "param_1[iVar1] != 0" (subscript_expression "param_1[iVar1]" (identifier "param_1") ([ "[") (identifier "iVar1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

int function_1(char **var_1)

{
  int var_2;
  
  var_2 = 0;
  if ((var_1 != (char **)0x0) && (*var_1 != (char *)0x0)) {
    do {
      var_2 = var_2 + 1;
    } while (var_1[var_2] != (char *)0x0);
    return var_2;
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal)))) (return_statement))) (return_statement))))

void MASKED(int *param_1)

{
  int iVar1;
  
  iVar1 = 0;
  if ((param_1 != (int *)0x0) && (*param_1 != 0)) {
    do {
      iVar1 = iVar1 + 1;
    } while (param_1[iVar1] != 0);
    return;
  }
  return;
}

