File size: 1,723 Bytes
da6962b
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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`1
	int n,a,b,c;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`1
	scanf("%d%d%d%d",&n,&a,&b,&c);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`1`0`1`0`0`0`0`0`0`0`5`0`5`4`0`1`0`4`0`4`0`0
	n=4-n%4;`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
	n%=4;`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
	f[0]=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`2`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
	f[1]=min(a,min(b+c,c*3));`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`2`2`0`0`0`0`0`0`0`0`7`0`7`0`0`2`3`0`0`3`1`0
	f[2]=min(a*2,min(b,c*2));`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`6`0`6`0`0`2`3`0`0`3`1`0
	f[3]=min(c,min(a*3,a+b));`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`5`2`2`0`0`0`0`0`0`0`0`7`0`7`0`0`2`3`0`0`3`1`0
	cout<<f[n];`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`4`0`4`0`0`0`0`0`0`0`1`0
	return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0