Browse Source

first commit

hmar 4 years ago
commit
dfa9c51668
100 changed files with 7440 additions and 0 deletions
  1. 317 0
      synthetic-dataset/generate.py
  2. 73 0
      synthetic-dataset/generated_dataset/ctest0.c
  3. 92 0
      synthetic-dataset/generated_dataset/ctest1.c
  4. 41 0
      synthetic-dataset/generated_dataset/ctest10.c
  5. 97 0
      synthetic-dataset/generated_dataset/ctest100.c
  6. 112 0
      synthetic-dataset/generated_dataset/ctest1000.c
  7. 66 0
      synthetic-dataset/generated_dataset/ctest1001.c
  8. 55 0
      synthetic-dataset/generated_dataset/ctest1002.c
  9. 41 0
      synthetic-dataset/generated_dataset/ctest1003.c
  10. 41 0
      synthetic-dataset/generated_dataset/ctest1004.c
  11. 81 0
      synthetic-dataset/generated_dataset/ctest1005.c
  12. 65 0
      synthetic-dataset/generated_dataset/ctest1006.c
  13. 53 0
      synthetic-dataset/generated_dataset/ctest1007.c
  14. 50 0
      synthetic-dataset/generated_dataset/ctest1008.c
  15. 106 0
      synthetic-dataset/generated_dataset/ctest1009.c
  16. 108 0
      synthetic-dataset/generated_dataset/ctest101.c
  17. 66 0
      synthetic-dataset/generated_dataset/ctest1010.c
  18. 75 0
      synthetic-dataset/generated_dataset/ctest1011.c
  19. 76 0
      synthetic-dataset/generated_dataset/ctest1012.c
  20. 72 0
      synthetic-dataset/generated_dataset/ctest1013.c
  21. 91 0
      synthetic-dataset/generated_dataset/ctest1014.c
  22. 59 0
      synthetic-dataset/generated_dataset/ctest1015.c
  23. 74 0
      synthetic-dataset/generated_dataset/ctest1016.c
  24. 93 0
      synthetic-dataset/generated_dataset/ctest1017.c
  25. 94 0
      synthetic-dataset/generated_dataset/ctest1018.c
  26. 100 0
      synthetic-dataset/generated_dataset/ctest1019.c
  27. 68 0
      synthetic-dataset/generated_dataset/ctest102.c
  28. 69 0
      synthetic-dataset/generated_dataset/ctest1020.c
  29. 59 0
      synthetic-dataset/generated_dataset/ctest1021.c
  30. 81 0
      synthetic-dataset/generated_dataset/ctest1022.c
  31. 88 0
      synthetic-dataset/generated_dataset/ctest1023.c
  32. 42 0
      synthetic-dataset/generated_dataset/ctest1024.c
  33. 82 0
      synthetic-dataset/generated_dataset/ctest1025.c
  34. 45 0
      synthetic-dataset/generated_dataset/ctest1026.c
  35. 74 0
      synthetic-dataset/generated_dataset/ctest1027.c
  36. 98 0
      synthetic-dataset/generated_dataset/ctest1028.c
  37. 84 0
      synthetic-dataset/generated_dataset/ctest1029.c
  38. 89 0
      synthetic-dataset/generated_dataset/ctest103.c
  39. 77 0
      synthetic-dataset/generated_dataset/ctest1030.c
  40. 41 0
      synthetic-dataset/generated_dataset/ctest1031.c
  41. 78 0
      synthetic-dataset/generated_dataset/ctest1032.c
  42. 100 0
      synthetic-dataset/generated_dataset/ctest1033.c
  43. 57 0
      synthetic-dataset/generated_dataset/ctest1034.c
  44. 81 0
      synthetic-dataset/generated_dataset/ctest1035.c
  45. 59 0
      synthetic-dataset/generated_dataset/ctest1036.c
  46. 72 0
      synthetic-dataset/generated_dataset/ctest1037.c
  47. 69 0
      synthetic-dataset/generated_dataset/ctest1038.c
  48. 84 0
      synthetic-dataset/generated_dataset/ctest1039.c
  49. 59 0
      synthetic-dataset/generated_dataset/ctest104.c
  50. 71 0
      synthetic-dataset/generated_dataset/ctest1040.c
  51. 95 0
      synthetic-dataset/generated_dataset/ctest1041.c
  52. 64 0
      synthetic-dataset/generated_dataset/ctest1042.c
  53. 41 0
      synthetic-dataset/generated_dataset/ctest1043.c
  54. 75 0
      synthetic-dataset/generated_dataset/ctest1044.c
  55. 66 0
      synthetic-dataset/generated_dataset/ctest1045.c
  56. 84 0
      synthetic-dataset/generated_dataset/ctest1046.c
  57. 94 0
      synthetic-dataset/generated_dataset/ctest1047.c
  58. 99 0
      synthetic-dataset/generated_dataset/ctest1048.c
  59. 84 0
      synthetic-dataset/generated_dataset/ctest1049.c
  60. 74 0
      synthetic-dataset/generated_dataset/ctest105.c
  61. 84 0
      synthetic-dataset/generated_dataset/ctest1050.c
  62. 94 0
      synthetic-dataset/generated_dataset/ctest1051.c
  63. 41 0
      synthetic-dataset/generated_dataset/ctest1052.c
  64. 63 0
      synthetic-dataset/generated_dataset/ctest1053.c
  65. 89 0
      synthetic-dataset/generated_dataset/ctest1054.c
  66. 64 0
      synthetic-dataset/generated_dataset/ctest1055.c
  67. 67 0
      synthetic-dataset/generated_dataset/ctest1056.c
  68. 63 0
      synthetic-dataset/generated_dataset/ctest1057.c
  69. 74 0
      synthetic-dataset/generated_dataset/ctest1058.c
  70. 87 0
      synthetic-dataset/generated_dataset/ctest1059.c
  71. 61 0
      synthetic-dataset/generated_dataset/ctest106.c
  72. 37 0
      synthetic-dataset/generated_dataset/ctest1060.c
  73. 89 0
      synthetic-dataset/generated_dataset/ctest1061.c
  74. 74 0
      synthetic-dataset/generated_dataset/ctest1062.c
  75. 75 0
      synthetic-dataset/generated_dataset/ctest1063.c
  76. 82 0
      synthetic-dataset/generated_dataset/ctest1064.c
  77. 62 0
      synthetic-dataset/generated_dataset/ctest1065.c
  78. 60 0
      synthetic-dataset/generated_dataset/ctest1066.c
  79. 49 0
      synthetic-dataset/generated_dataset/ctest1067.c
  80. 103 0
      synthetic-dataset/generated_dataset/ctest1068.c
  81. 100 0
      synthetic-dataset/generated_dataset/ctest1069.c
  82. 65 0
      synthetic-dataset/generated_dataset/ctest107.c
  83. 50 0
      synthetic-dataset/generated_dataset/ctest1070.c
  84. 97 0
      synthetic-dataset/generated_dataset/ctest1071.c
  85. 87 0
      synthetic-dataset/generated_dataset/ctest1072.c
  86. 87 0
      synthetic-dataset/generated_dataset/ctest1073.c
  87. 67 0
      synthetic-dataset/generated_dataset/ctest1074.c
  88. 42 0
      synthetic-dataset/generated_dataset/ctest1075.c
  89. 51 0
      synthetic-dataset/generated_dataset/ctest1076.c
  90. 71 0
      synthetic-dataset/generated_dataset/ctest1077.c
  91. 82 0
      synthetic-dataset/generated_dataset/ctest1078.c
  92. 83 0
      synthetic-dataset/generated_dataset/ctest1079.c
  93. 55 0
      synthetic-dataset/generated_dataset/ctest108.c
  94. 60 0
      synthetic-dataset/generated_dataset/ctest1080.c
  95. 58 0
      synthetic-dataset/generated_dataset/ctest1081.c
  96. 79 0
      synthetic-dataset/generated_dataset/ctest1082.c
  97. 37 0
      synthetic-dataset/generated_dataset/ctest1083.c
  98. 63 0
      synthetic-dataset/generated_dataset/ctest1084.c
  99. 87 0
      synthetic-dataset/generated_dataset/ctest1085.c
  100. 0 0
      synthetic-dataset/generated_dataset/ctest1086.c

+ 317 - 0
synthetic-dataset/generate.py

