METHOD_0 ( ) { int [ ] input = new int [ ] { 100 , 0 , 100 , 0 , 0 , 100 } ; int [ ] output = new int [ ] { 1 , 2 , 1 , 2 , 2 , 1 } ; int [ ] IDENT_0 = IDENT_1 . METHOD_1 ( input ) ; int size = METHOD_1 . length ; for ( int IDENT_2 = 0 ; IDENT_2 < size ; IDENT_2 ++ ) { "<AssertPlaceHolder>" ; } } METHOD_1 ( int [ ] ) { int size = IDENT_3 . length ; int [ ] IDENT_4 = new int [ ( IDENT_5 ) + 1 ] ; int [ ] IDENT_6 = new int [ size ] ; for ( int IDENT_2 = 0 ; IDENT_2 < size ; IDENT_2 ++ ) { IDENT_4 [ IDENT_3 [ IDENT_2 ] ] = 1 ; } int METHOD_1 = 0 ; for ( int IDENT_2 = IDENT_5 ; IDENT_2 >= 0 ; IDENT_2 OP_0 ) { METHOD_1 += IDENT_4 [ IDENT_2 ] ; IDENT_4 [ IDENT_2 ] = METHOD_1 ; } for ( int IDENT_2 = 0 ; IDENT_2 < size ; IDENT_2 ++ ) { IDENT_6 [ IDENT_2 ] = IDENT_4 [ IDENT_3 [ IDENT_2 ] ] ; } return IDENT_6 ; }
org . junit . Assert . assertThat ( METHOD_1 [ IDENT_2 ] , org . hamcrest . CoreMatchers . is ( output [ IDENT_2 ] ) )