
char * last_component(char *name)

{
  bool bVar1;
  char *pcVar2;
  char cVar3;
  
  cVar3 = *name;
  while (cVar3 == '/') {
    name = name + 1;
    cVar3 = *name;
  }
  cVar3 = *name;
  if (cVar3 != '\0') {
    bVar1 = false;
    pcVar2 = name;
    do {
      if (cVar3 == '/') {
        bVar1 = true;
      }
      else if (bVar1) {
        bVar1 = false;
        name = pcVar2;
      }
      pcVar2 = pcVar2 + 1;
      cVar3 = *pcVar2;
    } while (cVar3 != '\0');
  }
  return name;
}



char * last_component(char *param_1)

{
  bool bVar1;
  char *pcVar2;
  char cVar3;
  
  cVar3 = *param_1;
  while (cVar3 == '/') {
    param_1 = param_1 + 1;
    cVar3 = *param_1;
  }
  cVar3 = *param_1;
  if (cVar3 != '\0') {
    bVar1 = false;
    pcVar2 = param_1;
    do {
      if (cVar3 == '/') {
        bVar1 = true;
      }
      else if (bVar1) {
        bVar1 = false;
        param_1 = pcVar2;
      }
      pcVar2 = pcVar2 + 1;
      cVar3 = *pcVar2;
    } while (cVar3 != '\0');
  }
  return param_1;
}


