static boolean f ( ) {
  boolean turn = true ;
  long num = 1 ;
  while ( num <= N ) {
    if ( turn ) {
      if ( odd ) num = 2 * num + 1 ;
      else num = 2 * num ;
    }
    else {
      if ( odd ) num = 2 * num ;
      else num = 2 * num + 1 ;
    }
    turn = ! turn ;
  }
  boolean flg = true ;
  if ( ! turn ) flg = false ;
  return flg ;
}

static boolean f ( ) { boolean turn = true ; long num = 1 ; while ( num <= N ) { if ( turn ) { if ( odd ) num = 2 * num + 1 ; else num = 2 * num ; } else { if ( odd ) num = 2 * num ; else num = 2 * num + 1 ; } turn = ! turn ; } boolean flg = true ; if ( ! turn ) flg = false ; return flg ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (if_statement condition: (parenthesized_expression (identifier)) consequence: (block (if_statement condition: (parenthesized_expression (identifier)) consequence: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (decimal_integer_literal)))) alternative: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (decimal_integer_literal) right: (identifier)))))) alternative: (block (if_statement condition: (parenthesized_expression (identifier)) consequence: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (decimal_integer_literal) right: (identifier)))) alternative: (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (decimal_integer_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (unary_expression operand: (identifier)))))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (if_statement condition: (parenthesized_expression (unary_expression operand: (identifier))) consequence: (expression_statement (assignment_expression left: (identifier) right: (false)))) (return_statement (identifier))))