@@ -0,0 +1,317 @@
+import sys
+import os
+import subprocess
+import string
+import random
+
+# it genarates random CPU programs for use with PinTools (.c files), 
+# CUDA programs (READY) (.cu files), OPENCL (NOT READY) programs (.cl files), 
+# CPU+CUDA (.cu files) with kernel time measurement and evaluation of proper operation
+
+def malloc_host_data(cudaoutfile, coutfile, num_int_arrays, num_float_arrays, size_of_arrays):
+	cudaoutfile.write("int size="+str(size_of_arrays)+";\n")
+	cudaoutfile.write("int intBytes = size*sizeof(int);\n")
+	cudaoutfile.write("int floatBytes = size*sizeof(float);\n")
+	for i in range(num_int_arrays):
+		cudaoutfile.write("int *A"+str(i)+";\n")
+		cudaoutfile.write("A"+str(i)+" = (int *)malloc(intBytes);\n")
+	for i in range(num_float_arrays):
+		cudaoutfile.write("float *B"+str(i)+";\n")
+		cudaoutfile.write("B"+str(i)+" = (float *)malloc(floatBytes);\n")
+
+	coutfile.write("int size="+str(size_of_arrays)+";\n")
+	coutfile.write("int intBytes = size*sizeof(int);\n")
+	coutfile.write("int floatBytes = size*sizeof(float);\n")
+	for i in range(num_int_arrays):
+		coutfile.write("int *A"+str(i)+";\n")
+		coutfile.write("A"+str(i)+" = (int *)malloc(intBytes);\n")
+	for i in range(num_float_arrays):
+		coutfile.write("float *B"+str(i)+";\n")
+		coutfile.write("B"+str(i)+" = (float *)malloc(floatBytes);\n")
+
+def init_arrays(cudaoutfile, coutfile, num_int_arrays, num_float_arrays, size_of_arrays):
+	cudaoutfile.write("for(int i=0;i<"+str(size_of_arrays)+";i++){\n")
+	coutfile.write("for(int i=0;i<"+str(size_of_arrays)+";i++){\n")
+	for i in range(num_int_arrays):
+		operation = random.randrange(2)
+		if operation == 0:
+			line = "A"+str(i)+"[i] = "+str(random.randrange(100))+"+i+1;\n"
+			cudaoutfile.write(line)
+			coutfile.write(line)
+		if operation == 1:
+			line = "A"+str(i)+"[i] = "+str(random.randrange(100))+"*i+1;\n"
+			cudaoutfile.write(line)
+			coutfile.write(line)
+	for i in range(num_float_arrays):
+		operation = random.randrange(2)
+		if operation == 0:
+			line = "B"+str(i)+"[i] = "+str(random.uniform(0,100))+"+i+1;\n"
+			cudaoutfile.write(line)
+			coutfile.write(line)
+		if operation == 1:
+			line = "B"+str(i)+"[i] = "+str(random.uniform(0,100))+"*i+1;\n"
+			cudaoutfile.write(line)
+			coutfile.write(line)
+	cudaoutfile.write("}\n")
+	coutfile.write("}\n")
+
+def const_init_arrays_for_static_dataset(outfile, num_int_arrays, num_float_arrays, size_of_arrays):
+	for i in range(num_int_arrays):
+		outfile.write("int A"+str(i)+"[10];\n")
+	for i in range(num_float_arrays):
+		outfile.write("float B"+str(i)+"[10];\n")
+
+def copy_data_to_device(outfile, num_int_arrays, num_float_arrays, size_of_arrays):
+	#outfile.write("int size="+str(size_of_arrays)+";\n")
+	#outfile.write("int intBytes = size*sizeof(int);\n")
+	#outfile.write("int floatBytes = size*sizeof(float);\n")
+	for i in range(num_int_arrays):
+		outfile.write("int *d_A"+str(i)+";\n")
+		outfile.write("cudaMalloc((void **)&d_A"+str(i)+","+str(size_of_arrays)+"*sizeof(int));\n")
+		outfile.write("cudaMemcpy(d_A"+str(i)+",A"+str(i)+","+str(size_of_arrays)+"*sizeof(int),cudaMemcpyHostToDevice);\n")
+	for i in range(num_float_arrays):
+		outfile.write("float *d_B"+str(i)+";\n")
+		outfile.write("cudaMalloc((void **)&d_B"+str(i)+","+str(size_of_arrays)+"*sizeof(float));\n")
+		outfile.write("cudaMemcpy(d_B"+str(i)+",B"+str(i)+","+str(size_of_arrays)+"*sizeof(float),cudaMemcpyHostToDevice);\n")
+
+def make_kernel(cudaoutfile, coutfile, cloutfile, num_int_arrays, num_float_arrays, size_of_arrays):
+	line_gpu = "__global__ void kernel_gpu"
+	line_cpu = "void kernel_cpu"
+	line = "("
+	for i in range(num_int_arrays):
+		line = line + "int *A"+str(i)+","
+	for i in range(num_float_arrays):
+		line = line + "float *B"+str(i)+","
+
+	#generate the computation part
+	kernel_body = ""
+	#select output arrays
+	if num_int_arrays > 1:
+		output_int_arrays = random.randrange(num_int_arrays-1)+1
+	elif num_int_arrays == 1:
+		output_int_arrays = 1
+	else:
+		output_int_arrays = 0
+	if num_float_arrays > 1:
+		output_float_arrays = random.randrange(num_float_arrays-1)+1
+	elif num_float_arrays == 1:
+		output_float_arrays = 1
+	else:
+		output_float_arrays = 0
+
+	for i in range(output_int_arrays):
+		kernel_body = kernel_body + "A"+str(i)+"[i] = "
+		input_int_arrays = random.randrange(4)+1
+		for j in range(input_int_arrays):
+			if num_int_arrays > 1:
+				out_array = random.randrange(num_int_arrays-output_int_arrays)
+			else:
+				out_array = -1;
+			kernel_body = kernel_body + "A"+str(output_int_arrays+out_array)+"[i]"
+			operation = random.randrange(4)
+			if operation == 0:
+				kernel_body = kernel_body+"+"
+			if operation == 1:
+				kernel_body = kernel_body+"-"
+			if operation == 2:
+				kernel_body = kernel_body+"*"
+			if operation == 3:
+				kernel_body = kernel_body+"/"
+		kernel_body = kernel_body[:-1]+";\n"
+
+	for i in range(output_float_arrays):
+		kernel_body = kernel_body + "B"+str(i)+"[i] = "
+		input_float_arrays = random.randrange(4)+1
+		for j in range(input_float_arrays):
+			if num_float_arrays > 1:
+				out_array = random.randrange(num_float_arrays-output_float_arrays)
+			else:
+				out_array = -1;
+			kernel_body = kernel_body + "B"+str(output_float_arrays+out_array)+"[i]"
+			operation = random.randrange(4)
+			if operation == 0:
+				kernel_body = kernel_body+"+"
+			if operation == 1:
+				kernel_body = kernel_body+"-"
+			if operation == 2:
+				kernel_body = kernel_body+"*"
+			if operation == 3:
+				kernel_body = kernel_body+"/"
+		kernel_body = kernel_body[:-1]+";\n"
+
+	# gpu kernel
+	cudaoutfile.write(line_gpu+line+"int N){\n")
+	cudaoutfile.write("int i = blockIdx.x * blockDim.x + threadIdx.x;\n")
+	cudaoutfile.write("if (i < N){\n")
+	cudaoutfile.write(kernel_body)
+	cudaoutfile.write("}\n")
+	cudaoutfile.write("}\n")
+	cudaoutfile.write("\n")
+		
+	# cpu kernel
+	cudaoutfile.write(line_cpu+line+"int N){\n")
+	cudaoutfile.write("for(int i=0;i<N;i++){\n")
+	cudaoutfile.write(kernel_body)
+	cudaoutfile.write("}\n")
+	cudaoutfile.write("}\n")
+	coutfile.write(line_cpu+line+"int N){\n")
+	coutfile.write("for(int i=0;i<N;i++){\n")
+	coutfile.write(kernel_body)
+	coutfile.write("}\n")
+	coutfile.write("}\n")
+
+	cloutfile.write("for(int i=0;i<N;i++){\n")
+	cloutfile.write(kernel_body)
+	cloutfile.write("}\n")
+
+def call_kernels(cudaoutfile, coutfile, num_int_arrays, num_float_arrays, size_of_arrays):
+
+	# the cuda kernel will have block grid size that can run the whole array in parallel
+	cudaoutfile.write("int n = "+str(int(size_of_arrays/256)+1)+"*256;\n")
+	cudaoutfile.write("int block_size = 256;\n")
+	cudaoutfile.write("int block_no = n/block_size;\n")
+	cudaoutfile.write("struct timeval time0,time1;\n")
+	cudaoutfile.write("gettimeofday(&time0,NULL);\n")
+
+	line = "kernel_gpu<<<block_no,block_size>>>("
+	for i in range(num_int_arrays):
+		line = line + "d_A"+str(i)+","
+	for i in range(num_float_arrays):
+		line = line + "d_B"+str(i)+","
+	cudaoutfile.write(line+str(size_of_arrays)+");\n")
+	cudaoutfile.write("cudaThreadSynchronize();\n")
+
+	cudaoutfile.write("gettimeofday(&time1,NULL);\n")
+	cudaoutfile.write("double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);\n")
+	cudaoutfile.write("fprintf(stderr, \"GPU time: %lf msecs \",  (totaltime10)/1000.0F);\n")
+
+	#cudaoutfile.write("struct timeval time0,time1;\n")
+	cudaoutfile.write("gettimeofday(&time0,NULL);\n")
+
+	coutfile.write("struct timeval time0,time1;\n")
+	coutfile.write("gettimeofday(&time0,NULL);\n")
+
+	# Pin tools annotations
+	coutfile.write("FILE *file_for_block_of_interest = fopen(\"./profile_in_block.txt\",\"w\");\n")
+	coutfile.write("if(file_for_block_of_interest) {\n")
+	coutfile.write("char Buf[2] = \"1\";\n")
+	coutfile.write("fwrite(Buf, 1, 1, file_for_block_of_interest);\n")
+	coutfile.write("fclose(file_for_block_of_interest);}\n")
+
+	line = "kernel_cpu("
+	for i in range(num_int_arrays):
+		line = line + "A"+str(i)+","
+	for i in range(num_float_arrays):
+		line = line + "B"+str(i)+","
+	cudaoutfile.write(line+str(size_of_arrays)+");\n")
+	coutfile.write(line+str(size_of_arrays)+");\n")
+
+	# Pin tools annotations
+	coutfile.write("file_for_block_of_interest = fopen(\"./profile_in_block.txt\",\"w\");\n")
+	coutfile.write("if(file_for_block_of_interest) {\n")
+	coutfile.write("char Buf[2] = \"0\";\n")
+	coutfile.write("fwrite(Buf, 1, 1, file_for_block_of_interest);\n")
+	coutfile.write("fclose(file_for_block_of_interest);}\n")
+
+	cudaoutfile.write("gettimeofday(&time1,NULL);\n")
+	cudaoutfile.write("totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);\n")
+	cudaoutfile.write("fprintf(stderr, \"CPU time: %lf msecs \",  (totaltime10)/1000.0F);\n")
+
+	coutfile.write("gettimeofday(&time1,NULL);\n")
+	coutfile.write("double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);\n")
+	coutfile.write("fprintf(stderr, \"CPU time: %lf msecs \",  (totaltime10)/1000.0F); \n")
+
+def make_tests(outfile, num_int_arrays, num_float_arrays, size_of_arrays):
+	#outfile.write("int size="+str(size_of_arrays)+";\n")
+	#outfile.write("int intBytes = size*sizeof(int);\n")
+	#outfile.write("int floatBytes = size*sizeof(float);\n")
+	for i in range(num_int_arrays):
+		outfile.write("int *testA"+str(i)+";\n")
+		outfile.write("testA"+str(i)+" = (int *)malloc(intBytes);\n")
+		outfile.write("cudaMemcpy(testA"+str(i)+",d_A"+str(i)+","+str(size_of_arrays)+"*sizeof(int),cudaMemcpyDeviceToHost);\n")
+	for i in range(num_float_arrays):
+		outfile.write("float *testB"+str(i)+";\n")
+		outfile.write("testB"+str(i)+" = (float *)malloc(floatBytes);\n")
+		outfile.write("cudaMemcpy(testB"+str(i)+",d_B"+str(i)+","+str(size_of_arrays)+"*sizeof(int),cudaMemcpyDeviceToHost);\n")
+	outfile.write("for(int i=0;i<"+str(size_of_arrays)+";i++){\n")
+	for i in range(num_int_arrays):
+		outfile.write("if (A"+str(i)+"[i] != testA"+str(i)+"[i]) {\n")
+		outfile.write("printf(\"Invalid kernel \");\n")
+		outfile.write("break;}\n")
+	#for i in range(num_float_arrays):
+	#	outfile.write("if (int(B"+str(i)+"[i]) != int(testB"+str(i)+"[i])) {\n")
+	#	outfile.write("printf(\"Invalid kernel\\n \");\n")
+	#	outfile.write("break;}\n")
+	outfile.write("}\n")
+
+def free_pointers(cudaoutfile, coutfile, num_int_arrays, num_float_arrays, size_of_arrays):
+	for i in range(num_int_arrays):
+		coutfile.write("free(A"+str(i)+");\n")
+		cudaoutfile.write("free(A"+str(i)+");\n")
+		cudaoutfile.write("free(testA"+str(i)+");\n")
+		cudaoutfile.write("cudaFree(d_A"+str(i)+");\n")
+	for i in range(num_float_arrays):
+		coutfile.write("free(B"+str(i)+");\n")
+		cudaoutfile.write("free(B"+str(i)+");\n")
+		cudaoutfile.write("free(testB"+str(i)+");\n")
+		cudaoutfile.write("cudaFree(d_B"+str(i)+");\n")
+
+num_of_programs = sys.argv[1]
+output_directory = sys.argv[2]
+
+for i in range (int(num_of_programs)):
+	cudafile = output_directory+"/cudatest"+str(i)+".cu"
+	cfile = output_directory+"/ctest"+str(i)+".c"
+	clfile = output_directory+"/test"+str(i)+".cl"
+	with open(cudafile,"a") as cudaoutfile:
+		with open(cfile,"a") as coutfile:
+			with open(clfile,"a") as cloutfile:
+
+				cudaoutfile.write("#include <iostream>\n")
+				cudaoutfile.write("#include <cuda.h>\n")
+				cudaoutfile.write("#include <stdio.h>\n")
+				cudaoutfile.write("#include <stdlib.h>\n")
+				cudaoutfile.write("#include <sys/time.h>\n")
+				cudaoutfile.write("using namespace std;\n")
+
+				cudaoutfile.write("\n")
+
+				coutfile.write("#include <stdio.h>\n")
+				coutfile.write("#include <stdlib.h>\n")
+				coutfile.write("#include <sys/time.h>\n")
+				#coutfile.write("using namespace std;\n")
+
+				coutfile.write("\n")
+
+				num_int_arrays = random.randrange(10)
+				num_float_arrays = random.randrange(10)
+				size_of_arrays = random.randrange(1000000)
+
+				cloutfile.write("__kernel void memset_kernel(){\n")
+				const_init_arrays_for_static_dataset(cloutfile, num_int_arrays,num_float_arrays,size_of_arrays)
+
+				# 1 for only c, 2 for cuda
+				make_kernel(cudaoutfile, coutfile, cloutfile, num_int_arrays,num_float_arrays,size_of_arrays)
+
+				cudaoutfile.write("\n")
+				cudaoutfile.write("int main(int argc,char **argv) {\n")
+				coutfile.write("\n")
+				coutfile.write("int main(int argc,char **argv) {\n")
+
+				cudaoutfile.write("fprintf(stderr, \""+str(i)+" \");\n")
+
+				malloc_host_data(cudaoutfile, coutfile, num_int_arrays,num_float_arrays,size_of_arrays)
+				init_arrays(cudaoutfile, coutfile, num_int_arrays,num_float_arrays,size_of_arrays)
+				copy_data_to_device(cudaoutfile, num_int_arrays,num_float_arrays,size_of_arrays)
+
+				# 1 for only c, 2 for cuda
+				call_kernels(cudaoutfile, coutfile, num_int_arrays,num_float_arrays,size_of_arrays)
+				make_tests(cudaoutfile, num_int_arrays,num_float_arrays,size_of_arrays)
+				free_pointers(cudaoutfile, coutfile, num_int_arrays,num_float_arrays,size_of_arrays)
+
+				cudaoutfile.write("printf(\"\\n\");")
+				coutfile.write("printf(\"\\n\");")
+
+				cudaoutfile.write("return 0; }")
+				coutfile.write("return 0; }")
+				cloutfile.write("}")

+ 73 - 0
synthetic-dataset/generated_dataset/ctest0.c

@@ -0,0 +1,73 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]+A1[i]+A1[i]*A1[i];
+B0[i] = B6[i]-B4[i]-B4[i];
+B1[i] = B5[i]-B6[i];
+B2[i] = B4[i]*B4[i]+B5[i];
+B3[i] = B5[i]-B4[i]/B6[i]/B4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=157421;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<157421;i++){
+A0[i] = 86+i+1;
+A1[i] = 7+i+1;
+B0[i] = 38.2904516847+i+1;
+B1[i] = 34.1100758094*i+1;
+B2[i] = 96.4414920343+i+1;
+B3[i] = 98.8696466019+i+1;
+B4[i] = 13.1740476648+i+1;
+B5[i] = 49.6824528306+i+1;
+B6[i] = 18.9365914108*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,B4,B5,B6,157421);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 92 - 0
synthetic-dataset/generated_dataset/ctest1.c

@@ -0,0 +1,92 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+A0[i] = A4[i]/A4[i]*A3[i]/A4[i];
+A1[i] = A3[i]*A4[i];
+A2[i] = A4[i]*A3[i]/A4[i];
+B0[i] = B6[i]-B5[i]*B5[i];
+B1[i] = B7[i]*B7[i]-B7[i];
+B2[i] = B6[i];
+B3[i] = B7[i];
+B4[i] = B6[i]+B6[i]*B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=848345;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<848345;i++){
+A0[i] = 58+i+1;
+A1[i] = 40+i+1;
+A2[i] = 5+i+1;
+A3[i] = 91+i+1;
+A4[i] = 68+i+1;
+B0[i] = 65.1819160995+i+1;
+B1[i] = 86.7633316017*i+1;
+B2[i] = 22.0716305247*i+1;
+B3[i] = 14.1820773001*i+1;
+B4[i] = 53.1910560608+i+1;
+B5[i] = 13.0250992309+i+1;
+B6[i] = 35.8996975344+i+1;
+B7[i] = 15.3564457712+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,B0,B1,B2,B3,B4,B5,B6,B7,848345);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 41 - 0
synthetic-dataset/generated_dataset/ctest10.c

