test ( ) { int [ ] [ ] IDENT_0 = new int [ ] [ ] { new int [ ] { 1 , 2 , 3 } , new int [ ] { 4 , 5 , 6 } , new int [ ] { 7 , 8 , 9 } } ; "<AssertPlaceHolder>" ; } METHOD_0 ( int [ ] [ ] ) { java . util . List < java . lang . Integer > res = new java . util . ArrayList < java . lang . Integer > ( ) ; if ( ( IDENT_0 . length ) == 0 ) { return res ; } int IDENT_1 = 0 ; int IDENT_2 = ( IDENT_0 . length ) - 1 ; int IDENT_3 = 0 ; int IDENT_4 = ( IDENT_0 [ 0 ] . length ) - 1 ; while ( ( IDENT_1 <= IDENT_2 ) && ( IDENT_3 <= IDENT_4 ) ) { for ( int j = IDENT_3 ; j <= IDENT_4 ; j ++ ) { res . add ( IDENT_0 [ IDENT_1 ] [ j ] ) ; } IDENT_1 ++ ; for ( int j = IDENT_1 ; j <= IDENT_2 ; j ++ ) { res . add ( IDENT_0 [ j ] [ IDENT_4 ] ) ; } IDENT_4 OP_0 ; if ( IDENT_1 <= IDENT_2 ) { for ( int j = IDENT_4 ; j >= IDENT_3 ; j OP_0 ) { res . add ( IDENT_0 [ IDENT_2 ] [ j ] ) ; } } IDENT_2 OP_0 ; if ( IDENT_3 <= IDENT_4 ) { for ( int j = IDENT_2 ; j >= IDENT_1 ; j OP_0 ) { res . add ( IDENT_0 [ j ] [ IDENT_3 ] ) ; } } IDENT_3 ++ ; } return res ; }
org . junit . Assert . assertThat ( METHOD_0 ( IDENT_0 ) , org . hamcrest . Matchers . is ( com . google . common . collect . Lists . newArrayList ( 1 , 2 , 3 , 6 , 9 , 8 , 7 , 4 , 5 ) ) )