public static void DFS ( int pos ) {
  if ( pos >= 10 ) {
    return ;
  }
  open [ pos ] = 0 ;
  func ( ) ;
  DFS ( pos + 1 ) ;
  open [ pos ] = 1 ;
  func ( ) ;
  DFS ( pos + 1 ) ;
}

public static void DFS ( int pos ) { if ( pos >= 10 ) { return ; } open [ pos ] = 0 ; func ( ) ; DFS ( pos + 1 ) ; open [ pos ] = 1 ; func ( ) ; DFS ( pos + 1 ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (return_statement))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))))