@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+B0[i] = B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=780753;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<780753;i++){
+B0[i] = 40.3753524617+i+1;
+B1[i] = 31.2812598695+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,780753);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 97 - 0
synthetic-dataset/generated_dataset/ctest100.c

@@ -0,0 +1,97 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A8[i]-A8[i];
+A1[i] = A8[i]/A8[i]*A8[i];
+A2[i] = A8[i]/A8[i]/A8[i]/A8[i];
+A3[i] = A8[i]*A8[i]*A8[i]-A8[i];
+A4[i] = A8[i]*A8[i];
+A5[i] = A8[i]/A8[i]+A8[i]-A8[i];
+A6[i] = A8[i]-A8[i]-A8[i];
+A7[i] = A8[i]-A8[i]*A8[i]/A8[i];
+B0[i] = B4[i]+B4[i]*B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=238524;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<238524;i++){
+A0[i] = 92+i+1;
+A1[i] = 97+i+1;
+A2[i] = 3+i+1;
+A3[i] = 76+i+1;
+A4[i] = 56*i+1;
+A5[i] = 14+i+1;
+A6[i] = 84+i+1;
+A7[i] = 31*i+1;
+A8[i] = 94*i+1;
+B0[i] = 98.3059628762+i+1;
+B1[i] = 66.7661304525*i+1;
+B2[i] = 48.711199957*i+1;
+B3[i] = 16.033055576+i+1;
+B4[i] = 3.97549717245*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,B3,B4,238524);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 112 - 0
synthetic-dataset/generated_dataset/ctest1000.c

@@ -0,0 +1,112 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,float *B8,int N){
+for(int i=0;i<N;i++){
+A0[i] = A7[i]+A7[i]-A7[i]/A7[i];
+A1[i] = A7[i]-A7[i];
+A2[i] = A7[i];
+A3[i] = A7[i]/A7[i]*A7[i];
+A4[i] = A7[i]+A7[i]/A7[i]-A7[i];
+A5[i] = A7[i]*A7[i]/A7[i];
+A6[i] = A7[i]*A7[i];
+B0[i] = B8[i];
+B1[i] = B7[i];
+B2[i] = B5[i]+B7[i]*B6[i];
+B3[i] = B5[i]*B6[i];
+B4[i] = B6[i]-B8[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=965510;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+float *B8;
+B8 = (float *)malloc(floatBytes);
+for(int i=0;i<965510;i++){
+A0[i] = 1+i+1;
+A1[i] = 43*i+1;
+A2[i] = 6*i+1;
+A3[i] = 71*i+1;
+A4[i] = 82+i+1;
+A5[i] = 44+i+1;
+A6[i] = 29+i+1;
+A7[i] = 80+i+1;
+B0[i] = 3.10104333696+i+1;
+B1[i] = 29.9609658113+i+1;
+B2[i] = 66.2229560795*i+1;
+B3[i] = 95.4352651935*i+1;
+B4[i] = 43.6703639093+i+1;
+B5[i] = 62.1470496612*i+1;
+B6[i] = 61.5445425799+i+1;
+B7[i] = 79.1526170019+i+1;
+B8[i] = 61.2740127737*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,B7,B8,965510);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+free(B8);
+printf("\n");return 0; }

+ 66 - 0
synthetic-dataset/generated_dataset/ctest1001.c

@@ -0,0 +1,66 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]+A5[i];
+B0[i] = B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=346112;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<346112;i++){
+A0[i] = 81*i+1;
+A1[i] = 37+i+1;
+A2[i] = 66+i+1;
+A3[i] = 98*i+1;
+A4[i] = 39*i+1;
+A5[i] = 42+i+1;
+B0[i] = 22.7322009646+i+1;
+B1[i] = 95.4474852382+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,B1,346112);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 55 - 0
synthetic-dataset/generated_dataset/ctest1002.c

@@ -0,0 +1,55 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,float *B0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A3[i]-A3[i]*A2[i]*A2[i];
+A1[i] = A3[i]/A2[i]-A2[i]-A3[i];
+B0[i] = B0[i]/B0[i]*B0[i]*B0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=246273;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+for(int i=0;i<246273;i++){
+A0[i] = 91+i+1;
+A1[i] = 69*i+1;
+A2[i] = 59+i+1;
+A3[i] = 6*i+1;
+B0[i] = 74.9073554733*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,B0,246273);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(B0);
+printf("\n");return 0; }

+ 41 - 0
synthetic-dataset/generated_dataset/ctest1003.c

@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]+A1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=281384;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+for(int i=0;i<281384;i++){
+A0[i] = 71*i+1;
+A1[i] = 94+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,281384);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+printf("\n");return 0; }

+ 41 - 0
synthetic-dataset/generated_dataset/ctest1004.c

@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]*A1[i]-A1[i]*A1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=227743;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+for(int i=0;i<227743;i++){
+A0[i] = 28*i+1;
+A1[i] = 14+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,227743);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+printf("\n");return 0; }

+ 81 - 0
synthetic-dataset/generated_dataset/ctest1005.c

@@ -0,0 +1,81 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A8[i]-A8[i]+A8[i]+A8[i];
+A1[i] = A8[i]/A8[i];
+A2[i] = A8[i]*A8[i]/A8[i];
+A3[i] = A8[i]+A8[i]-A8[i]-A8[i];
+A4[i] = A8[i]*A8[i]*A8[i]-A8[i];
+A5[i] = A8[i];
+A6[i] = A8[i]*A8[i];
+A7[i] = A8[i];
+B0[i] = B0[i]*B0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=121691;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+for(int i=0;i<121691;i++){
+A0[i] = 16*i+1;
+A1[i] = 54+i+1;
+A2[i] = 64+i+1;
+A3[i] = 98*i+1;
+A4[i] = 40+i+1;
+A5[i] = 40+i+1;
+A6[i] = 4*i+1;
+A7[i] = 79+i+1;
+A8[i] = 31+i+1;
+B0[i] = 97.6991159088+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,121691);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+printf("\n");return 0; }

+ 65 - 0
synthetic-dataset/generated_dataset/ctest1006.c

@@ -0,0 +1,65 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+B0[i] = B6[i]/B7[i]+B3[i]-B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=955208;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<955208;i++){
+B0[i] = 6.9317673816*i+1;
+B1[i] = 40.1442371545*i+1;
+B2[i] = 45.0699020425*i+1;
+B3[i] = 17.9134051288+i+1;
+B4[i] = 13.2309116958+i+1;
+B5[i] = 40.2934043849*i+1;
+B6[i] = 3.26113496488*i+1;
+B7[i] = 71.7609031147+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,B5,B6,B7,955208);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 53 - 0
synthetic-dataset/generated_dataset/ctest1007.c

@@ -0,0 +1,53 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+B0[i] = B1[i]/B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=447210;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<447210;i++){
+B0[i] = 6.58265573444+i+1;
+B1[i] = 50.3841765242*i+1;
+B2[i] = 11.3082681236+i+1;
+B3[i] = 16.1333558368+i+1;
+B4[i] = 36.3597802419*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,447210);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 50 - 0
synthetic-dataset/generated_dataset/ctest1008.c

@@ -0,0 +1,50 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]*A1[i];
+B0[i] = B1[i]/B1[i]+B1[i]/B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=190504;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<190504;i++){
+A0[i] = 44*i+1;
+A1[i] = 93*i+1;
+B0[i] = 38.2613685521*i+1;
+B1[i] = 86.7383129332+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,190504);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 106 - 0
synthetic-dataset/generated_dataset/ctest1009.c

@@ -0,0 +1,106 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+A0[i] = A8[i]*A4[i];
+A1[i] = A6[i];
+A2[i] = A4[i]+A6[i]-A6[i];
+A3[i] = A5[i]/A4[i]*A4[i];
+B0[i] = B5[i];
+B1[i] = B3[i]+B6[i]-B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=747566;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<747566;i++){
+A0[i] = 55*i+1;
+A1[i] = 33*i+1;
+A2[i] = 97*i+1;
+A3[i] = 18*i+1;
+A4[i] = 15+i+1;
+A5[i] = 29+i+1;
+A6[i] = 93*i+1;
+A7[i] = 55+i+1;
+A8[i] = 98*i+1;
+B0[i] = 62.224446334+i+1;
+B1[i] = 64.8606432238+i+1;
+B2[i] = 7.64002721292*i+1;
+B3[i] = 1.08605308237+i+1;
+B4[i] = 74.9333928005+i+1;
+B5[i] = 67.08393865*i+1;
+B6[i] = 89.1051944049*i+1;
+B7[i] = 8.36758109453+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,B3,B4,B5,B6,B7,747566);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 108 - 0
synthetic-dataset/generated_dataset/ctest101.c

@@ -0,0 +1,108 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,float *B8,int N){
+for(int i=0;i<N;i++){
+A0[i] = A8[i]-A8[i]+A8[i];
+A1[i] = A7[i]+A4[i]+A4[i]/A5[i];
+A2[i] = A5[i];
+B0[i] = B7[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=652622;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+float *B8;
+B8 = (float *)malloc(floatBytes);
+for(int i=0;i<652622;i++){
+A0[i] = 61+i+1;
+A1[i] = 53+i+1;
+A2[i] = 34*i+1;
+A3[i] = 46+i+1;
+A4[i] = 58*i+1;
+A5[i] = 65*i+1;
+A6[i] = 53*i+1;
+A7[i] = 59+i+1;
+A8[i] = 12*i+1;
+B0[i] = 94.3796991469*i+1;
+B1[i] = 93.5654029069+i+1;
+B2[i] = 79.5354172689+i+1;
+B3[i] = 55.9670332474*i+1;
+B4[i] = 11.5029041883+i+1;
+B5[i] = 92.6948818447+i+1;
+B6[i] = 12.284518544*i+1;
+B7[i] = 62.8839411632*i+1;
+B8[i] = 5.70801173433*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,B3,B4,B5,B6,B7,B8,652622);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+free(B8);
+printf("\n");return 0; }

+ 66 - 0
synthetic-dataset/generated_dataset/ctest1010.c

@@ -0,0 +1,66 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A0[i]/A0[i]/A0[i];
+B0[i] = B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=72764;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<72764;i++){
+A0[i] = 1*i+1;
+B0[i] = 23.4017579259+i+1;
+B1[i] = 33.6892301561+i+1;
+B2[i] = 91.1592049095*i+1;
+B3[i] = 69.8294945737+i+1;
+B4[i] = 60.48531716*i+1;
+B5[i] = 39.3472260219+i+1;
+B6[i] = 15.2567784661+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,B0,B1,B2,B3,B4,B5,B6,72764);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 75 - 0
synthetic-dataset/generated_dataset/ctest1011.c

@@ -0,0 +1,75 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]-A6[i]-A5[i]-A2[i];
+A1[i] = A2[i]/A5[i]-A7[i];
+B0[i] = B1[i]*B1[i]*B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=195975;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<195975;i++){
+A0[i] = 94+i+1;
+A1[i] = 10*i+1;
+A2[i] = 97+i+1;
+A3[i] = 57+i+1;
+A4[i] = 4+i+1;
+A5[i] = 88+i+1;
+A6[i] = 67*i+1;
+A7[i] = 21+i+1;
+B0[i] = 78.2705380095*i+1;
+B1[i] = 80.5856709002*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,195975);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 76 - 0
synthetic-dataset/generated_dataset/ctest1012.c

@@ -0,0 +1,76 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,float *B0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A7[i]+A7[i]-A7[i]-A7[i];
+A1[i] = A7[i]/A7[i]/A7[i]+A7[i];
+A2[i] = A7[i]+A7[i];
+A3[i] = A7[i]*A7[i];
+A4[i] = A7[i]+A7[i]+A7[i]/A7[i];
+A5[i] = A7[i]/A7[i]+A7[i]+A7[i];
+A6[i] = A7[i]-A7[i]+A7[i]+A7[i];
+B0[i] = B0[i]/B0[i]-B0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=712642;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+for(int i=0;i<712642;i++){
+A0[i] = 20*i+1;
+A1[i] = 58*i+1;
+A2[i] = 83+i+1;
+A3[i] = 7+i+1;
+A4[i] = 41+i+1;
+A5[i] = 83+i+1;
+A6[i] = 98+i+1;
+A7[i] = 85*i+1;
+B0[i] = 16.0089257567+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,B0,712642);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(B0);
+printf("\n");return 0; }

+ 72 - 0
synthetic-dataset/generated_dataset/ctest1013.c

@@ -0,0 +1,72 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i];
+B0[i] = B4[i];
+B1[i] = B4[i]/B4[i]+B5[i];
+B2[i] = B5[i]/B5[i]-B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=593588;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<593588;i++){
+A0[i] = 29*i+1;
+A1[i] = 59*i+1;
+A2[i] = 87+i+1;
+B0[i] = 83.6884317281*i+1;
+B1[i] = 39.0759955604+i+1;
+B2[i] = 29.0127797209*i+1;
+B3[i] = 74.5607236204+i+1;
+B4[i] = 4.62545131098*i+1;
+B5[i] = 46.6790360491+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,B4,B5,593588);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 91 - 0
synthetic-dataset/generated_dataset/ctest1014.c

