METHOD_0 ( ) { int [ ] IDENT_0 = new int [ INT_0 ] ; int IDENT_1 = 0 ; for ( int i = 0 ; i < ( IDENT_0 . length ) ; i ++ ) { IDENT_0 [ i ] = i + 1 ; IDENT_1 += IDENT_0 [ i ] ; } "<AssertPlaceHolder>" ; } METHOD_1 ( int [ ] ) { int [ ] IDENT_2 = new int [ IDENT_0 . length ] ; java . util . Arrays . METHOD_2 ( IDENT_2 , 1 ) ; for ( int i = 1 ; i < ( IDENT_0 . length ) ; i ++ ) { if ( ( IDENT_0 [ i ] ) > ( IDENT_0 [ ( i - 1 ) ] ) ) { IDENT_2 [ i ] = ( IDENT_2 [ ( i - 1 ) ] ) + 1 ; } } int [ ] IDENT_3 = new int [ IDENT_0 . length ] ; java . util . Arrays . METHOD_2 ( IDENT_3 , 1 ) ; for ( int i = ( IDENT_0 . length ) - 2 ; i >= 0 ; i OP_0 ) { if ( ( IDENT_0 [ i ] ) > ( IDENT_0 [ ( i + 1 ) ] ) ) { IDENT_3 [ i ] = ( IDENT_3 [ ( i + 1 ) ] ) + 1 ; } } int IDENT_1 = 0 ; for ( int i = 0 ; i < ( IDENT_0 . length ) ; i ++ ) { IDENT_1 += java . lang . Math . max ( IDENT_2 [ i ] , IDENT_3 [ i ] ) ; } return IDENT_1 ; }
org . junit . Assert . assertEquals ( IDENT_1 , METHOD_1 . METHOD_1 ( IDENT_0 ) )