ReySajju742 commited on
Commit
dc28400
·
verified ·
1 Parent(s): 610ca4c

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. train/10250414.cpp.csv +20 -0
  2. train/10251345.cpp.csv +32 -0
  3. train/10251524.cpp.csv +74 -0
  4. train/10251545.cpp.csv +74 -0
  5. train/10251574.cpp.csv +74 -0
  6. train/10251578.cpp.csv +74 -0
  7. train/10251583.cpp.csv +74 -0
  8. train/10251656.cpp.csv +74 -0
  9. train/10251666.cpp.csv +74 -0
  10. train/10251680.cpp.csv +74 -0
  11. train/10251682.cpp.csv +74 -0
  12. train/10251817.cpp.csv +17 -0
  13. train/10253166.cpp.csv +20 -0
  14. train/10253595.cpp.csv +16 -0
  15. train/10254614.cpp.csv +17 -0
  16. train/10255622.cpp.csv +20 -0
  17. train/10256081.cpp.csv +9 -0
  18. train/10256149.cpp.csv +11 -0
  19. train/10256433.cpp.csv +12 -0
  20. train/10256611.cpp.csv +31 -0
  21. train/10438417.cpp.csv +29 -0
  22. train/10438702.cpp.csv +42 -0
  23. train/10439892.cpp.csv +50 -0
  24. train/10450266.cpp.csv +38 -0
  25. train/10450668.cpp.csv +16 -0
  26. train/10450820.cpp.csv +27 -0
  27. train/10451504.cpp.csv +23 -0
  28. train/10451898.cpp.csv +10 -0
  29. train/10452011.cpp.csv +9 -0
  30. train/1383193.cpp.csv +18 -0
  31. train/13831967.cpp.csv +12 -0
  32. train/1383205.cpp.csv +20 -0
  33. train/13832116.cpp.csv +28 -0
  34. train/13832314.cpp.csv +10 -0
  35. train/1383253.cpp.csv +10 -0
  36. train/13832651.cpp.csv +21 -0
  37. train/1383275.cpp.csv +17 -0
  38. train/13833618.cpp.csv +19 -0
  39. train/1383374.cpp.csv +23 -0
  40. train/13833786.cpp.csv +23 -0
  41. train/13834012.cpp.csv +14 -0
  42. train/13834044.cpp.csv +4 -0
  43. train/1383427.cpp.csv +23 -0
  44. train/13834376.cpp.csv +14 -0
  45. train/13834398.cpp.csv +15 -0
  46. train/13834486.cpp.csv +16 -0
  47. train/1383453.cpp.csv +16 -0
  48. train/18952149.cpp.csv +13 -0
  49. train/18952161.cpp.csv +17 -0
  50. train/18952186.cpp.csv +15 -0