@@ -0,0 +1,91 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,float *B8,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]/A3[i];
+B0[i] = B8[i]-B8[i]+B7[i];
+B1[i] = B8[i]*B8[i]-B6[i]/B8[i];
+B2[i] = B8[i]/B6[i]/B8[i];
+B3[i] = B6[i]/B7[i]-B8[i]*B7[i];
+B4[i] = B7[i];
+B5[i] = B8[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=829093;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+float *B8;
+B8 = (float *)malloc(floatBytes);
+for(int i=0;i<829093;i++){
+A0[i] = 45+i+1;
+A1[i] = 7+i+1;
+A2[i] = 49*i+1;
+A3[i] = 81+i+1;
+B0[i] = 99.3638508377*i+1;
+B1[i] = 10.5858237027+i+1;
+B2[i] = 16.2764547284+i+1;
+B3[i] = 76.5152854217*i+1;
+B4[i] = 2.53279499393+i+1;
+B5[i] = 92.946365177+i+1;
+B6[i] = 56.3068796646+i+1;
+B7[i] = 31.8241804322+i+1;
+B8[i] = 55.8758037948+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,B0,B1,B2,B3,B4,B5,B6,B7,B8,829093);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+free(B8);
+printf("\n");return 0; }

+ 59 - 0
synthetic-dataset/generated_dataset/ctest1015.c

@@ -0,0 +1,59 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+B0[i] = B4[i];
+B1[i] = B5[i];
+B2[i] = B3[i]+B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=231071;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<231071;i++){
+B0[i] = 0.359487749085*i+1;
+B1[i] = 74.5790522403+i+1;
+B2[i] = 15.9903708838+i+1;
+B3[i] = 42.8798665997*i+1;
+B4[i] = 29.7865292565*i+1;
+B5[i] = 92.5187722207*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,B5,231071);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 74 - 0
synthetic-dataset/generated_dataset/ctest1016.c

@@ -0,0 +1,74 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]*A6[i];
+A1[i] = A5[i]-A5[i]/A5[i]-A6[i];
+A2[i] = A6[i]*A5[i]+A6[i]/A6[i];
+A3[i] = A5[i];
+A4[i] = A6[i]/A5[i];
+B0[i] = B1[i]-B1[i]+B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=944562;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<944562;i++){
+A0[i] = 65+i+1;
+A1[i] = 3+i+1;
+A2[i] = 21+i+1;
+A3[i] = 96*i+1;
+A4[i] = 68+i+1;
+A5[i] = 24*i+1;
+A6[i] = 90+i+1;
+B0[i] = 79.936579244+i+1;
+B1[i] = 82.1527368233+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,944562);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 93 - 0
synthetic-dataset/generated_dataset/ctest1017.c

@@ -0,0 +1,93 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i];
+A1[i] = A5[i]+A5[i];
+A2[i] = A5[i]+A5[i]+A5[i];
+A3[i] = A5[i];
+A4[i] = A5[i]-A5[i]*A5[i];
+B0[i] = B6[i]*B6[i];
+B1[i] = B6[i]/B5[i];
+B2[i] = B5[i]-B5[i];
+B3[i] = B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=325048;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<325048;i++){
+A0[i] = 57+i+1;
+A1[i] = 17+i+1;
+A2[i] = 94*i+1;
+A3[i] = 65*i+1;
+A4[i] = 4+i+1;
+A5[i] = 55*i+1;
+B0[i] = 66.0643899318*i+1;
+B1[i] = 46.6083176717+i+1;
+B2[i] = 10.2123631451+i+1;
+B3[i] = 54.3487858898+i+1;
+B4[i] = 78.7454654909*i+1;
+B5[i] = 64.2361064334+i+1;
+B6[i] = 45.3592076589*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,B1,B2,B3,B4,B5,B6,325048);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 94 - 0
synthetic-dataset/generated_dataset/ctest1018.c

@@ -0,0 +1,94 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]*A4[i]+A5[i]/A4[i];
+A1[i] = A4[i];
+A2[i] = A4[i]+A5[i]+A4[i]/A5[i];
+A3[i] = A5[i]-A5[i];
+B0[i] = B6[i]-B6[i];
+B1[i] = B6[i];
+B2[i] = B6[i]*B6[i];
+B3[i] = B6[i];
+B4[i] = B6[i]+B6[i];
+B5[i] = B6[i]-B6[i]+B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=948411;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<948411;i++){
+A0[i] = 12+i+1;
+A1[i] = 95*i+1;
+A2[i] = 4*i+1;
+A3[i] = 18+i+1;
+A4[i] = 14*i+1;
+A5[i] = 96*i+1;
+B0[i] = 11.1263975046+i+1;
+B1[i] = 96.8494644393+i+1;
+B2[i] = 95.5155407522*i+1;
+B3[i] = 40.6847844683+i+1;
+B4[i] = 87.4857706161+i+1;
+B5[i] = 28.295615206+i+1;
+B6[i] = 37.6850162183+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,B1,B2,B3,B4,B5,B6,948411);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 100 - 0
synthetic-dataset/generated_dataset/ctest1019.c

@@ -0,0 +1,100 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A4[i]+A2[i];
+B0[i] = B4[i];
+B1[i] = B5[i]+B3[i]+B5[i];
+B2[i] = B5[i]+B4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=51610;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<51610;i++){
+A0[i] = 51*i+1;
+A1[i] = 12+i+1;
+A2[i] = 2+i+1;
+A3[i] = 88*i+1;
+A4[i] = 95*i+1;
+A5[i] = 2*i+1;
+A6[i] = 40*i+1;
+A7[i] = 19+i+1;
+A8[i] = 13+i+1;
+B0[i] = 17.7716167691*i+1;
+B1[i] = 13.9651446559*i+1;
+B2[i] = 73.8143870232+i+1;
+B3[i] = 16.105794166+i+1;
+B4[i] = 23.9148715455*i+1;
+B5[i] = 24.8528167454*i+1;
+B6[i] = 6.03785670672+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,B3,B4,B5,B6,51610);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 68 - 0
synthetic-dataset/generated_dataset/ctest102.c

@@ -0,0 +1,68 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]-A1[i];
+B0[i] = B3[i]-B5[i]/B5[i];
+B1[i] = B5[i];
+B2[i] = B5[i]+B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=664077;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<664077;i++){
+A0[i] = 31*i+1;
+A1[i] = 17+i+1;
+B0[i] = 66.3901155069+i+1;
+B1[i] = 22.0189043558*i+1;
+B2[i] = 20.8181579633+i+1;
+B3[i] = 20.0756376449+i+1;
+B4[i] = 67.1473739346*i+1;
+B5[i] = 15.7833030802+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,B4,B5,664077);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 69 - 0
synthetic-dataset/generated_dataset/ctest1020.c

@@ -0,0 +1,69 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A6[i];
+A1[i] = A4[i]-A5[i]/A4[i]+A4[i];
+A2[i] = A6[i]-A4[i];
+A3[i] = A5[i]*A6[i];
+B0[i] = B0[i]-B0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=571790;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+for(int i=0;i<571790;i++){
+A0[i] = 68*i+1;
+A1[i] = 3*i+1;
+A2[i] = 76+i+1;
+A3[i] = 38*i+1;
+A4[i] = 68*i+1;
+A5[i] = 72*i+1;
+A6[i] = 31+i+1;
+B0[i] = 15.1889879566+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,571790);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+printf("\n");return 0; }

+ 59 - 0
synthetic-dataset/generated_dataset/ctest1021.c

@@ -0,0 +1,59 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A4[i];
+A1[i] = A4[i];
+A2[i] = A5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=469289;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+for(int i=0;i<469289;i++){
+A0[i] = 42*i+1;
+A1[i] = 0*i+1;
+A2[i] = 33+i+1;
+A3[i] = 22+i+1;
+A4[i] = 33*i+1;
+A5[i] = 57*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,469289);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+printf("\n");return 0; }

+ 81 - 0
synthetic-dataset/generated_dataset/ctest1022.c

@@ -0,0 +1,81 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]*A2[i];
+B0[i] = B5[i];
+B1[i] = B5[i]+B5[i]+B5[i]/B6[i];
+B2[i] = B5[i]+B5[i]+B6[i];
+B3[i] = B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=247184;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<247184;i++){
+A0[i] = 31*i+1;
+A1[i] = 10+i+1;
+A2[i] = 85*i+1;
+A3[i] = 39+i+1;
+B0[i] = 71.6452001084*i+1;
+B1[i] = 42.3930702668+i+1;
+B2[i] = 76.2658335681+i+1;
+B3[i] = 59.5243133301+i+1;
+B4[i] = 77.7933228394+i+1;
+B5[i] = 33.0961231175*i+1;
+B6[i] = 5.02390552969*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,B0,B1,B2,B3,B4,B5,B6,247184);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 88 - 0
synthetic-dataset/generated_dataset/ctest1023.c

@@ -0,0 +1,88 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]+A5[i]-A5[i];
+A1[i] = A5[i]*A5[i]+A5[i];
+A2[i] = A5[i];
+A3[i] = A5[i]-A5[i]*A5[i]-A5[i];
+A4[i] = A5[i]-A5[i]+A5[i]-A5[i];
+B0[i] = B4[i]+B4[i]-B5[i];
+B1[i] = B5[i]-B5[i];
+B2[i] = B3[i]-B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=875502;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<875502;i++){
+A0[i] = 30+i+1;
+A1[i] = 26+i+1;
+A2[i] = 7*i+1;
+A3[i] = 71+i+1;
+A4[i] = 38+i+1;
+A5[i] = 7*i+1;
+B0[i] = 41.4866963283*i+1;
+B1[i] = 92.8650411785*i+1;
+B2[i] = 32.0959955042*i+1;
+B3[i] = 16.3004024282+i+1;
+B4[i] = 23.6794571975*i+1;
+B5[i] = 48.0356756158*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,B1,B2,B3,B4,B5,875502);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 42 - 0
synthetic-dataset/generated_dataset/ctest1024.c

@@ -0,0 +1,42 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,float *B0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A0[i]-A0[i]+A0[i];
+B0[i] = B0[i]/B0[i]-B0[i]/B0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=604875;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+for(int i=0;i<604875;i++){
+A0[i] = 13*i+1;
+B0[i] = 75.5021167085+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,B0,604875);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(B0);
+printf("\n");return 0; }

+ 82 - 0
synthetic-dataset/generated_dataset/ctest1025.c

@@ -0,0 +1,82 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,float *B0,float *B1,float *B2,int N){
+for(int i=0;i<N;i++){
+A0[i] = A6[i]*A5[i]-A7[i];
+A1[i] = A4[i]-A5[i]-A7[i]+A4[i];
+A2[i] = A6[i];
+A3[i] = A7[i]+A6[i];
+B0[i] = B2[i];
+B1[i] = B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=496579;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+for(int i=0;i<496579;i++){
+A0[i] = 41+i+1;
+A1[i] = 60+i+1;
+A2[i] = 97*i+1;
+A3[i] = 91+i+1;
+A4[i] = 99*i+1;
+A5[i] = 52+i+1;
+A6[i] = 79+i+1;
+A7[i] = 61*i+1;
+B0[i] = 67.9071553593+i+1;
+B1[i] = 88.9351614311*i+1;
+B2[i] = 20.1847215559*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,496579);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(B0);
+free(B1);
+free(B2);
+printf("\n");return 0; }

+ 45 - 0
synthetic-dataset/generated_dataset/ctest1026.c

@@ -0,0 +1,45 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,int N){
+for(int i=0;i<N;i++){
+B0[i] = B1[i]+B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=117321;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+for(int i=0;i<117321;i++){
+B0[i] = 49.6081544974*i+1;
+B1[i] = 36.3365329076*i+1;
+B2[i] = 67.8041394631+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,117321);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+printf("\n");return 0; }

+ 74 - 0
synthetic-dataset/generated_dataset/ctest1027.c

@@ -0,0 +1,74 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i];
+B0[i] = B6[i]/B6[i]+B5[i]/B6[i];
+B1[i] = B6[i]*B6[i]*B6[i]/B6[i];
+B2[i] = B5[i]-B6[i]+B5[i];
+B3[i] = B6[i]/B5[i]+B5[i]/B6[i];
+B4[i] = B6[i]*B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=916551;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<916551;i++){
+A0[i] = 59*i+1;
+A1[i] = 80*i+1;
+B0[i] = 49.0910824822+i+1;
+B1[i] = 86.7837614087+i+1;
+B2[i] = 63.1004916794*i+1;
+B3[i] = 11.4615608318*i+1;
+B4[i] = 32.1998178895+i+1;
+B5[i] = 33.7962923012*i+1;
+B6[i] = 14.4003943567*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,B4,B5,B6,916551);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 98 - 0
synthetic-dataset/generated_dataset/ctest1028.c

@@ -0,0 +1,98 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A7[i];
+A1[i] = A5[i];
+A2[i] = A5[i];
+A3[i] = A8[i]+A6[i];
+B0[i] = B2[i]+B4[i]/B5[i]*B4[i];
+B1[i] = B2[i]+B4[i]+B4[i]-B4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=30834;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<30834;i++){
+A0[i] = 67*i+1;
+A1[i] = 12*i+1;
+A2[i] = 49+i+1;
+A3[i] = 90*i+1;
+A4[i] = 92+i+1;
+A5[i] = 80*i+1;
+A6[i] = 77*i+1;
+A7[i] = 71+i+1;
+A8[i] = 74*i+1;
+B0[i] = 31.1983458686*i+1;
+B1[i] = 40.3010573802+i+1;
+B2[i] = 4.76954483382+i+1;
+B3[i] = 86.2386139378*i+1;
+B4[i] = 37.9611641974*i+1;
+B5[i] = 95.2163032759+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,B3,B4,B5,30834);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 84 - 0
synthetic-dataset/generated_dataset/ctest1029.c

