File size: 3,241 Bytes
da6962b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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
void name(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`0`0`0`0`0`0`0`0`0`0`0`0`0
if(n==1)cout<<"Sheldon";`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
else if(n==2)cout<<"Leonard";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`2`1`1`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
else if(n==3)cout<<"Penny";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`2`2`1`1`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
else if(n==4)cout<<"Rajesh";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`4`0`0`0`5`0`4`2`2`1`1`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
else if(n==5)cout<<"Howard";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`5`0`0`0`6`0`5`2`2`1`1`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
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
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
int 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
while(cin>>n)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`3`0`3`0`0`0`0`0`0`0`0`0
int sub=5,cnt=1;`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`0
while(n>sub)`FunctionDecl,false;WhileStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`0`0`0`0`0`3`0`2`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
n-=sub;`FunctionDecl,false;WhileStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
sub*=2;`FunctionDecl,false;WhileStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`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`0`0`1`1`0`0
cnt*=2;`FunctionDecl,false;WhileStmt,false;WhileStmt,false;`1`0`0`0`0`0`2`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`0`0`1`1`0`0
if(n<=5)name(n);`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`3`0`3`0`1`1`1`0`0`1`0`0
int ans=(n/cnt);`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`0`0`0`0`0`0`1`2`1`4`0`0`0`1`0`0`1`0`0
if(n%cnt>1)ans++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`2`0`0`0`4`0`3`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`0`1
name(ans);`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`1`0`1`0`1`1`0`0`0`0`0`0
|