
/* std::__num_base::_S_format_float(std::ios_base const&, char*, char) */

void std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)

{
  uint uVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  uint uVar5;
  undefined3 in_register_00000018;
  char *pcVar6;
  
  uVar1 = *(uint *)(param_1 + 0xc);
  *param_2 = '%';
  if ((uVar1 & 0x800) == 0) {
    pcVar2 = param_2 + 1;
  }
  else {
    pcVar2 = param_2 + 2;
    param_2[1] = '+';
  }
  pcVar3 = pcVar2;
  if ((uVar1 & 0x400) != 0) {
    pcVar3 = pcVar2 + 1;
    *pcVar2 = '#';
  }
  uVar5 = uVar1 & 0x104;
  if (uVar5 == 0x104) {
    pcVar2 = pcVar3;
    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;
LAB_0031c3d4:
    *pcVar2 = param_3;
    pcVar6 = pcVar2 + 2;
    pcVar3 = pcVar2 + 1;
  }
  else {
    *pcVar3 = '.';
    pcVar3[1] = '*';
    pcVar2 = pcVar3 + 2;
    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;
    pcVar6 = pcVar3 + 3;
    pcVar3 = pcVar3 + 2;
  }
  if (uVar5 == 4) {
    *pcVar3 = 'f';
    *pcVar6 = '\0';
    return;
  }
  if (uVar5 == 0x100) {
    cVar4 = 'e';
    if ((uVar1 & 0x4000) != 0) {
      cVar4 = 'E';
    }
    *pcVar3 = cVar4;
    *pcVar6 = '\0';
    return;
  }
  if (uVar5 != 0x104) {
    cVar4 = 'g';
    if ((uVar1 & 0x4000) != 0) {
      cVar4 = 'G';
    }
    *pcVar3 = cVar4;
    *pcVar6 = '\0';
    return;
  }
LAB_0031c424:
  cVar4 = 'a';
  if ((uVar1 & 0x4000) != 0) {
    cVar4 = 'A';
  }
  *pcVar3 = cVar4;
  pcVar3[1] = '\0';
  return;
}



/* std::__num_base::_S_format_float(std::ios_base const&, char*, char) */

void std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)

{
  uint uVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  uint uVar5;
  undefined3 in_register_00000018;
  char *pcVar6;
  
  uVar1 = *(uint *)(param_1 + 0xc);
  *param_2 = '%';
  if ((uVar1 & 0x800) == 0) {
    pcVar2 = param_2 + 1;
  }
  else {
    pcVar2 = param_2 + 2;
    param_2[1] = '+';
  }
  pcVar3 = pcVar2;
  if ((uVar1 & 0x400) != 0) {
    pcVar3 = pcVar2 + 1;
    *pcVar2 = '#';
  }
  uVar5 = uVar1 & 0x104;
  if (uVar5 == 0x104) {
    pcVar2 = pcVar3;
    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;
LAB_0031c3d4:
    *pcVar2 = param_3;
    pcVar6 = pcVar2 + 2;
    pcVar3 = pcVar2 + 1;
  }
  else {
    *pcVar3 = '.';
    pcVar3[1] = '*';
    pcVar2 = pcVar3 + 2;
    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;
    pcVar6 = pcVar3 + 3;
    pcVar3 = pcVar3 + 2;
  }
  if (uVar5 == 4) {
    *pcVar3 = 'f';
    *pcVar6 = '\0';
    return;
  }
  if (uVar5 == 0x100) {
    cVar4 = 'e';
    if ((uVar1 & 0x4000) != 0) {
      cVar4 = 'E';
    }
    *pcVar3 = cVar4;
    *pcVar6 = '\0';
    return;
  }
  if (uVar5 != 0x104) {
    cVar4 = 'g';
    if ((uVar1 & 0x4000) != 0) {
      cVar4 = 'G';
    }
    *pcVar3 = cVar4;
    *pcVar6 = '\0';
    return;
  }
LAB_0031c424:
  cVar4 = 'a';
  if ((uVar1 & 0x4000) != 0) {
    cVar4 = 'A';
  }
  *pcVar3 = cVar4;
  pcVar3[1] = '\0';
  return;
}


