static void calc1 ( int n , int m , int [ ] a , int [ ] b , int x , int y ) {
  boolean f = true ;
  while ( i < n && j < m ) {
    if ( f ) {
      calc2 ( n , a , x , f ) ;
      f = false ;
    }
    else {
      calc2 ( m , b , y , f ) ;
      f = true ;
    }
  }
}

static void calc1 ( int n , int m , int [ ] a , int [ ] b , int x , int y ) { boolean f = true ; while ( i < n && j < m ) { if ( f ) { calc2 ( n , a , x , f ) ; f = false ; } else { calc2 ( m , b , y , f ) ; f = true ; } } }
(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: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (true))) (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier)))) body: (block (if_statement condition: (parenthesized_expression (identifier)) consequence: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (false)))) alternative: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (true)))))))))