File size: 5,789 Bytes
da6962b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
    int a,b,c,d=0,i,j,k,l;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`8`0`1`9`0`0`0`0`0`0`0`0`0
    char ch;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
    string A,B,C,D;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`0
    cin>>A;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
    cin>>B;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
    cin>>C;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
    a=A.size();`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
    b=B.size();`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
    c=C.size();`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
    if(a+b==c)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
        for(i=0;i<a;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
            for(j=0;j<c;j++)`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
               if(A[i]==C[j])`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`4`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`0`1
                   ch=C[j];`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`1
                   d=d+1;`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
                   for(k=j;k<c-1;k++)`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`2`0`0`0`6`0`5`5`1`1`0`0`1`0`0`0`1`0`5`0`5`0`0`0`3`1`0`4`0`0
                       C[k]=C[k+1];`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`2`0`0`0`6`0`5`4`1`1`0`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`0`0
                   c=c-1;`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
               if(ch==A[i])`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`3`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
                break;`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
        for(i=0;i<b;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
            for(j=0;j<c;j++)`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
                if(B[i]==C[j])`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`4`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`0`1
                  ch=C[j];`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`1
                  d=d+1;`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
                  for(k=j;k<c-1;k++)`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`2`0`0`0`6`0`5`5`1`1`0`0`1`0`0`0`1`0`5`0`5`0`0`0`3`1`0`4`0`0
                      C[k]=C[k+1];`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`2`0`0`0`6`0`5`4`1`1`0`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`0`0
                  c=c-1;`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
                if(ch==B[i])`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`3`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
                    break;`FunctionDecl,false;IfStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
    if(d==a+b)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
        cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
        cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
    return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0