zPend--; while( true ) { switch( zPend % 2 ) { case 0: m_szptr[ wr ] = (short)RUNA; wr++; m_mtfFreq[ RUNA ]++; break; case 1: m_szptr[ wr ] = (short)RUNB; wr++; m_mtfFreq[ RUNB ]++; break; } ; if( zPend < 2 ) { break; } zPend = ( zPend - 2 ) / 2; } ; zPend = 0;
if( zPend > 0 ) { zPend--; while( true ) { switch( zPend % 2 ) { case 0: m_szptr[ wr ] = (short)RUNA; wr++; m_mtfFreq[ RUNA ]++; break; case 1: m_szptr[ wr ] = (short)RUNB; wr++; m_mtfFreq[ RUNB ]++; break; } if( zPend < 2 ) { break; } zPend = ( zPend - 2 ) / 2;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/installer/CBZip2OutputStream.java File path: /jEdit-4.2/src/installer/CBZip2OutputStream.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
zPend--;
1
if( zPend > 0 )
2
        
2
        {
3
            while( true )
3
            
4
                
4
zPend--;
5
            while( true )
5
    {
6
    
6
        
7
        {
7
                switch( zPend % 2 )
8
                switch( zPend % 2 )
8
                        {
9
                
9
        
10
{
10
                    case 0:
11
                    case 0:
11
                                m_szptr[ wr ] = (short)RUNA;
12
                        m_szptr[ wr ] = (short)RUNA;
12
                                wr++;
13
                        
13
        
14
wr++;
14
                        m_mtfFreq[ RUNA ]++;
15
                        m_mtfFreq[ RUNA ]++;
15
                                break;
16
                        
16
        
17
break;
17
                    case 1:
18
                    case 1:
18
                                m_szptr[ wr ] = (short)RUNB;
19
                        m_szptr[ wr ] = (short)RUNB;
19
                                wr++;
20
                        wr++;
20
                                m_mtfFreq[ RUNB ]++;
21
                        m_mtfFreq[ RUNB ]++;
21
                                break;
22
                        break;
22
                        }
23
                }
23
                        ;
24
                        if( zPend < 2 )
24
                if( zPend < 2 )
25
                        {
25
                
26
        
26
{
27
                    break;
27
                    break;
28
                        }
28
                
29
        
29
}
30
                zPend = ( zPend - 2 ) / 2;
30
                zPend = ( zPend - 2 ) / 2;
31
                    }
31
            
32
                    ;
33
                    zPend = 0;
34
                
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0