
int ctrl_path_elements(char *path)

{
  int iVar1;
  char cVar2;
  
  iVar1 = 1;
  cVar2 = *path;
  if (cVar2 != '\0') {
    do {
      path = path + 1;
      iVar1 = iVar1 + (uint)(cVar2 == '/');
      cVar2 = *path;
    } while (cVar2 != '\0');
    return iVar1;
  }
  return iVar1;
}



int FUN_000264a0(char *param_1)

{
  int iVar1;
  char cVar2;
  
  iVar1 = 1;
  cVar2 = *param_1;
  if (cVar2 != '\0') {
    do {
      param_1 = param_1 + 1;
      iVar1 = iVar1 + (uint)(cVar2 == '/');
      cVar2 = *param_1;
    } while (cVar2 != '\0');
    return iVar1;
  }
  return iVar1;
}


MOV ECX,dword ptr [ESP + 0x4]
MOV EAX,0x1
MOVZX EDX,byte ptr [ECX]
TEST DL,DL
JZ 0x000264d0
CMP DL,0x2f
SETZ DL
ADD ECX,0x1
MOVZX EDX,DL
ADD EAX,EDX
MOVZX EDX,byte ptr [ECX]
TEST DL,DL
JNZ 0x000264b0
RET
RET
(translation_unit "int FUN_000264a0(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *param_1;\n  if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000264a0(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *param_1;\n  if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000264a0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *param_1;\n  if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }" { (do_statement "do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');" do (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar1 + (uint)(cVar2 == '/');" (assignment_expression "iVar1 = iVar1 + (uint)(cVar2 == '/')" identifier = (binary_expression "iVar1 + (uint)(cVar2 == '/')" identifier + (call_expression "(uint)(cVar2 == '/')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) ))))) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int ctrl_path_elements(char *path)\n\n{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *path;\n  if (cVar2 != '\0') {\n    do {\n      path = path + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *path;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int ctrl_path_elements(char *path)\n\n{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *path;\n  if (cVar2 != '\0') {\n    do {\n      path = path + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *path;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "ctrl_path_elements(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *path;\n  if (cVar2 != '\0') {\n    do {\n      path = path + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *path;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "cVar2 = *path;" (assignment_expression "cVar2 = *path" identifier = (pointer_expression "*path" * identifier)) ;) (if_statement "if (cVar2 != '\0') {\n    do {\n      path = path + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *path;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    do {\n      path = path + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *path;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }" { (do_statement "do {\n      path = path + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *path;\n    } while (cVar2 != '\0');" do (compound_statement "{\n      path = path + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *path;\n    }" { (expression_statement "path = path + 1;" (assignment_expression "path = path + 1" identifier = (binary_expression "path + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar1 + (uint)(cVar2 == '/');" (assignment_expression "iVar1 = iVar1 + (uint)(cVar2 == '/')" identifier = (binary_expression "iVar1 + (uint)(cVar2 == '/')" identifier + (call_expression "(uint)(cVar2 == '/')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) ))))) ;) (expression_statement "cVar2 = *path;" (assignment_expression "cVar2 = *path" identifier = (pointer_expression "*path" * identifier)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_000264a0(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *param_1;\n  if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000264a0(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *param_1;\n  if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000264a0(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *param_1;\n  if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }" { (do_statement "do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');" do (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    }" { (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar1 + (uint)(cVar2 == '/');" (assignment_expression "iVar1 = iVar1 + (uint)(cVar2 == '/')" identifier = (binary_expression "iVar1 + (uint)(cVar2 == '/')" identifier + (call_expression "(uint)(cVar2 == '/')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(cVar2 == '/')" ( (binary_expression "cVar2 == '/'" identifier == (char_literal "'/'" ' character ')) ))))) ;) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == (char_literal ' character ')) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000264a0(char *param_1)\n\n{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *param_1;\n  if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_000264a0(char *param_1)" (identifier "FUN_000264a0") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  \n  iVar1 = 1;\n  cVar2 = *param_1;\n  if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar2 != '\0') {\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');\n    return iVar1;\n  }" ({ "{") (do_statement "do {\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    } while (cVar2 != '\0');" (do "do") (compound_statement "{\n      param_1 = param_1 + 1;\n      iVar1 = iVar1 + (uint)(cVar2 == '/');\n      cVar2 = *param_1;\n    }" ({ "{") (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = iVar1 + (uint)(cVar2 == '/');" (assignment_expression "iVar1 = iVar1 + (uint)(cVar2 == '/')" (identifier "iVar1") (= "=") (binary_expression "iVar1 + (uint)(cVar2 == '/')" (identifier "iVar1") (+ "+") (call_expression "(uint)(cVar2 == '/')" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(cVar2 == '/')" (( "(") (binary_expression "cVar2 == '/'" (identifier "cVar2") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))))) (; ";")) (expression_statement "cVar2 = *param_1;" (assignment_expression "cVar2 = *param_1" (identifier "cVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

int function_1(char *var_2)

{
  int var_3;
  char var_1;
  
  var_3 = 1;
  var_1 = *var_2;
  if (var_1 != '\0') {
    do {
      var_2 = var_2 + 1;
      var_3 = var_3 + (uint)(var_1 == '/');
      var_1 = *var_2;
    } while (var_1 != '\0');
    return var_3;
  }
  return var_3;
}


(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)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (do_statement body: (compound_statement (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: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (char_literal (character)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (return_statement (identifier)))) (return_statement (identifier)))))

int MASKED(char *param_1)

{
  int iVar1;
  char cVar2;
  
  iVar1 = 1;
  cVar2 = *param_1;
  if (cVar2 != '\0') {
    do {
      param_1 = param_1 + 1;
      iVar1 = iVar1 + (uint)(cVar2 == '/');
      cVar2 = *param_1;
    } while (cVar2 != '\0');
    return iVar1;
  }
  return iVar1;
}

