METHOD_0 ( ) { java . lang . String source = STRING_0 ; edu . IDENT_0 . IDENT_1 . parser . IDENT_2 rule = edu . IDENT_0 . IDENT_1 . parser . IDENT_2 . METHOD_1 ( new java . io . METHOD_2 ( source ) ) ; java . lang . String IDENT_3 = STRING_1 ; edu . IDENT_0 . IDENT_1 . format . IDENT_4 reader = new edu . IDENT_0 . IDENT_1 . format . METHOD_3 ( ) ; edu . IDENT_0 . IDENT_1 . format . IDENT_5 IDENT_6 = reader . load ( new java . io . METHOD_2 ( IDENT_3 ) ) ; edu . IDENT_0 . IDENT_1 . parser . IDENT_7 tree = IDENT_6 . METHOD_4 ( 0 ) ; int IDENT_8 = rule . METHOD_5 ( tree ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( edu . IDENT_0 . IDENT_1 . parser . IDENT_7 ) { java . lang . String IDENT_9 = ( ( java . lang . String ) ( node . IDENT_9 ) ) ; edu . IDENT_0 . IDENT_1 . parser . IDENT_2 . IDENT_10 entry = rules . get ( IDENT_9 ) ; edu . IDENT_0 . IDENT_1 . parser . IDENT_7 [ ] IDENT_11 = node . IDENT_11 ; if ( IDENT_9 . equals ( STRING_2 ) ) { for ( int i = ( IDENT_11 . length ) - 1 ; i >= 0 ; i OP_0 ) { java . lang . String IDENT_12 = ( ( java . lang . String ) ( IDENT_11 [ i ] . IDENT_9 ) ) ; if ( ( ( ( IDENT_12 . startsWith ( STRING_3 ) ) || ( IDENT_12 . equals ( STRING_4 ) ) ) || ( IDENT_12 . equals ( STRING_5 ) ) ) || ( IDENT_12 . equals ( STRING_6 ) ) ) return i + 1 ; } for ( int i = 0 ; i < ( IDENT_11 . length ) ; i ++ ) { java . lang . String IDENT_12 = ( ( java . lang . String ) ( IDENT_11 [ i ] . IDENT_9 ) ) ; if ( IDENT_12 . equals ( STRING_2 ) ) return i + 1 ; } } if ( entry == null ) { if ( ( IDENT_11 . length ) == 1 ) { return 1 ; } else { return 0 ; } } int start ; int end ; int IDENT_13 ; switch ( entry . METHOD_6 ( ) ) { case IDENT_14 : start = 0 ; end = IDENT_11 . length ; IDENT_13 = 1 ; break ; case IDENT_15 : start = ( IDENT_11 . length ) - 1 ; end = - 1 ; IDENT_13 = - 1 ; break ; default : throw new java . lang . METHOD_7 ( ) ; } for ( java . lang . String IDENT_16 : entry . METHOD_8 ( ) ) { for ( int i = start ; i != end ; i += IDENT_13 ) { edu . IDENT_0 . IDENT_1 . parser . IDENT_7 child = IDENT_11 [ i ] ; if ( IDENT_16 . equals ( child . IDENT_9 ) ) { return i + 1 ; } } } for ( int i = start ; i != end ; i += IDENT_13 ) { if ( ! ( METHOD_9 ( IDENT_11 [ i ] ) ) ) { return i + 1 ; } else if ( ! ( METHOD_10 ( IDENT_11 [ i ] ) ) ) { return i + 1 ; } } return start ; }
org . junit . Assert . assertEquals ( 2 , IDENT_8 )