
int sh_contains_quotes(char *string)

{
  char cVar1;
  char *s;
  char *pcVar2;
  
  if (string == (char *)0x0) {
    return 0;
  }
  cVar1 = *string;
  if (cVar1 == '\0') {
    return 0;
  }
  if (cVar1 == '\'') {
    return 1;
  }
  if (cVar1 != '\"') {
    if (cVar1 == '\\') {
      return 1;
    }
    pcVar2 = string + 1;
    while( true ) {
      if (pcVar2 == (char *)0x0) {
        return 0;
      }
      cVar1 = *pcVar2;
      if (cVar1 == '\0') {
        return 0;
      }
      if (cVar1 == '\'') {
        return 1;
      }
      if (cVar1 == '\"') break;
      pcVar2 = pcVar2 + 1;
      if (cVar1 == '\\') {
        return 1;
      }
    }
    return 1;
  }
  return 1;
}



undefined4 sh_contains_quotes(char *param_1)

{
  char cVar1;
  
  if (param_1 == (char *)0x0) {
    return 0;
  }
  cVar1 = *param_1;
  if (cVar1 == '\0') {
    return 0;
  }
  if (cVar1 == '\'') {
    return 1;
  }
  if (cVar1 != '\"') {
    if (cVar1 == '\\') {
      return 1;
    }
    param_1 = param_1 + 1;
    while( true ) {
      if (param_1 == (char *)0x0) {
        return 0;
      }
      cVar1 = *param_1;
      if (cVar1 == '\0') {
        return 0;
      }
      if (cVar1 == '\'') {
        return 1;
      }
      if (cVar1 == '\"') break;
      param_1 = param_1 + 1;
      if (cVar1 == '\\') {
        return 1;
      }
    }
    return 1;
  }
  return 1;
}