lw v0,0xc(a0)
li a0,0x25
andi v1,v0,0x800
bne v1,zero,0x0031c410
_sb a0,0x0(a1)
addiu v1,a1,0x1
andi a0,v0,0x400
beq a0,zero,0x0031c374
_li a0,0x104
addiu v1,v1,0x1
li a0,0x23
sb a0,-0x1(v1)
li a0,0x104
andi a1,v0,0x104
beq a1,a0,0x0031c3cc
_li a0,0x2e
li a3,0x2a
sb a0,0x0(v1)
addiu a0,v1,0x2
bne a2,zero,0x0031c3d4
_sb a3,0x1(v1)
li v1,0x4
beq a1,v1,0x0031c3e8
_addiu a2,a0,0x1
li v1,0x100
beq a1,v1,0x0031c3f8
_andi v0,v0,0x4000
li v1,0x104
beq a1,v1,0x0031c440
_li a1,0x47
li v1,0x67
movn v1,a1,v0
sb v1,0x0(a0)
jr ra
_sb zero,0x0(a2)
beq a2,zero,0x0031c420
_or a0,v1,zero
sb a2,0x0(a0)
li v1,0x4
addiu a0,a0,0x1
bne a1,v1,0x0031c3a0
_addiu a2,a0,0x1
li v0,0x66
sb v0,0x0(a0)
jr ra
_sb zero,0x0(a2)
li a1,0x45
li v1,0x65
movn v1,a1,v0
sb v1,0x0(a0)
jr ra
_sb zero,0x0(a2)
li a0,0x2b
addiu v1,a1,0x2
b 0x0031c358
_sb a0,0x1(a1)
andi v0,v0,0x4000
li a1,0x41
li a0,0x61
addiu a2,v1,0x1
movn a0,a1,v0
sb a0,0x0(v1)
jr ra
_sb zero,0x0(a2)
b 0x0031c424
_or v1,a0,zero
(translation_unit "/* std::__num_base::_S_format_float(std::ios_base const&, char*, char) */\n\nvoid std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}\n\n" comment (function_definition "void std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}" primitive_type (ERROR "std::__num_base::" identifier : : identifier : :) (function_declarator "_S_format_float(ios_base *param_1,char *param_2,char param_3)" identifier (parameter_list "(ios_base *param_1,char *param_2,char param_3)" ( (parameter_declaration "ios_base *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined3 in_register_00000018;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = '%';" (assignment_expression "*param_2 = '%'" (pointer_expression "*param_2" * identifier) = (char_literal "'%'" ' character ')) ;) (if_statement "if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" if (parenthesized_expression "((uVar1 & 0x800) == 0)" ( (binary_expression "(uVar1 & 0x800) == 0" (parenthesized_expression "(uVar1 & 0x800)" ( (binary_expression "uVar1 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pcVar2 = param_2 + 1;\n  }" { (expression_statement "pcVar2 = param_2 + 1;" (assignment_expression "pcVar2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" else (compound_statement "{\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" { (expression_statement "pcVar2 = param_2 + 2;" (assignment_expression "pcVar2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "param_2[1] = '+';" (assignment_expression "param_2[1] = '+'" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (char_literal "'+'" ' character ')) ;) }))) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }" if (parenthesized_expression "((uVar1 & 0x400) != 0)" ( (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }" { (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = '#';" (assignment_expression "*pcVar2 = '#'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'#'" ' character ')) ;) })) (expression_statement "uVar5 = uVar1 & 0x104;" (assignment_expression "uVar5 = uVar1 & 0x104" identifier = (binary_expression "uVar1 & 0x104" identifier & number_literal)) ;) (if_statement "if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" if (parenthesized_expression "(uVar5 == 0x104)" ( (binary_expression "uVar5 == 0x104" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) (if_statement "if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;" if (parenthesized_expression "(CONCAT31(in_register_00000018,param_3) == 0)" ( (binary_expression "CONCAT31(in_register_00000018,param_3) == 0" (call_expression "CONCAT31(in_register_00000018,param_3)" identifier (argument_list "(in_register_00000018,param_3)" ( identifier , identifier ))) == number_literal) )) (goto_statement "goto LAB_0031c424;" goto statement_identifier ;)) (labeled_statement "LAB_0031c3d4:\n    *pcVar2 = param_3;" statement_identifier : (expression_statement "*pcVar2 = param_3;" (assignment_expression "*pcVar2 = param_3" (pointer_expression "*pcVar2" * identifier) = identifier) ;)) (expression_statement "pcVar6 = pcVar2 + 2;" (assignment_expression "pcVar6 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" else (compound_statement "{\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" { (expression_statement "*pcVar3 = '.';" (assignment_expression "*pcVar3 = '.'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'.'" ' character ')) ;) (expression_statement "pcVar3[1] = '*';" (assignment_expression "pcVar3[1] = '*'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'*'" ' character ')) ;) (expression_statement "pcVar2 = pcVar3 + 2;" (assignment_expression "pcVar2 = pcVar3 + 2" identifier = (binary_expression "pcVar3 + 2" identifier + number_literal)) ;) (if_statement "if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;" if (parenthesized_expression "(CONCAT31(in_register_00000018,param_3) != 0)" ( (binary_expression "CONCAT31(in_register_00000018,param_3) != 0" (call_expression "CONCAT31(in_register_00000018,param_3)" identifier (argument_list "(in_register_00000018,param_3)" ( identifier , identifier ))) != number_literal) )) (goto_statement "goto LAB_0031c3d4;" goto statement_identifier ;)) (expression_statement "pcVar6 = pcVar3 + 3;" (assignment_expression "pcVar6 = pcVar3 + 3" identifier = (binary_expression "pcVar3 + 3" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar3 + 2;" (assignment_expression "pcVar3 = pcVar3 + 2" identifier = (binary_expression "pcVar3 + 2" identifier + number_literal)) ;) }))) (if_statement "if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 == 4)" ( (binary_expression "uVar5 == 4" identifier == number_literal) )) (compound_statement "{\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "*pcVar3 = 'f';" (assignment_expression "*pcVar3 = 'f'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'f'" ' character ')) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 == 0x100)" ( (binary_expression "uVar5 == 0x100" identifier == number_literal) )) (compound_statement "{\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "cVar4 = 'e';" (assignment_expression "cVar4 = 'e'" identifier = (char_literal "'e'" ' character ')) ;) (if_statement "if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      cVar4 = 'E';\n    }" { (expression_statement "cVar4 = 'E';" (assignment_expression "cVar4 = 'E'" identifier = (char_literal "'E'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 != 0x104)" ( (binary_expression "uVar5 != 0x104" identifier != number_literal) )) (compound_statement "{\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "cVar4 = 'g';" (assignment_expression "cVar4 = 'g'" identifier = (char_literal "'g'" ' character ')) ;) (if_statement "if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      cVar4 = 'G';\n    }" { (expression_statement "cVar4 = 'G';" (assignment_expression "cVar4 = 'G'" identifier = (char_literal "'G'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0031c424:\n  cVar4 = 'a';" statement_identifier : (expression_statement "cVar4 = 'a';" (assignment_expression "cVar4 = 'a'" identifier = (char_literal "'a'" ' character ')) ;)) (if_statement "if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    cVar4 = 'A';\n  }" { (expression_statement "cVar4 = 'A';" (assignment_expression "cVar4 = 'A'" identifier = (char_literal "'A'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::__num_base::_S_format_float(std::ios_base const&, char*, char) */\n\nvoid std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}\n\n" comment (function_definition "void std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}" primitive_type (ERROR "std::__num_base::" identifier : : identifier : :) (function_declarator "_S_format_float(ios_base *param_1,char *param_2,char param_3)" identifier (parameter_list "(ios_base *param_1,char *param_2,char param_3)" ( (parameter_declaration "ios_base *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined3 in_register_00000018;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = '%';" (assignment_expression "*param_2 = '%'" (pointer_expression "*param_2" * identifier) = (char_literal "'%'" ' character ')) ;) (if_statement "if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" if (parenthesized_expression "((uVar1 & 0x800) == 0)" ( (binary_expression "(uVar1 & 0x800) == 0" (parenthesized_expression "(uVar1 & 0x800)" ( (binary_expression "uVar1 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pcVar2 = param_2 + 1;\n  }" { (expression_statement "pcVar2 = param_2 + 1;" (assignment_expression "pcVar2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" else (compound_statement "{\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" { (expression_statement "pcVar2 = param_2 + 2;" (assignment_expression "pcVar2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "param_2[1] = '+';" (assignment_expression "param_2[1] = '+'" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (char_literal "'+'" ' character ')) ;) }))) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }" if (parenthesized_expression "((uVar1 & 0x400) != 0)" ( (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }" { (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = '#';" (assignment_expression "*pcVar2 = '#'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'#'" ' character ')) ;) })) (expression_statement "uVar5 = uVar1 & 0x104;" (assignment_expression "uVar5 = uVar1 & 0x104" identifier = (binary_expression "uVar1 & 0x104" identifier & number_literal)) ;) (if_statement "if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" if (parenthesized_expression "(uVar5 == 0x104)" ( (binary_expression "uVar5 == 0x104" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) (if_statement "if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;" if (parenthesized_expression "(CONCAT31(in_register_00000018,param_3) == 0)" ( (binary_expression "CONCAT31(in_register_00000018,param_3) == 0" (call_expression "CONCAT31(in_register_00000018,param_3)" identifier (argument_list "(in_register_00000018,param_3)" ( identifier , identifier ))) == number_literal) )) (goto_statement "goto LAB_0031c424;" goto statement_identifier ;)) (labeled_statement "LAB_0031c3d4:\n    *pcVar2 = param_3;" statement_identifier : (expression_statement "*pcVar2 = param_3;" (assignment_expression "*pcVar2 = param_3" (pointer_expression "*pcVar2" * identifier) = identifier) ;)) (expression_statement "pcVar6 = pcVar2 + 2;" (assignment_expression "pcVar6 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" else (compound_statement "{\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" { (expression_statement "*pcVar3 = '.';" (assignment_expression "*pcVar3 = '.'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'.'" ' character ')) ;) (expression_statement "pcVar3[1] = '*';" (assignment_expression "pcVar3[1] = '*'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'*'" ' character ')) ;) (expression_statement "pcVar2 = pcVar3 + 2;" (assignment_expression "pcVar2 = pcVar3 + 2" identifier = (binary_expression "pcVar3 + 2" identifier + number_literal)) ;) (if_statement "if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;" if (parenthesized_expression "(CONCAT31(in_register_00000018,param_3) != 0)" ( (binary_expression "CONCAT31(in_register_00000018,param_3) != 0" (call_expression "CONCAT31(in_register_00000018,param_3)" identifier (argument_list "(in_register_00000018,param_3)" ( identifier , identifier ))) != number_literal) )) (goto_statement "goto LAB_0031c3d4;" goto statement_identifier ;)) (expression_statement "pcVar6 = pcVar3 + 3;" (assignment_expression "pcVar6 = pcVar3 + 3" identifier = (binary_expression "pcVar3 + 3" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar3 + 2;" (assignment_expression "pcVar3 = pcVar3 + 2" identifier = (binary_expression "pcVar3 + 2" identifier + number_literal)) ;) }))) (if_statement "if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 == 4)" ( (binary_expression "uVar5 == 4" identifier == number_literal) )) (compound_statement "{\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "*pcVar3 = 'f';" (assignment_expression "*pcVar3 = 'f'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'f'" ' character ')) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 == 0x100)" ( (binary_expression "uVar5 == 0x100" identifier == number_literal) )) (compound_statement "{\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "cVar4 = 'e';" (assignment_expression "cVar4 = 'e'" identifier = (char_literal "'e'" ' character ')) ;) (if_statement "if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      cVar4 = 'E';\n    }" { (expression_statement "cVar4 = 'E';" (assignment_expression "cVar4 = 'E'" identifier = (char_literal "'E'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 != 0x104)" ( (binary_expression "uVar5 != 0x104" identifier != number_literal) )) (compound_statement "{\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "cVar4 = 'g';" (assignment_expression "cVar4 = 'g'" identifier = (char_literal "'g'" ' character ')) ;) (if_statement "if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      cVar4 = 'G';\n    }" { (expression_statement "cVar4 = 'G';" (assignment_expression "cVar4 = 'G'" identifier = (char_literal "'G'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0031c424:\n  cVar4 = 'a';" statement_identifier : (expression_statement "cVar4 = 'a';" (assignment_expression "cVar4 = 'a'" identifier = (char_literal "'a'" ' character ')) ;)) (if_statement "if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    cVar4 = 'A';\n  }" { (expression_statement "cVar4 = 'A';" (assignment_expression "cVar4 = 'A'" identifier = (char_literal "'A'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "void std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}\n\n" (function_definition "void std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}" primitive_type (ERROR "std::__num_base::" identifier : : identifier : :) (function_declarator "_S_format_float(ios_base *param_1,char *param_2,char param_3)" identifier (parameter_list "(ios_base *param_1,char *param_2,char param_3)" ( (parameter_declaration "ios_base *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined3 in_register_00000018;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc)" identifier = (pointer_expression "*(uint *)(param_1 + 0xc)" * (cast_expression "(uint *)(param_1 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = '%';" (assignment_expression "*param_2 = '%'" (pointer_expression "*param_2" * identifier) = (char_literal "'%'" ' character ')) ;) (if_statement "if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" if (parenthesized_expression "((uVar1 & 0x800) == 0)" ( (binary_expression "(uVar1 & 0x800) == 0" (parenthesized_expression "(uVar1 & 0x800)" ( (binary_expression "uVar1 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    pcVar2 = param_2 + 1;\n  }" { (expression_statement "pcVar2 = param_2 + 1;" (assignment_expression "pcVar2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" else (compound_statement "{\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" { (expression_statement "pcVar2 = param_2 + 2;" (assignment_expression "pcVar2 = param_2 + 2" identifier = (binary_expression "param_2 + 2" identifier + number_literal)) ;) (expression_statement "param_2[1] = '+';" (assignment_expression "param_2[1] = '+'" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (char_literal "'+'" ' character ')) ;) }))) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (if_statement "if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }" if (parenthesized_expression "((uVar1 & 0x400) != 0)" ( (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" ( (binary_expression "uVar1 & 0x400" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }" { (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar2 = '#';" (assignment_expression "*pcVar2 = '#'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'#'" ' character ')) ;) })) (expression_statement "uVar5 = uVar1 & 0x104;" (assignment_expression "uVar5 = uVar1 & 0x104" identifier = (binary_expression "uVar1 & 0x104" identifier & number_literal)) ;) (if_statement "if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" if (parenthesized_expression "(uVar5 == 0x104)" ( (binary_expression "uVar5 == 0x104" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }" { (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" identifier = identifier) ;) (if_statement "if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;" if (parenthesized_expression "(CONCAT31(in_register_00000018,param_3) == 0)" ( (binary_expression "CONCAT31(in_register_00000018,param_3) == 0" (call_expression "CONCAT31(in_register_00000018,param_3)" identifier (argument_list "(in_register_00000018,param_3)" ( identifier , identifier ))) == number_literal) )) (goto_statement "goto LAB_0031c424;" goto statement_identifier ;)) (labeled_statement "LAB_0031c3d4:\n    *pcVar2 = param_3;" statement_identifier : (expression_statement "*pcVar2 = param_3;" (assignment_expression "*pcVar2 = param_3" (pointer_expression "*pcVar2" * identifier) = identifier) ;)) (expression_statement "pcVar6 = pcVar2 + 2;" (assignment_expression "pcVar6 = pcVar2 + 2" identifier = (binary_expression "pcVar2 + 2" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" else (compound_statement "{\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" { (expression_statement "*pcVar3 = '.';" (assignment_expression "*pcVar3 = '.'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'.'" ' character ')) ;) (expression_statement "pcVar3[1] = '*';" (assignment_expression "pcVar3[1] = '*'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'*'" ' character ')) ;) (expression_statement "pcVar2 = pcVar3 + 2;" (assignment_expression "pcVar2 = pcVar3 + 2" identifier = (binary_expression "pcVar3 + 2" identifier + number_literal)) ;) (if_statement "if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;" if (parenthesized_expression "(CONCAT31(in_register_00000018,param_3) != 0)" ( (binary_expression "CONCAT31(in_register_00000018,param_3) != 0" (call_expression "CONCAT31(in_register_00000018,param_3)" identifier (argument_list "(in_register_00000018,param_3)" ( identifier , identifier ))) != number_literal) )) (goto_statement "goto LAB_0031c3d4;" goto statement_identifier ;)) (expression_statement "pcVar6 = pcVar3 + 3;" (assignment_expression "pcVar6 = pcVar3 + 3" identifier = (binary_expression "pcVar3 + 3" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar3 + 2;" (assignment_expression "pcVar3 = pcVar3 + 2" identifier = (binary_expression "pcVar3 + 2" identifier + number_literal)) ;) }))) (if_statement "if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 == 4)" ( (binary_expression "uVar5 == 4" identifier == number_literal) )) (compound_statement "{\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "*pcVar3 = 'f';" (assignment_expression "*pcVar3 = 'f'" (pointer_expression "*pcVar3" * identifier) = (char_literal "'f'" ' character ')) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 == 0x100)" ( (binary_expression "uVar5 == 0x100" identifier == number_literal) )) (compound_statement "{\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "cVar4 = 'e';" (assignment_expression "cVar4 = 'e'" identifier = (char_literal "'e'" ' character ')) ;) (if_statement "if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      cVar4 = 'E';\n    }" { (expression_statement "cVar4 = 'E';" (assignment_expression "cVar4 = 'E'" identifier = (char_literal "'E'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (if_statement "if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 != 0x104)" ( (binary_expression "uVar5 != 0x104" identifier != number_literal) )) (compound_statement "{\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" { (expression_statement "cVar4 = 'g';" (assignment_expression "cVar4 = 'g'" identifier = (char_literal "'g'" ' character ')) ;) (if_statement "if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      cVar4 = 'G';\n    }" { (expression_statement "cVar4 = 'G';" (assignment_expression "cVar4 = 'G'" identifier = (char_literal "'G'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_0031c424:\n  cVar4 = 'a';" statement_identifier : (expression_statement "cVar4 = 'a';" (assignment_expression "cVar4 = 'a'" identifier = (char_literal "'a'" ' character ')) ;)) (if_statement "if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }" if (parenthesized_expression "((uVar1 & 0x4000) != 0)" ( (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" ( (binary_expression "uVar1 & 0x4000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    cVar4 = 'A';\n  }" { (expression_statement "cVar4 = 'A';" (assignment_expression "cVar4 = 'A'" identifier = (char_literal "'A'" ' character ')) ;) })) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" * identifier) = identifier) ;) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return ;) })))
(function_definition "void std::__num_base::_S_format_float(ios_base *param_1,char *param_2,char param_3)\n\n{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}" (primitive_type "void") (ERROR "std::__num_base::" (identifier "std") (: ":") (: ":") (identifier "__num_base") (: ":") (: ":")) (function_declarator "_S_format_float(ios_base *param_1,char *param_2,char param_3)" (identifier "_S_format_float") (parameter_list "(ios_base *param_1,char *param_2,char param_3)" (( "(") (parameter_declaration "ios_base *param_1" (type_identifier "ios_base") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  char *pcVar2;\n  char *pcVar3;\n  char cVar4;\n  uint uVar5;\n  undefined3 in_register_00000018;\n  char *pcVar6;\n  \n  uVar1 = *(uint *)(param_1 + 0xc);\n  *param_2 = '%';\n  if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }\n  pcVar3 = pcVar2;\n  if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }\n  uVar5 = uVar1 & 0x104;\n  if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }\n  if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\n  if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }\nLAB_0031c424:\n  cVar4 = 'a';\n  if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }\n  *pcVar3 = cVar4;\n  pcVar3[1] = '\0';\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined3 in_register_00000018;" (type_identifier "undefined3") (identifier "in_register_00000018") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0xc);" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xc)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_1 + 0xc)" (* "*") (cast_expression "(uint *)(param_1 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*param_2 = '%';" (assignment_expression "*param_2 = '%'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (char_literal "'%'" (' "'") (character "%") (' "'"))) (; ";")) (if_statement "if ((uVar1 & 0x800) == 0) {\n    pcVar2 = param_2 + 1;\n  }\n  else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x800) == 0)" (( "(") (binary_expression "(uVar1 & 0x800) == 0" (parenthesized_expression "(uVar1 & 0x800)" (( "(") (binary_expression "uVar1 & 0x800" (identifier "uVar1") (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar2 = param_2 + 1;\n  }" ({ "{") (expression_statement "pcVar2 = param_2 + 1;" (assignment_expression "pcVar2 = param_2 + 1" (identifier "pcVar2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" (else "else") (compound_statement "{\n    pcVar2 = param_2 + 2;\n    param_2[1] = '+';\n  }" ({ "{") (expression_statement "pcVar2 = param_2 + 2;" (assignment_expression "pcVar2 = param_2 + 2" (identifier "pcVar2") (= "=") (binary_expression "param_2 + 2" (identifier "param_2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_2[1] = '+';" (assignment_expression "param_2[1] = '+'" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'+'" (' "'") (character "+") (' "'"))) (; ";")) (} "}")))) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" (identifier "pcVar3") (= "=") (identifier "pcVar2")) (; ";")) (if_statement "if ((uVar1 & 0x400) != 0) {\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x400) != 0)" (( "(") (binary_expression "(uVar1 & 0x400) != 0" (parenthesized_expression "(uVar1 & 0x400)" (( "(") (binary_expression "uVar1 & 0x400" (identifier "uVar1") (& "&") (number_literal "0x400")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar3 = pcVar2 + 1;\n    *pcVar2 = '#';\n  }" ({ "{") (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar2 = '#';" (assignment_expression "*pcVar2 = '#'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (char_literal "'#'" (' "'") (character "#") (' "'"))) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar1 & 0x104;" (assignment_expression "uVar5 = uVar1 & 0x104" (identifier "uVar5") (= "=") (binary_expression "uVar1 & 0x104" (identifier "uVar1") (& "&") (number_literal "0x104"))) (; ";")) (if_statement "if (uVar5 == 0x104) {\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }\n  else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" (if "if") (parenthesized_expression "(uVar5 == 0x104)" (( "(") (binary_expression "uVar5 == 0x104" (identifier "uVar5") (== "==") (number_literal "0x104")) () ")")) (compound_statement "{\n    pcVar2 = pcVar3;\n    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;\nLAB_0031c3d4:\n    *pcVar2 = param_3;\n    pcVar6 = pcVar2 + 2;\n    pcVar3 = pcVar2 + 1;\n  }" ({ "{") (expression_statement "pcVar2 = pcVar3;" (assignment_expression "pcVar2 = pcVar3" (identifier "pcVar2") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;" (if "if") (parenthesized_expression "(CONCAT31(in_register_00000018,param_3) == 0)" (( "(") (binary_expression "CONCAT31(in_register_00000018,param_3) == 0" (call_expression "CONCAT31(in_register_00000018,param_3)" (identifier "CONCAT31") (argument_list "(in_register_00000018,param_3)" (( "(") (identifier "in_register_00000018") (, ",") (identifier "param_3") () ")"))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0031c424;" (goto "goto") (statement_identifier "LAB_0031c424") (; ";"))) (labeled_statement "LAB_0031c3d4:\n    *pcVar2 = param_3;" (statement_identifier "LAB_0031c3d4") (: ":") (expression_statement "*pcVar2 = param_3;" (assignment_expression "*pcVar2 = param_3" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (identifier "param_3")) (; ";"))) (expression_statement "pcVar6 = pcVar2 + 2;" (assignment_expression "pcVar6 = pcVar2 + 2" (identifier "pcVar6") (= "=") (binary_expression "pcVar2 + 2" (identifier "pcVar2") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar3 = pcVar2 + 1;" (assignment_expression "pcVar3 = pcVar2 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" (else "else") (compound_statement "{\n    *pcVar3 = '.';\n    pcVar3[1] = '*';\n    pcVar2 = pcVar3 + 2;\n    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;\n    pcVar6 = pcVar3 + 3;\n    pcVar3 = pcVar3 + 2;\n  }" ({ "{") (expression_statement "*pcVar3 = '.';" (assignment_expression "*pcVar3 = '.'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'.'" (' "'") (character ".") (' "'"))) (; ";")) (expression_statement "pcVar3[1] = '*';" (assignment_expression "pcVar3[1] = '*'" (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'*'" (' "'") (character "*") (' "'"))) (; ";")) (expression_statement "pcVar2 = pcVar3 + 2;" (assignment_expression "pcVar2 = pcVar3 + 2" (identifier "pcVar2") (= "=") (binary_expression "pcVar3 + 2" (identifier "pcVar3") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;" (if "if") (parenthesized_expression "(CONCAT31(in_register_00000018,param_3) != 0)" (( "(") (binary_expression "CONCAT31(in_register_00000018,param_3) != 0" (call_expression "CONCAT31(in_register_00000018,param_3)" (identifier "CONCAT31") (argument_list "(in_register_00000018,param_3)" (( "(") (identifier "in_register_00000018") (, ",") (identifier "param_3") () ")"))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0031c3d4;" (goto "goto") (statement_identifier "LAB_0031c3d4") (; ";"))) (expression_statement "pcVar6 = pcVar3 + 3;" (assignment_expression "pcVar6 = pcVar3 + 3" (identifier "pcVar6") (= "=") (binary_expression "pcVar3 + 3" (identifier "pcVar3") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "pcVar3 = pcVar3 + 2;" (assignment_expression "pcVar3 = pcVar3 + 2" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + 2" (identifier "pcVar3") (+ "+") (number_literal "2"))) (; ";")) (} "}")))) (if_statement "if (uVar5 == 4) {\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }" (if "if") (parenthesized_expression "(uVar5 == 4)" (( "(") (binary_expression "uVar5 == 4" (identifier "uVar5") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n    *pcVar3 = 'f';\n    *pcVar6 = '\0';\n    return;\n  }" ({ "{") (expression_statement "*pcVar3 = 'f';" (assignment_expression "*pcVar3 = 'f'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (char_literal "'f'" (' "'") (character "f") (' "'"))) (; ";")) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (uVar5 == 0x100) {\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" (if "if") (parenthesized_expression "(uVar5 == 0x100)" (( "(") (binary_expression "uVar5 == 0x100" (identifier "uVar5") (== "==") (number_literal "0x100")) () ")")) (compound_statement "{\n    cVar4 = 'e';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" ({ "{") (expression_statement "cVar4 = 'e';" (assignment_expression "cVar4 = 'e'" (identifier "cVar4") (= "=") (char_literal "'e'" (' "'") (character "e") (' "'"))) (; ";")) (if_statement "if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'E';\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x4000) != 0)" (( "(") (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" (( "(") (binary_expression "uVar1 & 0x4000" (identifier "uVar1") (& "&") (number_literal "0x4000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      cVar4 = 'E';\n    }" ({ "{") (expression_statement "cVar4 = 'E';" (assignment_expression "cVar4 = 'E'" (identifier "cVar4") (= "=") (char_literal "'E'" (' "'") (character "E") (' "'"))) (; ";")) (} "}"))) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (identifier "cVar4")) (; ";")) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (uVar5 != 0x104) {\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" (if "if") (parenthesized_expression "(uVar5 != 0x104)" (( "(") (binary_expression "uVar5 != 0x104" (identifier "uVar5") (!= "!=") (number_literal "0x104")) () ")")) (compound_statement "{\n    cVar4 = 'g';\n    if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }\n    *pcVar3 = cVar4;\n    *pcVar6 = '\0';\n    return;\n  }" ({ "{") (expression_statement "cVar4 = 'g';" (assignment_expression "cVar4 = 'g'" (identifier "cVar4") (= "=") (char_literal "'g'" (' "'") (character "g") (' "'"))) (; ";")) (if_statement "if ((uVar1 & 0x4000) != 0) {\n      cVar4 = 'G';\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x4000) != 0)" (( "(") (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" (( "(") (binary_expression "uVar1 & 0x4000" (identifier "uVar1") (& "&") (number_literal "0x4000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      cVar4 = 'G';\n    }" ({ "{") (expression_statement "cVar4 = 'G';" (assignment_expression "cVar4 = 'G'" (identifier "cVar4") (= "=") (char_literal "'G'" (' "'") (character "G") (' "'"))) (; ";")) (} "}"))) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (identifier "cVar4")) (; ";")) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_0031c424:\n  cVar4 = 'a';" (statement_identifier "LAB_0031c424") (: ":") (expression_statement "cVar4 = 'a';" (assignment_expression "cVar4 = 'a'" (identifier "cVar4") (= "=") (char_literal "'a'" (' "'") (character "a") (' "'"))) (; ";"))) (if_statement "if ((uVar1 & 0x4000) != 0) {\n    cVar4 = 'A';\n  }" (if "if") (parenthesized_expression "((uVar1 & 0x4000) != 0)" (( "(") (binary_expression "(uVar1 & 0x4000) != 0" (parenthesized_expression "(uVar1 & 0x4000)" (( "(") (binary_expression "uVar1 & 0x4000" (identifier "uVar1") (& "&") (number_literal "0x4000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    cVar4 = 'A';\n  }" ({ "{") (expression_statement "cVar4 = 'A';" (assignment_expression "cVar4 = 'A'" (identifier "cVar4") (= "=") (char_literal "'A'" (' "'") (character "A") (' "'"))) (; ";")) (} "}"))) (expression_statement "*pcVar3 = cVar4;" (assignment_expression "*pcVar3 = cVar4" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (identifier "cVar4")) (; ";")) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::__num_base::_S_format_float(std::ios_base const&, char*, char) */

void std::__num_base::function_1(type_1 *var_1,char *var_3,char param_3)

{
  type_2 var_2;
  char *var_4;
  char *var_7;
  char cVar4;
  type_2 var_5;
  type_3 in_register_00000018;
  char *pcVar6;
  
  var_2 = *(type_2 *)(var_1 + 0xc);
  *var_3 = '%';
  if ((var_2 & 0x800) == 0) {
    var_4 = var_3 + 1;
  }
  else {
    var_4 = var_3 + 2;
    var_3[1] = '+';
  }
  var_7 = var_4;
  if ((var_2 & 0x400) != 0) {
    var_7 = var_4 + 1;
    *var_4 = '#';
  }
  var_5 = var_2 & 0x104;
  if (var_5 == 0x104) {
    var_4 = var_7;
    if (var_6(in_register_00000018,param_3) == 0) goto LAB_0031c424;
LAB_0031c3d4:
    *var_4 = param_3;
    pcVar6 = var_4 + 2;
    var_7 = var_4 + 1;
  }
  else {
    *var_7 = '.';
    var_7[1] = '*';
    var_4 = var_7 + 2;
    if (var_6(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;
    pcVar6 = var_7 + 3;
    var_7 = var_7 + 2;
  }
  if (var_5 == 4) {
    *var_7 = 'f';
    *pcVar6 = '\0';
    return;
  }
  if (var_5 == 0x100) {
    cVar4 = 'e';
    if ((var_2 & 0x4000) != 0) {
      cVar4 = 'E';
    }
    *var_7 = cVar4;
    *pcVar6 = '\0';
    return;
  }
  if (var_5 != 0x104) {
    cVar4 = 'g';
    if ((var_2 & 0x4000) != 0) {
      cVar4 = 'G';
    }
    *var_7 = cVar4;
    *pcVar6 = '\0';
    return;
  }
LAB_0031c424:
  cVar4 = 'a';
  if ((var_2 & 0x4000) != 0) {
    cVar4 = 'A';
  }
  *var_7 = cVar4;
  var_7[1] = '\0';
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (return_statement))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (char_literal (character))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (return_statement))))

/* std::__num_base::MASKED(std::ios_base const&, char*, char) */

void std::__num_base::MASKED(ios_base *param_1,char *param_2,char param_3)

{
  uint uVar1;
  char *pcVar2;
  char *pcVar3;
  char cVar4;
  uint uVar5;
  undefined3 in_register_00000018;
  char *pcVar6;
  
  uVar1 = *(uint *)(param_1 + 0xc);
  *param_2 = '%';
  if ((uVar1 & 0x800) == 0) {
    pcVar2 = param_2 + 1;
  }
  else {
    pcVar2 = param_2 + 2;
    param_2[1] = '+';
  }
  pcVar3 = pcVar2;
  if ((uVar1 & 0x400) != 0) {
    pcVar3 = pcVar2 + 1;
    *pcVar2 = '#';
  }
  uVar5 = uVar1 & 0x104;
  if (uVar5 == 0x104) {
    pcVar2 = pcVar3;
    if (CONCAT31(in_register_00000018,param_3) == 0) goto LAB_0031c424;
LAB_0031c3d4:
    *pcVar2 = param_3;
    pcVar6 = pcVar2 + 2;
    pcVar3 = pcVar2 + 1;
  }
  else {
    *pcVar3 = '.';
    pcVar3[1] = '*';
    pcVar2 = pcVar3 + 2;
    if (CONCAT31(in_register_00000018,param_3) != 0) goto LAB_0031c3d4;
    pcVar6 = pcVar3 + 3;
    pcVar3 = pcVar3 + 2;
  }
  if (uVar5 == 4) {
    *pcVar3 = 'f';
    *pcVar6 = '\0';
    return;
  }
  if (uVar5 == 0x100) {
    cVar4 = 'e';
    if ((uVar1 & 0x4000) != 0) {
      cVar4 = 'E';
    }
    *pcVar3 = cVar4;
    *pcVar6 = '\0';
    return;
  }
  if (uVar5 != 0x104) {
    cVar4 = 'g';
    if ((uVar1 & 0x4000) != 0) {
      cVar4 = 'G';
    }
    *pcVar3 = cVar4;
    *pcVar6 = '\0';
    return;
  }
LAB_0031c424:
  cVar4 = 'a';
  if ((uVar1 & 0x4000) != 0) {
    cVar4 = 'A';
  }
  *pcVar3 = cVar4;
  pcVar3[1] = '\0';
  return;
}