train/10250414.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
+ 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 r1, r2;`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`1
4
+ int c1, c2;`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 d1, 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`2`0`1`3`0`0`0`0`0`0`0`0`0
6
+ cin >> r1 >> r2;`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
7
+ cin >> c1 >> c2;`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 >> d1 >> d2;`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
+ int x, y, a, 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`4`0`1`5`0`0`0`0`0`0`0`0`0
10
+ b = (r2 - d2 - c2) / (-2);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`1`0`5`0`0
11
+ y = c2 - b;`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`3`0`3`0`0`0`2`0`0`2`0`0
12
+ a = r1 - b;`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`3`0`3`0`0`0`2`0`0`2`0`0
13
+ x = r2 - y;`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`3`0`3`0`0`0`2`0`0`2`0`0
14
+ if (a == b && a == x && a == y && x == y) {`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`8`0`0`0`1`0`0`0`0`0`0`8`0`8`0`0`0`7`0`0`7`0`0
15
+ cout << -1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`7`1`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
16
+ } else if (a > 0 && b > 0 && x > 0 && y > 0) {`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`14`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`7`0`0`7`0`0
17
+ cout << a << " " << b << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`14`3`1`0`1`0`0`0`0`0`0`0`8`0`8`0`0`0`0`0`0`0`0`0
18
+ cout << x << " " << y << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`14`3`1`0`1`0`0`0`0`0`0`0`8`0`8`0`0`0`0`0`0`0`0`0
19
+ cout << -1;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`14`1`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`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
train/10251345.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 isLucky(int x)`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
+ int c=0,c1=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`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
4
+ while(x)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`2`1`0`0`0`0`0`1`0`0`1`0`1`0`1`0`0`0`0`0`0`0`0`0
5
+ c1++;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
6
+ if(x%10==7 || x%10==4)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`5`2`4`4`0`1`0`0`0`0`0`0`2`0`2`0`0`0`5`0`0`5`0`0
7
+ ++c;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`5`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
8
+ x/=10;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`2`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`1`1`0`0
9
+ return (c==c1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
10
+ int sumD(int x)`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
+ int sum=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
12
+ while(x)`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`0`0`0`0`0
13
+ sum+=x%10;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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`1`2`0`0
14
+ x/=10;`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`0`0`1`1`0`0
15
+ return sum;`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
16
+ 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
17
+ vector <int >v;`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
18
+ for(int i=0;i<1000001; ++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
19
+ if(isLucky(i))`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`1`0`0`0`0`0`0`2`0`2`0`1`1`0`0`0`0`0`0
20
+ v.push_back(i);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
21
+ int x;`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
22
+ cin>>x;`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
23
+ int sum=sumD(x);`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`2`1`4`0`1`1`0`0`0`0`0`0
24
+ bool yes=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`1`0`1`2`0`0`0`0`0`0`0`0`0
25
+ for(int i=0; i<v.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
26
+ if(sumD(v[i])==x)`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`5`0`5`0`1`1`1`0`0`1`0`0
27
+ cout<<v[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`5`0`5`0`0`0`0`0`0`0`0`0
28
+ yes=true;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
29
+ break;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
30
+ if(!yes)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
31
+ cout<<"-1";`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
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`1
train/10251524.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l) +`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`0`7`0`7`0`1`1`4`0`0`4`0`1
36
+ query(1,1,n,leftmost,rightmost,begin+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`5`0`5`0`1`1`1`0`0`1`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l) ;`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`0`7`0`7`0`1`1`2`0`0`2`0`0
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 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`0
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
53
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
54
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
55
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
56
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
57
+ int j = 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
58
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
59
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
60
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
61
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
62
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
63
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
64
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
66
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
67
+ scanf("%d",&m);`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
68
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
69
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
70
+ if(x == y){ printf("%d\n",begin-1); continue; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`2`1`1`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`0
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251545.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l) +`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`0`7`0`7`0`1`1`4`0`0`4`0`1
36
+ query(1,1,n,leftmost,rightmost,begin) -`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`0`0`0`0`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l) ;`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`0`7`0`7`0`1`1`2`0`0`2`0`0
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 2; `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
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
53
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
54
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
55
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
56
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
57
+ int j = 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
58
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
59
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
60
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
61
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
62
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
63
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
64
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
66
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
67
+ scanf("%d",&m);`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
68
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
69
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
70
+ if(x == y){ printf("%d\n",begin-2); continue; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`2`1`1`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`1
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251574.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l-1) +`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`5`0`0`5`0`1
36
+ query(1,1,n,leftmost,rightmost,begin) -`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`0`0`0`0`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l) ;`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`0`7`0`7`0`1`1`2`0`0`2`0`0
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 2; `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
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
53
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
54
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
55
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
56
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
57
+ int j = 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
58
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
59
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
60
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
61
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
62
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
63
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
64
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
66
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
67
+ scanf("%d",&m);`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
68
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
69
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
70
+ if(x == y){ printf("%d\n",begin-2); continue; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`2`1`1`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`1
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251578.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l-1) +`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`5`0`0`5`0`1
36
+ query(1,1,n,leftmost,rightmost,begin) -`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`0`0`0`0`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l - 1) ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`1
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 2; `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
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
53
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
54
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
55
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
56
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
57
+ int j = 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
58
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
59
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
60
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
61
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
62
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
63
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
64
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
66
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
67
+ scanf("%d",&m);`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
68
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
69
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
70
+ if(x == y){ printf("%d\n",begin-2); continue; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`2`1`1`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`1
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251583.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l-1) +`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`5`0`0`5`0`1
36
+ query(1,1,n,leftmost,rightmost,begin) -`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`0`0`0`0`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l-2) ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`1
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 2; `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
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
53
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
54
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
55
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
56
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
57
+ int j = 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
58
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
59
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
60
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
61
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
62
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
63
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
64
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
66
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
67
+ scanf("%d",&m);`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
68
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
69
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
70
+ if(x == y){ printf("%d\n",begin-2); continue; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`3`2`1`1`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`1
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251656.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l-1) +`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`5`0`0`5`0`1
36
+ query(1,1,n,leftmost,rightmost,begin) -`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`0`0`0`0`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l-1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`1
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 2; `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
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ suff[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
53
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
54
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
55
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
56
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
57
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
58
+ int j = 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
59
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
60
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
61
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
62
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
63
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
64
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
66
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
67
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
68
+ scanf("%d",&m);`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
69
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
70
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`1
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251666.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l) +`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`0`7`0`7`0`1`1`4`0`0`4`0`1
36
+ query(1,1,n,leftmost,rightmost,begin) -`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`0`0`0`0`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l-1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`1
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 2; `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
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ suff[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
53
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
54
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
55
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
56
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
57
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
58
+ int j = 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
59
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
60
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
61
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
62
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
63
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
64
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
66
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
67
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
68
+ scanf("%d",&m);`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
69
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
70
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`1
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251680.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l+1) +`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`5`0`0`5`0`0
36
+ query(1,1,n,leftmost,rightmost,begin) -`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`0`0`0`0`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l-1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`1
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 2; `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
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ suff[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
53
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
54
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
55
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
56
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
57
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
58
+ int j = 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
59
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
60
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
61
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
62
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
63
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
64
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
66
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
67
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
68
+ scanf("%d",&m);`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
69
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
70
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`1
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251682.cpp.csv ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 que(int x,int y){`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
+ y--;`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`1`0`1`0`0
4
+ if(x > y) return 0;`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
5
+ int t = LOG[y-x+1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`1`0
6
+ return min(rmq[x][t],rmq[y-(1<<t)+1][t]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`1`3`0`0`3`4`0
7
+ void init(int k,int bas,int son){`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
8
+ if(bas == son) return (void)(ST[k].pb(sorted[bas])); `FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`0`0`1`2`0
9
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
10
+ init(2*k,bas,orta);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
11
+ init(2*k+1,orta+1,son);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`3`3`0`0`0`0`0`0`0`0`4`0`4`0`1`1`3`0`0`3`0`0
12
+ ST[k].resize(ST[2*k].size()+ST[2*k+1].size());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`6`3`3`0`0`0`0`0`0`0`0`6`0`6`0`0`0`4`0`0`4`3`0
13
+ merge(ST[2*k].begin(),ST[2*k].end(),ST[2*k+1].begin(),ST[2*k+1].end(),ST[k].begin());`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`10`6`6`0`0`0`0`0`0`0`0`11`0`11`0`0`1`6`0`0`6`5`0
14
+ int query(int k,int bas,int son,int x,int y,int t){`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
15
+ if(bas > y || son < x) return 0;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
16
+ if(x <= bas && son <= y) return son - bas + 1 - (lower_bound(ST[k].begin(),ST[k].end(),t)-ST[k].begin());`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`13`1`1`0`1`0`0`0`0`0`0`15`0`15`0`0`1`6`0`0`6`3`0
17
+ int orta = bas + son >> 1;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
18
+ return query(2*k,bas,orta,x,y,t) + query(2*k+1,orta+1,son,x,y,t);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`12`4`4`0`0`0`0`0`0`0`0`14`0`14`0`2`2`5`0`0`5`0`0
19
+ int bs(int cur,int l){`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
20
+ int bas = 0, son = cur-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`2`1`1`4`0`0`0`1`0`0`1`0`0
21
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
22
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
23
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
24
+ if(que(cur-orta,cur) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
25
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
26
+ int leftmost = cur-bas;`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
27
+ bas = 0, son = n - cur;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
28
+ while(bas < son){`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`2`0`2`0`0`0`1`0`0`1`0`0
29
+ int orta = bas + son >> 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
30
+ if(orta == bas) orta++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`2`0`0
31
+ if(que(cur,cur+orta) >= l) bas = orta;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`0
32
+ else son = orta - 1;`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`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
33
+ int rightmost = cur + bas;`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
34
+ cur = sorted[cur];`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`3`0`3`0`0`0`1`0`0`1`1`0
35
+ return query(1,1,n,leftmost,rightmost,begin+cur+l) +`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`0`7`0`7`0`1`1`4`0`0`4`0`1
36
+ query(1,1,n,leftmost,rightmost,begin) -`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`5`0`5`0`1`1`0`0`0`0`0`0
37
+ query(1,1,n,leftmost,rightmost,begin+cur-l-1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`1`3`0`0`3`0`1
38
+ 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
39
+ 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
40
+ int bef = 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
41
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
42
+ scanf("%d",&x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
43
+ if(i > 1) a[i-1] = bef - x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`4`0`0`4`1`0
44
+ bef = x;`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`1`0`0`1`0`0
45
+ n--;`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`1`0`1`0`0
46
+ begin = n + 2; `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
47
+ a[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
48
+ FOR(i,n+2,2*n+1) a[i] = -a[i-n-1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`9`4`4`0`0`1`0`0`0`1`1`9`1`11`0`0`0`7`2`0`9`2`0
49
+ n = 2 * n + 1;`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`2`0`2`0`0`0`3`0`0`3`0`0
50
+ FOR(i,1,n) LOG[i] = log2(i);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`1`2`1`0`3`1`0
51
+ FOR(i,1,n) suff[i] = a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
52
+ suff[n+1] = -inf;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
53
+ FOR(j,1,logN){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
54
+ FOR(i,1,n) C[i] = mp(mp(suff[i],suff[min(n+1,i+(1<<j-1))]),i);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`5`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`1`1`0`2`1`0
55
+ sort(C+1,C+n+1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`10`5`5`0`0`0`0`0`0`0`0`14`0`14`0`0`4`7`0`0`7`2`0
56
+ FOR(i,1,n) suff[C[i].nd] = suff[C[i-1].nd] + (C[i].st != C[i-1].st);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`13`3`3`0`0`1`0`0`0`1`1`14`1`16`0`0`0`5`1`0`6`6`0
57
+ FOR(i,1,n) sorted[suff[i]] = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`2`1`0`3`2`0
58
+ int j = 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
59
+ FOR(i,1,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
60
+ if(suff[i] == 1) continue;`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`1`0`0`1`1`0
61
+ while(i + j <= n && sorted[suff[i]-1] + j <= n && a[i+j] == a[sorted[suff[i]-1]+j]) j++;`FunctionDecl,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`5`17`2`2`0`0`0`1`0`0`1`0`17`0`17`0`0`0`11`1`0`12`6`0
62
+ rmq[suff[i]-1][0] = j;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`3`0
63
+ if(j) j--;`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`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
64
+ FOR(j,1,logN)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
65
+ FOR(i,1,n)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
66
+ rmq[i][j] = min(rmq[i][j-1],rmq[min(n+1,i+(1<<j-1))][j-1]);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`11`5`5`0`0`0`0`0`0`0`0`13`0`13`0`0`2`7`0`0`7`6`0
67
+ init(1,1,n);`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`2`0`2`0`1`1`0`0`0`0`0`0
68
+ scanf("%d",&m);`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
69
+ FOR(i,1,m){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
70
+ scanf("%d %d",&x,&y);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`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
71
+ y--;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`1
72
+ int cur = suff[x];`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`1`2`1`4`0`0`0`0`0`0`0`1`0
73
+ printf("%d\n",bs(cur,y-x+1));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`2`1`1`0`0`0`0`0`0`0`5`0`5`0`1`2`2`0`0`2`0`0
74
+ 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
train/10251817.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
+ int x ,t , a , b , aa, bb ;`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 >> x >> t >> a >> b >> aa >> bb ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`0`0`0`0`0`0`0`0`0`5`13`0`18`0`0`0`0`0`0`0`0`0
5
+ rep(i,0,t)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
6
+ if(a - aa*i == x)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
7
+ cout << "YES\n";`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
8
+ return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`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
9
+ rep(j,0,t)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`0`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
10
+ if(b-bb*j == x)`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`1`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
11
+ cout << "YES\n";`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`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
12
+ return 0;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`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
13
+ else if( b-bb*j + a-aa*i == x)`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`2`7`0`0`0`1`0`0`0`0`0`0`7`0`7`0`0`0`6`0`0`6`0`1
14
+ cout << "YES\n";`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`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
15
+ return 0;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`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
16
+ 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
17
+ return 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`0`0`0`0`0`0`0`0`0`0`0`0`0
train/10253166.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
+ 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 K;`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
+ 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
6
+ map <string,int> 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`1`0`1`2`0`0`0`0`0`0`0`0`0
7
+ 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
8
+ 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
9
+ int val;`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
10
+ cin >> s >> val;`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`0`0`0`0`0`0`0
11
+ val *= K;`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`1
12
+ if (val < 100) continue;`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
+ m[s] = val;`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`1`0`0`1`0`0
14
+ 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`0
15
+ 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
16
+ 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
17
+ m[s] += 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`3`0`3`0`0`0`0`0`1`1`0`0
18
+ cout << sz(m) << 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
19
+ map<string,int>::iterator it;`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`2`1`4`0`0`0`0`0`0`0`0`0
20
+ for (it = m.begin() ; it!=m.end() ; it++) cout << it->first << " " << it->second << endl;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`4`8`2`1`1`0`1`0`0`0`1`0`17`0`17`0`0`0`0`0`0`0`0`0
train/10253595.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
+ string 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`1`0`1`2`0`0`0`0`0`0`0`0`0
4
+ long long int n=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
+ cin>>c;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
6
+ if(c>"9223372036854775807") {cout<<"BigInteger"; return 0;}`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`3`1`2`1`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
7
+ for(int i=0 ; i<c.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`1
8
+ n=n*10; n+=c[i]-'0';`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`2`1`0`0`0`0`0`0`0`0`6`0`6`0`0`0`3`0`1`4`0`0
9
+ if(n>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
10
+ if(n<=127) {cout<<"byte" ; return 0;}`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`3`2`1`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
11
+ if(n<=32767) {cout<<"short" ; return 0;}`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`3`2`1`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
12
+ if(n<=2147483647) {cout<<"int" ; return 0;}`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`3`2`1`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
13
+ if(abs(n)<=128) {cout<<"byte" ; return 0;}`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`3`2`1`1`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
14
+ if(abs(n)<=32768) {cout<<"short" ; return 0;}`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`3`2`1`1`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
15
+ if(abs(n)<=2147483648) {cout<<"int" ; return 0;}`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`3`2`1`1`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
16
+ cout<<"long";`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`2`0`2`0`0`0`0`0`0`0`0`0
train/10254614.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
+ freopen("in.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`8`2`1`11`0`0`1`0`0`0`0`0`1
4
+ m=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
5
+ for(i=0;i<3;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`0`3`0`3`0`0`0`2`1`0`3`0`0
6
+ sum[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
7
+ for(j=0;j<3;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`2`2`0`0`1`0`0`0`1`0`3`0`3`0`0`0`2`1`0`3`0`0
8
+ cin>>a[i][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`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
9
+ sum[i]+=a[i][j];`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`5`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`1`1`3`0
10
+ m+=sum[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`1`1`1`0
11
+ m/=2;`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`0`1`1`0`0
12
+ for(i=0;i<3;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`0`3`0`3`0`0`0`2`1`0`3`0`0
13
+ for(j=0;j<3;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`2`2`0`0`1`0`0`0`1`0`3`0`3`0`0`0`2`1`0`3`0`0
14
+ if(!a[i][j]) cout<<m-sum[i]<<" ";`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`4`7`1`0`1`1`0`0`0`0`0`0`9`0`9`0`0`0`1`1`0`2`3`0
15
+ else cout<<a[i][j]<<" ";`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`4`4`1`0`1`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`2`0
16
+ puts("");`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
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
train/10255622.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
+ 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
+ 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`0
4
+ int n, m ; 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`2`5`1`8`0`0`0`0`0`0`0`0`0
5
+ set<pair<int,PII> > 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
+ for(int j=m/2+1 , i=1 ; j>=1 ; j--,i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`4`4`0`0`1`0`0`0`1`2`4`1`7`0`0`0`4`2`0`6`0`1
7
+ s.insert(mkp(0, mkp(i, j)));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
8
+ for(int j=m/2+2 , i=2 ; j<=m ; j++,i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`7`4`4`0`0`1`0`0`0`1`2`9`1`12`0`0`2`4`2`0`6`0`0
9
+ s.insert(mkp(0, mkp(i, j)));`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`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`5`2`2`0`0`1`0`0`0`1`1`7`1`9`0`0`2`1`1`0`2`0`1
11
+ pair<int, PII> tmp = *s.begin();`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`1`2`1`4`0`0`0`0`0`0`0`0`0
12
+ if(m%2==0 && tmp.se.se == m/2+1) {`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`3`4`4`0`1`0`0`0`0`0`0`3`0`3`0`0`0`6`0`0`6`0`1
13
+ cout<<m/2<<endl;`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`5`0`5`0`0`0`1`0`0`1`0`0
14
+ else if(m%2==0 && tmp.se.se == m/2) {`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`3`3`3`0`1`0`0`0`0`0`0`3`0`3`0`0`0`5`0`0`5`0`0
15
+ cout<<m/2+1<<endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`2`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`0`0
16
+ cout<<tmp.se.se<<endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
17
+ s.erase(tmp);`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`0`0`0`0
18
+ tmp.fi++;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
19
+ s.insert(tmp);`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`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
train/10256081.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`1
3
+ srand(time(NULL));`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`7`0`7`0`0`2`0`0`0`0`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`1
5
+ scanf("%d%d%d%d",t+i,T+i,x+i,cost+i);`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`0`0`1`4`0`0`4`0`1
6
+ if (t[i]>=T[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
7
+ ans+=cost[i]+x[i]*m;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`6`0`0`0`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`1`3`2`0
8
+ ans+=min(cost[i]+x[i]*m,((m-1)/(T[i]-t[i])+1)*cost[i]);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`13`2`2`0`0`0`0`0`0`0`0`14`0`14`0`0`1`7`0`1`8`5`1
9
+ cout << ans;`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`2`0`2`0`0`0`0`0`0`0`0`0
train/10256149.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(void)`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
+ ios_base::sync_with_stdio (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`0`1`0`1`0`0`1`0`0`0`0`0`0
4
+ int h = 0,hh = 0,n,s,t;`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`5`0`1`6`0`0`0`0`0`0`0`0`0
5
+ 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
6
+ cin >> d[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`1`0`0`0`1`1`7`1`9`0`0`0`1`1`0`2`1`0
7
+ h+=d[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
8
+ cin >>s >> t;`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
+ hh += d[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`2`2`0`0`1`0`0`0`1`1`7`1`9`0`0`0`3`1`1`5`1`1
10
+ cout << min (hh, h-hh);`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`6`0`6`0`0`1`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
train/10256433.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
+ void solve () {`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 ( n < m ) printf ( "-1\n" ) ;`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`3`0`3`0`0`1`1`0`0`1`0`0
4
+ if ( n == 1 ) printf ( "a\n" ) ;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`2`1`1`1`0`0`0`0`0`0`2`0`2`0`0`1`1`0`0`1`0`0
5
+ int t = n - ( m - 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`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`1
6
+ for ( int i = 2 ; i <= t ; i += 2 ) printf ( "ab" ) ;`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`3`2`1`0`1`0`0`0`1`1`4`1`6`0`0`1`1`0`1`2`0`0
7
+ if ( t & 1 ) printf ( "a" ) ;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`2`1`1`1`0`0`0`0`0`0`2`0`2`0`0`1`1`0`0`1`0`0
8
+ rep ( i , 0 , m - 2 ) printf ( "%c" , 'a' + 2 + i ) ;`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
9
+ printf ( "\n" ) ;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`3`5`2`2`0`0`0`0`0`0`0`5`0`5`0`0`2`3`1`0`4`0`0
10
+ 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
11
+ while ( ~scanf ( "%d%d" , &n , &m ) ) solve () ;`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`1`0`0`1`0`4`0`4`2`1`2`0`3`0`3`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
train/10256611.cpp.csv ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 dfs(int cur)`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
+ int i;`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`1`0`1`2`0`0`0`0`0`0`0`0`0
4
+ for(i = 1; i <= n; i++)`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
5
+ if(conn[cur][i] && !vis[i])`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`5`5`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`1`1`0`2`3`0
6
+ vis[i]++;`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`5`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`1`0
7
+ dfs(i);`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`5`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`1`1`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 i, j, tmp, la, k, res;`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`6`0`1`7`0`0`0`0`0`0`0`0`1
10
+ while(scanf("%d%d", &n, &m) != EOF)`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`1`0`0`1`0`3`0`3`2`0`1`1`3`0`4`0`0
11
+ memset(save, 0, sizeof(save));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
12
+ memset(vis, 0, sizeof(vis));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
13
+ memset(cnt, 0, sizeof(cnt));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
14
+ memset(conn, 0, sizeof(conn));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
15
+ for(i = 1; i <= n; i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
16
+ scanf("%d", &tmp);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
17
+ for(j = 0; j < tmp; j++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
18
+ scanf("%d", &la);`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
19
+ save[la][cnt[la]++] = i;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`5`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`1`1`0`2`3`0
20
+ for(i = 1; i <= m; i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
21
+ for(j = 0; j < cnt[i]; j++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`5`1`1`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
22
+ for(k = j + 1; k < cnt[i]; k++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`1`0`0`0`0`0`5`0`4`6`1`1`0`0`1`0`0`0`1`0`6`0`6`0`0`0`3`1`0`4`1`0
23
+ int a = save[i][j], b = save[i][k];`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`1`0`0`0`0`0`5`0`4`6`0`0`0`0`0`0`0`0`0`2`6`1`9`0`0`0`0`0`0`0`4`0
24
+ conn[a][b] = conn[b][a] = 1;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`1`0`0`0`0`0`5`0`4`6`1`1`0`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`4`0
25
+ for(res = 0, i = 1; i <= n; i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`5`2`2`0`0`1`0`0`0`1`0`5`0`5`0`0`0`4`1`0`5`0`0
26
+ if(!vis[i])`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`4`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`1`0
27
+ vis[i]++;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`4`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`1`0
28
+ dfs(i);`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`4`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`1`1`0`0`0`0`0`0
29
+ res++;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`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
30
+ printf("%d\n", res - 1);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`0`0`0`0`0`2`0`2`0`0`1`1`0`0`1`0`0
31
+ 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
train/10438417.cpp.csv ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ LL dfs(int pos,int st,int ed,int first,int flag)`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(pos==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 st==ed;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
5
+ if(!flag&&dp[pos][st]!=-1)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`4`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`2`2`0`4`2`0
6
+ return dp[pos][st];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`4`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`2`0
7
+ int d=flag?num[pos]:9;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`1`3`1`5`0`0`0`0`0`0`0`1`0
8
+ LL sum=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
9
+ for(int i=0;i<=d;i++)`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`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
+ int s=st,e=ed;`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`2`2`1`5`0`0`0`0`0`0`0`0`0
11
+ if(!first&&i)`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`5`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`1`0`2`0`0
12
+ s=i;`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`5`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(pos==1)`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`2`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
14
+ e=i;`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`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
+ sum+=dfs(pos-1,s,e,first||i,flag&&i==d);`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`1`9`1`1`0`0`0`0`0`0`0`0`10`0`10`0`1`1`4`0`1`5`0`0
16
+ if(!flag) dp[pos][st]=sum;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`2`5`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`1`1`0`2`2`0
17
+ return sum;`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
18
+ LL solve(LL x)`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
19
+ int pos=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
20
+ while(x)`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`0`0`0`0`0
21
+ num[++pos]=x%10;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`1`0
22
+ x/=10;`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`0`0`1`1`0`0
23
+ return dfs(pos,0,-1,0,1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`4`4`0`0`0`0`0`0`0`0`2`0`2`0`1`1`0`1`0`1`0`0
24
+ 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
25
+ CLEAR(dp,-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`2`0`2`0`0`1`0`1`0`1`0`1
26
+ while(~scanf("%lld%lld",&l,&r))`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`1`0`1`0`0`1`0`0`1`0`4`0`4`2`0`1`0`3`0`3`0`0
27
+ LL ans=solve(r)-solve(l-1);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`4`1`6`0`2`2`2`0`0`2`0`0
28
+ printf("%lld\n",ans);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
29
+ 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
train/10438702.cpp.csv ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 cmp(card a,card b){`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`4`0`5`1`0`0`2`1`0`3`0`0
3
+ return a.f<b.f;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
4
+ int exchange(int x){`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 ans=0,cnt=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
6
+ memset(vis,false,sizeof(vis));`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
7
+ 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
8
+ if(c[i].f==x){ans++;vis[i]=true;}`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`6`1`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`2`1`0`3`2`0
9
+ cnt=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`2`0`2`0`0`0`1`0`0`1`0`0
10
+ if(cnt>=(n-1)/2)return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`3`3`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`1
11
+ 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
12
+ if(!vis[i]&&c[i].b==x){`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`8`5`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`1`0`3`2`0
13
+ ans++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`8`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
14
+ if(ans>=(n+1)/2)return (n+1)/2-cnt;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`6`0`0`6`0`0
15
+ else 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
16
+ int solve(){`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
17
+ int mi=n;`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`0
18
+ for(int i=0;i<k;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
19
+ int ans=exchange(b[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`1`3`1`5`0`1`1`0`0`0`0`1`0
20
+ if(ans!=-1)mi=min(ans,mi);`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`5`0`5`0`0`1`2`1`0`3`0`0
21
+ if(mi==n)return -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`1`1`0`2`0`0
22
+ else return mi;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
23
+ 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
24
+ 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
25
+ 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
26
+ scanf("%d%d",&c[i].f,&c[i].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
27
+ a[i]=c[i].f;`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`1`0`0`1`2`0
28
+ a[i+n]=c[i].b;`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`5`0`5`0`0`0`2`0`0`2`2`0
29
+ sort(a,a+2*n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`0`0
30
+ sort(c,c+n,cmp);`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`1`1`0`0`1`0`0
31
+ int m=2*n;`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`1`1`1`3`0`0`0`1`0`0`1`0`0
32
+ int cnt=a[0],ans=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`2`1`1`4`0`0`0`0`0`0`0`1`0
33
+ 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
34
+ if(a[i]==cnt){`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
35
+ ans++;`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`1`0`1`0`0
36
+ if(ans>=(n+1)/2){`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`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
37
+ b[k++]=cnt;`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`1`0`2`1`0
38
+ ans=1;`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
39
+ cnt=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
40
+ if(ans>=(n+1)/2){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`0
41
+ b[k++]=cnt;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`1`0`2`1`0
42
+ printf("%d\n",solve());`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`1`2`0`0`0`0`0`0
train/10439892.cpp.csv ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 rev(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
3
+ int b=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
4
+ b+=10*(a%10);`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`2`0`2`0`0`0`2`0`1`3`0`0
5
+ a/=10;`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`0`1`1`0`0
6
+ b+=a;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
7
+ 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
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 a,b,c,d,e,f;`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`6`0`1`7`0`0`0`0`0`0`0`0`0
10
+ 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
11
+ 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
12
+ b=s[1]-'0' + 10*(s[0]-'0');`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`5`3`0`0`0`0`0`0`0`0`5`0`5`0`0`0`5`0`0`5`0`0
13
+ c=s[4]-'0' + 10*(s[3]-'0');`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`5`3`0`0`0`0`0`0`0`0`5`0`5`0`0`0`5`0`0`5`0`0
14
+ if(b<=9)`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
15
+ if(b<5)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
16
+ if(c<10*b)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`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
17
+ cout<<"0"<<b<<":"<<b<<"0";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`3`3`0`3`0`0`0`0`0`0`0`8`0`8`0`0`0`0`0`0`0`0`0
18
+ cout<<"0"<<b+1<<":"<<(b+1)<<"0";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`3`5`2`3`0`0`0`0`0`0`0`8`0`8`0`0`0`2`0`0`2`0`0
19
+ if(b==5)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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`1
20
+ if(c<50)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
21
+ cout<<"05:50";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`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
22
+ cout<<"10:01";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`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
23
+ cout<<"10:01";`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
24
+ if(b==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
25
+ if(c<1)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
26
+ cout<<"10:01";`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
27
+ cout<<"11:11";`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
28
+ if(b>10 && b<15)`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
29
+ if(c<rev(b))`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`4`2`0`0`0`1`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
30
+ cout<<b<<":"<<rev(b);`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`4`3`1`0`1`0`0`0`0`0`0`0`7`0`7`0`1`1`0`0`0`0`0`0
31
+ cout<<b+1<<":"<<rev(b+1);`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`4`3`3`2`1`0`0`0`0`0`0`0`7`0`7`0`1`1`2`0`0`2`0`0
32
+ if(b==15)`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
33
+ if(c<51)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
34
+ cout<<"15:51";`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
35
+ cout<<"20:02";`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
36
+ if(b>15 && b<20)`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
37
+ cout<<"20:02";`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
38
+ if(b==20)`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
39
+ if(c<2)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
40
+ cout<<"20:02";`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
41
+ cout<<"21:12";`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
42
+ if(b>20 and b<23)`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
43
+ if(c<rev(b))`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`4`2`0`0`0`1`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
44
+ cout<<b<<":"<<rev(b);`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`4`3`1`0`1`0`0`0`0`0`0`0`7`0`7`0`1`1`0`0`0`0`0`0
45
+ cout<<b+1<<":"<<rev(b+1);`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`4`3`3`2`1`0`0`0`0`0`0`0`7`0`7`0`1`1`2`0`0`2`0`0
46
+ if(b==23)`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
47
+ if(c<32)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
48
+ cout<<"23:32";`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
49
+ cout<<"00:00";`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
50
+ 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
train/10450266.cpp.csv ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 getparent(int u)`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 (p[u] == u)return u;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`1`0
4
+ p[u] = getparent(p[u]);`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`5`0`5`0`1`1`1`0`0`1`2`0
5
+ return p[u];`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
6
+ void unite(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
7
+ a = getparent(a);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
8
+ b = getparent(b);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
9
+ if (a == b) return;`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 (r[a] < r[b])`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
11
+ swap(a, b);`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`1`0`0`0`0`0`0
12
+ if (r[a] == r[b]) r[a]++;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`1`0`2`3`0
13
+ p[b] = a;`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`3`0`3`0`0`0`1`0`0`1`1`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 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
16
+ 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
17
+ int sum = 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
18
+ for (int i = 0; i < n; i++) p[i] = i, r[i] = 0, was[i] = false;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`7`10`3`2`0`0`1`0`0`0`1`1`10`1`12`0`0`0`6`1`0`7`3`0
19
+ 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
20
+ int k;`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
21
+ cin >> k;`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
22
+ sum += k;`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
23
+ for (int j = 0; j < k; 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
24
+ int x;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
25
+ cin >> x;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`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
26
+ q[--x].push_back(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`3`0`3`0`0`0`0`1`0`1`1`0
27
+ if (sum == n){`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
28
+ cout << n;`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
29
+ 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
30
+ 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`0
31
+ for (auto it = q[i].begin(); it != q[i].end(); it++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`5`6`1`1`0`0`1`0`0`0`1`1`8`1`10`1`0`0`0`0`0`0`2`0
32
+ unite(*it, *q[i].begin());`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`5`3`0`0`0`0`0`0`0`0`0`0`6`0`6`0`1`1`0`0`0`0`1`0
33
+ int result = 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
34
+ 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
35
+ if (was[getparent(i)] == false)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`2`1`0`0`1`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`1`0
36
+ result++, was[getparent(i)] = true;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`7`3`1`0`0`0`0`0`0`0`0`0`4`0`4`0`1`1`2`1`0`3`1`0
37
+ cout << result - 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`3`0`3`0`0`0`1`0`0`1`0`0
38
+ 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
train/10450668.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
+ int n,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`2`0`1`3`0`0`0`0`0`0`0`0`0
4
+ char str[100001];`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
+ cin>>str;`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
6
+ n=strlen(str);`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`1`0`0`1`0`0
7
+ char str2[n-1];`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
+ i=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
9
+ while(str[i]=='1'){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`1`0
10
+ cout<<1;`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`2`0`2`0`0`0`0`0`0`0`0`0
11
+ i++;`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`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
12
+ i++;`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`1`0`1`0`1
13
+ while(i<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`2`0`2`0`0`0`1`0`0`1`0`0
14
+ cout<<str[i];`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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
15
+ i++;`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`0`0`0`0`0`1`0`1`0`0`0`0`1`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
train/10450820.cpp.csv ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 getparent(int u)`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 (p[u] == u)return u;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`1`0
4
+ p[u] = getparent(p[u]);`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`5`0`5`0`1`1`1`0`0`1`2`0
5
+ return p[u];`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
6
+ void unite(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
7
+ a = getparent(a);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
8
+ b = getparent(b);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`1`0`0`1`0`0
9
+ if (a == b) return;`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
+ cnt--;`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`1`0`1`0`0
11
+ if (r[a] < r[b])`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
12
+ swap(a, b);`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`1`0`0`0`0`0`0
13
+ if (r[a] == r[b]) r[a]++;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`6`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`1`1`0`2`3`0
14
+ p[b] = a;`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`3`0`3`0`0`0`1`0`0`1`1`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;`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
17
+ 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
18
+ pair <int, int> a[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
19
+ cnt = 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`2`0`2`0`0`0`1`0`0`1`0`0
20
+ 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
21
+ cin >> a[i].first >> a[i].second;`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`1
22
+ 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
23
+ 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
24
+ if (a[i].first == a[j].first || a[i].second == a[j].second)`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`5`8`0`0`0`1`0`0`0`0`0`0`8`0`8`0`0`0`3`0`0`3`4`0
25
+ unite(i, j);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`5`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
26
+ cout << cnt - 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`3`0`3`0`0`0`1`0`0`1`0`0
27
+ 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
train/10451504.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 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,k;`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>>k;`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
+ int i,x,ar[n],a=0,d=3,z=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
6
+ ar[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`0
7
+ ar[1]=2;`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`0
8
+ ar[2]=3;`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`0
9
+ for(i=2;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`1
10
+ for(x=2;x<i;x++)`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`0`4`0`4`0`0`0`2`1`0`3`0`0
11
+ if(i%x==0)`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`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
12
+ break;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
13
+ else if(x==i/2)`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`4`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
14
+ ar[d]=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`4`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
15
+ d++;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`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
16
+ for(i=0;i<d-2;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`2`2`0`0`1`0`0`0`1`0`4`0`4`0`0`0`3`1`0`4`0`0
17
+ z=ar[i]+ar[i+1]+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`0`5`0`5`0`0`0`4`0`0`4`2`0
18
+ for(x=0;x<d;x++)`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`0`4`0`4`0`0`0`2`1`0`3`0`1
19
+ if(z==ar[x])`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`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
20
+ a++;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
21
+ if(a>=k)`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
22
+ cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
23
+ cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
train/10451898.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
+ cin >> n >> 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`4`0`4`0`0`0`0`0`0`0`0`0
4
+ int a = 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`1`1`1`3`0`0`0`0`0`0`0`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
+ if(i >= n / 2) a -= s[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`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`2`0`1`3`0`1
7
+ else a += s[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`4`0`4`0`0`0`0`0`1`1`0`0
8
+ if(!a) puts("YES");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`3`1`0`1`1`0`0`0`0`0`0`5`0`5`0`0`1`0`1`0`1`0`0
9
+ else puts("NO");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`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
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
train/10452011.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", &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 = 2; 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];`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
+ a[i] += a[i - 1]; `FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`1`2`2`0
7
+ cin >> s >> t;`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
8
+ cout << a[s] - a[t];`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`5`0`5`0`0`0`1`0`0`1`1`1
9
+ return 0;`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`3`0`3`0`0`0`0`0`0`0`1`0
train/1383193.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`1
3
+ int n,i,j,p,m,t,max,id;`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`1
4
+ while(scanf("%d",&n)!=EOF)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`1`0`0`1`0`2`0`2`1`0`1`1`2`0`3`0`0
5
+ int sum=0,max=0;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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`1
6
+ for(i=0;i<n;i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
7
+ sum=0;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`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`1
8
+ scanf("%s%d%d",name[i],&p,&m);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`0`1`0`0`0`0`0`0`0`5`0`5`2`0`1`0`2`0`2`1`1
9
+ sum+=p*100-m*50;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`1`4`0`0
10
+ for(j=1;j<=5;j++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`3`2`2`0`0`1`0`0`0`1`0`3`0`3`0`0`0`2`1`0`3`0`0
11
+ scanf("%d",&t);`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
12
+ sum+=t;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`1
13
+ if(sum>max)`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
14
+ max=sum;`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`2`0`2`0`0`0`1`0`0`1`0`0
15
+ id=i;`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`2`0`2`0`0`0`1`0`0`1`0`0
16
+ num[i]=sum;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`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`1
17
+ printf("%s\n",name[id]);`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`0`0`1`0`0`0`0`1`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
train/13831967.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`0
3
+ int n, m, in[MAX], dp[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
4
+ double x;`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 = 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
7
+ scanf("%d%lf", &in[i], &x);`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
+ dp[n-1] = 1;`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`2`0`2`0`0`0`2`0`0`2`1`0
9
+ for(int i = n-2; i >= 0; 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
+ 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`1
11
+ if(in[i] <= in[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
12
+ dp[i] = max(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`3`6`1`1`0`0`0`0`0`0`0`0`7`0`7`0`0`1`2`0`0`2`3`0
train/1383205.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
+ int cmp(node h,node g){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`1`1`0`0`0`0`0`0`0`1`6`0`7`3`0`1`1`3`0`4`1`1
3
+ return h.sum>g.sum;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
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 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`1
6
+ while(scanf("%d",&n)!=EOF){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`1`0`0`1`0`2`0`2`1`0`1`1`2`0`3`0`0
7
+ int x,y;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`1
8
+ int a,b,c,d,e;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`0
9
+ int i;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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
10
+ for(i=0;i<n;i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
11
+ scanf("%s",l[i].t);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`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
12
+ scanf("%d%d%d%d%d%d%d",&x,&y,&a,&b,&c,&d,&e);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`7`1`0`1`0`0`0`0`0`0`0`8`0`8`7`0`1`0`7`0`7`0`0
13
+ if(a>=500&&a<=150)l[i].sum+=a;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`5`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`3`0`1`4`1`0
14
+ if(b>=300&&b<=1000)l[i].sum+=b;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`5`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`3`0`1`4`1`0
15
+ if(c>=450&&c<=1500)l[i].sum+=c;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`5`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`3`0`1`4`1`0
16
+ if(d>=600&&d<=2000)l[i].sum+=d;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`5`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`3`0`1`4`1`0
17
+ if(e>=750&&e<=2500)l[i].sum+=e;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`5`5`2`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`3`0`1`4`1`0
18
+ l[i].sum+=x*100-y*50;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`1`4`1`0
19
+ sort(l,l+n,cmp);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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`0
20
+ printf("%s\n",l[0].t);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`1`0
train/13832116.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
+ 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 arr[]={'6', '7', '8', '9', 'T', 'J', 'Q', 'K' , 'A'};`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`9`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
4
+ string x, a,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`3`0`1`4`0`0`0`0`0`0`0`0`0
5
+ cin>>x>>a>>b;`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
6
+ int j;`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
+ if(x[0]==a[1])`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`2`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
8
+ if(a[1]==b[1])`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`2`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
9
+ for(int i=0;i<9;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
10
+ if(a[0]==arr[i])`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`3`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`1`0
11
+ j=i;break;`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
12
+ for(int i=0;i<j;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
13
+ if(b[0]==arr[i])`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`3`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`1`0
14
+ cout<<"YES";`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`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;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
16
+ cout<<"NO";`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
17
+ 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
18
+ 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
19
+ if(a[1]==b[1])`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`2`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
20
+ for(int i=0;i<9;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
21
+ if(a[0]==arr[i])`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`1`0
22
+ j=i;break;`FunctionDecl,false;IfStmt,false;ForStmt,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
23
+ for(int i=0;i<j;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`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
24
+ if(b[0]==arr[i])`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`1`0
25
+ cout<<"YES";`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`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
26
+ return 0;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`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
27
+ cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
28
+ cout<<"NO";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
train/13832314.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 m,i,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`3`0`1`4`0`0`0`0`0`0`0`0`0
4
+ cin>>m;`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(i=1;i<=m;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
6
+ int 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`1`0`1`2`0`0`0`0`0`0`0`0`0
7
+ cin>>x;`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
+ num[x]++;`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`1`0`1`1`0
9
+ for(i=1;i<=m;i++) ans+=abs(num[i]-1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`7`2`2`0`0`1`0`0`0`1`0`8`0`8`0`0`1`3`1`1`5`1`1
10
+ cout<<ans/2<<endl;`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`0`1`0`0`1`0`0
train/1383253.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 n,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`2`0`1`3`0`0`0`0`0`0`0`0`1
3
+ double s,a,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`3`0`1`4`0`0`0`0`0`0`0`0`0
4
+ 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
5
+ 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
6
+ scanf("%lf %lf",&a,&b);`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`2`0`1`0`2`0`2`0`0
7
+ if(b*4>a)`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
8
+ s=0.5+a/(16*b);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`2`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`4`0`0`4`0`0
9
+ s=0.5+(b+a/2)/(a+b*4);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`5`3`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`7`0`0`7`0`1
10
+ printf("%.10lf\n",s);`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
train/13832651.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
+ char s[1000002];`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 slen, i, j = 0, sum = 0,x = 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`5`0`1`6`0`0`0`0`0`0`0`0`0
4
+ while (scanf("%s",s)!=EOF)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`1`0`0`1`0`2`0`2`0`0`1`1`1`0`2`0`0
5
+ slen = strlen(s);`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`1`1`0`0`1`0`0
6
+ for (i = 0; i < slen; ++i)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
7
+ sum += s[i] - '0';`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`1`2`1`0
8
+ if (sum != 0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1
9
+ x += 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`0`0`1`1`0`0
10
+ if (sum > 9)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
11
+ while (sum != 0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`0`1`0`0`0`4`0`3`1`1`1`0`0`0`1`0`0`1`0`1`0`1`0`0`0`1`0`0`1`0`0
12
+ j += sum % 10;`FunctionDecl,false;WhileStmt,false;IfStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`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`1`0`1`2`0`0
13
+ sum /= 10;`FunctionDecl,false;WhileStmt,false;IfStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`1`1`0`0
14
+ if (sum == 0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`2`0`2`0`0`0`5`0`4`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
15
+ x += 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`2`0`2`0`0`0`5`0`4`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`1`1`0`0
16
+ if (j > 9 && sum == 0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`2`0`2`0`0`0`5`0`6`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`0
17
+ sum = j;`FunctionDecl,false;WhileStmt,false;IfStmt,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`2`0`2`0`0`0`5`0`6`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
18
+ j = 0;`FunctionDecl,false;WhileStmt,false;IfStmt,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`2`0`2`0`0`0`5`0`6`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
19
+ printf("%d\n", x);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
20
+ j = 0; sum = 0; x = 0;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`3`3`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`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
train/1383275.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
+ int i,j,k;`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`0
4
+ double res;`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",&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
6
+ 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
7
+ scanf("%lf%lf",&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
8
+ if(b==0){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
9
+ printf("%.8f\n",1.0);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`0`2`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
10
+ continue;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
11
+ 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`1
12
+ res=(2*b-a/4)/2.0*a;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`4`3`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`6`0`0`6`0`0
13
+ }else res=2*b*b;`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`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
14
+ res/=2*a*b;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`1`3`0`0
15
+ res=1-res;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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`2`0`0`2`0`0
16
+ printf("%.8f\n",res);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`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
train/13833618.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
+ char T,first[3],second[3],ranks[]={'6','7','8','9','T','J','Q','R','A'};`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`9`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`1
4
+ int f,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`2`0`1`3`0`0`0`0`0`0`0`0`0
5
+ cin>>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`0`0`0`0`0`0`0
6
+ cin>>first>>second;`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
7
+ if((first[1]==T)&&(second[1]!=T))`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`4`2`2`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`2`0
8
+ cout<<"YES";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`5`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
9
+ else if(first[1]==second[1])`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`6`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`2`0
10
+ for(int i=0; i<9; i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
11
+ if(ranks[i]==first[0])`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`8`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`2`0
12
+ f=i;`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`8`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(ranks[i]==second[0])`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`8`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`2`0
14
+ s=i;`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`8`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
15
+ if(f>s)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`7`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
16
+ cout<<"YES";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`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
17
+ cout<<"NO";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`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
18
+ cout<<"NO";`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`2`0`2`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
train/1383374.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 n,i,j;`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
3
+ int a,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`2`0`1`3`0`0`0`0`0`0`0`0`0
4
+ double s,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`2`0`1`3`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
+ while(n--)`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
7
+ 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
8
+ double ans;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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
9
+ if(b==0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
10
+ ans=1.0;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
11
+ printf("%lf\n",ans);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
12
+ continue;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
13
+ else if(a==0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
14
+ ans=0.5;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
15
+ printf("%lf\n",ans);`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
16
+ continue;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
17
+ s=a*1.0*b*2;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`2`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`4`0`0`4`0`0
18
+ if(fabs(b-a*1.0/4)<=eps)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`2`1`0`1`0`0`0`0`0`0`3`0`3`0`0`1`4`0`0`4`0`0
19
+ sum=s-b*b*2.0;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`4`2`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`0
20
+ sum=(a*1.0/4+b*2)*a*1.0/2;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`4`5`3`0`0`0`0`0`0`0`0`4`0`4`0`0`0`8`0`0`8`0`0
21
+ ans=sum/s;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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`2`0`0`2`0`0
22
+ printf("%lf\n",ans);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`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
train/13833786.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 test, i, j ;`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`0
3
+ char g1[100001];`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
+ char g2[100001];`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
+ char d[3];`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
+ char r[3];`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
7
+ j = 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
8
+ scanf("%s %s", g1, g2);`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`0`0
9
+ if (strlen(g1) == strlen(g2))`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`4`0`4`0`0`2`1`0`0`1`0`0
10
+ test = strlen(g1) - 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`3`0`3`0`0`1`2`0`0`2`0`0
11
+ for (i = 0; i <= test; i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
12
+ if (g1[i] != g2[i])`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`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
13
+ d[j] = g1[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
14
+ r[j] = i;`FunctionDecl,false;IfStmt,false;ForStmt,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
15
+ j++;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
16
+ if(j==2) break;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
17
+ g1[r[0]] = d[1];`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`3`0
18
+ g1[r[1]] = d[0];`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`3`0
19
+ if (strcmp(g1, g2) == 0)`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`1`0`0`1`0`0
20
+ printf("YES\n");`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
21
+ printf("NO\n");`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`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
22
+ printf("NO\n");`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
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
train/13834012.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`1
3
+ int k,l;`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`1
4
+ scanf("%d%d",&k,&l);`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
+ int t=1,ans=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
6
+ while(t<=l)`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`2`0`2`0`0`0`1`0`0`1`0`0
7
+ t*=k;`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`2`0`2`0`0`0`0`0`1`1`0`0
8
+ if(t==l)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
9
+ ans++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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`1`0`1`0`0
10
+ printf("YES\n%d\n",ans);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
11
+ return 0;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
12
+ else if(t>l)`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`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
13
+ printf("NO\n");`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
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
train/13834044.cpp.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
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 >> d;`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
4
+ mc = 1000007;`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`1
train/1383427.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 n,i,j;`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`0
3
+ int a,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`2`0`1`3`0`0`0`0`0`0`0`0`0
4
+ double s,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`2`0`1`3`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
+ while(n--)`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
7
+ 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
8
+ double ans;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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
9
+ if(b==0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
10
+ ans=1.0;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
11
+ printf("%.10lf\n",ans);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
12
+ continue;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
13
+ else if(a==0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
14
+ ans=0.5;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
15
+ printf("%.10lf\n",ans);`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
16
+ continue;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
17
+ s=a*1.0*b*2;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`2`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`4`0`0`4`0`0
18
+ 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
19
+ sum=s-b*b*2.0;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`4`1`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`1
20
+ sum=(a*1.0/4+b*2)*a*1.0/2;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`4`5`3`0`0`0`0`0`0`0`0`4`0`4`0`0`0`8`0`0`8`0`0
21
+ ans=sum/s;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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`2`0`0`2`0`0
22
+ printf("%.10lf\n",ans);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`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
train/13834376.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
+ long int n,t,ck=0,min,i;`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`5`0`1`6`0`0`0`0`0`0`0`0`1
4
+ cin >> n >> t;`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
+ min=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`2`0`2`0`0`0`1`0`0`1`0`0
6
+ 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
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(t==min) ck++;`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`1`0`2`0`0
9
+ if(t<min)`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
10
+ min=t;`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`1
11
+ ck=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
12
+ if(ck>0) cout << "Still Rozdil";`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`3`0`3`0`0`0`1`0`0`1`0`0
13
+ else cout << min;`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`1
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
train/13834398.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
+ long int n,t,ck=0,min,i,k;`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`6`0`1`7`0`0`0`0`0`0`0`0`1
4
+ cin >> n >> t;`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
+ min=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`2`0`2`0`0`0`1`0`0`1`0`0
6
+ 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
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(t==min) ck++;`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`1`0`2`0`0
9
+ if(t<min)`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
10
+ k=i+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
11
+ min=t;`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
+ ck=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
13
+ if(ck>0) cout << "Still Rozdil";`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`3`0`3`0`0`0`1`0`0`1`0`0
14
+ else cout << k;`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
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
train/13834486.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
+ char s[101];`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
+ gets(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`0`2`0`2`0`0`1`0`0`0`0`0`0
5
+ cout<<s<<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`1
6
+ int it=strlen(s)-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`1`2`1`4`0`0`1`1`0`0`1`0`0
7
+ while(1)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`1`1`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0
8
+ char c=toupper(s[it]);`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`1`3`1`5`0`0`1`0`0`0`0`1`0
9
+ if(((c>64 && c<91)||(c>96 && c<123)) && (c=='A' || c=='E' || c=='I' || c=='O' || c=='U' || c=='Y'))`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`24`10`10`4`0`1`0`0`0`0`0`0`10`0`10`0`0`0`19`0`0`19`0`0
10
+ cout<<"YES\n";`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`24`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;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`24`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
12
+ else if((c>64 && c<91)||(c>96 && c<123))`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`33`4`4`4`0`1`0`0`0`0`0`0`4`0`4`0`0`0`7`0`0`7`0`0
13
+ cout<<"NO\n";`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`33`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;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`33`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
15
+ it--;`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`0`0`0`0`0`1`0`1`0`0`0`0`1`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
train/1383453.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 i,j,cas;`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
+ double a,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`2`0`1`3`0`0`0`0`0`0`0`0`0
5
+ scanf("%d",&cas);`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
+ while(cas--){`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
7
+ int aa,bb;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
8
+ scanf("%d%d",&aa,&bb);`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
9
+ a=aa;`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`2`0`2`0`0`0`1`0`0`1`0`0
10
+ b=bb;`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`2`0`2`0`0`0`1`0`0`1`0`0
11
+ double res;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`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
12
+ if(bb==0){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
+ res = 0;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`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
14
+ res=a/b/16.0+0.5;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`2`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`4`0`0`4`0`0
15
+ printf("%.8f\n",res);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`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
train/18952149.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,k;`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`1
4
+ cin>>n>>k;`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(n < k || k == 1)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`1
6
+ cout<<-1<<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`1`0`1`0`1
7
+ 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
8
+ for(int i = 0;i < n - (k - 2);i ++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`2`2`0`0`1`0`0`0`1`1`4`1`6`0`0`0`3`1`0`4`0`0
9
+ cout<<(i % 2 == 0 ? 'a' : 'b');`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`4`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
10
+ for(int i = 0;i < k - 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
11
+ cout<<char('c' + i);`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`3`0`3`0`0`0`1`0`0`1`0`0
12
+ 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
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
train/18952161.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(int argc, char const *argv[])`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
+ scanf("%d %d", &n,&k);`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`1
4
+ if (k>n)`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
5
+ printf("-1\n");`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
6
+ 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`1
7
+ int tmp=n-k+2;`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`1`2`1`4`0`0`0`2`0`0`2`0`0
8
+ if(k==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
9
+ for (int i = 0; i < n; ++i)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`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
10
+ printf("a");`FunctionDecl,false;IfStmt,false;ForStmt,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
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`1
12
+ for (int i = 1; i <= tmp; ++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
13
+ if(i%2) printf("a");`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`2`1`1`1`0`0`0`0`0`0`2`0`2`0`0`1`1`0`0`1`0`0
14
+ else printf("b");`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
15
+ for (int i = 99; i < 99+k-2 ; ++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`3`3`0`0`1`0`0`0`1`1`3`1`5`0`0`0`3`1`0`4`0`0
16
+ printf("%c", i);`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`0`0`1`0`0`0`0`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
train/18952186.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 n,k;`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>>k;`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(n < k)`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
+ printf("-1\n" );`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
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 tmp = n - k + 2;`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`1`2`1`4`0`0`0`2`0`0`2`0`1
9
+ for (int i = 0; i < tmp; ++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
+ if(i % 2 == 0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`2`2`0`1`0`0`0`0`0`0`1`0`1`0`0`0`2`0`0`2`0`0
11
+ printf("a");`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
12
+ printf("b");`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
13
+ for (int i = tmp,s=0; i < n; ++i,s++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`1`1`0`0`1`0`0`0`1`2`5`1`8`0`0`0`2`2`0`4`0`0
14
+ char c = 'c' + s;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`1`0`0`1`0`0
15
+ cout<<c;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0