private void generateArff(List<sei.buaa.program.analyzer.TestCase> tcs) {
		StringBuilder builder = new StringBuilder();
		builder.append("@relation "+program+versionID+"\n");
		
		int attrCnt = af.getAttributeCount();
		if (pruneAttributes == false)attrCnt = totalExecutableCodeCnt;
//		System.out.println("attribute size = " + attrCnt + ",totalFailedTests = " + totalFailedTestCaseCnt);
//		int attrCnt = totalExecutableCodeCnt;
		
		builder.append("@attribute ID integer\n");
		for (int i = 0; i < attrCnt; i++)
			builder.append("@attribute A"+i+" real\n");
		
		builder.append("@data\n");
		for (int i = 0; i < tcs.size(); i++)
		{
			builder.append(tcs.get(i).getId());
			for (int j = 0; j < tcs.get(i).getStatements().size(); j++)
			{
				if (af.filter(tcs.get(i).getStatements().get(j).getLineNumber()) == false && pruneAttributes == true)
					builder.append(","+tcs.get(i).getStatements().get(j).getCount());
				else if (pruneAttributes == false)
					builder.append(","+tcs.get(i).getStatements().get(j).getCount());
			}
			builder.append("\n");
		}
		FileUtility.writeContentToFile(builder.toString(),programDir+"/output_statement_arff/v"+versionID+".arff");
	}