
void __gmpz_set_si(mpz_ptr dest,long val)

{
  if (-1 < val) {
    *dest->_mp_d = val;
    dest->_mp_size = (uint)(val != 0);
    return;
  }
  *dest->_mp_d = -val;
  dest->_mp_size = -1;
  return;
}



void __gmpz_set_si(int param_1,int param_2)

{
  if (-1 < param_2) {
    **(int **)(param_1 + 8) = param_2;
    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);
    return;
  }
  **(int **)(param_1 + 8) = -param_2;
  *(undefined4 *)(param_1 + 4) = 0xffffffff;
  return;
}


MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [EDX + 0x8]
TEST EAX,EAX
JS 0x00032120
MOV dword ptr [ECX],EAX
SETNZ AL
MOVZX EAX,AL
MOV dword ptr [EDX + 0x4],EAX
RET
NEG EAX
MOV dword ptr [ECX],EAX
MOV EAX,0xffffffff
MOV dword ptr [EDX + 0x4],EAX
RET
(translation_unit "void __gmpz_set_si(int param_1,int param_2)\n\n{\n  if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }\n  **(int **)(param_1 + 8) = -param_2;\n  *(undefined4 *)(param_1 + 4) = 0xffffffff;\n  return;\n}\n\n" (function_definition "void __gmpz_set_si(int param_1,int param_2)\n\n{\n  if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }\n  **(int **)(param_1 + 8) = -param_2;\n  *(undefined4 *)(param_1 + 4) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "__gmpz_set_si(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }\n  **(int **)(param_1 + 8) = -param_2;\n  *(undefined4 *)(param_1 + 4) = 0xffffffff;\n  return;\n}" { (if_statement "if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }" { (expression_statement "**(int **)(param_1 + 8) = param_2;" (assignment_expression "**(int **)(param_1 + 8) = param_2" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 4) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(param_1 + 4) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "**(int **)(param_1 + 8) = -param_2;" (assignment_expression "**(int **)(param_1 + 8) = -param_2" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) = (unary_expression "-param_2" - identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __gmpz_set_si(mpz_ptr dest,long val)\n\n{\n  if (-1 < val) {\n    *dest->_mp_d = val;\n    dest->_mp_size = (uint)(val != 0);\n    return;\n  }\n  *dest->_mp_d = -val;\n  dest->_mp_size = -1;\n  return;\n}\n\n" (function_definition "void __gmpz_set_si(mpz_ptr dest,long val)\n\n{\n  if (-1 < val) {\n    *dest->_mp_d = val;\n    dest->_mp_size = (uint)(val != 0);\n    return;\n  }\n  *dest->_mp_d = -val;\n  dest->_mp_size = -1;\n  return;\n}" primitive_type (function_declarator "__gmpz_set_si(mpz_ptr dest,long val)" identifier (parameter_list "(mpz_ptr dest,long val)" ( (parameter_declaration "mpz_ptr dest" type_identifier identifier) , (parameter_declaration "long val" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (-1 < val) {\n    *dest->_mp_d = val;\n    dest->_mp_size = (uint)(val != 0);\n    return;\n  }\n  *dest->_mp_d = -val;\n  dest->_mp_size = -1;\n  return;\n}" { (if_statement "if (-1 < val) {\n    *dest->_mp_d = val;\n    dest->_mp_size = (uint)(val != 0);\n    return;\n  }" if (parenthesized_expression "(-1 < val)" ( (binary_expression "-1 < val" number_literal < identifier) )) (compound_statement "{\n    *dest->_mp_d = val;\n    dest->_mp_size = (uint)(val != 0);\n    return;\n  }" { (expression_statement "*dest->_mp_d = val;" (assignment_expression "*dest->_mp_d = val" (pointer_expression "*dest->_mp_d" * (field_expression "dest->_mp_d" identifier -> field_identifier)) = identifier) ;) (expression_statement "dest->_mp_size = (uint)(val != 0);" (assignment_expression "dest->_mp_size = (uint)(val != 0)" (field_expression "dest->_mp_size" identifier -> field_identifier) = (call_expression "(uint)(val != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(val != 0)" ( (binary_expression "val != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "*dest->_mp_d = -val;" (assignment_expression "*dest->_mp_d = -val" (pointer_expression "*dest->_mp_d" * (field_expression "dest->_mp_d" identifier -> field_identifier)) = (unary_expression "-val" - identifier)) ;) (expression_statement "dest->_mp_size = -1;" (assignment_expression "dest->_mp_size = -1" (field_expression "dest->_mp_size" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __gmpz_set_si(int param_1,int param_2)\n\n{\n  if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }\n  **(int **)(param_1 + 8) = -param_2;\n  *(undefined4 *)(param_1 + 4) = 0xffffffff;\n  return;\n}\n\n" (function_definition "void __gmpz_set_si(int param_1,int param_2)\n\n{\n  if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }\n  **(int **)(param_1 + 8) = -param_2;\n  *(undefined4 *)(param_1 + 4) = 0xffffffff;\n  return;\n}" primitive_type (function_declarator "__gmpz_set_si(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }\n  **(int **)(param_1 + 8) = -param_2;\n  *(undefined4 *)(param_1 + 4) = 0xffffffff;\n  return;\n}" { (if_statement "if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }" if (parenthesized_expression "(-1 < param_2)" ( (binary_expression "-1 < param_2" number_literal < identifier) )) (compound_statement "{\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }" { (expression_statement "**(int **)(param_1 + 8) = param_2;" (assignment_expression "**(int **)(param_1 + 8) = param_2" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) = identifier) ;) (expression_statement "*(uint *)(param_1 + 4) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(param_1 + 4) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) ;) (return_statement "return;" return ;) })) (expression_statement "**(int **)(param_1 + 8) = -param_2;" (assignment_expression "**(int **)(param_1 + 8) = -param_2" (pointer_expression "**(int **)(param_1 + 8)" * (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) = (unary_expression "-param_2" - identifier)) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void __gmpz_set_si(int param_1,int param_2)\n\n{\n  if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }\n  **(int **)(param_1 + 8) = -param_2;\n  *(undefined4 *)(param_1 + 4) = 0xffffffff;\n  return;\n}" (primitive_type "void") (function_declarator "__gmpz_set_si(int param_1,int param_2)" (identifier "__gmpz_set_si") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }\n  **(int **)(param_1 + 8) = -param_2;\n  *(undefined4 *)(param_1 + 4) = 0xffffffff;\n  return;\n}" ({ "{") (if_statement "if (-1 < param_2) {\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }" (if "if") (parenthesized_expression "(-1 < param_2)" (( "(") (binary_expression "-1 < param_2" (number_literal "-1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    **(int **)(param_1 + 8) = param_2;\n    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);\n    return;\n  }" ({ "{") (expression_statement "**(int **)(param_1 + 8) = param_2;" (assignment_expression "**(int **)(param_1 + 8) = param_2" (pointer_expression "**(int **)(param_1 + 8)" (* "*") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(uint *)(param_1 + 4) = (uint)(param_2 != 0);" (assignment_expression "*(uint *)(param_1 + 4) = (uint)(param_2 != 0)" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "**(int **)(param_1 + 8) = -param_2;" (assignment_expression "**(int **)(param_1 + 8) = -param_2" (pointer_expression "**(int **)(param_1 + 8)" (* "*") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (= "=") (unary_expression "-param_2" (- "-") (identifier "param_2"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 dest,long var_1)

{
  if (-1 < var_1) {
    *dest->_mp_d = var_1;
    dest->_mp_size = (uint)(var_1 != 0);
    return;
  }
  *dest->_mp_d = -var_1;
  dest->_mp_size = -1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (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: (number_literal))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (unary_expression argument: (identifier)))) (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: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  if (-1 < param_2) {
    **(int **)(param_1 + 8) = param_2;
    *(uint *)(param_1 + 4) = (uint)(param_2 != 0);
    return;
  }
  **(int **)(param_1 + 8) = -param_2;
  *(undefined4 *)(param_1 + 4) = 0xffffffff;
  return;
}

