
char * last_component(char *name)

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



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;
  }
  bVar1 = false;
  pcVar2 = param_1;
  do {
    if (cVar3 == '\0') {
      return pcVar2;
    }
    while (cVar3 == '/') {
      param_1 = param_1 + 1;
      cVar3 = *param_1;
      bVar1 = true;
      if (cVar3 == '\0') {
        return pcVar2;
      }
    }
    if (bVar1) {
      bVar1 = false;
      pcVar2 = param_1;
    }
    param_1 = param_1 + 1;
    cVar3 = *param_1;
  } while( true );
}


or v0,a0,zero
li a0,0x2f
lb v1,0x0(v0)
bne v1,a0,0x00016a04
_nop
addiu v0,v0,0x1
lb v1,0x0(v0)
beq v1,a0,0x000169f4
_nop
beq v1,zero,0x00016a50
_or a1,zero,zero
li a2,0x2f
b 0x00016a38
_or a0,v0,zero
beq a1,zero,0x00016a28
_nop
or a1,zero,zero
or v0,a0,zero
addiu a0,a0,0x1
lb v1,0x0(a0)
beq v1,zero,0x00016a50
_nop
bne v1,a2,0x00016a18
_nop
addiu a0,a0,0x1
lb v1,0x0(a0)
bne v1,zero,0x00016a38
_li a1,0x1
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  bVar1 = false;\n  pcVar2 = param_1;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );\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  bVar1 = false;\n  pcVar2 = param_1;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );\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  bVar1 = false;\n  pcVar2 = param_1;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );\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 "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 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );" do (compound_statement "{\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }" { (if_statement "if (cVar3 == '\0') {\n      return pcVar2;\n    }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return pcVar2;\n    }" { (return_statement "return pcVar2;" return identifier ;) })) (while_statement "while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\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      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\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 "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (if_statement "if (cVar3 == '\0') {\n        return pcVar2;\n      }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return pcVar2;\n      }" { (return_statement "return pcVar2;" return identifier ;) })) })) (if_statement "if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      bVar1 = false;\n      pcVar2 = param_1;\n    }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) })) (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)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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  bVar1 = false;\n  pcVar2 = name;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      name = name + 1;\n      cVar3 = *name;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = name;\n    }\n    name = name + 1;\n    cVar3 = *name;\n  } while( true );\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  bVar1 = false;\n  pcVar2 = name;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      name = name + 1;\n      cVar3 = *name;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = name;\n    }\n    name = name + 1;\n    cVar3 = *name;\n  } while( true );\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  bVar1 = false;\n  pcVar2 = name;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      name = name + 1;\n      cVar3 = *name;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = name;\n    }\n    name = name + 1;\n    cVar3 = *name;\n  } while( true );\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 "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pcVar2 = name;" (assignment_expression "pcVar2 = name" identifier = identifier) ;) (do_statement "do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      name = name + 1;\n      cVar3 = *name;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = name;\n    }\n    name = name + 1;\n    cVar3 = *name;\n  } while( true );" do (compound_statement "{\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      name = name + 1;\n      cVar3 = *name;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = name;\n    }\n    name = name + 1;\n    cVar3 = *name;\n  }" { (if_statement "if (cVar3 == '\0') {\n      return pcVar2;\n    }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return pcVar2;\n    }" { (return_statement "return pcVar2;" return identifier ;) })) (while_statement "while (cVar3 == '/') {\n      name = name + 1;\n      cVar3 = *name;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }" while (parenthesized_expression "(cVar3 == '/')" ( (binary_expression "cVar3 == '/'" identifier == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      name = name + 1;\n      cVar3 = *name;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\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 "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (if_statement "if (cVar3 == '\0') {\n        return pcVar2;\n      }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return pcVar2;\n      }" { (return_statement "return pcVar2;" return identifier ;) })) })) (if_statement "if (bVar1) {\n      bVar1 = false;\n      pcVar2 = name;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      bVar1 = false;\n      pcVar2 = name;\n    }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pcVar2 = name;" (assignment_expression "pcVar2 = name" identifier = identifier) ;) })) (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)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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  bVar1 = false;\n  pcVar2 = param_1;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );\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  bVar1 = false;\n  pcVar2 = param_1;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );\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  bVar1 = false;\n  pcVar2 = param_1;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );\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 "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 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );" do (compound_statement "{\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }" { (if_statement "if (cVar3 == '\0') {\n      return pcVar2;\n    }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return pcVar2;\n    }" { (return_statement "return pcVar2;" return identifier ;) })) (while_statement "while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\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      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\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 "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (if_statement "if (cVar3 == '\0') {\n        return pcVar2;\n      }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return pcVar2;\n      }" { (return_statement "return pcVar2;" return identifier ;) })) })) (if_statement "if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n      bVar1 = false;\n      pcVar2 = param_1;\n    }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) })) (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)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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 = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return 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 = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) })) (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 ( BOOL )) ;) })))
(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  bVar1 = false;\n  pcVar2 = param_1;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );\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  bVar1 = false;\n  pcVar2 = param_1;\n  do {\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );\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 "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 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  } while( true );" (do "do") (compound_statement "{\n    if (cVar3 == '\0') {\n      return pcVar2;\n    }\n    while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\n    }\n    if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }\n    param_1 = param_1 + 1;\n    cVar3 = *param_1;\n  }" ({ "{") (if_statement "if (cVar3 == '\0') {\n      return pcVar2;\n    }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return pcVar2;\n    }" ({ "{") (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}"))) (while_statement "while (cVar3 == '/') {\n      param_1 = param_1 + 1;\n      cVar3 = *param_1;\n      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\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      bVar1 = true;\n      if (cVar3 == '\0') {\n        return pcVar2;\n      }\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 "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (if_statement "if (cVar3 == '\0') {\n        return pcVar2;\n      }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return pcVar2;\n      }" ({ "{") (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}"))) (} "}"))) (if_statement "if (bVar1) {\n      bVar1 = false;\n      pcVar2 = param_1;\n    }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n      bVar1 = false;\n      pcVar2 = param_1;\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")) (; ";")) (} "}"))) (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"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(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: (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 (escape_sequence)))) consequence: (compound_statement (return_statement (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: (true))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))))) (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 (true))))))

char * MASKED(char *param_1)

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

