File size: 1,571 Bytes
2ab7a4a |
1 2 3 4 5 6 7 8 9 10 |
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
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
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
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
p = a*(b+a*0.125);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`4`1`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`1
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
p -= (a-4*b)*(a*0.25-b)*0.5;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`5`3`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`6`0`1`7`0`0
printf("%.6f\n", p/(a*2*b));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`2`1`1`0`0`0`0`0`0`0`3`0`3`0`0`1`3`0`0`3`0`0
|