
void add(buf *b,uchar c)

{
  int iVar1;
  size_t n;
  
  iVar1 = b->len;
  if (iVar1 < b->size) {
    b->len = iVar1 + 1;
    b->data[iVar1] = c;
    return;
  }
  n = (iVar1 * 3) / 2 + 0x200;
                    /* WARNING: Subroutine does not return */
  b->size = n;
  saferealloc(b->data,n,1);
}



void FUN_000445d4(int *param_1,undefined1 param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = param_1[1];
  if (iVar1 < param_1[2]) {
    param_1[1] = iVar1 + 1;
    *(undefined1 *)(*param_1 + iVar1) = param_2;
    return;
  }
  iVar1 = (iVar1 * 3) / 2 + 0x200;
  param_1[2] = iVar1;
  iVar1 = saferealloc(*param_1,iVar1,1);
  iVar2 = param_1[1];
  *param_1 = iVar1;
  param_1[1] = iVar2 + 1;
  *(undefined1 *)(iVar1 + iVar2) = param_2;
  return;
}


lui gp,0x8
addiu gp,gp,-0x7404
addu gp,gp,t9
addiu sp,sp,-0x28
lw v1,0x4(a0)
sw s0,0x1c(sp)
or s0,a0,zero
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a1,zero
sw ra,0x24(sp)
lw a0,0x8(a0)
slt a0,v1,a0
beq a0,zero,0x00044634
_lw v0,0x0(s0)
addu v0,v0,v1
addiu v1,v1,0x1
sw v1,0x4(s0)
sb s1,0x0(v0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
sll a1,v1,0x1
lw t9,-0x7ec8(gp)
li a2,0x1
addu v1,a1,v1
or a0,v0,zero
srl a1,v1,0x1f
addu a1,a1,v1
sra a1,a1,0x1
addiu a1,a1,0x200
bal 0x0003593c
_sw a1,0x8(s0)
lw v1,0x4(s0)
sw v0,0x0(s0)
addu v0,v0,v1
addiu v1,v1,0x1
sw v1,0x4(s0)
sb s1,0x0(v0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_000445d4(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }\n  iVar1 = (iVar1 * 3) / 2 + 0x200;\n  param_1[2] = iVar1;\n  iVar1 = saferealloc(*param_1,iVar1,1);\n  iVar2 = param_1[1];\n  *param_1 = iVar1;\n  param_1[1] = iVar2 + 1;\n  *(undefined1 *)(iVar1 + iVar2) = param_2;\n  return;\n}\n\n" (function_definition "void FUN_000445d4(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }\n  iVar1 = (iVar1 * 3) / 2 + 0x200;\n  param_1[2] = iVar1;\n  iVar1 = saferealloc(*param_1,iVar1,1);\n  iVar2 = param_1[1];\n  *param_1 = iVar1;\n  param_1[1] = iVar2 + 1;\n  *(undefined1 *)(iVar1 + iVar2) = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_000445d4(int *param_1,undefined1 param_2)" identifier (parameter_list "(int *param_1,undefined1 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }\n  iVar1 = (iVar1 * 3) / 2 + 0x200;\n  param_1[2] = iVar1;\n  iVar1 = saferealloc(*param_1,iVar1,1);\n  iVar2 = param_1[1];\n  *param_1 = iVar1;\n  param_1[1] = iVar2 + 1;\n  *(undefined1 *)(iVar1 + iVar2) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }" if (parenthesized_expression "(iVar1 < param_1[2])" ( (binary_expression "iVar1 < param_1[2]" identifier < (subscript_expression "param_1[2]" identifier [ number_literal ])) )) (compound_statement "{\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }" { (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar1)" ( (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" * identifier) + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (iVar1 * 3) / 2 + 0x200;" (assignment_expression "iVar1 = (iVar1 * 3) / 2 + 0x200" identifier = (binary_expression "(iVar1 * 3) / 2 + 0x200" (binary_expression "(iVar1 * 3) / 2" (parenthesized_expression "(iVar1 * 3)" ( (binary_expression "iVar1 * 3" identifier * number_literal) )) / number_literal) + number_literal)) ;) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = saferealloc(*param_1,iVar1,1);" (assignment_expression "iVar1 = saferealloc(*param_1,iVar1,1)" identifier = (call_expression "saferealloc(*param_1,iVar1,1)" identifier (argument_list "(*param_1,iVar1,1)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal )))) ;) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(iVar1 + iVar2) = param_2;" (assignment_expression "*(undefined1 *)(iVar1 + iVar2) = param_2" (pointer_expression "*(undefined1 *)(iVar1 + iVar2)" * (cast_expression "(undefined1 *)(iVar1 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2)" ( (binary_expression "iVar1 + iVar2" identifier + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void add(buf *b,uchar c)\n\n{\n  int iVar1;\n  size_t n;\n  \n  iVar1 = b->len;\n  if (iVar1 < b->size) {\n    b->len = iVar1 + 1;\n    b->data[iVar1] = c;\n    return;\n  }\n  n = (iVar1 * 3) / 2 + 0x200;\n                    /* WARNING: Subroutine does not return */\n  b->size = n;\n  saferealloc(b->data,n,1);\n}\n\n" (function_definition "void add(buf *b,uchar c)\n\n{\n  int iVar1;\n  size_t n;\n  \n  iVar1 = b->len;\n  if (iVar1 < b->size) {\n    b->len = iVar1 + 1;\n    b->data[iVar1] = c;\n    return;\n  }\n  n = (iVar1 * 3) / 2 + 0x200;\n                    /* WARNING: Subroutine does not return */\n  b->size = n;\n  saferealloc(b->data,n,1);\n}" primitive_type (function_declarator "add(buf *b,uchar c)" identifier (parameter_list "(buf *b,uchar c)" ( (parameter_declaration "buf *b" type_identifier (pointer_declarator "*b" * identifier)) , (parameter_declaration "uchar c" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  size_t n;\n  \n  iVar1 = b->len;\n  if (iVar1 < b->size) {\n    b->len = iVar1 + 1;\n    b->data[iVar1] = c;\n    return;\n  }\n  n = (iVar1 * 3) / 2 + 0x200;\n                    /* WARNING: Subroutine does not return */\n  b->size = n;\n  saferealloc(b->data,n,1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t n;" primitive_type identifier ;) (expression_statement "iVar1 = b->len;" (assignment_expression "iVar1 = b->len" identifier = (field_expression "b->len" identifier -> field_identifier)) ;) (if_statement "if (iVar1 < b->size) {\n    b->len = iVar1 + 1;\n    b->data[iVar1] = c;\n    return;\n  }" if (parenthesized_expression "(iVar1 < b->size)" ( (binary_expression "iVar1 < b->size" identifier < (field_expression "b->size" identifier -> field_identifier)) )) (compound_statement "{\n    b->len = iVar1 + 1;\n    b->data[iVar1] = c;\n    return;\n  }" { (expression_statement "b->len = iVar1 + 1;" (assignment_expression "b->len = iVar1 + 1" (field_expression "b->len" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "b->data[iVar1] = c;" (assignment_expression "b->data[iVar1] = c" (subscript_expression "b->data[iVar1]" (field_expression "b->data" identifier -> field_identifier) [ identifier ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "n = (iVar1 * 3) / 2 + 0x200;" (assignment_expression "n = (iVar1 * 3) / 2 + 0x200" identifier = (binary_expression "(iVar1 * 3) / 2 + 0x200" (binary_expression "(iVar1 * 3) / 2" (parenthesized_expression "(iVar1 * 3)" ( (binary_expression "iVar1 * 3" identifier * number_literal) )) / number_literal) + number_literal)) ;) comment (expression_statement "b->size = n;" (assignment_expression "b->size = n" (field_expression "b->size" identifier -> field_identifier) = identifier) ;) (expression_statement "saferealloc(b->data,n,1);" (call_expression "saferealloc(b->data,n,1)" identifier (argument_list "(b->data,n,1)" ( (field_expression "b->data" identifier -> field_identifier) , identifier , number_literal ))) ;) })))
(translation_unit "void FUN_000445d4(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }\n  iVar1 = (iVar1 * 3) / 2 + 0x200;\n  param_1[2] = iVar1;\n  iVar1 = saferealloc(*param_1,iVar1,1);\n  iVar2 = param_1[1];\n  *param_1 = iVar1;\n  param_1[1] = iVar2 + 1;\n  *(undefined1 *)(iVar1 + iVar2) = param_2;\n  return;\n}\n\n" (function_definition "void FUN_000445d4(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }\n  iVar1 = (iVar1 * 3) / 2 + 0x200;\n  param_1[2] = iVar1;\n  iVar1 = saferealloc(*param_1,iVar1,1);\n  iVar2 = param_1[1];\n  *param_1 = iVar1;\n  param_1[1] = iVar2 + 1;\n  *(undefined1 *)(iVar1 + iVar2) = param_2;\n  return;\n}" primitive_type (function_declarator "FUN_000445d4(int *param_1,undefined1 param_2)" identifier (parameter_list "(int *param_1,undefined1 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }\n  iVar1 = (iVar1 * 3) / 2 + 0x200;\n  param_1[2] = iVar1;\n  iVar1 = saferealloc(*param_1,iVar1,1);\n  iVar2 = param_1[1];\n  *param_1 = iVar1;\n  param_1[1] = iVar2 + 1;\n  *(undefined1 *)(iVar1 + iVar2) = param_2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }" if (parenthesized_expression "(iVar1 < param_1[2])" ( (binary_expression "iVar1 < param_1[2]" identifier < (subscript_expression "param_1[2]" identifier [ number_literal ])) )) (compound_statement "{\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }" { (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar1)" ( (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" * identifier) + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar1 = (iVar1 * 3) / 2 + 0x200;" (assignment_expression "iVar1 = (iVar1 * 3) / 2 + 0x200" identifier = (binary_expression "(iVar1 * 3) / 2 + 0x200" (binary_expression "(iVar1 * 3) / 2" (parenthesized_expression "(iVar1 * 3)" ( (binary_expression "iVar1 * 3" identifier * number_literal) )) / number_literal) + number_literal)) ;) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = saferealloc(*param_1,iVar1,1);" (assignment_expression "iVar1 = saferealloc(*param_1,iVar1,1)" identifier = (call_expression "saferealloc(*param_1,iVar1,1)" identifier (argument_list "(*param_1,iVar1,1)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal )))) ;) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(iVar1 + iVar2) = param_2;" (assignment_expression "*(undefined1 *)(iVar1 + iVar2) = param_2" (pointer_expression "*(undefined1 *)(iVar1 + iVar2)" * (cast_expression "(undefined1 *)(iVar1 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar2)" ( (binary_expression "iVar1 + iVar2" identifier + identifier) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT * LIT) )) / LIT) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_000445d4(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }\n  iVar1 = (iVar1 * 3) / 2 + 0x200;\n  param_1[2] = iVar1;\n  iVar1 = saferealloc(*param_1,iVar1,1);\n  iVar2 = param_1[1];\n  *param_1 = iVar1;\n  param_1[1] = iVar2 + 1;\n  *(undefined1 *)(iVar1 + iVar2) = param_2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000445d4(int *param_1,undefined1 param_2)" (identifier "FUN_000445d4") (parameter_list "(int *param_1,undefined1 param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = param_1[1];\n  if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }\n  iVar1 = (iVar1 * 3) / 2 + 0x200;\n  param_1[2] = iVar1;\n  iVar1 = saferealloc(*param_1,iVar1,1);\n  iVar2 = param_1[1];\n  *param_1 = iVar1;\n  param_1[1] = iVar2 + 1;\n  *(undefined1 *)(iVar1 + iVar2) = param_2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar1 < param_1[2]) {\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 < param_1[2])" (( "(") (binary_expression "iVar1 < param_1[2]" (identifier "iVar1") (< "<") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")")) (compound_statement "{\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n    return;\n  }" ({ "{") (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" (* "*") (cast_expression "(undefined1 *)(*param_1 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar1)" (( "(") (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = (iVar1 * 3) / 2 + 0x200;" (assignment_expression "iVar1 = (iVar1 * 3) / 2 + 0x200" (identifier "iVar1") (= "=") (binary_expression "(iVar1 * 3) / 2 + 0x200" (binary_expression "(iVar1 * 3) / 2" (parenthesized_expression "(iVar1 * 3)" (( "(") (binary_expression "iVar1 * 3" (identifier "iVar1") (* "*") (number_literal "3")) () ")")) (/ "/") (number_literal "2")) (+ "+") (number_literal "0x200"))) (; ";")) (expression_statement "param_1[2] = iVar1;" (assignment_expression "param_1[2] = iVar1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = saferealloc(*param_1,iVar1,1);" (assignment_expression "iVar1 = saferealloc(*param_1,iVar1,1)" (identifier "iVar1") (= "=") (call_expression "saferealloc(*param_1,iVar1,1)" (identifier "saferealloc") (argument_list "(*param_1,iVar1,1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "iVar1") (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar2 = param_1[1];" (assignment_expression "iVar2 = param_1[1]" (identifier "iVar2") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "param_1[1] = iVar2 + 1;" (assignment_expression "param_1[1] = iVar2 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + iVar2) = param_2;" (assignment_expression "*(undefined1 *)(iVar1 + iVar2) = param_2" (pointer_expression "*(undefined1 *)(iVar1 + iVar2)" (* "*") (cast_expression "(undefined1 *)(iVar1 + iVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar2)" (( "(") (binary_expression "iVar1 + iVar2" (identifier "iVar1") (+ "+") (identifier "iVar2")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *b,type_2 c)

{
  int var_1;
  size_t n;
  
  var_1 = b->len;
  if (var_1 < b->size) {
    b->len = var_1 + 1;
    b->data[var_1] = c;
    return;
  }
  n = (var_1 * 3) / 2 + 0x200;
                    /* WARNING: Subroutine does not return */
  b->size = n;
  var_2(b->data,n,1);
}


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

void MASKED(int *param_1,undefined1 param_2)

{
  int iVar1;
  int iVar2;
  
  iVar1 = param_1[1];
  if (iVar1 < param_1[2]) {
    param_1[1] = iVar1 + 1;
    *(undefined1 *)(*param_1 + iVar1) = param_2;
    return;
  }
  iVar1 = (iVar1 * 3) / 2 + 0x200;
  param_1[2] = iVar1;
  iVar1 = saferealloc(*param_1,iVar1,1);
  iVar2 = param_1[1];
  *param_1 = iVar1;
  param_1[1] = iVar2 + 1;
  *(undefined1 *)(iVar1 + iVar2) = param_2;
  return;
}