@@ -0,0 +1,84 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,float *B2,float *B3,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]+A5[i]*A6[i];
+A1[i] = A6[i];
+A2[i] = A6[i]-A6[i]+A6[i];
+A3[i] = A6[i]+A6[i]+A5[i];
+A4[i] = A6[i]+A5[i]-A6[i];
+B0[i] = B3[i];
+B1[i] = B3[i]-B3[i]*B3[i];
+B2[i] = B3[i]+B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=586325;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+for(int i=0;i<586325;i++){
+A0[i] = 92+i+1;
+A1[i] = 43+i+1;
+A2[i] = 19*i+1;
+A3[i] = 69*i+1;
+A4[i] = 51+i+1;
+A5[i] = 38+i+1;
+A6[i] = 11*i+1;
+B0[i] = 35.5724531969*i+1;
+B1[i] = 82.7971989892+i+1;
+B2[i] = 64.8450752956+i+1;
+B3[i] = 60.2927455525*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,B2,B3,586325);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+printf("\n");return 0; }

+ 89 - 0
synthetic-dataset/generated_dataset/ctest103.c

@@ -0,0 +1,89 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,float *B8,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i];
+A1[i] = A2[i]-A2[i];
+B0[i] = B8[i]+B7[i];
+B1[i] = B8[i]-B8[i]-B8[i]/B8[i];
+B2[i] = B8[i]*B8[i]+B7[i]*B8[i];
+B3[i] = B7[i]*B8[i]-B8[i];
+B4[i] = B7[i]-B7[i];
+B5[i] = B8[i]+B7[i]-B7[i]/B8[i];
+B6[i] = B8[i]+B8[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=870284;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+float *B8;
+B8 = (float *)malloc(floatBytes);
+for(int i=0;i<870284;i++){
+A0[i] = 91*i+1;
+A1[i] = 40+i+1;
+A2[i] = 65*i+1;
+B0[i] = 12.5517595205+i+1;
+B1[i] = 84.2567958814+i+1;
+B2[i] = 80.5299749276+i+1;
+B3[i] = 66.35451747*i+1;
+B4[i] = 62.9783161657+i+1;
+B5[i] = 66.8889857738+i+1;
+B6[i] = 47.6523510782+i+1;
+B7[i] = 44.5311660884+i+1;
+B8[i] = 21.5032434691+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,B4,B5,B6,B7,B8,870284);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+free(B8);
+printf("\n");return 0; }

+ 77 - 0
synthetic-dataset/generated_dataset/ctest1030.c

@@ -0,0 +1,77 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]*A1[i]/A1[i]/A1[i];
+B0[i] = B4[i]/B7[i]*B5[i];
+B1[i] = B7[i];
+B2[i] = B4[i];
+B3[i] = B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=672026;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<672026;i++){
+A0[i] = 84*i+1;
+A1[i] = 30+i+1;
+B0[i] = 36.0095202312*i+1;
+B1[i] = 83.6820213337+i+1;
+B2[i] = 46.8062710496+i+1;
+B3[i] = 81.8321786435*i+1;
+B4[i] = 8.31564128074*i+1;
+B5[i] = 13.1607714844*i+1;
+B6[i] = 25.9477682623*i+1;
+B7[i] = 46.1779054806+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,B4,B5,B6,B7,672026);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 41 - 0
synthetic-dataset/generated_dataset/ctest1031.c

@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+B0[i] = B1[i]*B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=235644;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<235644;i++){
+B0[i] = 37.9076991392+i+1;
+B1[i] = 7.56649871919*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,235644);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 78 - 0
synthetic-dataset/generated_dataset/ctest1032.c

@@ -0,0 +1,78 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,float *B2,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i];
+A1[i] = A6[i]-A5[i];
+A2[i] = A6[i]-A6[i]-A6[i]+A5[i];
+A3[i] = A6[i]+A4[i]*A6[i]/A4[i];
+B0[i] = B2[i]/B2[i]-B2[i];
+B1[i] = B2[i]*B2[i]/B2[i]*B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=955548;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+for(int i=0;i<955548;i++){
+A0[i] = 84*i+1;
+A1[i] = 68*i+1;
+A2[i] = 14*i+1;
+A3[i] = 10+i+1;
+A4[i] = 63*i+1;
+A5[i] = 61*i+1;
+A6[i] = 76+i+1;
+B0[i] = 86.5989373704*i+1;
+B1[i] = 22.3318022094+i+1;
+B2[i] = 40.5809998472+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,B2,955548);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+free(B2);
+printf("\n");return 0; }

+ 100 - 0
synthetic-dataset/generated_dataset/ctest1033.c

@@ -0,0 +1,100 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A7[i]/A7[i]-A7[i];
+A1[i] = A6[i]*A7[i]/A7[i]+A5[i];
+A2[i] = A6[i]/A6[i]*A4[i];
+A3[i] = A6[i]/A7[i]/A6[i];
+B0[i] = B6[i]*B4[i];
+B1[i] = B4[i]-B5[i]/B5[i]-B5[i];
+B2[i] = B5[i]-B4[i]*B6[i];
+B3[i] = B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=763004;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<763004;i++){
+A0[i] = 23*i+1;
+A1[i] = 53+i+1;
+A2[i] = 45*i+1;
+A3[i] = 16*i+1;
+A4[i] = 48*i+1;
+A5[i] = 38+i+1;
+A6[i] = 13*i+1;
+A7[i] = 22*i+1;
+B0[i] = 6.87425661066*i+1;
+B1[i] = 67.115832255*i+1;
+B2[i] = 98.5190590718+i+1;
+B3[i] = 51.5344626194+i+1;
+B4[i] = 73.2934721372*i+1;
+B5[i] = 50.12887639*i+1;
+B6[i] = 77.1231139385+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,763004);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 57 - 0
synthetic-dataset/generated_dataset/ctest1034.c

@@ -0,0 +1,57 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+B0[i] = B4[i]+B1[i]-B3[i]/B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=780484;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<780484;i++){
+B0[i] = 75.5902362141*i+1;
+B1[i] = 73.7550608686+i+1;
+B2[i] = 52.4541079201*i+1;
+B3[i] = 54.0544810994*i+1;
+B4[i] = 65.0053951923+i+1;
+B5[i] = 20.7613717716+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,B5,780484);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 81 - 0
synthetic-dataset/generated_dataset/ctest1035.c

@@ -0,0 +1,81 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,float *B8,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i];
+B0[i] = B7[i]+B8[i]-B8[i]+B5[i];
+B1[i] = B5[i]*B5[i]-B4[i]-B7[i];
+B2[i] = B7[i];
+B3[i] = B6[i]+B5[i]-B8[i]/B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=227;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+float *B8;
+B8 = (float *)malloc(floatBytes);
+for(int i=0;i<227;i++){
+A0[i] = 81+i+1;
+A1[i] = 76*i+1;
+B0[i] = 13.5422098973+i+1;
+B1[i] = 14.7775447551*i+1;
+B2[i] = 56.120251136*i+1;
+B3[i] = 66.2886412922*i+1;
+B4[i] = 34.2805234687*i+1;
+B5[i] = 41.9776675876*i+1;
+B6[i] = 97.1997672155+i+1;
+B7[i] = 47.6472251691+i+1;
+B8[i] = 51.4786282081*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,B4,B5,B6,B7,B8,227);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+free(B8);
+printf("\n");return 0; }

+ 59 - 0
synthetic-dataset/generated_dataset/ctest1036.c

@@ -0,0 +1,59 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]+A2[i]*A2[i];
+A1[i] = A2[i]+A2[i]-A2[i]+A2[i];
+B0[i] = B2[i]+B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=503411;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+for(int i=0;i<503411;i++){
+A0[i] = 66*i+1;
+A1[i] = 92+i+1;
+A2[i] = 62*i+1;
+B0[i] = 69.1864668332+i+1;
+B1[i] = 90.2806037661+i+1;
+B2[i] = 69.9845036286+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,503411);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+printf("\n");return 0; }

+ 72 - 0
synthetic-dataset/generated_dataset/ctest1037.c

@@ -0,0 +1,72 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A6[i];
+A1[i] = A6[i]/A4[i]*A6[i]-A4[i];
+A2[i] = A3[i]-A3[i]*A6[i];
+B0[i] = B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=715558;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<715558;i++){
+A0[i] = 71*i+1;
+A1[i] = 4*i+1;
+A2[i] = 49+i+1;
+A3[i] = 86*i+1;
+A4[i] = 70+i+1;
+A5[i] = 30*i+1;
+A6[i] = 8*i+1;
+B0[i] = 60.9035292968*i+1;
+B1[i] = 77.6052770175*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,715558);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 69 - 0
synthetic-dataset/generated_dataset/ctest1038.c

@@ -0,0 +1,69 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+B0[i] = B5[i]*B7[i];
+B1[i] = B6[i]/B7[i];
+B2[i] = B7[i];
+B3[i] = B6[i];
+B4[i] = B6[i]*B7[i]+B7[i]*B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=243840;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<243840;i++){
+B0[i] = 2.99962653551+i+1;
+B1[i] = 66.5286105048+i+1;
+B2[i] = 0.975921868731+i+1;
+B3[i] = 4.24478120999+i+1;
+B4[i] = 79.2368580554*i+1;
+B5[i] = 43.7778033562+i+1;
+B6[i] = 0.222315597321*i+1;
+B7[i] = 70.7913279938+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,B5,B6,B7,243840);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 84 - 0
synthetic-dataset/generated_dataset/ctest1039.c

@@ -0,0 +1,84 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]+A5[i]*A5[i];
+A1[i] = A5[i];
+A2[i] = A5[i]-A5[i]*A5[i]/A5[i];
+A3[i] = A5[i];
+A4[i] = A5[i]-A5[i];
+B0[i] = B3[i]*B3[i]*B4[i]*B3[i];
+B1[i] = B4[i]/B3[i]*B4[i]*B3[i];
+B2[i] = B4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=12011;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<12011;i++){
+A0[i] = 85*i+1;
+A1[i] = 85*i+1;
+A2[i] = 47*i+1;
+A3[i] = 3+i+1;
+A4[i] = 8*i+1;
+A5[i] = 44*i+1;
+B0[i] = 9.52288678363+i+1;
+B1[i] = 98.4488575441+i+1;
+B2[i] = 69.6778097799+i+1;
+B3[i] = 53.3173552001+i+1;
+B4[i] = 16.6979340896*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,B1,B2,B3,B4,12011);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 59 - 0
synthetic-dataset/generated_dataset/ctest104.c

@@ -0,0 +1,59 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]+A1[i];
+B0[i] = B3[i]-B3[i]/B3[i]*B2[i];
+B1[i] = B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=33918;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+for(int i=0;i<33918;i++){
+A0[i] = 91+i+1;
+A1[i] = 76*i+1;
+B0[i] = 88.6188310138+i+1;
+B1[i] = 61.3123653852+i+1;
+B2[i] = 5.51948806073+i+1;
+B3[i] = 5.75281717084+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,33918);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+printf("\n");return 0; }

+ 71 - 0
synthetic-dataset/generated_dataset/ctest1040.c

@@ -0,0 +1,71 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+B0[i] = B7[i]-B7[i];
+B1[i] = B7[i]/B7[i]/B7[i];
+B2[i] = B7[i]-B7[i];
+B3[i] = B7[i]/B7[i];
+B4[i] = B7[i]-B7[i]-B7[i]+B7[i];
+B5[i] = B7[i]-B7[i]-B7[i]*B7[i];
+B6[i] = B7[i]+B7[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=188282;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<188282;i++){
+B0[i] = 92.0115009633+i+1;
+B1[i] = 26.8817282783+i+1;
+B2[i] = 47.4677740417*i+1;
+B3[i] = 42.399504722*i+1;
+B4[i] = 20.9153529367+i+1;
+B5[i] = 15.7249663908+i+1;
+B6[i] = 98.0570720627+i+1;
+B7[i] = 50.0480084871+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,B5,B6,B7,188282);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 95 - 0
synthetic-dataset/generated_dataset/ctest1041.c

@@ -0,0 +1,95 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A8[i]+A5[i];
+A1[i] = A6[i]/A8[i];
+A2[i] = A5[i]-A8[i]*A5[i]*A7[i];
+A3[i] = A7[i]/A7[i]+A8[i];
+A4[i] = A8[i]*A6[i];
+B0[i] = B3[i];
+B1[i] = B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=501036;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<501036;i++){
+A0[i] = 48+i+1;
+A1[i] = 69+i+1;
+A2[i] = 29+i+1;
+A3[i] = 31+i+1;
+A4[i] = 98*i+1;
+A5[i] = 49*i+1;
+A6[i] = 88*i+1;
+A7[i] = 47*i+1;
+A8[i] = 76+i+1;
+B0[i] = 21.1756520241+i+1;
+B1[i] = 30.2177830566+i+1;
+B2[i] = 36.821686165*i+1;
+B3[i] = 15.5442752853+i+1;
+B4[i] = 67.9301351051+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,B3,B4,501036);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 64 - 0
synthetic-dataset/generated_dataset/ctest1042.c

@@ -0,0 +1,64 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]+A1[i];
+B0[i] = B3[i]*B3[i];
+B1[i] = B3[i]/B3[i];
+B2[i] = B3[i]+B3[i]*B3[i]*B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=721963;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+for(int i=0;i<721963;i++){
+A0[i] = 91+i+1;
+A1[i] = 35*i+1;
+A2[i] = 72*i+1;
+B0[i] = 84.7106196208*i+1;
+B1[i] = 85.485667048*i+1;
+B2[i] = 98.1714173776+i+1;
+B3[i] = 11.4347524894*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,721963);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+printf("\n");return 0; }

+ 41 - 0
synthetic-dataset/generated_dataset/ctest1043.c

