METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = new org . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; byte [ ] IDENT_4 = IDENT_5 ; java . lang . String IDENT_6 = STRING_0 ; byte [ ] IDENT_7 = getBytes ( IDENT_6 ) ; final int IDENT_8 = 0 ; final int IDENT_9 = INT_0 ; final int expected = - 1 ; final int IDENT_10 = IDENT_3 . indexOf ( IDENT_4 , IDENT_7 , IDENT_8 , IDENT_9 ) ; "<AssertPlaceHolder>" ; } indexOf ( byte [ ] , byte [ ] , int , int ) { final int IDENT_11 = IDENT_7 . length ; if ( ( IDENT_11 == 0 ) || ( ( ( IDENT_9 - IDENT_8 ) + 1 ) < IDENT_11 ) ) { return - 1 ; } final int IDENT_12 = IDENT_4 . length ; final int IDENT_13 = IDENT_12 - IDENT_11 ; final int IDENT_14 ; if ( IDENT_9 < IDENT_13 ) { IDENT_14 = IDENT_9 ; } else { IDENT_14 = IDENT_13 ; } int IDENT_15 = - 1 ; IDENT_16 : for ( int i = IDENT_8 ; i <= IDENT_14 ; i ++ ) { for ( int j = 0 ; j < IDENT_11 ; j ++ ) { if ( ( IDENT_4 [ ( i + j ) ] ) != ( IDENT_7 [ j ] ) ) { continue IDENT_16 ; } IDENT_15 = i + j ; } if ( ( IDENT_9 < IDENT_15 ) || ( ( ( IDENT_15 - i ) + 1 ) < IDENT_11 ) ) { return - 1 ; } return i ; } return - 1 ; }
org . junit . Assert . assertEquals ( expected , IDENT_10 )