public static void func ( int i , int j , double l , double [ ] [ ] arr ) {
  arr [ i ] [ j ] += l ;
  if ( arr [ i ] [ j ] <= 1.0 || i > arr . length - 2 ) {
    return ;
  }
  l = arr [ i ] [ j ] - 1.0 ;
  arr [ i ] [ j ] = 1.0 ;
  func ( i + 1 , j , l / 2 , arr ) ;
  func ( i + 1 , j + 1 , l / 2 , arr ) ;
}

public static void func ( int i , int j , double l , double [ ] [ ] arr ) { arr [ i ] [ j ] += l ; if ( arr [ i ] [ j ] <= 1.0 || i > arr . length - 2 ) { return ; } l = arr [ i ] [ j ] - 1.0 ; arr [ i ] [ j ] = 1.0 ; func ( i + 1 , j , l / 2 , arr ) ; func ( i + 1 , j + 1 , l / 2 , arr ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (array_type element: (floating_point_type) dimensions: (dimensions)) name: (identifier))) body: (block (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_floating_point_literal)) right: (binary_expression left: (identifier) right: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))))) consequence: (block (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_floating_point_literal)))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_floating_point_literal))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier))))))