@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]*A1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=402343;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+for(int i=0;i<402343;i++){
+A0[i] = 65*i+1;
+A1[i] = 44*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,402343);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+printf("\n");return 0; }

+ 75 - 0
synthetic-dataset/generated_dataset/ctest1044.c

@@ -0,0 +1,75 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i];
+A1[i] = A2[i]*A2[i]*A2[i]-A3[i];
+B0[i] = B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=53362;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<53362;i++){
+A0[i] = 81+i+1;
+A1[i] = 56+i+1;
+A2[i] = 49+i+1;
+A3[i] = 88+i+1;
+B0[i] = 94.3253248331+i+1;
+B1[i] = 51.2275970519+i+1;
+B2[i] = 66.802961555*i+1;
+B3[i] = 70.8765598722+i+1;
+B4[i] = 35.7546793559+i+1;
+B5[i] = 28.9317882978+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,B0,B1,B2,B3,B4,B5,53362);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 66 - 0
synthetic-dataset/generated_dataset/ctest1045.c

@@ -0,0 +1,66 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+B0[i] = B2[i];
+B1[i] = B5[i]-B3[i]+B4[i]-B7[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=505624;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<505624;i++){
+B0[i] = 76.0483697044+i+1;
+B1[i] = 30.238691382*i+1;
+B2[i] = 95.9451291852*i+1;
+B3[i] = 46.8216228781*i+1;
+B4[i] = 61.9395648216+i+1;
+B5[i] = 57.4110117884*i+1;
+B6[i] = 5.36818043065+i+1;
+B7[i] = 73.2125765697*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,B5,B6,B7,505624);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 84 - 0
synthetic-dataset/generated_dataset/ctest1046.c

@@ -0,0 +1,84 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]-A3[i]*A4[i]*A6[i];
+A1[i] = A6[i];
+A2[i] = A4[i];
+B0[i] = B4[i]/B4[i]/B1[i]*B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=692872;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<692872;i++){
+A0[i] = 38*i+1;
+A1[i] = 30*i+1;
+A2[i] = 78+i+1;
+A3[i] = 9*i+1;
+A4[i] = 14+i+1;
+A5[i] = 74*i+1;
+A6[i] = 6+i+1;
+B0[i] = 89.4236767322+i+1;
+B1[i] = 61.8826863579+i+1;
+B2[i] = 1.23262653888*i+1;
+B3[i] = 76.1937185266*i+1;
+B4[i] = 70.9169017582+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,B2,B3,B4,692872);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 94 - 0
synthetic-dataset/generated_dataset/ctest1047.c

@@ -0,0 +1,94 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,float *B8,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]+A4[i]*A2[i];
+B0[i] = B8[i]*B6[i];
+B1[i] = B8[i]*B7[i]+B7[i];
+B2[i] = B5[i]+B5[i]+B6[i];
+B3[i] = B7[i];
+B4[i] = B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=995541;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+float *B8;
+B8 = (float *)malloc(floatBytes);
+for(int i=0;i<995541;i++){
+A0[i] = 39*i+1;
+A1[i] = 26+i+1;
+A2[i] = 50+i+1;
+A3[i] = 66*i+1;
+A4[i] = 7*i+1;
+B0[i] = 1.83304076303+i+1;
+B1[i] = 82.8204825277*i+1;
+B2[i] = 24.2829708071*i+1;
+B3[i] = 42.3466503064*i+1;
+B4[i] = 62.7730845241+i+1;
+B5[i] = 52.1477983657*i+1;
+B6[i] = 66.88555945+i+1;
+B7[i] = 25.7090614867+i+1;
+B8[i] = 45.0204718444+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,B0,B1,B2,B3,B4,B5,B6,B7,B8,995541);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+free(B8);
+printf("\n");return 0; }

+ 99 - 0
synthetic-dataset/generated_dataset/ctest1048.c

@@ -0,0 +1,99 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A8[i]*A8[i];
+A1[i] = A8[i]/A8[i]/A8[i];
+A2[i] = A8[i]-A8[i]-A8[i]-A8[i];
+A3[i] = A8[i]+A8[i];
+A4[i] = A8[i]/A8[i];
+A5[i] = A8[i]-A8[i]-A8[i]+A8[i];
+A6[i] = A8[i]-A8[i]+A8[i];
+A7[i] = A8[i]-A8[i];
+B0[i] = B4[i]*B3[i]+B3[i]*B3[i];
+B1[i] = B3[i];
+B2[i] = B3[i]+B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=26311;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<26311;i++){
+A0[i] = 17*i+1;
+A1[i] = 64+i+1;
+A2[i] = 28*i+1;
+A3[i] = 77+i+1;
+A4[i] = 53*i+1;
+A5[i] = 27+i+1;
+A6[i] = 26*i+1;
+A7[i] = 30*i+1;
+A8[i] = 17*i+1;
+B0[i] = 19.2068796123+i+1;
+B1[i] = 51.4671196538*i+1;
+B2[i] = 80.8246235059+i+1;
+B3[i] = 98.8299800534*i+1;
+B4[i] = 88.0969913669+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,B3,B4,26311);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 84 - 0
synthetic-dataset/generated_dataset/ctest1049.c

@@ -0,0 +1,84 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]*A2[i]/A2[i];
+B0[i] = B7[i];
+B1[i] = B7[i];
+B2[i] = B7[i]-B7[i]-B7[i];
+B3[i] = B7[i]-B7[i]-B7[i];
+B4[i] = B7[i]*B7[i]+B7[i];
+B5[i] = B7[i]/B7[i]+B7[i]+B7[i];
+B6[i] = B7[i]+B7[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=676067;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<676067;i++){
+A0[i] = 98+i+1;
+A1[i] = 15+i+1;
+A2[i] = 42*i+1;
+B0[i] = 38.5930488309+i+1;
+B1[i] = 65.1567844595+i+1;
+B2[i] = 36.408559252+i+1;
+B3[i] = 45.7552353821*i+1;
+B4[i] = 76.4681289897+i+1;
+B5[i] = 26.9010888638*i+1;
+B6[i] = 78.8051081563*i+1;
+B7[i] = 74.5327252272+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,B4,B5,B6,B7,676067);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 74 - 0
synthetic-dataset/generated_dataset/ctest105.c

@@ -0,0 +1,74 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]*A1[i];
+B0[i] = B5[i]/B5[i];
+B1[i] = B5[i];
+B2[i] = B5[i]/B5[i];
+B3[i] = B5[i]*B5[i]-B5[i]+B5[i];
+B4[i] = B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=916711;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<916711;i++){
+A0[i] = 82*i+1;
+A1[i] = 54+i+1;
+A2[i] = 67+i+1;
+B0[i] = 1.33129087667*i+1;
+B1[i] = 29.3265867445+i+1;
+B2[i] = 82.9975144701*i+1;
+B3[i] = 5.59151152351+i+1;
+B4[i] = 85.0516999823+i+1;
+B5[i] = 81.1468561708+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,B4,B5,916711);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 84 - 0
synthetic-dataset/generated_dataset/ctest1050.c

@@ -0,0 +1,84 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]*A2[i];
+A1[i] = A2[i];
+B0[i] = B6[i]/B6[i];
+B1[i] = B7[i]*B7[i]-B7[i]*B6[i];
+B2[i] = B7[i]*B7[i]/B6[i];
+B3[i] = B7[i];
+B4[i] = B7[i]/B7[i];
+B5[i] = B7[i]-B7[i]*B6[i]/B7[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=290894;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<290894;i++){
+A0[i] = 62+i+1;
+A1[i] = 70+i+1;
+A2[i] = 69*i+1;
+B0[i] = 27.0159262833*i+1;
+B1[i] = 72.3395377749+i+1;
+B2[i] = 93.242839963+i+1;
+B3[i] = 55.2584834097*i+1;
+B4[i] = 96.6910060459*i+1;
+B5[i] = 58.7531795571+i+1;
+B6[i] = 82.3814340652+i+1;
+B7[i] = 75.670663941*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,B4,B5,B6,B7,290894);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 94 - 0
synthetic-dataset/generated_dataset/ctest1051.c

@@ -0,0 +1,94 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A6[i]/A5[i]+A5[i];
+A1[i] = A5[i];
+A2[i] = A5[i];
+A3[i] = A6[i]+A6[i];
+A4[i] = A5[i]-A6[i];
+B0[i] = B5[i]+B5[i];
+B1[i] = B5[i]*B5[i]-B5[i]-B5[i];
+B2[i] = B5[i];
+B3[i] = B5[i]-B5[i]-B5[i]+B5[i];
+B4[i] = B5[i]-B5[i]+B5[i]-B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=667927;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<667927;i++){
+A0[i] = 29*i+1;
+A1[i] = 31*i+1;
+A2[i] = 31+i+1;
+A3[i] = 56+i+1;
+A4[i] = 6*i+1;
+A5[i] = 60*i+1;
+A6[i] = 6*i+1;
+B0[i] = 99.1901437702+i+1;
+B1[i] = 56.6713698326+i+1;
+B2[i] = 34.2151741562+i+1;
+B3[i] = 12.3329261363+i+1;
+B4[i] = 30.4763326104+i+1;
+B5[i] = 86.9825962628*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,B2,B3,B4,B5,667927);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 41 - 0
synthetic-dataset/generated_dataset/ctest1052.c

@@ -0,0 +1,41 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]*A1[i]-A1[i]-A1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=107795;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+for(int i=0;i<107795;i++){
+A0[i] = 19+i+1;
+A1[i] = 78+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,107795);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+printf("\n");return 0; }

+ 63 - 0
synthetic-dataset/generated_dataset/ctest1053.c

@@ -0,0 +1,63 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A3[i]-A5[i];
+A1[i] = A5[i]*A3[i]/A3[i];
+A2[i] = A3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=314605;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+for(int i=0;i<314605;i++){
+A0[i] = 34+i+1;
+A1[i] = 88+i+1;
+A2[i] = 40*i+1;
+A3[i] = 80*i+1;
+A4[i] = 99+i+1;
+A5[i] = 98+i+1;
+A6[i] = 62+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,314605);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+printf("\n");return 0; }

+ 89 - 0
synthetic-dataset/generated_dataset/ctest1054.c

@@ -0,0 +1,89 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A6[i];
+A1[i] = A3[i]/A6[i]*A3[i]-A3[i];
+A2[i] = A5[i]/A4[i];
+B0[i] = B5[i]/B4[i];
+B1[i] = B3[i]*B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=678292;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<678292;i++){
+A0[i] = 45+i+1;
+A1[i] = 53+i+1;
+A2[i] = 77+i+1;
+A3[i] = 27*i+1;
+A4[i] = 32+i+1;
+A5[i] = 41+i+1;
+A6[i] = 10*i+1;
+B0[i] = 69.1585263145+i+1;
+B1[i] = 53.3047009498*i+1;
+B2[i] = 51.203734607+i+1;
+B3[i] = 0.857706995309*i+1;
+B4[i] = 24.4386857884+i+1;
+B5[i] = 83.1041350455*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,B2,B3,B4,B5,678292);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 64 - 0
synthetic-dataset/generated_dataset/ctest1055.c

@@ -0,0 +1,64 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]*A1[i];
+B0[i] = B4[i]/B3[i]-B4[i];
+B1[i] = B3[i]*B3[i];
+B2[i] = B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=683787;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<683787;i++){
+A0[i] = 89*i+1;
+A1[i] = 17*i+1;
+B0[i] = 67.6915737104+i+1;
+B1[i] = 64.9367864103*i+1;
+B2[i] = 53.3378804859+i+1;
+B3[i] = 0.558790765091*i+1;
+B4[i] = 9.12498004861*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,B4,683787);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 67 - 0
synthetic-dataset/generated_dataset/ctest1056.c

@@ -0,0 +1,67 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,float *B0,float *B1,float *B2,float *B3,int N){
+for(int i=0;i<N;i++){
+A0[i] = A3[i]/A2[i]/A3[i];
+B0[i] = B3[i]+B3[i]-B2[i];
+B1[i] = B2[i]*B3[i]*B3[i]/B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=873762;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+for(int i=0;i<873762;i++){
+A0[i] = 97*i+1;
+A1[i] = 4*i+1;
+A2[i] = 77*i+1;
+A3[i] = 83+i+1;
+B0[i] = 28.5945455341+i+1;
+B1[i] = 34.8590363845+i+1;
+B2[i] = 65.2326257158*i+1;
+B3[i] = 1.32967829163+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,B0,B1,B2,B3,873762);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+printf("\n");return 0; }

+ 63 - 0
synthetic-dataset/generated_dataset/ctest1057.c

@@ -0,0 +1,63 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A4[i]+A2[i]/A5[i];
+A1[i] = A2[i]/A2[i];
+B0[i] = B0[i]+B0[i]/B0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=271401;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+for(int i=0;i<271401;i++){
+A0[i] = 69*i+1;
+A1[i] = 83+i+1;
+A2[i] = 54+i+1;
+A3[i] = 48+i+1;
+A4[i] = 90*i+1;
+A5[i] = 14*i+1;
+B0[i] = 56.4325605116*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,271401);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+printf("\n");return 0; }

+ 74 - 0
synthetic-dataset/generated_dataset/ctest1058.c

@@ -0,0 +1,74 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]/A1[i]+A1[i];
+B0[i] = B5[i]/B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=572331;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<572331;i++){
+A0[i] = 9+i+1;
+A1[i] = 55*i+1;
+B0[i] = 15.4129134895*i+1;
+B1[i] = 23.222771167+i+1;
+B2[i] = 51.9969935167*i+1;
+B3[i] = 78.8665945531*i+1;
+B4[i] = 81.8953650955*i+1;
+B5[i] = 15.5586727323+i+1;
+B6[i] = 81.2820737585*i+1;
+B7[i] = 33.78303449+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,B4,B5,B6,B7,572331);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 87 - 0
synthetic-dataset/generated_dataset/ctest1059.c