or v0,a0,zero
lb a0,0x0(a0)
li v1,0x2f
bne a0,v1,0x00021044
_li a0,0x2f
addiu v0,v0,0x1
lb v1,0x0(v0)
beq v1,a0,0x00021034
_nop
lb a0,0x0(v0)
beq a0,zero,0x00021094
_or v1,v0,zero
or a1,zero,zero
li a2,0x2f
li a3,0x1
b 0x00021078
_or t0,zero,zero
or a1,a3,zero
addiu v1,v1,0x1
lb a0,0x0(v1)
beq a0,zero,0x00021094
_nop
beq a0,a2,0x00021064
_nop
beq a1,zero,0x00021068
_nop
or v0,v1,zero
b 0x00021068
_or a1,t0,zero
jr ra
_nop
(translation_unit "char * last_component(char *param_1)\n\n{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *param_1;\n  while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }\n  cVar3 = *param_1;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return param_1;\n}\n\n" (function_definition "char * last_component(char *param_1)\n\n{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *param_1;\n  while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }\n  cVar3 = *param_1;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* last_component(char *param_1)" * (function_declarator "last_component(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *param_1;\n  while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }\n  cVar3 = *param_1;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return param_1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (expression_statement "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }" while (parenthesized_expression "(cVar3 == '/')" ( (binary_expression "cVar3 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    param_1 = param_1 + 1;\n    cVar3 = *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 "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');" do (compound_statement "{\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    }" { (if_statement "if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" if (parenthesized_expression "(cVar3 == '/')" ( (binary_expression "cVar3 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        bVar1 = true;\n      }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) }) (else_clause "else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" else (if_statement "if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" identifier = identifier) ;) })))) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "char * last_component(char *name)\n\n{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *name;\n  while (cVar3 == '/') {\n    name = name + 1;\n    cVar3 = *name;\n  }\n  cVar3 = *name;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = name;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return name;\n}\n\n" (function_definition "char * last_component(char *name)\n\n{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *name;\n  while (cVar3 == '/') {\n    name = name + 1;\n    cVar3 = *name;\n  }\n  cVar3 = *name;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = name;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return name;\n}" primitive_type (pointer_declarator "* last_component(char *name)" * (function_declarator "last_component(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *name;\n  while (cVar3 == '/') {\n    name = name + 1;\n    cVar3 = *name;\n  }\n  cVar3 = *name;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = name;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return name;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (expression_statement "cVar3 = *name;" (assignment_expression "cVar3 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (while_statement "while (cVar3 == '/') {\n    name = name + 1;\n    cVar3 = *name;\n  }" while (parenthesized_expression "(cVar3 == '/')" ( (binary_expression "cVar3 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    name = name + 1;\n    cVar3 = *name;\n  }" { (expression_statement "name = name + 1;" (assignment_expression "name = name + 1" identifier = (binary_expression "name + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *name;" (assignment_expression "cVar3 = *name" identifier = (pointer_expression "*name" * identifier)) ;) })) (expression_statement "cVar3 = *name;" (assignment_expression "cVar3 = *name" identifier = (pointer_expression "*name" * identifier)) ;) (if_statement "if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = name;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar1 = false;\n    pcVar2 = name;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pcVar2 = name;" (assignment_expression "pcVar2 = name" identifier = identifier) ;) (do_statement "do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');" do (compound_statement "{\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    }" { (if_statement "if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }" if (parenthesized_expression "(cVar3 == '/')" ( (binary_expression "cVar3 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        bVar1 = true;\n      }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) }) (else_clause "else if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }" else (if_statement "if (bVar1) {\n        bVar1 = false;\n        name = pcVar2;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        bVar1 = false;\n        name = pcVar2;\n      }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "name = pcVar2;" (assignment_expression "name = pcVar2" identifier = identifier) ;) })))) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return name;" return identifier ;) })))
(translation_unit "char * last_component(char *param_1)\n\n{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *param_1;\n  while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }\n  cVar3 = *param_1;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return param_1;\n}\n\n" (function_definition "char * last_component(char *param_1)\n\n{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *param_1;\n  while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }\n  cVar3 = *param_1;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* last_component(char *param_1)" * (function_declarator "last_component(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *param_1;\n  while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }\n  cVar3 = *param_1;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return param_1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (expression_statement "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (while_statement "while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }" while (parenthesized_expression "(cVar3 == '/')" ( (binary_expression "cVar3 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n    param_1 = param_1 + 1;\n    cVar3 = *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 "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) (do_statement "do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');" do (compound_statement "{\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    }" { (if_statement "if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" if (parenthesized_expression "(cVar3 == '/')" ( (binary_expression "cVar3 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n        bVar1 = true;\n      }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) }) (else_clause "else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" else (if_statement "if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" identifier = identifier) ;) })))) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "char * last_component(char *param_1)\n\n{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *param_1;\n  while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }\n  cVar3 = *param_1;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return param_1;\n}" (primitive_type "char") (pointer_declarator "* last_component(char *param_1)" (* "*") (function_declarator "last_component(char *param_1)" (identifier "last_component") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  bool bVar1;\n  char *pcVar2;\n  char cVar3;\n  \n  cVar3 = *param_1;\n  while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }\n  cVar3 = *param_1;\n  if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }\n  return param_1;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (expression_statement "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" (identifier "cVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (while_statement "while (cVar3 == '/') {\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }" (while "while") (parenthesized_expression "(cVar3 == '/')" (( "(") (binary_expression "cVar3 == '/'" (identifier "cVar3") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n    param_1 = param_1 + 1;\n    cVar3 = *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 "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" (identifier "cVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "cVar3 = *param_1;" (assignment_expression "cVar3 = *param_1" (identifier "cVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar3 != '\0') {\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }" (if "if") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    bVar1 = false;\n    pcVar2 = param_1;\n    do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');\n  }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" (identifier "pcVar2") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    } while (cVar3 != '\0');" (do "do") (compound_statement "{\n      if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }\n      pcVar2 = pcVar2 + 1;\n      cVar3 = *pcVar2;\n    }" ({ "{") (if_statement "if (cVar3 == '/') {\n        bVar1 = true;\n      }\n      else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" (if "if") (parenthesized_expression "(cVar3 == '/')" (( "(") (binary_expression "cVar3 == '/'" (identifier "cVar3") (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n        bVar1 = true;\n      }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" (else "else") (if_statement "if (bVar1) {\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n        bVar1 = false;\n        param_1 = pcVar2;\n      }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "param_1 = pcVar2;" (assignment_expression "param_1 = pcVar2" (identifier "param_1") (= "=") (identifier "pcVar2")) (; ";")) (} "}"))))) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar3 = *pcVar2;" (assignment_expression "cVar3 = *pcVar2" (identifier "cVar3") (= "=") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

char * function_1(char *var_2)

{
  bool bVar1;
  char *var_3;
  char var_1;
  
  var_1 = *var_2;
  while (var_1 == '/') {
    var_2 = var_2 + 1;
    var_1 = *var_2;
  }
  var_1 = *var_2;
  if (var_1 != '\0') {
    bVar1 = false;
    var_3 = var_2;
    do {
      if (var_1 == '/') {
        bVar1 = true;
      }
      else if (bVar1) {
        bVar1 = false;
        var_2 = var_3;
      }
      var_3 = var_3 + 1;
      var_1 = *var_3;
    } while (var_1 != '\0');
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) body: (compound_statement (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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (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))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) (return_statement (identifier)))))

char * MASKED(char *param_1)

{
  bool bVar1;
  char *pcVar2;
  char cVar3;
  
  cVar3 = *param_1;
  while (cVar3 == '/') {
    param_1 = param_1 + 1;
    cVar3 = *param_1;
  }
  cVar3 = *param_1;
  if (cVar3 != '\0') {
    bVar1 = false;
    pcVar2 = param_1;
    do {
      if (cVar3 == '/') {
        bVar1 = true;
      }
      else if (bVar1) {
        bVar1 = false;
        param_1 = pcVar2;
      }
      pcVar2 = pcVar2 + 1;
      cVar3 = *pcVar2;
    } while (cVar3 != '\0');
  }
  return param_1;
}

