static int binary ( long [ ] a , long target ) {
  if ( target < a [ 0 ] ) return 0 ;
  if ( target >= a [ n - 1 ] ) return n ;
  int hi = n - 1 ;
  int lo = - 1 ;
  int mid ;
  while ( hi - lo > 1 ) {
    mid = ( hi + lo ) / 2 ;
    if ( a [ mid ] <= target ) lo = mid ;
    else hi = mid ;
  }
  return hi ;
}

static int binary ( long [ ] a , long target ) { if ( target < a [ 0 ] ) return 0 ; if ( target >= a [ n - 1 ] ) return n ; int hi = n - 1 ; int lo = - 1 ; int mid ; while ( hi - lo > 1 ) { mid = ( hi + lo ) / 2 ; if ( a [ mid ] <= target ) lo = mid ; else hi = mid ; } return hi ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (array_access array: (identifier) index: (decimal_integer_literal)))) consequence: (return_statement (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))) consequence: (return_statement (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (unary_expression operand: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) body: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) consequence: (expression_statement (assignment_expression left: (identifier) right: (identifier))) alternative: (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (return_statement (identifier))))