<gh_stars>0
package e0210;

/*
 * @author <NAME>		-		<EMAIL>
 * 
 * Course project,
 * Principles of Programming Course, Fall - 2016,
 * Computer Science and Automation (CSA),
 * Indian Institute of Science (IISc),
 * Bangalore
 */

import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Paths;

public class ProcessOutput {
	static String finalResult="abc";				//Refer tracemaker nad symbolic execution
	static String globalTrace="";				//
	public static void main(String[] args) throws IOException {
		
		String project = args[0];
		String testcase = args[1];
		
		String globalTraceOutPath = "Testcases/" + project + "/processed-output/" + testcase + ".global_trace";
		String tupleOutPath = "Testcases/" + project + "/processed-output/" + testcase + ".tuples";
		
		String inPath = "Testcases/" + project + "/output/" + testcase;
		String outPath = "Testcases/" + project + "/processed-output/" + testcase;

		System.out.println("Processing " + testcase + " of " + project);

		// Read the contents of the output file into a string
		String in = new String(Files.readAllBytes(Paths.get(inPath)));

		/*
		 * 
		 * Write your algorithm which does the post-processing of the output
		 * 
		 */

		// Write the contents of the string to the output file
		PrintWriter out = new PrintWriter(tupleOutPath);
		out.print(finalResult);		
		out.close();
		
		PrintWriter globalTraceWriter = new PrintWriter(globalTraceOutPath);
		globalTraceWriter.print(globalTrace);
		globalTraceWriter.close();

		return;
	}

}