
int bignum_bit(Bignum_conflict bn,int i)

{
  if (i < 0) {
    return 0;
  }
  if ((int)(*bn << 5) <= i) {
    return 0;
  }
  return bn[(i >> 5) + 1] >> (i & 0x1fU) & 1;
}



uint bignum_bit(int *param_1,uint param_2)

{
  if ((int)param_2 < 0) {
    return 0;
  }
  if (*param_1 << 5 <= (int)param_2) {
    return 0;
  }
  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;
}


bltz a1,0x00058034
_nop
lw v1,0x0(a0)
sll v1,v1,0x5
slt v1,a1,v1
bne v1,zero,0x00058014
_nop
jr ra
_or v0,zero,zero
sra v0,a1,0x5
addiu v0,v0,0x1
sll v0,v0,0x2
addu a0,a0,v0
lw v0,0x0(a0)
srlv v0,v0,a1
jr ra
_andi v0,v0,0x1
jr ra
_or v0,zero,zero
(translation_unit "uint bignum_bit(int *param_1,uint param_2)\n\n{\n  if ((int)param_2 < 0) {\n    return 0;\n  }\n  if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }\n  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;\n}\n\n" (function_definition "uint bignum_bit(int *param_1,uint param_2)\n\n{\n  if ((int)param_2 < 0) {\n    return 0;\n  }\n  if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }\n  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;\n}" type_identifier (function_declarator "bignum_bit(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((int)param_2 < 0) {\n    return 0;\n  }\n  if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }\n  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;\n}" { (if_statement "if ((int)param_2 < 0) {\n    return 0;\n  }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }" if (parenthesized_expression "(*param_1 << 5 <= (int)param_2)" ( (binary_expression "*param_1 << 5 <= (int)param_2" (binary_expression "*param_1 << 5" (pointer_expression "*param_1" * identifier) << number_literal) <= (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;" return (binary_expression "(uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1" (binary_expression "(uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f)" (cast_expression "(uint)param_1[((int)param_2 >> 5) + 1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[((int)param_2 >> 5) + 1]" identifier [ (binary_expression "((int)param_2 >> 5) + 1" (parenthesized_expression "((int)param_2 >> 5)" ( (binary_expression "(int)param_2 >> 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + number_literal) ])) >> (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) & number_literal) ;) })))
(translation_unit "int bignum_bit(Bignum_conflict bn,int i)\n\n{\n  if (i < 0) {\n    return 0;\n  }\n  if ((int)(*bn << 5) <= i) {\n    return 0;\n  }\n  return bn[(i >> 5) + 1] >> (i & 0x1fU) & 1;\n}\n\n" (function_definition "int bignum_bit(Bignum_conflict bn,int i)\n\n{\n  if (i < 0) {\n    return 0;\n  }\n  if ((int)(*bn << 5) <= i) {\n    return 0;\n  }\n  return bn[(i >> 5) + 1] >> (i & 0x1fU) & 1;\n}" primitive_type (function_declarator "bignum_bit(Bignum_conflict bn,int i)" identifier (parameter_list "(Bignum_conflict bn,int i)" ( (parameter_declaration "Bignum_conflict bn" type_identifier identifier) , (parameter_declaration "int i" primitive_type identifier) ))) (compound_statement "{\n  if (i < 0) {\n    return 0;\n  }\n  if ((int)(*bn << 5) <= i) {\n    return 0;\n  }\n  return bn[(i >> 5) + 1] >> (i & 0x1fU) & 1;\n}" { (if_statement "if (i < 0) {\n    return 0;\n  }" if (parenthesized_expression "(i < 0)" ( (binary_expression "i < 0" identifier < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((int)(*bn << 5) <= i) {\n    return 0;\n  }" if (parenthesized_expression "((int)(*bn << 5) <= i)" ( (binary_expression "(int)(*bn << 5) <= i" (cast_expression "(int)(*bn << 5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(*bn << 5)" ( (binary_expression "*bn << 5" (pointer_expression "*bn" * identifier) << number_literal) ))) <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return bn[(i >> 5) + 1] >> (i & 0x1fU) & 1;" return (binary_expression "bn[(i >> 5) + 1] >> (i & 0x1fU) & 1" (binary_expression "bn[(i >> 5) + 1] >> (i & 0x1fU)" (subscript_expression "bn[(i >> 5) + 1]" identifier [ (binary_expression "(i >> 5) + 1" (parenthesized_expression "(i >> 5)" ( (binary_expression "i >> 5" identifier >> number_literal) )) + number_literal) ]) >> (parenthesized_expression "(i & 0x1fU)" ( (binary_expression "i & 0x1fU" identifier & number_literal) ))) & number_literal) ;) })))
(translation_unit "uint bignum_bit(int *param_1,uint param_2)\n\n{\n  if ((int)param_2 < 0) {\n    return 0;\n  }\n  if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }\n  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;\n}\n\n" (function_definition "uint bignum_bit(int *param_1,uint param_2)\n\n{\n  if ((int)param_2 < 0) {\n    return 0;\n  }\n  if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }\n  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;\n}" type_identifier (function_declarator "bignum_bit(int *param_1,uint param_2)" identifier (parameter_list "(int *param_1,uint param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((int)param_2 < 0) {\n    return 0;\n  }\n  if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }\n  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;\n}" { (if_statement "if ((int)param_2 < 0) {\n    return 0;\n  }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }" if (parenthesized_expression "(*param_1 << 5 <= (int)param_2)" ( (binary_expression "*param_1 << 5 <= (int)param_2" (binary_expression "*param_1 << 5" (pointer_expression "*param_1" * identifier) << number_literal) <= (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;" return (binary_expression "(uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1" (binary_expression "(uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f)" (cast_expression "(uint)param_1[((int)param_2 >> 5) + 1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[((int)param_2 >> 5) + 1]" identifier [ (binary_expression "((int)param_2 >> 5) + 1" (parenthesized_expression "((int)param_2 >> 5)" ( (binary_expression "(int)param_2 >> 5" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) + number_literal) ])) >> (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) & number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) << LIT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) + LIT) ])) >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT) ;) })))
(function_definition "uint bignum_bit(int *param_1,uint param_2)\n\n{\n  if ((int)param_2 < 0) {\n    return 0;\n  }\n  if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }\n  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;\n}" (type_identifier "uint") (function_declarator "bignum_bit(int *param_1,uint param_2)" (identifier "bignum_bit") (parameter_list "(int *param_1,uint param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if ((int)param_2 < 0) {\n    return 0;\n  }\n  if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }\n  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;\n}" ({ "{") (if_statement "if ((int)param_2 < 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((int)param_2 < 0)" (( "(") (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*param_1 << 5 <= (int)param_2) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_1 << 5 <= (int)param_2)" (( "(") (binary_expression "*param_1 << 5 <= (int)param_2" (binary_expression "*param_1 << 5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (<< "<<") (number_literal "5")) (<= "<=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;" (return "return") (binary_expression "(uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1" (binary_expression "(uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f)" (cast_expression "(uint)param_1[((int)param_2 >> 5) + 1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[((int)param_2 >> 5) + 1]" (identifier "param_1") ([ "[") (binary_expression "((int)param_2 >> 5) + 1" (parenthesized_expression "((int)param_2 >> 5)" (( "(") (binary_expression "(int)param_2 >> 5" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (>> ">>") (number_literal "5")) () ")")) (+ "+") (number_literal "1")) (] "]"))) (>> ">>") (parenthesized_expression "(param_2 & 0x1f)" (( "(") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "1")) (; ";")) (} "}")))

int function_1(type_1 bn,int var_1)

{
  if (var_1 < 0) {
    return 0;
  }
  if ((int)(*bn << 5) <= var_1) {
    return 0;
  }
  return bn[(var_1 >> 5) + 1] >> (var_1 & 0x1fU) & 1;
}


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

uint MASKED(int *param_1,uint param_2)

{
  if ((int)param_2 < 0) {
    return 0;
  }
  if (*param_1 << 5 <= (int)param_2) {
    return 0;
  }
  return (uint)param_1[((int)param_2 >> 5) + 1] >> (param_2 & 0x1f) & 1;
}

