Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- test/3078136.cpp.csv +21 -0
- test/3078144.cpp.csv +23 -0
- test/3078178.cpp.csv +23 -0
- test/3078210.cpp.csv +20 -0
- test/3079575.cpp.csv +22 -0
- test/3080729.cpp.csv +11 -0
- test/3080771.cpp.csv +13 -0
- test/3081740.cpp.csv +32 -0
- test/3081741.cpp.csv +32 -0
- test/3081744.cpp.csv +32 -0
- test/3081747.cpp.csv +32 -0
- test/3081751.cpp.csv +28 -0
- test/3081885.cpp.csv +52 -0
- test/3081919.cpp.csv +63 -0
- test/3081923.cpp.csv +64 -0
- test/3081940.cpp.csv +15 -0
- test/3083403.cpp.csv +23 -0
- test/3083574.cpp.csv +18 -0
- test/3084484.cpp.csv +16 -0
- test/3085512.cpp.csv +21 -0
- test/3087218.cpp.csv +41 -0
- test/3087222.cpp.csv +39 -0
- test/3088238.cpp.csv +9 -0
- test/309012.cpp.csv +25 -0
- test/309115.cpp.csv +9 -0
- test/3091752.cpp.csv +16 -0
- test/3091759.cpp.csv +17 -0
- test/309178.cpp.csv +14 -0
- test/309222.cpp.csv +18 -0
- test/3092392.cpp.csv +12 -0
- test/3092495.cpp.csv +10 -0
- test/3092501.cpp.csv +10 -0
- test/3092516.cpp.csv +10 -0
- test/3092523.cpp.csv +11 -0
- test/309495.cpp.csv +7 -0
- test/309590.cpp.csv +16 -0
- test/3109599.cpp.csv +18 -0
- test/3110296.cpp.csv +19 -0
- test/3124957.cpp.csv +10 -0
- test/3126911.cpp.csv +14 -0
- test/3128357.cpp.csv +33 -0
- test/312846.cpp.csv +11 -0
- test/313200.cpp.csv +13 -0
- test/3132648.cpp.csv +15 -0
- test/3133115.cpp.csv +22 -0
- test/3133984.cpp.csv +12 -0
- test/3134352.cpp.csv +22 -0
- test/3135561.cpp.csv +12 -0
- test/3135894.cpp.csv +17 -0
- test/3136813.cpp.csv +14 -0
test/3078136.cpp.csv
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
if(a>b)return a;`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`1`0`0`1`0`0
|
| 3 |
+
return b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int MIN(int a, int b)`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
|
| 5 |
+
if(a<b)return a;`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`1`0`0`1`0`0
|
| 6 |
+
return b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 7 |
+
int ABS(int a)`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
|
| 8 |
+
if(a>=0)return a;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 9 |
+
a*=-1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`1`2`0`0
|
| 10 |
+
return a;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int compare(const void *a, const void *b)`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
|
| 12 |
+
int *p1=(int*)a;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`1`0`0`0`0`0`0`0`0
|
| 13 |
+
int *p2=(int*)b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`1`0`0`0`0`0`0`0`0
|
| 14 |
+
return *p1-*p2;`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`2`0`0`1`2`0`3`0`0
|
| 15 |
+
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
|
| 16 |
+
int n,i,j,c;`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`1
|
| 17 |
+
i=n/4;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`1`1`0`0`0`0`0`0`0`4`0`4`1`0`1`2`1`0`3`0`1
|
| 18 |
+
rep(j,i)printf("abcd");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`1`0`0`0`1`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 19 |
+
i=n%4;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`3`2`1`0`0`0`0`0`0`0`6`0`6`0`0`1`3`1`0`4`0`0
|
| 20 |
+
rep(j,i)printf("%c",'a'+j);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`1`0`0`0`1`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 21 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`3`1`1`0`0`0`0`0`0`0`5`0`5`0`0`1`2`1`0`3`0`0
|
test/3078144.cpp.csv
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
return ( *(int*)a - *(int*)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`2`0`2`2`0`0`1`2`0`3`0`0
|
| 3 |
+
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
|
| 4 |
+
int n;`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
|
| 5 |
+
scanf("%d", &n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 6 |
+
int array[n];`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
|
| 7 |
+
int i;`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
|
| 8 |
+
int max = 0;`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`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 9 |
+
int maxi;`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
|
| 10 |
+
for(i = 0; i < n; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 11 |
+
scanf("%d", &array[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`1`0`1`1`0
|
| 12 |
+
if(i == 0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 13 |
+
max = array[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
maxi = 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 15 |
+
if(max < array[i])`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 16 |
+
max = array[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 17 |
+
maxi = i;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 18 |
+
array[maxi] = 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`1
|
| 19 |
+
qsort(array, n, sizeof(int), compare);`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`4`0`4`0`0`1`0`0`0`0`0`1
|
| 20 |
+
for(i = 0; i < n; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 21 |
+
printf("%d ", array[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`1`0
|
| 22 |
+
printf("\n");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 23 |
+
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
|
test/3078178.cpp.csv
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
if((*((int *)p1))>(*((int *)p2)))`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`2`0`0`1`2`0`3`0`0
|
| 3 |
+
return 1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 4 |
+
if((*((int *)p1))<(*((int *)p2)))`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`2`0`0`1`2`0`3`0`0
|
| 5 |
+
return -1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0
|
| 6 |
+
if((*((int *)p1))==(*((int *)p2)))`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`2`0`0`1`2`0`3`0`0
|
| 7 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 8 |
+
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
|
| 9 |
+
int n,a[100001],index,i,max;`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`5`0`1`6`0`0`0`0`0`0`0`0`0
|
| 10 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 11 |
+
scanf("%d",&a[0]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`1`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`1`0
|
| 12 |
+
max=a[0];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 13 |
+
index=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 14 |
+
for(i=1;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 15 |
+
scanf("%d",&a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`1`0`1`1`0
|
| 16 |
+
if(a[i]>max)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 17 |
+
max=a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 18 |
+
index=i;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 19 |
+
a[index]=1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`1
|
| 20 |
+
qsort(a,n,sizeof(int),compare);`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`4`0`4`0`0`1`0`0`0`0`0`1
|
| 21 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 22 |
+
printf("%d ",a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`1`0
|
| 23 |
+
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
|
test/3078210.cpp.csv
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
return((int*)a - (int*)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`2`0`2`0`0`0`1`0`0`1`0`1
|
| 3 |
+
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
|
| 4 |
+
int n, a[100005],check=0;`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`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 5 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 6 |
+
int i;`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
|
| 7 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 8 |
+
scanf("%d",&a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`1`0`1`1`0
|
| 9 |
+
if(check==0 && a[i]!=1)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`3`2`2`0`1`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`1`0
|
| 10 |
+
check=1;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
qsort(a,n,sizeof(int),cmp);`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`4`0`4`0`0`1`0`0`0`0`0`0
|
| 12 |
+
if(check==1)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 13 |
+
printf("1 ");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 14 |
+
for(i=0;i<n-1;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`2`2`0`0`1`0`0`0`1`0`4`0`4`0`0`0`3`1`0`4`0`0
|
| 15 |
+
printf("%d ",a[i]);`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`1`0
|
| 16 |
+
for(i=0;i<n-1;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`2`2`0`0`1`0`0`0`1`0`4`0`4`0`0`0`3`1`0`4`0`0
|
| 17 |
+
printf("%d ",a[i]);`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`1`0
|
| 18 |
+
printf("2");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 19 |
+
printf("\n");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 20 |
+
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
|
test/3079575.cpp.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int *p1=(int *)p;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`1`0`0`0`0`0`0`0`0
|
| 3 |
+
int *p2=(int *)q;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`1`0`0`0`0`0`0`0`0
|
| 4 |
+
return(*p1-*p2);`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`2`0`0`1`2`0`3`0`0
|
| 5 |
+
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
|
| 6 |
+
int a[100000],t,i,max=0,sum=0,state=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`6`0`1`7`0`0`0`0`0`0`0`0`0
|
| 7 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 8 |
+
for(i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 9 |
+
scanf("%d",&a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`1`0`1`1`0
|
| 10 |
+
sum=sum+a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`1
|
| 11 |
+
if(a[max]<a[i])`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 12 |
+
max=i;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
if(sum>t)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 14 |
+
state=1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 15 |
+
if(state==0)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 16 |
+
a[max]=2;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 17 |
+
a[max]=1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 18 |
+
qsort(a,t,sizeof(int),compare);`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`4`0`4`0`0`1`0`0`0`0`0`0
|
| 19 |
+
for(i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 20 |
+
printf("%d ",a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`1`0
|
| 21 |
+
printf("\n");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 22 |
+
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
|
test/3080729.cpp.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n,m,sum;`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`3`0`1`4`0`0`0`0`0`0`0`0`1
|
| 4 |
+
while(cin>>n)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
sum=0; `FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 6 |
+
m=2; `FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 7 |
+
cout<<m; `FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
for(int i=2;i<n;++i)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
m+=i;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 10 |
+
cout<<" "<<(m%n);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`0`1`0`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`0`0
|
| 11 |
+
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
|
test/3080771.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n,m,sum;`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`3`0`1`4`0`0`0`0`0`0`0`0`1
|
| 4 |
+
while(cin>>n)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
sum=0; `FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 6 |
+
m=2; `FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 7 |
+
cout<<m; `FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
for(int i=2;i<n;++i)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
m+=i;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 10 |
+
if(m%n)`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
cout<<" "<<(m%n);`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`3`1`0`1`0`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`0`0
|
| 12 |
+
cout<<n;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 13 |
+
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
|
test/3081740.cpp.csv
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
bool getS(const box &a,const box &b)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
if(a.a<b.a) return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`1`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
else return false;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
freopen("input.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`0`4`0`0`0`0`0`0`4`4`1`9`0`0`2`0`0`0`0`0`0
|
| 7 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 8 |
+
for(int i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
scanf("%d",&n);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 10 |
+
ll sa = 0,sb = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
for(int j=0;j<2*n-1;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`3`3`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`1`0`4`0`0
|
| 12 |
+
scanf("%d%d",&a,&b);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 13 |
+
c[j].a = a; `FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
c[j].b = b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
sa+=a;sb+=b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`2`2`0`0
|
| 16 |
+
c[j].id = j;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 17 |
+
sort(c,c+n,getS);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`1`1`0`0`1`0`1
|
| 18 |
+
ll s1 = 0,s2 = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 19 |
+
for(int i = 0;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`0
|
| 20 |
+
s1+=c[i].b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 21 |
+
if(s1*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 22 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 23 |
+
for(int i=0;i<2*n-1;i+=2) printf("%d ",c[i].id+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`6`5`1`0`1`0`0`0`1`1`6`1`8`0`0`1`4`0`1`5`1`0
|
| 24 |
+
for(int i = 1;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`1
|
| 25 |
+
s2+=c[i].b;`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 26 |
+
if(s2*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 27 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 28 |
+
for(int i=1;i<2*n-1;i+=2) printf("%d ",c[i].id+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`5`6`5`1`0`1`0`0`0`1`1`6`1`8`0`0`1`4`0`1`5`1`0
|
| 29 |
+
printf("%d ",2*n-1);`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`1`3`2`1`0`0`0`0`0`0`0`2`0`2`0`0`1`2`0`0`2`0`1
|
| 30 |
+
else printf("N0\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 31 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 32 |
+
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
|
test/3081741.cpp.csv
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
bool getS(const box &a,const box &b)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
if(a.a<b.a) return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`1`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
else return false;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
freopen("input.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`0`4`0`0`0`0`0`0`4`4`1`9`0`0`2`0`0`0`0`0`0
|
| 7 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 8 |
+
for(int i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
scanf("%d",&n);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 10 |
+
ll sa = 0,sb = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
for(int j=0;j<2*n-1;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`3`3`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`1`0`4`0`0
|
| 12 |
+
scanf("%d%d",&a,&b);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 13 |
+
c[j].a = a; `FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
c[j].b = b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
sa+=a;sb+=b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`2`2`0`0
|
| 16 |
+
c[j].id = j;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 17 |
+
sort(c,c+n,getS);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`1`1`0`0`1`0`1
|
| 18 |
+
ll s1 = 0,s2 = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 19 |
+
for(int i = 0;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`0
|
| 20 |
+
s1+=c[i].b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 21 |
+
if(s1*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 22 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 23 |
+
for(int i=0;i<2*n-1;i+=2) printf("%d ",c[i].id+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`6`5`1`0`1`0`0`0`1`1`6`1`8`0`0`1`4`0`1`5`1`0
|
| 24 |
+
for(int i = 1;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`1
|
| 25 |
+
s2+=c[i].b;`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 26 |
+
if(s2*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 27 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 28 |
+
for(int i=1;i<2*n-1;i+=2) printf("%d ",c[i].id+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`5`6`5`1`0`1`0`0`0`1`1`6`1`8`0`0`1`4`0`1`5`1`0
|
| 29 |
+
printf("%d ",c[2*n-2].id);`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`3`2`1`0`0`0`0`0`0`0`3`0`3`0`0`1`2`0`0`2`1`1
|
| 30 |
+
else printf("N0\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 31 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 32 |
+
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
|
test/3081744.cpp.csv
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
bool getS(const box &a,const box &b)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
if(a.a<b.a) return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`1`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
else return false;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
freopen("input.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`0`4`0`0`0`0`0`0`4`4`1`9`0`0`2`0`0`0`0`0`0
|
| 7 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 8 |
+
for(int i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
scanf("%d",&n);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 10 |
+
ll sa = 0,sb = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
for(int j=0;j<2*n-1;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`3`3`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`1`0`4`0`0
|
| 12 |
+
scanf("%d%d",&a,&b);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 13 |
+
c[j].a = a; `FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
c[j].b = b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
sa+=a;sb+=b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`2`2`0`0
|
| 16 |
+
c[j].id = j;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 17 |
+
sort(c,c+n,getS);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`1`1`0`0`1`0`1
|
| 18 |
+
ll s1 = 0,s2 = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 19 |
+
for(int i = 0;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`0
|
| 20 |
+
s1+=c[i].b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 21 |
+
if(s1*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 22 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 23 |
+
for(int i=0;i<2*n-1;i+=2) printf("%d ",i+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`6`5`1`0`1`0`0`0`1`1`5`1`7`0`0`1`4`0`1`5`0`0
|
| 24 |
+
for(int i = 1;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`1
|
| 25 |
+
s2+=c[i].b;`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 26 |
+
if(s2*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 27 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 28 |
+
for(int i=1;i<2*n-1;i+=2) printf("%d ",i+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`4`6`5`1`0`1`0`0`0`1`1`5`1`7`0`0`1`4`0`1`5`0`0
|
| 29 |
+
printf("%d ",2*n-1);`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`1`3`2`1`0`0`0`0`0`0`0`2`0`2`0`0`1`2`0`0`2`0`0
|
| 30 |
+
else printf("N0\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 31 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 32 |
+
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
|
test/3081747.cpp.csv
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
bool getS(const box &a,const box &b)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
if(a.a<b.a) return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`1`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
else return false;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
freopen("input.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`0`4`0`0`0`0`0`0`4`4`1`9`0`0`2`0`0`0`0`0`0
|
| 7 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 8 |
+
for(int i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
scanf("%d",&n);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 10 |
+
ll sa = 0,sb = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
for(int j=0;j<2*n-1;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`3`3`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`1`0`4`0`0
|
| 12 |
+
scanf("%d%d",&a,&b);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 13 |
+
c[j].a = a; `FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
c[j].b = b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
sa+=a;sb+=b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`2`2`0`0
|
| 16 |
+
c[j].id = j;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 17 |
+
sort(c,c+2*n-1,getS);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`1`3`0`0`3`0`0
|
| 18 |
+
ll s1 = 0,s2 = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 19 |
+
for(int i = 0;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`0
|
| 20 |
+
s1+=c[i].b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 21 |
+
if(s1*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 22 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 23 |
+
for(int i=0;i<2*n-1;i+=2) printf("%d ",c[i].id+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`6`5`1`0`1`0`0`0`1`1`6`1`8`0`0`1`4`0`1`5`1`0
|
| 24 |
+
for(int i = 1;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`1
|
| 25 |
+
s2+=c[i].b;`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 26 |
+
if(s2*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 27 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 28 |
+
for(int i=1;i<2*n-1;i+=2) printf("%d ",c[i].id+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`5`6`5`1`0`1`0`0`0`1`1`6`1`8`0`0`1`4`0`1`5`1`0
|
| 29 |
+
printf("%d ",c[2*n-2].id);`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`3`2`1`0`0`0`0`0`0`0`3`0`3`0`0`1`2`0`0`2`1`1
|
| 30 |
+
else printf("N0\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 31 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 32 |
+
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
|
test/3081751.cpp.csv
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
bool getS(const box &a,const box &b)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
if(a.a<b.a) return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`1`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
else return false;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
freopen("input.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`0`4`0`0`0`0`0`0`4`4`1`9`0`0`2`0`0`0`0`0`0
|
| 7 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 8 |
+
for(int i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
scanf("%d",&n);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 10 |
+
ll sa = 0,sb = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
for(int j=0;j<2*n-1;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`3`3`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`1`0`4`0`0
|
| 12 |
+
scanf("%d%d",&a,&b);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 13 |
+
c[j].a = a; `FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 14 |
+
c[j].b = b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
sa+=a;sb+=b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`2`2`0`0
|
| 16 |
+
c[j].id = j;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 17 |
+
sort(c,c+2*n-1,getS);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`1`3`0`0`3`0`0
|
| 18 |
+
ll s1 = 0,s2 = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 19 |
+
for(int i = 0;i<2*n-1;i+=2)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`4`4`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`0`1`4`0`0
|
| 20 |
+
s1+=c[i].b;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 21 |
+
if(s1*2>=sb)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 22 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 23 |
+
for(int i=0;i<2*n-1;i+=2) printf("%d ",c[i].id+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`6`5`1`0`1`0`0`0`1`1`6`1`8`0`0`1`4`0`1`5`1`0
|
| 24 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 25 |
+
for(int i=1;i<2*n-1;i+=2) printf("%d ",c[i].id+1);`FunctionDecl,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`6`5`1`0`1`0`0`0`1`1`6`1`8`0`0`1`4`0`1`5`1`0
|
| 26 |
+
printf("%d ",c[2*n-2].id); `FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`3`2`1`0`0`0`0`0`0`0`3`0`3`0`0`1`2`0`0`2`1`1
|
| 27 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 28 |
+
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
|
test/3081885.cpp.csv
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
double dist(double x1,double y1,double x2,double y2)`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`1
|
| 3 |
+
double temp = (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`0`0`0`0`0`0`0`0`0`1`8`1`10`0`0`0`7`0`0`7`0`0
|
| 4 |
+
return temp;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 5 |
+
double dim(double x1,double y1,double x2,double y2,double x3,double y3)`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
|
| 6 |
+
return (x2-x1)*(y3-y1)-(x3-x1)*(y2-y1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`7`0`0`7`0`0
|
| 7 |
+
bool calc(int a,int b,int c)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`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
|
| 8 |
+
double xm = x[b]+2*(x[a]-x[b]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`6`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`3`0`0`3`3`0
|
| 9 |
+
double ym = y[b]+2*(y[a]-y[b]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`6`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`3`0`0`3`3`0
|
| 10 |
+
double x1 = (xm+x[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`1`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
|
| 11 |
+
double y1 = (ym+y[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`1`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
|
| 12 |
+
double x2 = (x[c]+x[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`1`0`0`0`0`0`0`0`0`1`4`1`6`0`0`0`2`0`0`2`2`0
|
| 13 |
+
double y2 = (y[c]+y[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`1`0`0`0`0`0`0`0`0`1`4`1`6`0`0`0`2`0`0`2`2`0
|
| 14 |
+
double k1 = (-1)*(xm-x[a])/(ym-y[a]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`6`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`4`1`0`5`2`1
|
| 15 |
+
double b1 = y1-x1*k1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`0`0
|
| 16 |
+
double k2 = (-1)*(x[c]-x[a])/(y[c]-y[a]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`8`1`1`0`0`0`0`0`0`0`1`8`1`10`0`0`0`4`1`0`5`4`0
|
| 17 |
+
double b2 = y2-x2*k2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`0`0
|
| 18 |
+
xb = (b1-b2)/(k2-k1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`0`0
|
| 19 |
+
yb = k1*xb+b1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 20 |
+
xa = xb+2*(x[a]-xb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`1
|
| 21 |
+
ya = yb+2*(y[a]-yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 22 |
+
xd = xa+2*(x[b]-xa);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 23 |
+
yd = ya+2*(y[b]-ya);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 24 |
+
xc = xb+2*(x[c]-xb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 25 |
+
yc = yb+2*(y[c]-yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 26 |
+
double a1 = dist(xa,ya,xb,yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 27 |
+
double a2 = dist(xb,yb,xc,yc);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 28 |
+
double a3 = dist(xa,ya,xd,yd);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 29 |
+
if(abs(a1-a3)<EPS && abs(a1-a2)<EPS && abs(a2-a3)<EPS)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`9`0`0`0`1`0`0`0`0`0`0`12`0`12`0`0`3`8`0`0`8`0`0
|
| 30 |
+
double d1 = dim(xa,ya,xb,yb,xc,yc);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 31 |
+
double d2 = dim(xb,yb,xc,yc,xd,yd);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 32 |
+
double d3 = dim(xc,yc,xd,yd,xa,ya);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 33 |
+
if(abs(d1)<EPS || abs(d2)<EPS || abs(d3)<EPS) return false; `FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`12`6`1`0`0`1`0`0`0`0`0`0`9`0`9`0`0`3`5`0`0`5`0`1
|
| 34 |
+
if((d1*d2<0 || d1*d3<0 || d2*d3<0)) return false;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`13`6`4`3`0`1`0`0`0`0`0`0`6`0`6`0`0`0`8`0`0`8`0`0
|
| 35 |
+
return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 36 |
+
else return false;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 37 |
+
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
|
| 38 |
+
freopen("input.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`0`4`0`0`0`0`0`0`1`4`1`6`0`0`2`0`0`0`0`0`0
|
| 39 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 40 |
+
for(int i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 41 |
+
cin>>x[1]>>y[1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 42 |
+
cin>>x[2]>>y[2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 43 |
+
cin>>x[3]>>y[3];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 44 |
+
if(calc(1,2,3) || calc(2,3,1) || calc(3,2,1))`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`0`9`9`0`1`0`0`0`0`0`0`3`0`3`0`3`3`2`0`0`2`0`1
|
| 45 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 46 |
+
printf("%.9lf %.9lf ",xa,ya);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 47 |
+
printf("%.9lf %.9lf ",xb,yb);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 48 |
+
printf("%.9lf %.9lf ",xc,yc);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 49 |
+
printf("%.9lf %.9lf ",xd,yd);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 50 |
+
else printf("NO\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 51 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 52 |
+
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
|
test/3081919.cpp.csv
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
double dist(double x1,double y1,double x2,double y2)`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
|
| 3 |
+
double temp = (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`0`0`0`0`0`0`0`0`0`1`8`1`10`0`0`0`7`0`0`7`0`0
|
| 4 |
+
return temp;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 5 |
+
double dim(double x1,double y1,double x2,double y2,double x3,double y3)`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
|
| 6 |
+
return (x2-x1)*(y3-y1)-(x3-x1)*(y2-y1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`7`0`0`7`0`0
|
| 7 |
+
bool calc(int a,int b,int c)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`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
|
| 8 |
+
double xm = x[b]+2*(x[a]-x[b]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`6`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`3`0`0`3`3`0
|
| 9 |
+
double ym = y[b]+2*(y[a]-y[b]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`6`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`3`0`0`3`3`0
|
| 10 |
+
double x1 = (xm+x[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`1`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
|
| 11 |
+
double y1 = (ym+y[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`1`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
|
| 12 |
+
double x2 = (x[c]+x[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`1`0`0`0`0`0`0`0`0`1`4`1`6`0`0`0`2`0`0`2`2`0
|
| 13 |
+
double y2 = (y[c]+y[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`1`0`0`0`0`0`0`0`0`1`4`1`6`0`0`0`2`0`0`2`2`0
|
| 14 |
+
if(abs(ym-y[a])>EPS)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`4`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`1`2`0`0`2`1`0
|
| 15 |
+
k1 = (-1)*(xm-x[a])/(ym-y[a]);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`7`1`1`0`0`0`0`0`0`0`0`7`0`7`0`0`0`5`1`0`6`2`0
|
| 16 |
+
b1 = y1-x1*k1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 17 |
+
if(abs(y[c]-y[a])>EPS)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`5`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`1`2`0`0`2`2`0
|
| 18 |
+
k2 = (-1)*(x[c]-x[a])/(y[c]-y[a]);`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`9`1`1`0`0`0`0`0`0`0`0`9`0`9`0`0`0`5`1`0`6`4`0
|
| 19 |
+
b2 = y2-x2*k2;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 20 |
+
if(abs(k2-k1)<EPS) return false;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`5`3`1`0`0`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`0
|
| 21 |
+
xb = (b1-b2)/(k2-k1);`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`5`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`0`0
|
| 22 |
+
yb = k1*xb+b1;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 23 |
+
xb = x2;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 24 |
+
yb = k1*x2+b1;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 25 |
+
if(abs(y[c]-y[a])>EPS) return false;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`4`5`1`0`0`1`0`0`0`0`0`0`6`0`6`0`0`1`2`0`0`2`2`0
|
| 26 |
+
k2 = (-1)*(x[c]-x[a])/(y[c]-y[a]);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`9`1`1`0`0`0`0`0`0`0`0`9`0`9`0`0`0`5`1`0`6`4`0
|
| 27 |
+
b2 = y2-x2*k2;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 28 |
+
xb = x1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 29 |
+
yb =k2*xb+b2; `FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 30 |
+
xa = xb+2*(x[a]-xb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 31 |
+
ya = yb+2*(y[a]-yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 32 |
+
xd = xa+2*(x[b]-xa);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 33 |
+
yd = ya+2*(y[b]-ya);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 34 |
+
xc = xb+2*(x[c]-xb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 35 |
+
yc = yb+2*(y[c]-yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 36 |
+
double a1 = dist(xa,ya,xb,yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 37 |
+
double a2 = dist(xb,yb,xc,yc);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 38 |
+
double a3 = dist(xa,ya,xd,yd);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 39 |
+
if(abs(a1-a3)<EPS && abs(a1-a2)<EPS && abs(a2-a3)<EPS)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`9`0`0`0`1`0`0`0`0`0`0`12`0`12`0`0`3`8`0`0`8`0`0
|
| 40 |
+
double d1 = dim(xa,ya,xb,yb,xc,yc);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 41 |
+
double d2 = dim(xb,yb,xc,yc,xd,yd);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 42 |
+
double d3 = dim(xc,yc,xd,yd,xa,ya);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 43 |
+
if(abs(d1)<EPS || abs(d2)<EPS || abs(d3)<EPS) return false; `FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`12`6`1`0`0`1`0`0`0`0`0`0`9`0`9`0`0`3`5`0`0`5`0`1
|
| 44 |
+
if((d1*d2<0 || d1*d3<0 || d2*d3<0)) return false;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`13`6`4`3`0`1`0`0`0`0`0`0`6`0`6`0`0`0`8`0`0`8`0`0
|
| 45 |
+
return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 46 |
+
else return false;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 47 |
+
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
|
| 48 |
+
freopen("input.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`0`4`0`0`0`0`0`0`1`4`1`6`0`0`2`0`0`0`0`0`0
|
| 49 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 50 |
+
for(int i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 51 |
+
cin>>x[1]>>y[1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 52 |
+
cin>>x[2]>>y[2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 53 |
+
cin>>x[3]>>y[3];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 54 |
+
xa = ya = xb = yb = xc = yc = xd = yd = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`1`1`0`0`0`0`0`0`0`0`8`0`8`0`0`0`8`0`0`8`0`0
|
| 55 |
+
if(calc(1,2,3) || calc(2,3,1) || calc(3,2,1))`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`0`9`9`0`1`0`0`0`0`0`0`3`0`3`0`3`3`2`0`0`2`0`1
|
| 56 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 57 |
+
printf("%.9lf %.9lf ",xa,ya);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 58 |
+
printf("%.9lf %.9lf ",xb,yb);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 59 |
+
printf("%.9lf %.9lf ",xc,yc);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 60 |
+
printf("%.9lf %.9lf ",xd,yd);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 61 |
+
else printf("NO\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`12`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 62 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 63 |
+
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
|
test/3081923.cpp.csv
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
double dist(double x1,double y1,double x2,double y2)`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
|
| 3 |
+
double temp = (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`0`0`0`0`0`0`0`0`0`1`8`1`10`0`0`0`7`0`0`7`0`0
|
| 4 |
+
return temp;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 5 |
+
double dim(double x1,double y1,double x2,double y2,double x3,double y3)`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
|
| 6 |
+
return (x2-x1)*(y3-y1)-(x3-x1)*(y2-y1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`7`0`0`7`0`0
|
| 7 |
+
bool calc(int a,int b,int c)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`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
|
| 8 |
+
double xm = x[b]+2*(x[a]-x[b]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`6`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`3`0`0`3`3`0
|
| 9 |
+
double ym = y[b]+2*(y[a]-y[b]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`6`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`3`0`0`3`3`0
|
| 10 |
+
double x1 = (xm+x[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`1`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
|
| 11 |
+
double y1 = (ym+y[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`1`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
|
| 12 |
+
double x2 = (x[c]+x[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`1`0`0`0`0`0`0`0`0`1`4`1`6`0`0`0`2`0`0`2`2`0
|
| 13 |
+
double y2 = (y[c]+y[a])*0.5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`1`0`0`0`0`0`0`0`0`1`4`1`6`0`0`0`2`0`0`2`2`0
|
| 14 |
+
if(abs(ym-y[a])>EPS)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`4`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`1`2`0`0`2`1`0
|
| 15 |
+
k1 = (-1)*(xm-x[a])/(ym-y[a]);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`7`1`1`0`0`0`0`0`0`0`0`7`0`7`0`0`0`5`1`0`6`2`0
|
| 16 |
+
b1 = y1-x1*k1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 17 |
+
if(abs(y[c]-y[a])>EPS)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`5`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`1`2`0`0`2`2`0
|
| 18 |
+
k2 = (-1)*(x[c]-x[a])/(y[c]-y[a]);`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`9`1`1`0`0`0`0`0`0`0`0`9`0`9`0`0`0`5`1`0`6`4`0
|
| 19 |
+
b2 = y2-x2*k2;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 20 |
+
if(abs(k2-k1)<EPS) return false;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`5`3`1`0`0`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`0
|
| 21 |
+
xb = (b1-b2)/(k2-k1);`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`5`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`0`0
|
| 22 |
+
yb = k1*xb+b1;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 23 |
+
xb = x2;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 24 |
+
yb = k1*x2+b1;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 25 |
+
if(abs(y[c]-y[a])>EPS) return false;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`4`5`1`0`0`1`0`0`0`0`0`0`6`0`6`0`0`1`2`0`0`2`2`0
|
| 26 |
+
k2 = (-1)*(x[c]-x[a])/(y[c]-y[a]);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`9`1`1`0`0`0`0`0`0`0`0`9`0`9`0`0`0`5`1`0`6`4`0
|
| 27 |
+
b2 = y2-x2*k2;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 28 |
+
xb = x1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 29 |
+
yb =k2*xb+b2; `FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 30 |
+
xa = xb+2*(x[a]-xb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 31 |
+
ya = yb+2*(y[a]-yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 32 |
+
xd = xa+2*(x[b]-xa);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 33 |
+
yd = ya+2*(y[b]-ya);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 34 |
+
xc = xb+2*(x[c]-xb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 35 |
+
yc = yb+2*(y[c]-yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`5`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
|
| 36 |
+
double a1 = dist(xa,ya,xb,yb);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 37 |
+
double a2 = dist(xb,yb,xc,yc);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 38 |
+
double a3 = dist(xa,ya,xd,yd);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`1`1`0`0`0`0`0`0
|
| 39 |
+
if(abs(a1-a3)<EPS && abs(a1-a2)<EPS && abs(a2-a3)<EPS)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`9`0`0`0`1`0`0`0`0`0`0`12`0`12`0`0`3`8`0`0`8`0`0
|
| 40 |
+
double d1 = dim(xa,ya,xb,yb,xc,yc);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 41 |
+
double d2 = dim(xb,yb,xc,yc,xd,yd);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 42 |
+
double d3 = dim(xc,yc,xd,yd,xa,ya);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`6`0`0`0`0`0`0`0`0`0`1`7`1`9`0`1`1`0`0`0`0`0`0
|
| 43 |
+
if(abs(d1)<EPS || abs(d2)<EPS || abs(d3)<EPS) return false; `FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`12`6`1`0`0`1`0`0`0`0`0`0`9`0`9`0`0`3`5`0`0`5`0`1
|
| 44 |
+
if((d1*d2<0 || d1*d3<0 || d2*d3<0)) return false;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`13`6`4`3`0`1`0`0`0`0`0`0`6`0`6`0`0`0`8`0`0`8`0`0
|
| 45 |
+
return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 46 |
+
else return false;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`6`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 47 |
+
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
|
| 48 |
+
freopen("input.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`4`0`4`0`0`0`0`0`0`1`4`1`6`0`0`2`0`0`0`0`0`0
|
| 49 |
+
scanf("%d",&t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 50 |
+
for(int i=0;i<t;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 51 |
+
cin>>x[1]>>y[1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 52 |
+
cin>>x[2]>>y[2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 53 |
+
cin>>x[3]>>y[3];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 54 |
+
xa = ya = xb = yb = xc = yc = xd = yd = 0;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`1`1`0`0`0`0`0`0`0`0`8`0`8`0`0`0`8`0`0`8`0`0
|
| 55 |
+
if(calc(1,2,3) || calc(2,3,1) || calc(3,2,1)||`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`14`0`9`9`0`1`0`0`0`0`0`0`3`0`3`0`3`3`4`0`0`4`0`0
|
| 56 |
+
calc(1,3,2) || calc(2,1,3))`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`14`0`6`6`0`0`0`0`0`0`0`0`2`0`2`0`2`2`0`0`0`0`0`1
|
| 57 |
+
printf("YES\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`14`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 58 |
+
printf("%.9lf %.9lf ",xa,ya);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`14`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 59 |
+
printf("%.9lf %.9lf ",xb,yb);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`14`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 60 |
+
printf("%.9lf %.9lf ",xc,yc);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`14`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 61 |
+
printf("%.9lf %.9lf ",xd,yd);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`14`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 62 |
+
else printf("NO\n");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`14`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 63 |
+
printf("\n");`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 64 |
+
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
|
test/3081940.cpp.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
part e[55] ;`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
|
| 4 |
+
int n , i , b[100] , max ;`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
|
| 5 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 6 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 7 |
+
scanf("%s%d%d%d%d%d%d%d",e[i].s ,& e[i].plus,& e[i].minus,& e[i].a ,& e[i].b ,& e[i].c,& e[i].d,& e[i].e) ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`16`1`0`1`0`0`0`0`0`0`0`17`0`17`7`0`1`0`7`0`7`8`0
|
| 8 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 9 |
+
b[i] = 0 ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 10 |
+
b[i] = e[i].plus - e[i].minus + e[i].a + e[i].b + e[i].c + e[i].d + e[i].e ;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`16`0`0`0`0`0`0`0`0`0`0`16`0`16`0`0`0`7`0`0`7`8`1
|
| 11 |
+
max = 0 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 12 |
+
for(i=1;i<n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 13 |
+
if(b[i]>=b[max])`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 14 |
+
max = i ;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 15 |
+
printf("%s\n",e[max].s);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`1`0
|
test/3083403.cpp.csv
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int i;`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`1
|
| 3 |
+
int up=0,low=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
char str[100];`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
|
| 5 |
+
scanf(" %s",str);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 6 |
+
for(i=0;i<strlen(str);i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`5`0`5`0`0`1`2`1`0`3`0`0
|
| 7 |
+
if(str[i]>='a' && str[i]<='z')`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`4`2`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`2`0
|
| 8 |
+
low++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 9 |
+
up++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 10 |
+
if(up>low)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
for(i=0;i<strlen(str);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`5`0`5`0`0`1`2`1`0`3`0`0
|
| 12 |
+
if(str[i]>='a' && str[i]<='z')`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`5`4`2`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`2`0
|
| 13 |
+
str[i]-='a'-'A';`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`5`2`2`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`1`0
|
| 14 |
+
else if(low>up)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 15 |
+
for(i=0;i<strlen(str);i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`4`1`1`0`0`1`0`0`0`1`0`5`0`5`0`0`1`2`1`0`3`0`0
|
| 16 |
+
if(str[i]>='A' && str[i]<='Z')`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`6`4`2`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`2`0
|
| 17 |
+
str[i]+='a'-'A';`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`6`2`2`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`1`0
|
| 18 |
+
else if(low==up)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 19 |
+
for(i=0;i<strlen(str);i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`4`1`1`0`0`1`0`0`0`1`0`5`0`5`0`0`1`2`1`0`3`0`0
|
| 20 |
+
if(str[i]>='A' && str[i]<='Z')`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`4`0`0`0`6`0`7`4`2`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`2`0
|
| 21 |
+
str[i]+='a'-'A';`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`4`0`0`0`6`0`7`2`2`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`1`0
|
| 22 |
+
printf("%s",str);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 23 |
+
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
|
test/3083574.cpp.csv
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
freopen("1.txt","r",stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`0`2`0`0`0`0`0`0`1`2`1`4`0`0`1`0`0`0`0`0`0
|
| 4 |
+
map<string,int>::iterator it;`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
|
| 5 |
+
string s;`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
|
| 6 |
+
cin>>s;`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
|
| 7 |
+
int mxLen=-OO;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`1`0`1`0`0
|
| 8 |
+
for(int i=0;i<(int)s.size();++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
string temp="";`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`1`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for(int j=i;j<(int)s.size();++j)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`0`0`0`0`1`0`0`0`1`1`4`1`6`0`0`0`1`1`0`2`0`0
|
| 11 |
+
temp+=s[i];`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`1
|
| 12 |
+
it=m.find(temp);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 13 |
+
if(it==m.end())`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`6`2`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 14 |
+
m[temp]=1;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`6`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
|
| 15 |
+
(it->second)++;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`6`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
|
| 16 |
+
mxLen=max(mxLen,(int)temp.size());`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`6`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
|
| 17 |
+
cout<<max(0,mxLen);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`0`0`0`0
|
| 18 |
+
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
|
test/3084484.cpp.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int compare(double d1, double d2) {`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
|
| 3 |
+
if (fabs(d1 - d2) < 1e-9)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`1`2`0`0`2`0`0
|
| 4 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
if (d1 < d2)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 6 |
+
return -1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0
|
| 7 |
+
return 1;`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`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 8 |
+
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
|
| 9 |
+
string s;`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
|
| 10 |
+
cin >> s;`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
|
| 11 |
+
string t = s;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`1
|
| 12 |
+
reverse(all(t));`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`1`0`0`0`0`0`0
|
| 13 |
+
if (t == s)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 14 |
+
cout << (t.size() + 1) / 2 << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`0`0
|
| 15 |
+
cout << 0 << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 16 |
+
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
|
test/3085512.cpp.csv
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 4 |
+
for(int i=1;i<=n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 5 |
+
cin>>S[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 6 |
+
cin>>s;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if(s=="captain") `FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`1`0`1`1`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
a[i]=5;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 9 |
+
else if(s=="man")`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`1`1`0`1`1`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
a[i]=4;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 11 |
+
else if(s=="woman" || s=="child" )`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`14`2`2`0`2`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
|
| 12 |
+
a[i]=3;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`14`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 13 |
+
a[i]=2;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`14`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 14 |
+
for(int i=1;i<=n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 15 |
+
for(int j=i+1;j<=n;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`1`4`1`6`0`0`0`2`1`0`3`0`0
|
| 16 |
+
if( a[i] > a[j] ) `FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 17 |
+
swap(a[i],a[j]);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`1`0`0`0`0`2`0
|
| 18 |
+
swap(S[i],S[j]);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`1`0`0`0`0`2`0
|
| 19 |
+
for(int i=1;i<=n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 20 |
+
cout<<S[i]<<endl;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`1`0
|
| 21 |
+
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
|
test/3087218.cpp.csv
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
void error2(const string &s,const int &t){`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`1
|
| 3 |
+
cerr<<endl<<" "<<s<<" = "<<t<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`0`2`0`0`0`0`0`0`0`11`0`11`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int c(int n,int k){`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 5 |
+
int ans=0;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
if(cnk[n][k]!=0)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`2`0
|
| 7 |
+
return cnk[n][k];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`2`0
|
| 8 |
+
if(k<0)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 9 |
+
return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 10 |
+
if(k==0)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
return 1;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 12 |
+
if(k==1)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 13 |
+
return n;/*`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 14 |
+
if(k>n)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 15 |
+
return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 16 |
+
if(k==n)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 17 |
+
return 1;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 18 |
+
ans=c(n-1,k-1)+c(n-1,k);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`5`3`3`0`0`0`0`0`0`0`0`7`0`7`0`2`2`5`0`0`5`0`0
|
| 19 |
+
cnk[n][k]=ans;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 20 |
+
return ans;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 21 |
+
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
|
| 22 |
+
ios::sync_with_stdio(false);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`1
|
| 23 |
+
int n,s=0,p=0,a=0,m,k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`6`0`1`7`0`0`0`0`0`0`0`0`1
|
| 24 |
+
cin>>n>>m>>k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 25 |
+
FOR(i,0,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`1
|
| 26 |
+
cin>>a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`1`0`1`0`1
|
| 27 |
+
if(i+1 == k){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 28 |
+
p-=--a;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`1`2`0`0
|
| 29 |
+
s+=a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 30 |
+
p+=a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 31 |
+
double q=c(s,n-1),pp=c(p,n-1),y=pp/q;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`2`2`0`0`0`0`0`0`0`3`8`1`12`0`2`2`3`0`0`3`0`0
|
| 32 |
+
cout<<fixed<<setprecision(11);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`1`0`0`0`0`0`0
|
| 33 |
+
if(!q)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 34 |
+
y=1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 35 |
+
y=1-y;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 36 |
+
if(!y)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`1
|
| 37 |
+
cout<<-1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`1`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
|
| 38 |
+
cout<<y;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 39 |
+
cout<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 40 |
+
system("pause");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`1
|
| 41 |
+
st;`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`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/3087222.cpp.csv
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
void error2(const string &s,const int &t){`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`1
|
| 3 |
+
cerr<<endl<<" "<<s<<" = "<<t<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`0`2`0`0`0`0`0`0`0`11`0`11`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int c(int n,int k){`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 5 |
+
int ans=0;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
if(cnk[n][k]!=0)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`2`0
|
| 7 |
+
return cnk[n][k];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`2`0
|
| 8 |
+
if(k<0)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 9 |
+
return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 10 |
+
if(k==0)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
return 1;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 12 |
+
if(k==1)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 13 |
+
return n;/*`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 14 |
+
if(k>n)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 15 |
+
return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 16 |
+
if(k==n)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 17 |
+
return 1;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 18 |
+
ans=c(n-1,k-1)+c(n-1,k);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`5`3`3`0`0`0`0`0`0`0`0`7`0`7`0`2`2`5`0`0`5`0`0
|
| 19 |
+
cnk[n][k]=ans;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 20 |
+
return ans;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 21 |
+
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
|
| 22 |
+
ios::sync_with_stdio(false);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`1
|
| 23 |
+
int n,s=0,p=0,a=0,m,k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`6`0`1`7`0`0`0`0`0`0`0`0`1
|
| 24 |
+
cin>>n>>m>>k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 25 |
+
FOR(i,0,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`1
|
| 26 |
+
cin>>a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`1`0`1`0`1
|
| 27 |
+
if(i+1 == k){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 28 |
+
p-=--a;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`1`2`0`0
|
| 29 |
+
s+=a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 30 |
+
p+=a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 31 |
+
double q=c(s,n-1),pp=c(p,n-1),y=pp/q;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`2`2`0`0`0`0`0`0`0`3`8`1`12`0`2`2`3`0`0`3`0`0
|
| 32 |
+
cout<<fixed<<setprecision(11);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`1`0`0`0`0`0`0
|
| 33 |
+
y=1-y;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 34 |
+
if(s<n-1)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 35 |
+
cout<<-1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`1
|
| 36 |
+
cout<<y;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 37 |
+
cout<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 38 |
+
system("pause");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`1
|
| 39 |
+
st;`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`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/3088238.cpp.csv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
scanf("%d", &t);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 4 |
+
while (t--)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`1`0`0`1`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 5 |
+
scanf("%d %d", &a, &b);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 6 |
+
p = a*(b+a*0.125);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`4`1`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`1
|
| 7 |
+
if (4*b < a)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 8 |
+
p -= (a-4*b)*(a*0.25-b)*0.5;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`5`3`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`6`0`1`7`0`0
|
| 9 |
+
printf("%.6f\n", p/(a*2*b));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`2`1`1`0`0`0`0`0`0`0`3`0`3`0`0`1`3`0`0`3`0`0
|
test/309012.cpp.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
cin >> ai >> ar;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> bi >> br;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
if(ai>br){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 6 |
+
if(ai-br==1){`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 7 |
+
cout << "YES";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
return 0;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 9 |
+
if(ai<br){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 10 |
+
if((br/2)<=ai){`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 11 |
+
cout << "YES";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
return 0;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 13 |
+
if(ai==br || bi==ar){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 14 |
+
cout << "YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 15 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 16 |
+
if(ar>bi){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 17 |
+
if(ar-bi==1){`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 18 |
+
cout << "YES";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
if(ar<bi){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 21 |
+
if((bi/2)<=ar){`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 22 |
+
cout << "YES";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 23 |
+
return 0;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 24 |
+
cout << "NO";`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 25 |
+
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
|
test/309115.cpp.csv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int func(int g, int b) {`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
|
| 3 |
+
return (g-1 <= b && b <= 2*(g+1));`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`3`3`0`0`0`0`0`0`0`0`4`0`4`0`0`0`6`0`0`6`0`0
|
| 4 |
+
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
|
| 5 |
+
int al, ar, bl, br;`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
|
| 6 |
+
cin >> al >> ar >> bl >> br;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if( func(al,bl) || func(al,br) || func(ar,bl) || func(ar,br) ) cout << "YES" << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`9`1`0`1`1`0`0`0`0`0`0`16`0`16`0`4`4`3`0`0`3`0`1
|
| 8 |
+
else cout << "NO" << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 9 |
+
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
|
test/3091752.cpp.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n,m,s=0,p=0,t=0,k,ans=1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`4`4`0`0`0`0`0`0`0`7`0`1`8`0`0`0`0`0`0`0`0`1
|
| 4 |
+
double y=1,u=1,d=1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 5 |
+
cin>>n>>m>>k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`1
|
| 6 |
+
for(int i=0;i<m;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 7 |
+
cin>>t;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
if(k==i+1) p=--t;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`1`0`4`0`1
|
| 9 |
+
s+=t;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 10 |
+
if(s<n-1) {cout<<-1;return 0;}`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`3`3`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`1`0`3`0`1
|
| 11 |
+
while(p--){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`1`0`0`1`0`1`0`1`0`0`0`0`1`0`1`0`1
|
| 12 |
+
if(s>0) y/=s;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`1`2`0`0
|
| 13 |
+
if(s-n+1>0) y*=(s--)-n+1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`5`3`3`0`1`0`0`0`0`0`0`5`0`5`0`0`0`5`1`1`7`0`1
|
| 14 |
+
if(p<n-1) y=0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`2`2`0`1`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`1
|
| 15 |
+
cout<<fixed<<setprecision(12)<<1-y;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`2`2`0`0`0`0`0`0`0`0`7`0`7`0`0`1`1`0`0`1`0`0
|
| 16 |
+
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
|
test/3091759.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
int n,m,s=0,p=0,t=0,k,ans=1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`4`4`0`0`0`0`0`0`0`7`0`1`8`0`0`0`0`0`0`0`0`1
|
| 4 |
+
double y=1,u=1,d=1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 5 |
+
cin>>n>>m>>k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`1
|
| 6 |
+
for(int i=0;i<m;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 7 |
+
cin>>t;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
if(k==i+1) p=--t;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`1`0`4`0`1
|
| 9 |
+
s+=t;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 10 |
+
if(s-p<n-1){cout<<0;return 0;}`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`4`3`3`0`1`0`0`0`0`0`0`5`0`5`0`0`0`3`0`0`3`0`1
|
| 11 |
+
if(s<n-1) {cout<<-1;return 0;}`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`3`3`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 12 |
+
while(p--){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`1`0`0`1`0`1`0`1`0`0`0`0`1`0`1`0`1
|
| 13 |
+
cerr<<"s = "<<s<<endl;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`0`1
|
| 14 |
+
if(s>0) y/=s;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`1`2`0`0
|
| 15 |
+
if(s-n+1>0) y*=(s--)-n+1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`5`3`3`0`1`0`0`0`0`0`0`5`0`5`0`0`0`5`1`1`7`0`1
|
| 16 |
+
cout<<fixed<<setprecision(12)<<1-y;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`2`2`0`0`0`0`0`0`0`0`7`0`7`0`0`1`1`0`0`1`0`0
|
| 17 |
+
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
|
test/309178.cpp.csv
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int gl,gr,bl,br;`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
|
| 4 |
+
cin >> gl >> gr >> bl >> br;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 5 |
+
if(abs(gl-br) <= 2){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`1`2`0`0`2`0`1
|
| 6 |
+
if((gl == 1 && br == 3) || (gl == 3 && br == 1)){`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`10`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`7`0`0`7`0`0
|
| 7 |
+
cout << "No" << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`10`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 8 |
+
cout << "Yes" << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`10`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 9 |
+
}else if(abs(gr-bl) <= 2){`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`1`2`0`0`2`0`0
|
| 10 |
+
if((gr == 1 && bl == 3) || (gr == 3 && bl == 1)){`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`11`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`7`0`0`7`0`0
|
| 11 |
+
cout << "No" << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`11`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 12 |
+
cout <<"Yes" << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`11`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 13 |
+
cout << "No" << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 14 |
+
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
|
test/309222.cpp.csv
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int iGirlsLeft, iGirlsRight;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int iBoysLeft, iBoysRight;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int iMinGuysRight, iMaxGuysRight;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int iMinGuysLeft, iMaxGuysLeft;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
cin >> iGirlsLeft >> iGirlsRight;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 8 |
+
cin >> iBoysLeft >> iBoysRight;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 9 |
+
iMinGuysRight = ( iGirlsLeft > 1 )? iGirlsLeft-1 : 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`3`3`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
|
| 10 |
+
iMaxGuysRight = ( iGirlsLeft > 1 )? 2 * (iGirlsLeft+1) : 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`4`4`0`0`0`0`0`0`0`0`3`0`3`0`0`0`4`0`0`4`0`1
|
| 11 |
+
iMinGuysLeft = ( iGirlsRight > 1 )? iGirlsRight-1 : 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`3`3`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
|
| 12 |
+
iMaxGuysLeft = ( iGirlsRight > 1 )? 2 * (iGirlsRight+1) : 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`4`4`0`0`0`0`0`0`0`0`3`0`3`0`0`0`4`0`0`4`0`1
|
| 13 |
+
if ( iBoysLeft >= iMinGuysLeft && iBoysLeft <= iMaxGuysLeft )`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 14 |
+
cout << "YES" << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 15 |
+
else if ( iBoysRight >= iMinGuysRight && iBoysRight <= iMaxGuysRight )`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`6`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 16 |
+
cout << "YES" << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`6`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 17 |
+
cout << "NO" << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`6`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 18 |
+
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
|
test/3092392.cpp.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
long long gcd(long long a, long long b)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`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
|
| 3 |
+
if (a == 0)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 4 |
+
return b;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 5 |
+
return gcd(b%a, a);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 6 |
+
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
|
| 7 |
+
int n; cin >> n;`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`1`3`1`5`0`0`0`0`0`0`0`0`0
|
| 8 |
+
int pos = 1;`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`1`0`1`2`0`0`0`0`0`0`0`0`1
|
| 9 |
+
for (int i = 1; i < n-1; ++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 10 |
+
pos += i; pos%=n;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`2`2`0`0
|
| 11 |
+
cout << pos << ' ';`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`1
|
| 12 |
+
pos += n-1; pos%=n; cout << pos << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`1`1`0`0`0`0`0`0`0`0`8`0`8`0`0`0`1`0`2`3`0`0
|
test/3092495.cpp.csv
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int chek(int a, int b)`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`1
|
| 3 |
+
if ((a+1>=b)&&(2*b+1>=a)) return 1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`6`0`0`6`0`1
|
| 4 |
+
else return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
{int al,ar,bl,br;`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`1
|
| 7 |
+
cin>>al>>ar>>bl>>br;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 8 |
+
if (chek(al,bl)||chek(al,br)||chek(ar,bl)||chek(al,bl)) cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`9`1`0`1`1`0`0`0`0`0`0`14`0`14`0`4`4`3`0`0`3`0`1
|
| 9 |
+
else cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
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
|
test/3092501.cpp.csv
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int chek(int a, int b)`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`1
|
| 3 |
+
if ((a+1>=b)&&(2*b+2>=a)) return 1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`6`0`0`6`0`1
|
| 4 |
+
else return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
{int al,ar,bl,br;`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`1
|
| 7 |
+
cin>>al>>ar>>bl>>br;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 8 |
+
if (chek(al,bl)||chek(al,br)||chek(ar,bl)||chek(al,bl)) cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`9`1`0`1`1`0`0`0`0`0`0`14`0`14`0`4`4`3`0`0`3`0`1
|
| 9 |
+
else cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
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
|
test/3092516.cpp.csv
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int chek(int a, int b)`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`1
|
| 3 |
+
if ((2*a+2>=b)&&(b+1>=a)) return 1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`6`0`0`6`0`1
|
| 4 |
+
else return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
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
|
| 6 |
+
{int al,ar,bl,br;`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`1
|
| 7 |
+
cin>>al>>ar>>bl>>br;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 8 |
+
if (chek(al,bl)||chek(al,br)||chek(ar,bl)||chek(al,bl)) cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`9`1`0`1`1`0`0`0`0`0`0`14`0`14`0`4`4`3`0`0`3`0`1
|
| 9 |
+
else cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
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
|
test/3092523.cpp.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int chek(int a, int b)`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
|
| 3 |
+
if (a==1&&b==1) return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`3`3`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`1
|
| 4 |
+
if ((2*a+2>=b)&&(b+1>=a)) return 1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`6`0`0`6`0`0
|
| 5 |
+
else return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 6 |
+
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
|
| 7 |
+
{int al,ar,bl,br;`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
|
| 8 |
+
cin>>al>>ar>>bl>>br;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 9 |
+
if (chek(al,bl)||chek(al,br)||chek(ar,bl)||chek(al,bl)) cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`9`1`0`1`1`0`0`0`0`0`0`14`0`14`0`4`4`3`0`0`3`0`1
|
| 10 |
+
else cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 11 |
+
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
|
test/309495.cpp.csv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int ld,rd,lm,rm;`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`1
|
| 3 |
+
scanf("%d%d%d%d",&ld,&rd,&lm,&rm);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`0`1`0`0`0`0`0`0`0`5`0`5`4`0`1`0`4`0`4`0`0
|
| 4 |
+
if(((ld-1)<=(rm)&&((rm/2-1)<=ld))||((rd-1)<=(lm)&&((lm/2-1)<=rd)))`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`11`8`6`6`0`1`0`0`0`0`0`0`8`0`8`0`0`0`13`0`0`13`0`0
|
| 5 |
+
printf("YES");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`11`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 6 |
+
else printf("NO");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`11`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 7 |
+
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
|
test/309590.cpp.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
long gleft,gright,bl,br,p,max,min;`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`7`0`1`8`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin>>gleft>>gright>>bl>>br;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 5 |
+
p=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 6 |
+
max=gleft+1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 7 |
+
if(gleft==1) min=gleft;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 8 |
+
else min=gleft-1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 9 |
+
if(br<=max && br>=min) p=1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`0`0
|
| 10 |
+
max=gright+1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`1
|
| 11 |
+
if(gright==1) min=gright;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 12 |
+
else min=gright-1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 13 |
+
if(bl<=max && bl>=min) p=1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`0`0
|
| 14 |
+
if(p==0) cout<<"NO"<<endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`2`1`1`1`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`0`0
|
| 15 |
+
else cout<<"YES"<<endl;`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`4`0`4`0`0`0`0`0`0`0`0`0
|
| 16 |
+
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
|
test/3109599.cpp.csv
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,r;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin>>n;`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
|
| 5 |
+
r=n-10;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 6 |
+
if(r==0 || r>11)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`1
|
| 7 |
+
cout<<"0";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 9 |
+
if(r==10 ){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 10 |
+
cout<<"15";`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
|
| 11 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 12 |
+
if(r<10 || r==11)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`0
|
| 13 |
+
cout<<"4";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 14 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 15 |
+
if(r>10 )`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 16 |
+
cout<<"15";`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
|
| 17 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 18 |
+
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
|
test/3110296.cpp.csv
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n;`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
|
| 4 |
+
cin>>n;`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
|
| 5 |
+
for(int k=0;k<n;k++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
string s;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
cin>>s;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
int pl,mi,a,b,c,d,e;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`7`0`1`8`0`0`0`0`0`0`0`0`0
|
| 9 |
+
cin>>pl>>mi>>a>>b>>c>>d>>e;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`0`0`0`0`0`0`0`0`0`0`15`0`15`0`0`0`0`0`0`0`0`0
|
| 10 |
+
sc[s]=(100*pl)-(50*mi)+a+b+c+d+e;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`9`2`2`0`0`0`0`0`0`0`0`10`0`10`0`0`0`9`0`0`9`0`0
|
| 11 |
+
map<string,int>::iterator it1;`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
|
| 12 |
+
int max=0;`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`1`0`1`2`0`0`0`0`0`0`0`0`1
|
| 13 |
+
string mm;`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
|
| 14 |
+
for(it1=sc.begin();it1!=sc.end();it1++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`4`5`1`1`0`0`1`0`0`0`1`0`8`0`8`0`0`0`0`0`0`0`0`0
|
| 15 |
+
if( it1->second > max )`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`5`2`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
|
| 16 |
+
max=it1->second;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`5`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
|
| 17 |
+
mm=it1->first;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`5`2`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 18 |
+
cout << mm << endl;`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`5`0`5`0`0`0`0`0`0`0`0`0
|
| 19 |
+
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
|
test/3124957.cpp.csv
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n,c=1;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin>>n;`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
|
| 5 |
+
for(int i=1;i<=n-1;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 6 |
+
c+=i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 7 |
+
if(n-1-i!=0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`1
|
| 8 |
+
cout<<c%n<<" ";`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`1`0`1`0`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`0`0
|
| 9 |
+
cout<<c%n;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
|
| 10 |
+
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
|
test/3126911.cpp.csv
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1`0`0`1`0`0`0`0`0`0`0`0`1
|
| 3 |
+
int n,i,ind;`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`3`0`1`4`0`0`0`0`0`0`0`0`1
|
| 4 |
+
int max=-2000000000;`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`1`0`1`2`0`0`0`0`1`0`1`0`0
|
| 5 |
+
int a1,a2,a3,a4,a5,a6,a7,puan;`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`8`0`1`9`0`0`0`0`0`0`0`0`0
|
| 6 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 7 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 8 |
+
scanf(" %s %d %d %d %d %d %d %d",dizi[i].name,&a1,&a2,&a3,&a4,&a4,&a5,&a6,&a7);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`10`1`0`1`0`0`0`0`0`0`0`11`0`11`8`0`1`0`8`0`8`1`1
|
| 9 |
+
puan=100*(a1)-50*(a2)+a3+a4+a5+a6+a7;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`0`9`0`0`9`0`0
|
| 10 |
+
if(puan>max){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
max=puan;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 12 |
+
ind=i;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
printf("%s\n",dizi[ind].name);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`1`0
|
| 14 |
+
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
|
test/3128357.cpp.csv
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
if(a==1)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 3 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 4 |
+
if(a==2)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 5 |
+
return 1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 6 |
+
for(int i=2; i<=a/2; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 7 |
+
if(a%i==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 8 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 9 |
+
return 1;`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`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 10 |
+
int toprime(int a)`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
|
| 11 |
+
for(int i=0; i<1000; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 12 |
+
if(check(a+i))`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
|
| 13 |
+
return i;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 14 |
+
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
|
| 15 |
+
int a1,a2,b1,b2;`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
|
| 16 |
+
scanf("%d %d\n%d %d",&a1,&a2,&b1,&b2);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`0`1`0`0`0`0`0`0`0`5`0`5`4`0`1`0`4`0`4`0`0
|
| 17 |
+
if(b1 > a2 && b1-a2 <=a2 +2)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`5`0`0`5`0`0
|
| 18 |
+
printf("YES");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
if(b2 > a1 && b2-a1 <=a2 +2)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`5`0`0`5`0`1
|
| 21 |
+
printf("YES");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 22 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 23 |
+
if(b1 < a2 && a2-b1 <2)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
|
| 24 |
+
printf("YES");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 25 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 26 |
+
if(b2 < a1 && a1-b2 <2)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
|
| 27 |
+
printf("YES");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 28 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 29 |
+
if(a1==b2 || a2==b1)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 30 |
+
printf("YES");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 31 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 32 |
+
printf("NO");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 33 |
+
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
|
test/312846.cpp.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
freopen("a.in", "r", stdin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`4`0`4`0`0`0`0`0`0`0`13`0`13`0`0`2`0`0`0`0`0`0
|
| 4 |
+
int ans = 0;`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`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
if (! (br < al - 1 || br - (al - 1) > 4))`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`4`3`3`0`1`0`0`0`0`0`0`4`0`4`0`0`0`6`1`0`7`0`1
|
| 6 |
+
ans = 1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 7 |
+
if (! (bl < ar - 1 || bl - (ar - 1) > 4))`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`4`3`3`0`1`0`0`0`0`0`0`4`0`4`0`0`0`6`1`0`7`0`1
|
| 8 |
+
ans = 1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 9 |
+
if (ans) cout << "YES" << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`0`1`1`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 10 |
+
else cout << "NO" << endl;`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`4`0`4`0`0`0`0`0`0`0`0`0
|
| 11 |
+
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
|
test/313200.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
bool chk(int G,int B)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`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
|
| 3 |
+
if(G>B && (G-B)<2)return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`4`2`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`1
|
| 4 |
+
else if(B==G)return true;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`7`2`1`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 5 |
+
else if(B>G && (B-G)<=3)return true;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`11`4`2`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
|
| 6 |
+
return false;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 7 |
+
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
|
| 8 |
+
int GL,GR,BL,BR;`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
|
| 9 |
+
cin>>GL>>GR>>BL>>BR;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 10 |
+
if(chk(GL,BR) || chk(GR,BL))`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`4`0`0`0`1`0`0`0`0`0`0`6`0`6`0`2`2`1`0`0`1`0`0
|
| 11 |
+
cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 13 |
+
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
|
test/3132648.cpp.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int dp[5010];`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
|
| 4 |
+
scanf("%d%d",&n,&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 5 |
+
for(int i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
scanf("%d%f",&a[i],&b[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`0`1`0`0`0`0`0`0`0`5`0`5`2`0`1`0`2`0`2`2`0
|
| 7 |
+
dp[0]=1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`2`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`1
|
| 8 |
+
for(int i=1;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
dp[i]=1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 10 |
+
for(int i=1;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 11 |
+
for(int j=0;j<i;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 12 |
+
if(a[i]>=a[j]&&dp[j]+1>=dp[i])`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`5`8`1`1`0`1`0`0`0`0`0`0`8`0`8`0`0`0`4`0`0`4`4`0
|
| 13 |
+
dp[i]=dp[j]+1;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`5`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`2`0
|
| 14 |
+
printf("%d",n-dp[n-1]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`1`1`0`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`1`1
|
| 15 |
+
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
|
test/3133115.cpp.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
int solve(int dx, int color) {`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
if (color == m) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 4 |
+
int &sol = dp[dx][color];`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`0`0`0`0`0`0`0`0`0`1`3`1`5`1`0`0`0`0`0`0`2`0
|
| 5 |
+
if (sol != -1) return sol;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`1`0`2`0`0
|
| 6 |
+
int nxt = lower_bound(pos[color].begin(), pos[color].end(), dx) - pos[color].begin();`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`7`0`0`0`0`0`0`0`0`0`1`9`1`11`0`0`1`0`0`0`0`3`0
|
| 7 |
+
int L = pos[color].size() - nxt;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`1`0`0`1`1`0
|
| 8 |
+
sol = solve(dx, color + 1) + L;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`4`1`1`0`0`0`0`0`0`0`0`5`0`5`0`1`1`3`0`0`3`0`0
|
| 9 |
+
for (int i = nxt; i < pos[color].size(); ++i) {`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`1`5`0`0`0`0`1`0`0`0`1`1`5`1`7`0`0`0`1`1`0`2`1`0
|
| 10 |
+
int cnt = i - nxt + 1;`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 11 |
+
int diff = pos[color][i] - dx + 1 - cnt;`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`1`5`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`3`0`0`3`1`0
|
| 12 |
+
sol = min(sol, solve(pos[color][i]+1, color+1) + L - cnt + diff);`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`1`9`2`2`0`0`0`0`0`0`0`0`12`0`12`0`1`2`6`0`0`6`1`1
|
| 13 |
+
return sol;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 14 |
+
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
|
| 15 |
+
memset(dp, -1, sizeof(dp));`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`1`0`1`0`0
|
| 16 |
+
scanf("%d%d",&n,&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 17 |
+
for (int i = 0; i < n; ++i) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 18 |
+
int col; double x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`2`0`2`4`0`0`0`0`0`0`0`0`0
|
| 19 |
+
scanf("%d%lf",&col,&x); col--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`0`1`0`0`0`0`0`0`0`4`0`4`2`0`1`0`3`0`3`0`0
|
| 20 |
+
pos[col].push_back(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`1`0
|
| 21 |
+
printf("%d\n",solve(0, 0));`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`2`1`0`0`0`0`0`0`0`2`0`2`0`1`2`0`0`0`0`0`1
|
| 22 |
+
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
|
test/3133984.cpp.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
cin>>n>>m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`1
|
| 4 |
+
for (int i=0; i<n; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 5 |
+
cin>>s[i]>>x[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`2`0
|
| 6 |
+
int maxl = 1;`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`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
for (int i=1; i <n; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
if (s[i] >= s[i-1])`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`2`1
|
| 9 |
+
maxl = maxl +1; `FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 10 |
+
int k = n-maxl;`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`1`2`1`4`0`0`0`1`0`0`1`0`0
|
| 11 |
+
cout<<k;`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
|
| 12 |
+
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
|
test/3134352.cpp.csv
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
int n, m;`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`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
double tmp;`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
|
| 5 |
+
scanf("%d%d", &n, &m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 6 |
+
for (int i = 1; i <= n; ++i) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 7 |
+
scanf("%d%lf", &a[i], &tmp);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`0`1`0`0`0`0`0`0`0`4`0`4`2`0`1`0`2`0`2`1`0
|
| 8 |
+
int sol = inf, now = 1, prev = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`2`0`0`0`0`0`0`0`3`1`1`5`0`0`0`0`0`0`0`0`0
|
| 9 |
+
for (int i = 1; i <= m; ++i) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 10 |
+
for (int j = 1; j <= n; ++j) {`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 11 |
+
rem[j] = rem[j - 1] + (a[j] != i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`7`1`1`0`0`0`0`0`0`0`0`7`0`7`0`0`0`4`0`0`4`3`0
|
| 12 |
+
if (i != 1) dp[j][now] = inf;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`2`0
|
| 13 |
+
else dp[j][now] = rem[j];`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`3`0
|
| 14 |
+
int c = dp[i - 1][prev] - rem[i - 1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`2`2`0`0`0`0`0`0`0`1`5`1`7`0`0`0`3`0`0`3`3`1
|
| 15 |
+
for (int j = i; j <= n && j != 1; ++j) {`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`4`5`1`1`0`0`1`0`0`0`1`1`5`1`7`0`0`0`3`1`0`4`0`0
|
| 16 |
+
c = min(c, dp[j][prev] - rem[j]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`4`7`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`1`2`0`0`2`3`0
|
| 17 |
+
dp[j][now] = c + rem[j];`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`4`6`0`0`0`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`3`0
|
| 18 |
+
sol = min(sol, dp[n][now]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`0`0`0`0`0`0`0`0`0`0`6`0`6`0`0`1`1`0`0`1`2`0
|
| 19 |
+
now ^= 1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`1`1`0`0
|
| 20 |
+
prev ^= 1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`1`1`0`0
|
| 21 |
+
printf("%d\n", sol);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 22 |
+
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
|
test/3135561.cpp.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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`1
|
| 3 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 4 |
+
for (int i = 0; i < n; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 5 |
+
cin >> a[i] >> x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`0`0`0`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`1`0
|
| 6 |
+
f[i] = 1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 7 |
+
for (int i = 1; i < n; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
for (int j = 0; j < i; j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
if (a[j] <= a[i] && f[j] + 1 > f[i]){`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`5`8`1`1`0`1`0`0`0`0`0`0`8`0`8`0`0`0`4`0`0`4`4`0
|
| 10 |
+
f[i] = f[j] + 1;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`5`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`2`0
|
| 11 |
+
if (ans < f[i]) ans = f[i];`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`6`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`2`0
|
| 12 |
+
cout << n - ans;`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`1`0`0`1`0`0
|
test/3135894.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
scanf("%d %d",&N,&M);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 4 |
+
for(int c = 0 ; c < N ; c++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 5 |
+
scanf("%d %lf",&A[c].a,&A[c].b);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`0`1`0`0`0`0`0`0`0`5`0`5`2`0`1`0`2`0`2`2`0
|
| 6 |
+
int en = 0;`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`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
for(int c = 0 ; c < N ; c++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
int key = A[c].a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`1`2`1`4`0`0`0`0`0`0`0`1`0
|
| 9 |
+
int l = 0 , r = en , m;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`3`1`1`5`0`0`0`0`0`0`0`0`0
|
| 10 |
+
while(l <= r)`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 11 |
+
m = (l+r)/2;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
|
| 12 |
+
if(key < DP[m]) r = m-1;`FunctionDecl,false;ForStmt,false;WhileStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`3`0`0`3`1`0
|
| 13 |
+
else l = m+1;`FunctionDecl,false;ForStmt,false;WhileStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 14 |
+
en = max(en,r+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`1
|
| 15 |
+
DP[en] = key;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`1
|
| 16 |
+
printf("%d\n",N - en);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`0`0`1`1`0`0`1`0`0
|
| 17 |
+
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
|
test/3136813.cpp.csv
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
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
|
| 2 |
+
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
|
| 3 |
+
char name[MAXN];`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
|
| 4 |
+
int hack, uhack, a, b, c, d, e, n;`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`8`0`1`9`0`0`0`0`0`0`0`0`0
|
| 5 |
+
scanf("%d", &n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 6 |
+
char win[MAXN];`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
|
| 7 |
+
int pmax = 0, pc;`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`2`0`1`3`0`0`0`0`0`0`0`0`1
|
| 8 |
+
for(int i = 0; i < n; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
scanf("%s %d %d %d %d %d %d %d", &name, &hack, &uhack, &a, &b, &c, &d, &e);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`1`0`1`0`0`0`0`0`0`0`9`0`9`8`0`1`0`8`0`8`0`0
|
| 10 |
+
pc = a + b + c + d + e + hack*100 - 50*uhack;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`0`9`0`0`9`0`0
|
| 11 |
+
if( pc > pmax ){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 12 |
+
pmax = pc;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
strcpy( win, name);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 14 |
+
printf("%s\n", win);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|