beq a0,zero,0x000ea934
_nop
lb v0,0x0(a0)
beq v0,zero,0x000ea93c
_li v1,0x27
beq v0,v1,0x000ea944
_li v1,0x22
beq v0,v1,0x000ea94c
_li v1,0x5c
beq v0,v1,0x000ea954
_li v1,0x27
li a1,0x22
li a2,0x5c
addiu a0,a0,0x1
beq a0,zero,0x000ea96c
_nop
lb v0,0x0(a0)
beq v0,zero,0x000ea92c
_nop
beq v0,v1,0x000ea95c
_nop
beq v0,a1,0x000ea964
_nop
bne v0,a2,0x000ea8f8
_addiu a0,a0,0x1
jr ra
_li v0,0x1
jr ra
_nop
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
jr ra
_li v0,0x1
jr ra
_li v0,0x1
jr ra
_li v0,0x1
jr ra
_li v0,0x1
jr ra
_li v0,0x1
jr ra
_or v0,zero,zero
(translation_unit "undefined4 sh_contains_quotes(char *param_1)\n\n{\n  char cVar1;\n  \n  if (param_1 == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *param_1;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 sh_contains_quotes(char *param_1)\n\n{\n  char cVar1;\n  \n  if (param_1 == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *param_1;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}" type_identifier (function_declarator "sh_contains_quotes(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  \n  if (param_1 == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *param_1;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (if_statement "if (param_1 == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n    return 0;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (cVar1 == '\'') {\n    return 1;\n  }" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }" if (parenthesized_expression "(cVar1 != '\"')" ( (binary_expression "cVar1 != '\"'" identifier != (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }" { (if_statement "if (cVar1 == '\\') {\n      return 1;\n    }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (while_statement "while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }" { (if_statement "if (param_1 == (char *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n        return 0;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (cVar1 == '\'') {\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == '\"') break;" if (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\\') {\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int sh_contains_quotes(char *string)\n\n{\n  char cVar1;\n  char *s;\n  char *pcVar2;\n  \n  if (string == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *string;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    pcVar2 = string + 1;\n    while( true ) {\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *pcVar2;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      pcVar2 = pcVar2 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}\n\n" (function_definition "int sh_contains_quotes(char *string)\n\n{\n  char cVar1;\n  char *s;\n  char *pcVar2;\n  \n  if (string == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *string;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    pcVar2 = string + 1;\n    while( true ) {\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *pcVar2;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      pcVar2 = pcVar2 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}" primitive_type (function_declarator "sh_contains_quotes(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  char *s;\n  char *pcVar2;\n  \n  if (string == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *string;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    pcVar2 = string + 1;\n    while( true ) {\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *pcVar2;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      pcVar2 = pcVar2 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *s;" primitive_type (pointer_declarator "*s" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (string == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(string == (char *)0x0)" ( (binary_expression "string == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar1 = *string;" (assignment_expression "cVar1 = *string" identifier = (pointer_expression "*string" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n    return 0;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (cVar1 == '\'') {\n    return 1;\n  }" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    pcVar2 = string + 1;\n    while( true ) {\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *pcVar2;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      pcVar2 = pcVar2 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }" if (parenthesized_expression "(cVar1 != '\"')" ( (binary_expression "cVar1 != '\"'" identifier != (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    pcVar2 = string + 1;\n    while( true ) {\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *pcVar2;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      pcVar2 = pcVar2 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }" { (if_statement "if (cVar1 == '\\') {\n      return 1;\n    }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "pcVar2 = string + 1;" (assignment_expression "pcVar2 = string + 1" identifier = (binary_expression "string + 1" identifier + number_literal)) ;) (while_statement "while( true ) {\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *pcVar2;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      pcVar2 = pcVar2 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (pcVar2 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *pcVar2;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      pcVar2 = pcVar2 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }" { (if_statement "if (pcVar2 == (char *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar1 = *pcVar2;" (assignment_expression "cVar1 = *pcVar2" identifier = (pointer_expression "*pcVar2" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n        return 0;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (cVar1 == '\'') {\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == '\"') break;" if (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\\') {\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 sh_contains_quotes(char *param_1)\n\n{\n  char cVar1;\n  \n  if (param_1 == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *param_1;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 sh_contains_quotes(char *param_1)\n\n{\n  char cVar1;\n  \n  if (param_1 == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *param_1;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}" type_identifier (function_declarator "sh_contains_quotes(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  \n  if (param_1 == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *param_1;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (if_statement "if (param_1 == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n    return 0;\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (cVar1 == '\'') {\n    return 1;\n  }" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }" if (parenthesized_expression "(cVar1 != '\"')" ( (binary_expression "cVar1 != '\"'" identifier != (char_literal "'\"'" ' escape_sequence ')) )) (compound_statement "{\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }" { (if_statement "if (cVar1 == '\\') {\n      return 1;\n    }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (while_statement "while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }" { (if_statement "if (param_1 == (char *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(param_1 == (char *)0x0)" ( (binary_expression "param_1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (cVar1 == '\0') {\n        return 0;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (cVar1 == '\'') {\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '\'')" ( (binary_expression "cVar1 == '\''" identifier == (char_literal "'\''" ' escape_sequence ')) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (cVar1 == '\"') break;" if (parenthesized_expression "(cVar1 == '\"')" ( (binary_expression "cVar1 == '\"'" identifier == (char_literal "'\"'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (cVar1 == '\\') {\n        return 1;\n      }" if (parenthesized_expression "(cVar1 == '\\')" ( (binary_expression "cVar1 == '\\'" identifier == (char_literal "'\\'" ' escape_sequence ')) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) })) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 sh_contains_quotes(char *param_1)\n\n{\n  char cVar1;\n  \n  if (param_1 == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *param_1;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "sh_contains_quotes(char *param_1)" (identifier "sh_contains_quotes") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  \n  if (param_1 == (char *)0x0) {\n    return 0;\n  }\n  cVar1 = *param_1;\n  if (cVar1 == '\0') {\n    return 0;\n  }\n  if (cVar1 == '\'') {\n    return 1;\n  }\n  if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }\n  return 1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (if_statement "if (param_1 == (char *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar1 == '\0') {\n    return 0;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (cVar1 == '\'') {\n    return 1;\n  }" (if "if") (parenthesized_expression "(cVar1 == '\'')" (( "(") (binary_expression "cVar1 == '\''" (identifier "cVar1") (== "==") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (cVar1 != '\"') {\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }" (if "if") (parenthesized_expression "(cVar1 != '\"')" (( "(") (binary_expression "cVar1 != '\"'" (identifier "cVar1") (!= "!=") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (compound_statement "{\n    if (cVar1 == '\\') {\n      return 1;\n    }\n    param_1 = param_1 + 1;\n    while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }\n    return 1;\n  }" ({ "{") (if_statement "if (cVar1 == '\\') {\n      return 1;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\\')" (( "(") (binary_expression "cVar1 == '\\'" (identifier "cVar1") (== "==") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "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"))) (; ";")) (while_statement "while( true ) {\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (param_1 == (char *)0x0) {\n        return 0;\n      }\n      cVar1 = *param_1;\n      if (cVar1 == '\0') {\n        return 0;\n      }\n      if (cVar1 == '\'') {\n        return 1;\n      }\n      if (cVar1 == '\"') break;\n      param_1 = param_1 + 1;\n      if (cVar1 == '\\') {\n        return 1;\n      }\n    }" ({ "{") (if_statement "if (param_1 == (char *)0x0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_1 == (char *)0x0)" (( "(") (binary_expression "param_1 == (char *)0x0" (identifier "param_1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "cVar1 = *param_1;" (assignment_expression "cVar1 = *param_1" (identifier "cVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (cVar1 == '\0') {\n        return 0;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (cVar1 == '\'') {\n        return 1;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\'')" (( "(") (binary_expression "cVar1 == '\''" (identifier "cVar1") (== "==") (char_literal "'\''" (' "'") (escape_sequence "\'") (' "'"))) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (cVar1 == '\"') break;" (if "if") (parenthesized_expression "(cVar1 == '\"')" (( "(") (binary_expression "cVar1 == '\"'" (identifier "cVar1") (== "==") (char_literal "'\"'" (' "'") (escape_sequence "\"") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (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"))) (; ";")) (if_statement "if (cVar1 == '\\') {\n        return 1;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\\')" (( "(") (binary_expression "cVar1 == '\\'" (identifier "cVar1") (== "==") (char_literal "'\\'" (' "'") (escape_sequence "\\") (' "'"))) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(char *var_1)

{
  char var_2;
  char *s;
  char *var_3;
  
  if (var_1 == (char *)0x0) {
    return 0;
  }
  var_2 = *var_1;
  if (var_2 == '\0') {
    return 0;
  }
  if (var_2 == '\'') {
    return 1;
  }
  if (var_2 != '\"') {
    if (var_2 == '\\') {
      return 1;
    }
    var_3 = var_1 + 1;
    while( true ) {
      if (var_3 == (char *)0x0) {
        return 0;
      }
      var_2 = *var_3;
      if (var_2 == '\0') {
        return 0;
      }
      if (var_2 == '\'') {
        return 1;
      }
      if (var_2 == '\"') break;
      var_3 = var_3 + 1;
      if (var_2 == '\\') {
        return 1;
      }
    }
    return 1;
  }
  return 1;
}


(translation_unit (function_definition type: (type_identifier) 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)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (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 (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement (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 (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (number_literal)))))) (return_statement (number_literal)))) (return_statement (number_literal)))))

undefined4 MASKED(char *param_1)

{
  char cVar1;
  
  if (param_1 == (char *)0x0) {
    return 0;
  }
  cVar1 = *param_1;
  if (cVar1 == '\0') {
    return 0;
  }
  if (cVar1 == '\'') {
    return 1;
  }
  if (cVar1 != '\"') {
    if (cVar1 == '\\') {
      return 1;
    }
    param_1 = param_1 + 1;
    while( true ) {
      if (param_1 == (char *)0x0) {
        return 0;
      }
      cVar1 = *param_1;
      if (cVar1 == '\0') {
        return 0;
      }
      if (cVar1 == '\'') {
        return 1;
      }
      if (cVar1 == '\"') break;
      param_1 = param_1 + 1;
      if (cVar1 == '\\') {
        return 1;
      }
    }
    return 1;
  }
  return 1;
}