@@ -0,0 +1,87 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,float *B8,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i];
+A1[i] = A2[i]+A2[i];
+B0[i] = B5[i]+B6[i]/B6[i];
+B1[i] = B7[i]/B6[i]/B6[i];
+B2[i] = B7[i]+B6[i]+B8[i]+B8[i];
+B3[i] = B6[i]-B6[i];
+B4[i] = B8[i]/B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=550014;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+float *B8;
+B8 = (float *)malloc(floatBytes);
+for(int i=0;i<550014;i++){
+A0[i] = 92*i+1;
+A1[i] = 12*i+1;
+A2[i] = 53*i+1;
+B0[i] = 7.71880948794*i+1;
+B1[i] = 94.8980906068*i+1;
+B2[i] = 17.3709374985*i+1;
+B3[i] = 34.9247952049*i+1;
+B4[i] = 33.5259097072*i+1;
+B5[i] = 73.3872550988*i+1;
+B6[i] = 38.5340345585*i+1;
+B7[i] = 77.3729688706*i+1;
+B8[i] = 34.4713059166+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,B4,B5,B6,B7,B8,550014);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+free(B8);
+printf("\n");return 0; }

+ 61 - 0
synthetic-dataset/generated_dataset/ctest106.c

@@ -0,0 +1,61 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+B0[i] = B5[i];
+B1[i] = B5[i];
+B2[i] = B5[i]*B5[i]+B5[i];
+B3[i] = B5[i]-B5[i];
+B4[i] = B5[i]*B5[i]-B5[i]/B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=17918;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<17918;i++){
+B0[i] = 92.2572296973*i+1;
+B1[i] = 73.9384436272+i+1;
+B2[i] = 22.0866896625*i+1;
+B3[i] = 41.5149315483+i+1;
+B4[i] = 88.5317919945+i+1;
+B5[i] = 11.3221229274+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,B5,17918);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 37 - 0
synthetic-dataset/generated_dataset/ctest1060.c

@@ -0,0 +1,37 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=466153;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+for(int i=0;i<466153;i++){
+A0[i] = 86+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,466153);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+printf("\n");return 0; }

+ 89 - 0
synthetic-dataset/generated_dataset/ctest1061.c

@@ -0,0 +1,89 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]-A6[i]-A7[i]*A5[i];
+A1[i] = A2[i]/A3[i]*A7[i]*A6[i];
+B0[i] = B3[i]-B3[i]/B3[i]+B4[i];
+B1[i] = B3[i]/B3[i]-B3[i];
+B2[i] = B3[i]-B4[i]*B4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=562713;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<562713;i++){
+A0[i] = 15*i+1;
+A1[i] = 8+i+1;
+A2[i] = 67+i+1;
+A3[i] = 95+i+1;
+A4[i] = 97*i+1;
+A5[i] = 49*i+1;
+A6[i] = 17*i+1;
+A7[i] = 20+i+1;
+B0[i] = 72.7805478485+i+1;
+B1[i] = 3.70640094987+i+1;
+B2[i] = 31.9981203752+i+1;
+B3[i] = 48.3383374023+i+1;
+B4[i] = 0.164024837263+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,562713);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 74 - 0
synthetic-dataset/generated_dataset/ctest1062.c

@@ -0,0 +1,74 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]*A2[i]-A2[i]/A2[i];
+A1[i] = A2[i]/A2[i]*A2[i];
+B0[i] = B5[i]*B5[i];
+B1[i] = B5[i]+B5[i];
+B2[i] = B5[i];
+B3[i] = B5[i]*B4[i]-B4[i]/B4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=91683;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<91683;i++){
+A0[i] = 9+i+1;
+A1[i] = 95*i+1;
+A2[i] = 6*i+1;
+B0[i] = 27.1048451038*i+1;
+B1[i] = 93.3012785549+i+1;
+B2[i] = 93.5226716609*i+1;
+B3[i] = 57.4286982239*i+1;
+B4[i] = 39.1369081525+i+1;
+B5[i] = 29.3308034485+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,B4,B5,91683);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 75 - 0
synthetic-dataset/generated_dataset/ctest1063.c

@@ -0,0 +1,75 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,float *B0,float *B1,float *B2,float *B3,int N){
+for(int i=0;i<N;i++){
+A0[i] = A4[i]-A4[i]*A4[i]+A4[i];
+A1[i] = A4[i]/A4[i];
+A2[i] = A4[i]*A4[i]*A4[i]/A4[i];
+A3[i] = A4[i];
+B0[i] = B3[i]+B3[i]-B3[i];
+B1[i] = B3[i]*B3[i]*B3[i]-B3[i];
+B2[i] = B3[i]/B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=547651;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+for(int i=0;i<547651;i++){
+A0[i] = 35+i+1;
+A1[i] = 71*i+1;
+A2[i] = 41+i+1;
+A3[i] = 8+i+1;
+A4[i] = 39*i+1;
+B0[i] = 77.0458451608*i+1;
+B1[i] = 50.772423045+i+1;
+B2[i] = 59.9059981209+i+1;
+B3[i] = 43.5908659862*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,B0,B1,B2,B3,547651);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+printf("\n");return 0; }

+ 82 - 0
synthetic-dataset/generated_dataset/ctest1064.c

@@ -0,0 +1,82 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,float *B0,float *B1,float *B2,int N){
+for(int i=0;i<N;i++){
+A0[i] = A7[i];
+A1[i] = A7[i]*A6[i];
+A2[i] = A5[i]-A7[i]*A7[i]/A7[i];
+A3[i] = A4[i];
+B0[i] = B2[i];
+B1[i] = B2[i]-B2[i]*B2[i]-B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=513361;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+for(int i=0;i<513361;i++){
+A0[i] = 93*i+1;
+A1[i] = 58*i+1;
+A2[i] = 65+i+1;
+A3[i] = 3+i+1;
+A4[i] = 84*i+1;
+A5[i] = 16+i+1;
+A6[i] = 10*i+1;
+A7[i] = 78+i+1;
+B0[i] = 69.3686088354+i+1;
+B1[i] = 32.3479266031*i+1;
+B2[i] = 14.141274148*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,513361);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(B0);
+free(B1);
+free(B2);
+printf("\n");return 0; }

+ 62 - 0
synthetic-dataset/generated_dataset/ctest1065.c

@@ -0,0 +1,62 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]+A2[i];
+A1[i] = A6[i]+A2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=150209;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+for(int i=0;i<150209;i++){
+A0[i] = 15+i+1;
+A1[i] = 95*i+1;
+A2[i] = 36+i+1;
+A3[i] = 11+i+1;
+A4[i] = 31*i+1;
+A5[i] = 13+i+1;
+A6[i] = 32+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,150209);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+printf("\n");return 0; }

+ 60 - 0
synthetic-dataset/generated_dataset/ctest1066.c

@@ -0,0 +1,60 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]-A1[i]+A1[i];
+B0[i] = B3[i]*B3[i];
+B1[i] = B3[i]-B3[i];
+B2[i] = B3[i]-B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=38968;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+for(int i=0;i<38968;i++){
+A0[i] = 89+i+1;
+A1[i] = 44*i+1;
+B0[i] = 46.6049905231*i+1;
+B1[i] = 55.3285900605+i+1;
+B2[i] = 70.9748013796*i+1;
+B3[i] = 61.6134803224*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,38968);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+printf("\n");return 0; }

+ 49 - 0
synthetic-dataset/generated_dataset/ctest1067.c

@@ -0,0 +1,49 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int N){
+for(int i=0;i<N;i++){
+A0[i] = A3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=153315;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+for(int i=0;i<153315;i++){
+A0[i] = 88*i+1;
+A1[i] = 11+i+1;
+A2[i] = 82*i+1;
+A3[i] = 93+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,153315);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+printf("\n");return 0; }

+ 103 - 0
synthetic-dataset/generated_dataset/ctest1068.c

@@ -0,0 +1,103 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A8[i]*A7[i];
+A1[i] = A7[i]/A6[i]-A6[i];
+A2[i] = A7[i];
+A3[i] = A7[i];
+A4[i] = A7[i];
+A5[i] = A6[i];
+B0[i] = B4[i]+B5[i]*B5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=984475;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<984475;i++){
+A0[i] = 80*i+1;
+A1[i] = 50*i+1;
+A2[i] = 24+i+1;
+A3[i] = 23*i+1;
+A4[i] = 61*i+1;
+A5[i] = 54*i+1;
+A6[i] = 28+i+1;
+A7[i] = 26+i+1;
+A8[i] = 84*i+1;
+B0[i] = 51.3735756402*i+1;
+B1[i] = 58.5997641337+i+1;
+B2[i] = 21.8185476174*i+1;
+B3[i] = 74.2626697576*i+1;
+B4[i] = 2.13469923786+i+1;
+B5[i] = 2.62888651183+i+1;
+B6[i] = 40.8225272072+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,B3,B4,B5,B6,984475);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 100 - 0
synthetic-dataset/generated_dataset/ctest1069.c

@@ -0,0 +1,100 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,float *B8,int N){
+for(int i=0;i<N;i++){
+A0[i] = A4[i]+A5[i]/A3[i];
+A1[i] = A3[i]+A4[i]/A3[i]-A3[i];
+B0[i] = B8[i]*B8[i]+B7[i];
+B1[i] = B7[i];
+B2[i] = B6[i]+B8[i];
+B3[i] = B8[i]*B7[i];
+B4[i] = B7[i]-B8[i];
+B5[i] = B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=648253;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+float *B8;
+B8 = (float *)malloc(floatBytes);
+for(int i=0;i<648253;i++){
+A0[i] = 62*i+1;
+A1[i] = 99*i+1;
+A2[i] = 11*i+1;
+A3[i] = 38+i+1;
+A4[i] = 34+i+1;
+A5[i] = 94*i+1;
+B0[i] = 87.1815901975+i+1;
+B1[i] = 34.6524295248+i+1;
+B2[i] = 72.4967441243*i+1;
+B3[i] = 39.1337594167*i+1;
+B4[i] = 28.4787768801*i+1;
+B5[i] = 85.3986506362*i+1;
+B6[i] = 27.3926995317+i+1;
+B7[i] = 82.9550388784*i+1;
+B8[i] = 61.3405986761*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,B1,B2,B3,B4,B5,B6,B7,B8,648253);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+free(B8);
+printf("\n");return 0; }

+ 65 - 0
synthetic-dataset/generated_dataset/ctest107.c

@@ -0,0 +1,65 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A4[i];
+A1[i] = A4[i]/A4[i]+A4[i]*A4[i];
+A2[i] = A4[i]*A4[i]*A4[i];
+A3[i] = A4[i];
+B0[i] = B1[i]-B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=221516;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<221516;i++){
+A0[i] = 21+i+1;
+A1[i] = 30+i+1;
+A2[i] = 33*i+1;
+A3[i] = 29*i+1;
+A4[i] = 4*i+1;
+B0[i] = 21.7504604614*i+1;
+B1[i] = 48.4455125565+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,B0,B1,221516);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 50 - 0
synthetic-dataset/generated_dataset/ctest1070.c

@@ -0,0 +1,50 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,float *B0,float *B1,float *B2,int N){
+for(int i=0;i<N;i++){
+A0[i] = A0[i]+A0[i];
+B0[i] = B2[i]*B2[i]+B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=685588;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+for(int i=0;i<685588;i++){
+A0[i] = 78*i+1;
+B0[i] = 31.457135408+i+1;
+B1[i] = 77.6022240151+i+1;
+B2[i] = 98.5010317678*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,B0,B1,B2,685588);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(B0);
+free(B1);
+free(B2);
+printf("\n");return 0; }

+ 97 - 0
synthetic-dataset/generated_dataset/ctest1071.c

@@ -0,0 +1,97 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,int N){
+for(int i=0;i<N;i++){
+A0[i] = A7[i]+A3[i]-A5[i];
+A1[i] = A6[i];
+A2[i] = A3[i]/A3[i]/A3[i];
+B0[i] = B3[i]*B2[i]/B6[i];
+B1[i] = B5[i]/B4[i]*B5[i]/B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=168151;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+for(int i=0;i<168151;i++){
+A0[i] = 97+i+1;
+A1[i] = 6*i+1;
+A2[i] = 16*i+1;
+A3[i] = 9*i+1;
+A4[i] = 15+i+1;
+A5[i] = 73*i+1;
+A6[i] = 21+i+1;
+A7[i] = 56*i+1;
+B0[i] = 99.3760872977*i+1;
+B1[i] = 39.2204234222+i+1;
+B2[i] = 12.5116222989+i+1;
+B3[i] = 98.0466016111*i+1;
+B4[i] = 38.5331348178+i+1;
+B5[i] = 67.717413182+i+1;
+B6[i] = 3.62943738941*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,168151);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+printf("\n");return 0; }

+ 87 - 0
synthetic-dataset/generated_dataset/ctest1072.c

@@ -0,0 +1,87 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+A0[i] = A3[i]*A2[i]/A3[i]/A2[i];
+B0[i] = B6[i]*B6[i];
+B1[i] = B6[i]/B7[i]*B7[i];
+B2[i] = B6[i]+B7[i]-B6[i];
+B3[i] = B6[i];
+B4[i] = B6[i]-B7[i];
+B5[i] = B6[i]-B7[i]*B6[i]+B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=37443;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<37443;i++){
+A0[i] = 87+i+1;
+A1[i] = 22*i+1;
+A2[i] = 90*i+1;
+A3[i] = 18+i+1;
+B0[i] = 10.9187084589*i+1;
+B1[i] = 70.4350539106+i+1;
+B2[i] = 70.5907321872+i+1;
+B3[i] = 11.9156344269+i+1;
+B4[i] = 99.3118746253*i+1;
+B5[i] = 78.6075429385*i+1;
+B6[i] = 41.7640641969+i+1;
+B7[i] = 12.5878316364*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,B0,B1,B2,B3,B4,B5,B6,B7,37443);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 87 - 0
synthetic-dataset/generated_dataset/ctest1073.c

@@ -0,0 +1,87 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]/A3[i]+A6[i];
+A1[i] = A6[i]/A3[i]/A3[i]*A3[i];
+A2[i] = A4[i];
+B0[i] = B4[i]/B4[i]+B4[i];
+B1[i] = B4[i]*B4[i];
+B2[i] = B4[i]-B4[i]/B4[i];
+B3[i] = B4[i]*B4[i]*B4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=881347;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<881347;i++){
+A0[i] = 21*i+1;
+A1[i] = 19+i+1;
+A2[i] = 44+i+1;
+A3[i] = 7+i+1;
+A4[i] = 71+i+1;
+A5[i] = 22*i+1;
+A6[i] = 67*i+1;
+B0[i] = 92.2537872397*i+1;
+B1[i] = 89.6891075964*i+1;
+B2[i] = 64.6576160156*i+1;
+B3[i] = 31.7447499341+i+1;
+B4[i] = 12.9132802509+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,B2,B3,B4,881347);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 67 - 0
synthetic-dataset/generated_dataset/ctest1074.c

@@ -0,0 +1,67 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,float *B1,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i]/A2[i];
+A1[i] = A3[i];
+B0[i] = B1[i]-B1[i]*B1[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=193780;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+for(int i=0;i<193780;i++){
+A0[i] = 80*i+1;
+A1[i] = 40*i+1;
+A2[i] = 6*i+1;
+A3[i] = 70+i+1;
+A4[i] = 22*i+1;
+A5[i] = 89*i+1;
+B0[i] = 18.6635431441+i+1;
+B1[i] = 92.2992627376*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,B1,193780);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+free(B1);
+printf("\n");return 0; }

+ 42 - 0
synthetic-dataset/generated_dataset/ctest1075.c

@@ -0,0 +1,42 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,float *B0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A0[i]+A0[i]/A0[i]/A0[i];
+B0[i] = B0[i]+B0[i]+B0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=307025;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+for(int i=0;i<307025;i++){
+A0[i] = 80+i+1;
+B0[i] = 2.61533745036+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,B0,307025);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(B0);
+printf("\n");return 0; }

+ 51 - 0
synthetic-dataset/generated_dataset/ctest1076.c

@@ -0,0 +1,51 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,int N){
+for(int i=0;i<N;i++){
+B0[i] = B3[i]/B3[i]*B3[i];
+B1[i] = B3[i]-B3[i]+B3[i];
+B2[i] = B3[i]*B3[i]*B3[i]*B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=530997;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+for(int i=0;i<530997;i++){
+B0[i] = 71.6754620781+i+1;
+B1[i] = 60.0331335371*i+1;
+B2[i] = 78.4033149031*i+1;
+B3[i] = 71.4084688904*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,530997);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+printf("\n");return 0; }

+ 71 - 0
synthetic-dataset/generated_dataset/ctest1077.c

@@ -0,0 +1,71 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A2[i];
+A1[i] = A3[i]-A2[i]+A3[i]/A2[i];
+B0[i] = B4[i]*B3[i]+B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=517083;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<517083;i++){
+A0[i] = 83*i+1;
+A1[i] = 21*i+1;
+A2[i] = 13*i+1;
+A3[i] = 2*i+1;
+B0[i] = 69.3281831764*i+1;
+B1[i] = 42.6832346649+i+1;
+B2[i] = 7.41247959512+i+1;
+B3[i] = 36.9811100877*i+1;
+B4[i] = 22.9044936194*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,B0,B1,B2,B3,B4,517083);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 82 - 0
synthetic-dataset/generated_dataset/ctest1078.c

@@ -0,0 +1,82 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i];
+A1[i] = A4[i];
+A2[i] = A5[i]/A4[i];
+A3[i] = A4[i]*A4[i];
+B0[i] = B3[i];
+B1[i] = B4[i]*B4[i]*B3[i]/B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=355404;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<355404;i++){
+A0[i] = 49+i+1;
+A1[i] = 61*i+1;
+A2[i] = 25+i+1;
+A3[i] = 77+i+1;
+A4[i] = 84+i+1;
+A5[i] = 99*i+1;
+B0[i] = 89.5101099573*i+1;
+B1[i] = 4.54608736767*i+1;
+B2[i] = 8.8708151885+i+1;
+B3[i] = 55.3255025116+i+1;
+B4[i] = 28.6439549356+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,B0,B1,B2,B3,B4,355404);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 83 - 0
synthetic-dataset/generated_dataset/ctest1079.c

@@ -0,0 +1,83 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,int *A7,int *A8,float *B0,float *B1,float *B2,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]+A5[i];
+B0[i] = B2[i]*B2[i];
+B1[i] = B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=84498;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+int *A7;
+A7 = (int *)malloc(intBytes);
+int *A8;
+A8 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+for(int i=0;i<84498;i++){
+A0[i] = 85+i+1;
+A1[i] = 30*i+1;
+A2[i] = 30*i+1;
+A3[i] = 37*i+1;
+A4[i] = 53+i+1;
+A5[i] = 28+i+1;
+A6[i] = 44+i+1;
+A7[i] = 26+i+1;
+A8[i] = 97+i+1;
+B0[i] = 34.8331860347+i+1;
+B1[i] = 81.6244110207+i+1;
+B2[i] = 45.2483693801*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,A7,A8,B0,B1,B2,84498);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(A7);
+free(A8);
+free(B0);
+free(B1);
+free(B2);
+printf("\n");return 0; }

+ 55 - 0
synthetic-dataset/generated_dataset/ctest108.c

@@ -0,0 +1,55 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(float *B0,float *B1,float *B2,float *B3,float *B4,int N){
+for(int i=0;i<N;i++){
+B0[i] = B4[i]*B3[i];
+B1[i] = B3[i]-B3[i]+B3[i];
+B2[i] = B3[i]/B4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=123184;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+for(int i=0;i<123184;i++){
+B0[i] = 65.189242849+i+1;
+B1[i] = 46.8898008903*i+1;
+B2[i] = 20.1535668173*i+1;
+B3[i] = 26.1068158611+i+1;
+B4[i] = 38.8647574463+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(B0,B1,B2,B3,B4,123184);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+printf("\n");return 0; }

+ 60 - 0
synthetic-dataset/generated_dataset/ctest1080.c

@@ -0,0 +1,60 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A5[i]*A4[i]/A4[i]-A5[i];
+A1[i] = A4[i]/A5[i];
+A2[i] = A4[i]/A5[i];
+A3[i] = A4[i]+A5[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=470566;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+for(int i=0;i<470566;i++){
+A0[i] = 60*i+1;
+A1[i] = 51*i+1;
+A2[i] = 61*i+1;
+A3[i] = 71*i+1;
+A4[i] = 79*i+1;
+A5[i] = 53+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,470566);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+printf("\n");return 0; }

+ 58 - 0
synthetic-dataset/generated_dataset/ctest1081.c

@@ -0,0 +1,58 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A3[i]+A5[i]*A2[i]-A2[i];
+A1[i] = A4[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=901505;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+for(int i=0;i<901505;i++){
+A0[i] = 3+i+1;
+A1[i] = 64*i+1;
+A2[i] = 55+i+1;
+A3[i] = 13+i+1;
+A4[i] = 83*i+1;
+A5[i] = 14*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,901505);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+printf("\n");return 0; }

+ 79 - 0
synthetic-dataset/generated_dataset/ctest1082.c

@@ -0,0 +1,79 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,float *B6,float *B7,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]/A1[i];
+B0[i] = B7[i]*B6[i]+B6[i];
+B1[i] = B7[i]-B7[i];
+B2[i] = B6[i];
+B3[i] = B7[i]-B6[i]+B6[i];
+B4[i] = B6[i]*B7[i]-B7[i];
+B5[i] = B7[i]+B6[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=557908;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+float *B6;
+B6 = (float *)malloc(floatBytes);
+float *B7;
+B7 = (float *)malloc(floatBytes);
+for(int i=0;i<557908;i++){
+A0[i] = 13+i+1;
+A1[i] = 95+i+1;
+B0[i] = 16.8266723652*i+1;
+B1[i] = 22.7017460066+i+1;
+B2[i] = 20.8727876944*i+1;
+B3[i] = 72.1860475728+i+1;
+B4[i] = 92.0654953811*i+1;
+B5[i] = 21.2620055159*i+1;
+B6[i] = 82.0340136591*i+1;
+B7[i] = 84.3925675873+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,B0,B1,B2,B3,B4,B5,B6,B7,557908);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+free(B6);
+free(B7);
+printf("\n");return 0; }

+ 37 - 0
synthetic-dataset/generated_dataset/ctest1083.c

@@ -0,0 +1,37 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int N){
+for(int i=0;i<N;i++){
+A0[i] = A0[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=199055;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+for(int i=0;i<199055;i++){
+A0[i] = 6*i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,199055);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+printf("\n");return 0; }

+ 63 - 0
synthetic-dataset/generated_dataset/ctest1084.c

@@ -0,0 +1,63 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,float *B0,float *B1,float *B2,float *B3,int N){
+for(int i=0;i<N;i++){
+A0[i] = A1[i]-A2[i];
+B0[i] = B3[i]-B3[i];
+B1[i] = B2[i]*B3[i]/B2[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=846386;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+for(int i=0;i<846386;i++){
+A0[i] = 41*i+1;
+A1[i] = 93*i+1;
+A2[i] = 73*i+1;
+B0[i] = 29.8301875374+i+1;
+B1[i] = 17.337699447*i+1;
+B2[i] = 24.1513344494+i+1;
+B3[i] = 79.3130301803+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,B0,B1,B2,B3,846386);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+printf("\n");return 0; }

+ 87 - 0
synthetic-dataset/generated_dataset/ctest1085.c

@@ -0,0 +1,87 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/time.h>
+
+void kernel_cpu(int *A0,int *A1,int *A2,int *A3,int *A4,int *A5,int *A6,float *B0,float *B1,float *B2,float *B3,float *B4,float *B5,int N){
+for(int i=0;i<N;i++){
+A0[i] = A6[i]-A3[i];
+B0[i] = B3[i];
+B1[i] = B5[i]/B5[i]*B3[i];
+}
+}
+
+int main(int argc,char **argv) {
+int size=674990;
+int intBytes = size*sizeof(int);
+int floatBytes = size*sizeof(float);
+int *A0;
+A0 = (int *)malloc(intBytes);
+int *A1;
+A1 = (int *)malloc(intBytes);
+int *A2;
+A2 = (int *)malloc(intBytes);
+int *A3;
+A3 = (int *)malloc(intBytes);
+int *A4;
+A4 = (int *)malloc(intBytes);
+int *A5;
+A5 = (int *)malloc(intBytes);
+int *A6;
+A6 = (int *)malloc(intBytes);
+float *B0;
+B0 = (float *)malloc(floatBytes);
+float *B1;
+B1 = (float *)malloc(floatBytes);
+float *B2;
+B2 = (float *)malloc(floatBytes);
+float *B3;
+B3 = (float *)malloc(floatBytes);
+float *B4;
+B4 = (float *)malloc(floatBytes);
+float *B5;
+B5 = (float *)malloc(floatBytes);
+for(int i=0;i<674990;i++){
+A0[i] = 48+i+1;
+A1[i] = 12+i+1;
+A2[i] = 73+i+1;
+A3[i] = 51*i+1;
+A4[i] = 57+i+1;
+A5[i] = 10*i+1;
+A6[i] = 63*i+1;
+B0[i] = 64.7256069725+i+1;
+B1[i] = 90.0888215244+i+1;
+B2[i] = 27.0626643936*i+1;
+B3[i] = 21.5863802274*i+1;
+B4[i] = 29.6319289134+i+1;
+B5[i] = 43.6989893055+i+1;
+}
+struct timeval time0,time1;
+gettimeofday(&time0,NULL);
+FILE *file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "1";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+kernel_cpu(A0,A1,A2,A3,A4,A5,A6,B0,B1,B2,B3,B4,B5,674990);
+file_for_block_of_interest = fopen("./profile_in_block.txt","w");
+if(file_for_block_of_interest) {
+char Buf[2] = "0";
+fwrite(Buf, 1, 1, file_for_block_of_interest);
+fclose(file_for_block_of_interest);}
+gettimeofday(&time1,NULL);
+double totaltime10 = (time1.tv_sec*1000000.0 + time1.tv_usec) - (time0.tv_sec*1000000.0 + time0.tv_usec);
+fprintf(stderr, "CPU time: %lf msecs ",  (totaltime10)/1000.0F); 
+free(A0);
+free(A1);
+free(A2);
+free(A3);
+free(A4);
+free(A5);
+free(A6);
+free(B0);
+free(B1);
+free(B2);
+free(B3);
+free(B4);
+free(B5);
+printf("\n");return 0; }

+ 0 - 0
synthetic-dataset/generated_dataset/ctest1086.c


Some files were not shown because too many files changed in this diff