; LLVM IR from libxsmm/libxsmm :: samples/edge (dense_packedbcrm)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.libxsmm_gemm_shape = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_gemm_param = type { %struct.libxsmm_matrix_op_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg }
%struct.libxsmm_matrix_op_arg = type { ptr, ptr, ptr, ptr }
%struct.libxsmm_matrix_arg = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.libxsmm_kernel_info = type { i32, i32, i64, i32 }

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.libxsmm_gemm_shape, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.libxsmm_gemm_param, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca %struct.libxsmm_kernel_info, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 8, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp slt i32 1, %34
  br i1 %35, label %36, label %41

36:                                               ; preds = %2
  %37 = load ptr, ptr %5, align 8, !tbaa !9
  %38 = getelementptr inbounds ptr, ptr %37, i64 1
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = call i32 @atoi(ptr noundef %39) #8
  br label %42

41:                                               ; preds = %2
  br label %42

42:                                               ; preds = %41, %36
  %43 = phi i32 [ %40, %36 ], [ 0, %41 ]
  store i32 %43, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = icmp slt i32 2, %44
  br i1 %45, label %46, label %51

46:                                               ; preds = %42
  %47 = load ptr, ptr %5, align 8, !tbaa !9
  %48 = getelementptr inbounds ptr, ptr %47, i64 2
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = call i32 @atoi(ptr noundef %49) #8
  br label %52

51:                                               ; preds = %42
  br label %52

52:                                               ; preds = %51, %46
  %53 = phi i32 [ %50, %46 ], [ 0, %51 ]
  store i32 %53, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %54 = load i32, ptr %4, align 4, !tbaa !5
  %55 = icmp slt i32 3, %54
  br i1 %55, label %56, label %61

56:                                               ; preds = %52
  %57 = load ptr, ptr %5, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 3
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = call i32 @atoi(ptr noundef %59) #8
  br label %62

61:                                               ; preds = %52
  br label %62

62:                                               ; preds = %61, %56
  %63 = phi i32 [ %60, %56 ], [ 0, %61 ]
  store i32 %63, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = icmp slt i32 4, %64
  br i1 %65, label %66, label %71

66:                                               ; preds = %62
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  %68 = getelementptr inbounds ptr, ptr %67, i64 4
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = call double @atof(ptr noundef %69) #8
  br label %72

71:                                               ; preds = %62
  br label %72

72:                                               ; preds = %71, %66
  %73 = phi double [ %70, %66 ], [ 0.000000e+00, %71 ]
  store double %73, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = icmp slt i32 5, %74
  br i1 %75, label %76, label %81

76:                                               ; preds = %72
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  %78 = getelementptr inbounds ptr, ptr %77, i64 5
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = call i32 @atoi(ptr noundef %79) #8
  br label %82

81:                                               ; preds = %72
  br label %82

82:                                               ; preds = %81, %76
  %83 = phi i32 [ %80, %76 ], [ 0, %81 ]
  store i32 %83, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = sitofp i32 %84 to double
  %86 = fmul double 2.000000e+00, %85
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = sitofp i32 %87 to double
  %89 = fmul double %86, %88
  %90 = load i32, ptr %9, align 4, !tbaa !5
  %91 = sitofp i32 %90 to double
  %92 = fmul double %89, %91
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = sitofp i32 %93 to double
  %95 = fmul double %92, %94
  %96 = load i32, ptr %11, align 4, !tbaa !5
  %97 = sitofp i32 %96 to double
  %98 = fmul double %95, %97
  store double %98, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = mul nsw i32 %99, %100
  %102 = sext i32 %101 to i64
  %103 = mul i64 %102, 8
  %104 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %103, i64 noundef 64)
  store ptr %104, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = load i32, ptr %8, align 4, !tbaa !5
  %107 = mul nsw i32 %105, %106
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = mul nsw i32 %107, %108
  %110 = sext i32 %109 to i64
  %111 = mul i64 %110, 8
  %112 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %111, i64 noundef 64)
  store ptr %112, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %113 = load i32, ptr %7, align 4, !tbaa !5
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = mul nsw i32 %113, %114
  %116 = load i32, ptr %6, align 4, !tbaa !5
  %117 = mul nsw i32 %115, %116
  %118 = sext i32 %117 to i64
  %119 = mul i64 %118, 8
  %120 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %119, i64 noundef 64)
  store ptr %120, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %121 = load i32, ptr %7, align 4, !tbaa !5
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = mul nsw i32 %121, %122
  %124 = load i32, ptr %6, align 4, !tbaa !5
  %125 = mul nsw i32 %123, %124
  %126 = sext i32 %125 to i64
  %127 = mul i64 %126, 8
  %128 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %127, i64 noundef 64)
  store ptr %128, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store ptr null, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #7
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = load i32, ptr %8, align 4, !tbaa !5
  %131 = load i32, ptr %9, align 4, !tbaa !5
  %132 = load i32, ptr %9, align 4, !tbaa !5
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = load i32, ptr %8, align 4, !tbaa !5
  call void @libxsmm_create_gemm_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_gemm_shape) align 4 %18, i32 noundef %129, i32 noundef %130, i32 noundef %131, i32 noundef %132, i32 noundef %133, i32 noundef %134, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %135 = load double, ptr %10, align 8, !tbaa !11
  %136 = fcmp oeq double %135, 0.000000e+00
  %137 = zext i1 %136 to i64
  %138 = select i1 %136, i32 4, i32 0
  %139 = or i32 0, %138
  store i32 %139, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 176, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store double 0.000000e+00, ptr %28, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store double 0.000000e+00, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store double 0.000000e+00, ptr %30, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store double 0.000000e+00, ptr %31, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 0, ptr %33, align 4, !tbaa !5
  %140 = load ptr, ptr %13, align 8, !tbaa !9
  %141 = icmp ne ptr null, %140
  br i1 %141, label %142, label %360

142:                                              ; preds = %82
  %143 = load ptr, ptr %14, align 8, !tbaa !9
  %144 = icmp ne ptr null, %143
  br i1 %144, label %145, label %360

145:                                              ; preds = %142
  %146 = load ptr, ptr %15, align 8, !tbaa !9
  %147 = icmp ne ptr null, %146
  br i1 %147, label %148, label %360

148:                                              ; preds = %145
  %149 = load ptr, ptr %16, align 8, !tbaa !9
  %150 = icmp ne ptr null, %149
  br i1 %150, label %151, label %360

151:                                              ; preds = %148
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %166, %151
  %153 = load i32, ptr %32, align 4, !tbaa !5
  %154 = load i32, ptr %7, align 4, !tbaa !5
  %155 = load i32, ptr %8, align 4, !tbaa !5
  %156 = mul nsw i32 %154, %155
  %157 = load i32, ptr %6, align 4, !tbaa !5
  %158 = mul nsw i32 %156, %157
  %159 = icmp slt i32 %153, %158
  br i1 %159, label %160, label %169

160:                                              ; preds = %152
  %161 = call double @libxsmm_rng_f64()
  %162 = load ptr, ptr %15, align 8, !tbaa !9
  %163 = load i32, ptr %32, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds double, ptr %162, i64 %164
  store double %161, ptr %165, align 8, !tbaa !11
  br label %166

166:                                              ; preds = %160
  %167 = load i32, ptr %32, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %32, align 4, !tbaa !5
  br label %152, !llvm.loop !13

169:                                              ; preds = %152
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %170

170:                                              ; preds = %188, %169
  %171 = load i32, ptr %32, align 4, !tbaa !5
  %172 = load i32, ptr %7, align 4, !tbaa !5
  %173 = load i32, ptr %8, align 4, !tbaa !5
  %174 = mul nsw i32 %172, %173
  %175 = load i32, ptr %6, align 4, !tbaa !5
  %176 = mul nsw i32 %174, %175
  %177 = icmp slt i32 %171, %176
  br i1 %177, label %178, label %191

178:                                              ; preds = %170
  %179 = load ptr, ptr %15, align 8, !tbaa !9
  %180 = load i32, ptr %32, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %179, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !11
  %184 = load ptr, ptr %16, align 8, !tbaa !9
  %185 = load i32, ptr %32, align 4, !tbaa !5
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  store double %183, ptr %187, align 8, !tbaa !11
  br label %188

188:                                              ; preds = %178
  %189 = load i32, ptr %32, align 4, !tbaa !5
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %32, align 4, !tbaa !5
  br label %170, !llvm.loop !15

191:                                              ; preds = %170
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %204, %191
  %193 = load i32, ptr %32, align 4, !tbaa !5
  %194 = load i32, ptr %7, align 4, !tbaa !5
  %195 = load i32, ptr %9, align 4, !tbaa !5
  %196 = mul nsw i32 %194, %195
  %197 = icmp slt i32 %193, %196
  br i1 %197, label %198, label %207

198:                                              ; preds = %192
  %199 = call double @libxsmm_rng_f64()
  %200 = load ptr, ptr %13, align 8, !tbaa !9
  %201 = load i32, ptr %32, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds double, ptr %200, i64 %202
  store double %199, ptr %203, align 8, !tbaa !11
  br label %204

204:                                              ; preds = %198
  %205 = load i32, ptr %32, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %32, align 4, !tbaa !5
  br label %192, !llvm.loop !16

207:                                              ; preds = %192
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %208

208:                                              ; preds = %222, %207
  %209 = load i32, ptr %32, align 4, !tbaa !5
  %210 = load i32, ptr %9, align 4, !tbaa !5
  %211 = load i32, ptr %8, align 4, !tbaa !5
  %212 = mul nsw i32 %210, %211
  %213 = load i32, ptr %6, align 4, !tbaa !5
  %214 = mul nsw i32 %212, %213
  %215 = icmp slt i32 %209, %214
  br i1 %215, label %216, label %225

216:                                              ; preds = %208
  %217 = call double @libxsmm_rng_f64()
  %218 = load ptr, ptr %14, align 8, !tbaa !9
  %219 = load i32, ptr %32, align 4, !tbaa !5
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds double, ptr %218, i64 %220
  store double %217, ptr %221, align 8, !tbaa !11
  br label %222

222:                                              ; preds = %216
  %223 = load i32, ptr %32, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %32, align 4, !tbaa !5
  br label %208, !llvm.loop !17

225:                                              ; preds = %208
  %226 = load i32, ptr %19, align 4, !tbaa !5
  %227 = load i32, ptr %6, align 4, !tbaa !5
  %228 = call ptr @libxsmm_create_packed_gemm_bc_rm(ptr noundef byval(%struct.libxsmm_gemm_shape) align 8 %18, i32 noundef %226, i32 noundef 0, i32 noundef %227)
  store ptr %228, ptr %17, align 8, !tbaa !9
  %229 = load i32, ptr %6, align 4, !tbaa !5
  %230 = load i32, ptr %7, align 4, !tbaa !5
  %231 = load i32, ptr %8, align 4, !tbaa !5
  %232 = load i32, ptr %9, align 4, !tbaa !5
  %233 = load i32, ptr %9, align 4, !tbaa !5
  %234 = load i32, ptr %8, align 4, !tbaa !5
  %235 = load i32, ptr %8, align 4, !tbaa !5
  %236 = load double, ptr %10, align 8, !tbaa !11
  %237 = load ptr, ptr %13, align 8, !tbaa !9
  %238 = load ptr, ptr %14, align 8, !tbaa !9
  %239 = load ptr, ptr %15, align 8, !tbaa !9
  call void @matMulFusedBC(i32 noundef %229, i32 noundef %230, i32 noundef %231, i32 noundef %232, i32 noundef %233, i32 noundef %234, i32 noundef %235, double noundef %236, ptr noundef %237, ptr noundef %238, ptr noundef %239)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 176, i1 false)
  %240 = load ptr, ptr %13, align 8, !tbaa !9
  %241 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %21, i32 0, i32 1
  %242 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %241, i32 0, i32 0
  store ptr %240, ptr %242, align 8, !tbaa !18
  %243 = load ptr, ptr %14, align 8, !tbaa !9
  %244 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %21, i32 0, i32 2
  %245 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %244, i32 0, i32 0
  store ptr %243, ptr %245, align 8, !tbaa !22
  %246 = load ptr, ptr %16, align 8, !tbaa !9
  %247 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %21, i32 0, i32 3
  %248 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %247, i32 0, i32 0
  store ptr %246, ptr %248, align 8, !tbaa !23
  %249 = load ptr, ptr %17, align 8, !tbaa !9
  call void %249(ptr noundef %21)
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %287, %225
  %251 = load i32, ptr %32, align 4, !tbaa !5
  %252 = load i32, ptr %7, align 4, !tbaa !5
  %253 = load i32, ptr %8, align 4, !tbaa !5
  %254 = mul nsw i32 %252, %253
  %255 = load i32, ptr %6, align 4, !tbaa !5
  %256 = mul nsw i32 %254, %255
  %257 = icmp slt i32 %251, %256
  br i1 %257, label %258, label %290

258:                                              ; preds = %250
  %259 = load double, ptr %28, align 8, !tbaa !11
  %260 = load ptr, ptr %15, align 8, !tbaa !9
  %261 = load i32, ptr %32, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds double, ptr %260, i64 %262
  %264 = load double, ptr %263, align 8, !tbaa !11
  %265 = load ptr, ptr %16, align 8, !tbaa !9
  %266 = load i32, ptr %32, align 4, !tbaa !5
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds double, ptr %265, i64 %267
  %269 = load double, ptr %268, align 8, !tbaa !11
  %270 = fsub double %264, %269
  %271 = call double @llvm.fabs.f64(double %270)
  %272 = fcmp olt double %259, %271
  br i1 %272, label %273, label %286

273:                                              ; preds = %258
  %274 = load ptr, ptr %15, align 8, !tbaa !9
  %275 = load i32, ptr %32, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds double, ptr %274, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !11
  %279 = load ptr, ptr %16, align 8, !tbaa !9
  %280 = load i32, ptr %32, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds double, ptr %279, i64 %281
  %283 = load double, ptr %282, align 8, !tbaa !11
  %284 = fsub double %278, %283
  %285 = call double @llvm.fabs.f64(double %284)
  store double %285, ptr %28, align 8, !tbaa !11
  br label %286

286:                                              ; preds = %273, %258
  br label %287

287:                                              ; preds = %286
  %288 = load i32, ptr %32, align 4, !tbaa !5
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %32, align 4, !tbaa !5
  br label %250, !llvm.loop !24

290:                                              ; preds = %250
  %291 = load double, ptr %28, align 8, !tbaa !11
  %292 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %291)
  %293 = call i64 @libxsmm_timer_tick()
  store i64 %293, ptr %22, align 8, !tbaa !25
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %294

294:                                              ; preds = %310, %290
  %295 = load i32, ptr %32, align 4, !tbaa !5
  %296 = load i32, ptr %11, align 4, !tbaa !5
  %297 = icmp slt i32 %295, %296
  br i1 %297, label %298, label %313

298:                                              ; preds = %294
  %299 = load i32, ptr %6, align 4, !tbaa !5
  %300 = load i32, ptr %7, align 4, !tbaa !5
  %301 = load i32, ptr %8, align 4, !tbaa !5
  %302 = load i32, ptr %9, align 4, !tbaa !5
  %303 = load i32, ptr %9, align 4, !tbaa !5
  %304 = load i32, ptr %8, align 4, !tbaa !5
  %305 = load i32, ptr %8, align 4, !tbaa !5
  %306 = load double, ptr %10, align 8, !tbaa !11
  %307 = load ptr, ptr %13, align 8, !tbaa !9
  %308 = load ptr, ptr %14, align 8, !tbaa !9
  %309 = load ptr, ptr %15, align 8, !tbaa !9
  call void @matMulFusedBC(i32 noundef %299, i32 noundef %300, i32 noundef %301, i32 noundef %302, i32 noundef %303, i32 noundef %304, i32 noundef %305, double noundef %306, ptr noundef %307, ptr noundef %308, ptr noundef %309)
  br label %310

310:                                              ; preds = %298
  %311 = load i32, ptr %32, align 4, !tbaa !5
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %32, align 4, !tbaa !5
  br label %294, !llvm.loop !27

313:                                              ; preds = %294
  %314 = call i64 @libxsmm_timer_tick()
  store i64 %314, ptr %23, align 8, !tbaa !25
  %315 = load i64, ptr %22, align 8, !tbaa !25
  %316 = load i64, ptr %23, align 8, !tbaa !25
  %317 = call double @libxsmm_timer_duration(i64 noundef %315, i64 noundef %316)
  store double %317, ptr %26, align 8, !tbaa !11
  %318 = call i64 @libxsmm_timer_tick()
  store i64 %318, ptr %22, align 8, !tbaa !25
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %319

319:                                              ; preds = %325, %313
  %320 = load i32, ptr %32, align 4, !tbaa !5
  %321 = load i32, ptr %11, align 4, !tbaa !5
  %322 = icmp slt i32 %320, %321
  br i1 %322, label %323, label %328

323:                                              ; preds = %319
  %324 = load ptr, ptr %17, align 8, !tbaa !9
  call void %324(ptr noundef %21)
  br label %325

325:                                              ; preds = %323
  %326 = load i32, ptr %32, align 4, !tbaa !5
  %327 = add nsw i32 %326, 1
  store i32 %327, ptr %32, align 4, !tbaa !5
  br label %319, !llvm.loop !28

328:                                              ; preds = %319
  %329 = call i64 @libxsmm_timer_tick()
  store i64 %329, ptr %23, align 8, !tbaa !25
  %330 = load i64, ptr %22, align 8, !tbaa !25
  %331 = load i64, ptr %23, align 8, !tbaa !25
  %332 = call double @libxsmm_timer_duration(i64 noundef %330, i64 noundef %331)
  store double %332, ptr %27, align 8, !tbaa !11
  %333 = load ptr, ptr %17, align 8, !tbaa !9
  %334 = call i32 @libxsmm_get_kernel_info(ptr noundef %333, ptr noundef %25)
  %335 = getelementptr inbounds %struct.libxsmm_kernel_info, ptr %25, i32 0, i32 1
  %336 = load i32, ptr %335, align 4, !tbaa !29
  %337 = zext i32 %336 to i64
  store i64 %337, ptr %24, align 8, !tbaa !25
  %338 = load double, ptr %12, align 8, !tbaa !11
  %339 = load double, ptr %26, align 8, !tbaa !11
  %340 = fdiv double %338, %339
  %341 = fdiv double %340, 1.000000e+09
  store double %341, ptr %29, align 8, !tbaa !11
  %342 = load double, ptr %12, align 8, !tbaa !11
  %343 = load double, ptr %27, align 8, !tbaa !11
  %344 = fdiv double %342, %343
  %345 = fdiv double %344, 1.000000e+09
  store double %345, ptr %30, align 8, !tbaa !11
  %346 = load i64, ptr %24, align 8, !tbaa !25
  %347 = uitofp i64 %346 to double
  %348 = load i32, ptr %11, align 4, !tbaa !5
  %349 = sitofp i32 %348 to double
  %350 = fmul double %347, %349
  %351 = load double, ptr %27, align 8, !tbaa !11
  %352 = fdiv double %350, %351
  %353 = fdiv double %352, 1.000000e+09
  store double %353, ptr %31, align 8, !tbaa !11
  %354 = load double, ptr %29, align 8, !tbaa !11
  %355 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %354)
  %356 = load double, ptr %30, align 8, !tbaa !11
  %357 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %356)
  %358 = load double, ptr %31, align 8, !tbaa !11
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %358)
  br label %361

360:                                              ; preds = %148, %145, %142, %82
  store i32 1, ptr %33, align 4, !tbaa !5
  br label %361

361:                                              ; preds = %360, %328
  %362 = load ptr, ptr %13, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %362)
  %363 = load ptr, ptr %14, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %363)
  %364 = load ptr, ptr %15, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %364)
  %365 = load ptr, ptr %16, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %365)
  %366 = load i32, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 176, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  ret i32 %366
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #2

declare noalias ptr @libxsmm_aligned_malloc(i64 noundef, i64 noundef) #3

declare void @libxsmm_create_gemm_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_gemm_shape) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare double @libxsmm_rng_f64() #3

declare ptr @libxsmm_create_packed_gemm_bc_rm(ptr noundef byval(%struct.libxsmm_gemm_shape) align 8, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @matMulFusedBC(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #6

declare i32 @printf(ptr noundef, ...) #3

declare i64 @libxsmm_timer_tick() #3

declare double @libxsmm_timer_duration(i64 noundef, i64 noundef) #3

declare i32 @libxsmm_get_kernel_info(ptr noundef, ptr noundef) #3

declare void @libxsmm_free(ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = !{!19, !10, i64 32}
!19 = !{!"libxsmm_gemm_param", !20, i64 0, !21, i64 32, !21, i64 80, !21, i64 128}
!20 = !{!"libxsmm_matrix_op_arg", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!21 = !{!"libxsmm_matrix_arg", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!22 = !{!19, !10, i64 80}
!23 = !{!19, !10, i64 128}
!24 = distinct !{!24, !14}
!25 = !{!26, !26, i64 0}
!26 = !{!"long long", !7, i64 0}
!27 = distinct !{!27, !14}
!28 = distinct !{!28, !14}
!29 = !{!30, !6, i64 4}
!30 = !{!"libxsmm_kernel_info", !6, i64 0, !6, i64 4, !31, i64 8, !6, i64 16}
!31 = !{!"long", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.libxsmm_gemm_shape = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_gemm_param = type { %struct.libxsmm_matrix_op_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg }
%struct.libxsmm_matrix_op_arg = type { ptr, ptr, ptr, ptr }
%struct.libxsmm_matrix_arg = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.libxsmm_kernel_info = type { i32, i32, i64, i32 }

@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.libxsmm_gemm_shape, align 8
  %4 = alloca %struct.libxsmm_gemm_param, align 8
  %5 = alloca %struct.libxsmm_kernel_info, align 8
  %6 = icmp sgt i32 %0, 1
  br i1 %6, label %7, label %.thread159

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = tail call i32 @atoi(ptr nocapture noundef %9) #9
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %.thread159, label %11

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = tail call i32 @atoi(ptr nocapture noundef %13) #9
  %15 = icmp ugt i32 %0, 3
  br i1 %15, label %16, label %.thread159

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = tail call i32 @atoi(ptr nocapture noundef %18) #9
  %.not160 = icmp eq i32 %0, 4
  br i1 %.not160, label %.thread159, label %20

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %1, i64 32
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = tail call double @atof(ptr noundef %22) #9
  %24 = icmp ugt i32 %0, 5
  br i1 %24, label %25, label %.thread159

25:                                               ; preds = %20
  %26 = getelementptr inbounds i8, ptr %1, i64 40
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = tail call i32 @atoi(ptr nocapture noundef %27) #9
  br label %.thread159

.thread159:                                       ; preds = %2, %7, %11, %16, %20, %25
  %29 = phi double [ %23, %25 ], [ %23, %20 ], [ 0.000000e+00, %16 ], [ 0.000000e+00, %11 ], [ 0.000000e+00, %7 ], [ 0.000000e+00, %2 ]
  %30 = phi i32 [ %14, %25 ], [ %14, %20 ], [ %14, %16 ], [ %14, %11 ], [ 0, %7 ], [ 0, %2 ]
  %31 = phi i32 [ %10, %25 ], [ %10, %20 ], [ %10, %16 ], [ %10, %11 ], [ %10, %7 ], [ 0, %2 ]
  %32 = phi i32 [ %19, %25 ], [ %19, %20 ], [ %19, %16 ], [ 0, %11 ], [ 0, %7 ], [ 0, %2 ]
  %33 = phi i32 [ %28, %25 ], [ 0, %20 ], [ 0, %16 ], [ 0, %11 ], [ 0, %7 ], [ 0, %2 ]
  %34 = sitofp i32 %31 to double
  %35 = fmul double %34, 2.000000e+00
  %36 = sitofp i32 %30 to double
  %37 = fmul double %35, %36
  %38 = sitofp i32 %32 to double
  %39 = fmul double %37, %38
  %40 = fmul double %39, 8.000000e+00
  %41 = sitofp i32 %33 to double
  %42 = fmul double %40, %41
  %43 = mul nsw i32 %32, %31
  %44 = sext i32 %43 to i64
  %45 = shl nsw i64 %44, 3
  %46 = tail call noalias ptr @libxsmm_aligned_malloc(i64 noundef %45, i64 noundef 64) #10
  %47 = shl i32 %30, 3
  %48 = mul i32 %47, %32
  %49 = sext i32 %48 to i64
  %50 = shl nsw i64 %49, 3
  %51 = tail call noalias ptr @libxsmm_aligned_malloc(i64 noundef %50, i64 noundef 64) #10
  %52 = mul i32 %47, %31
  %53 = sext i32 %52 to i64
  %54 = shl nsw i64 %53, 3
  %55 = tail call noalias ptr @libxsmm_aligned_malloc(i64 noundef %54, i64 noundef 64) #10
  %56 = tail call noalias ptr @libxsmm_aligned_malloc(i64 noundef %54, i64 noundef 64) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #10
  call void @libxsmm_create_gemm_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_gemm_shape) align 4 %3, i32 noundef %31, i32 noundef %30, i32 noundef %32, i32 noundef %32, i32 noundef %30, i32 noundef %30, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #10
  %57 = fcmp oeq double %29, 0.000000e+00
  %58 = select i1 %57, i32 4, i32 0
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #10
  %59 = insertelement <4 x ptr> poison, ptr %46, i64 0
  %60 = insertelement <4 x ptr> %59, ptr %51, i64 1
  %61 = insertelement <4 x ptr> %60, ptr %55, i64 2
  %62 = insertelement <4 x ptr> %61, ptr %56, i64 3
  %.fr = freeze <4 x ptr> %62
  %63 = icmp eq <4 x ptr> %.fr, zeroinitializer
  %64 = bitcast <4 x i1> %63 to i4
  %65 = icmp eq i4 %64, 0
  br i1 %65, label %.preheader163, label %119

.preheader163:                                    ; preds = %.thread159
  %66 = icmp sgt i32 %52, 0
  br i1 %66, label %.lr.ph.preheader, label %.preheader161

.lr.ph.preheader:                                 ; preds = %.preheader163
  %wide.trip.count = zext nneg i32 %52 to i64
  br label %.lr.ph

.preheader162:                                    ; preds = %.lr.ph
  br i1 %66, label %.lr.ph166.preheader, label %.preheader161

.lr.ph166.preheader:                              ; preds = %.preheader162
  %67 = zext nneg i32 %52 to i64
  %68 = shl nuw nsw i64 %67, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %56, ptr nonnull align 8 %55, i64 %68, i1 false), !tbaa !9
  br label %.preheader161

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %69 = call double @libxsmm_rng_f64() #10
  %70 = getelementptr inbounds double, ptr %55, i64 %indvars.iv
  store double %69, ptr %70, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader162, label %.lr.ph, !llvm.loop !11

.preheader161:                                    ; preds = %.preheader163, %.lr.ph166.preheader, %.preheader162
  %71 = icmp sgt i32 %43, 0
  br i1 %71, label %.lr.ph168.preheader, label %.preheader

.lr.ph168.preheader:                              ; preds = %.preheader161
  %wide.trip.count191 = zext nneg i32 %43 to i64
  br label %.lr.ph168

.preheader:                                       ; preds = %.lr.ph168, %.preheader161
  %72 = icmp sgt i32 %48, 0
  br i1 %72, label %.lr.ph170.preheader, label %._crit_edge

.lr.ph170.preheader:                              ; preds = %.preheader
  %wide.trip.count196 = zext nneg i32 %48 to i64
  br label %.lr.ph170

.lr.ph168:                                        ; preds = %.lr.ph168.preheader, %.lr.ph168
  %indvars.iv188 = phi i64 [ 0, %.lr.ph168.preheader ], [ %indvars.iv.next189, %.lr.ph168 ]
  %73 = call double @libxsmm_rng_f64() #10
  %74 = getelementptr inbounds double, ptr %46, i64 %indvars.iv188
  store double %73, ptr %74, align 8, !tbaa !9
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %exitcond192.not = icmp eq i64 %indvars.iv.next189, %wide.trip.count191
  br i1 %exitcond192.not, label %.preheader, label %.lr.ph168, !llvm.loop !13

.lr.ph170:                                        ; preds = %.lr.ph170.preheader, %.lr.ph170
  %indvars.iv193 = phi i64 [ 0, %.lr.ph170.preheader ], [ %indvars.iv.next194, %.lr.ph170 ]
  %75 = call double @libxsmm_rng_f64() #10
  %76 = getelementptr inbounds double, ptr %51, i64 %indvars.iv193
  store double %75, ptr %76, align 8, !tbaa !9
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %exitcond197.not = icmp eq i64 %indvars.iv.next194, %wide.trip.count196
  br i1 %exitcond197.not, label %._crit_edge, label %.lr.ph170, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph170, %.preheader
  %77 = call ptr @libxsmm_create_packed_gemm_bc_rm(ptr noundef nonnull byval(%struct.libxsmm_gemm_shape) align 8 %3, i32 noundef %58, i32 noundef 0, i32 noundef 8) #10
  call void @matMulFusedBC(i32 noundef 8, i32 noundef %31, i32 noundef %30, i32 noundef %32, i32 noundef %32, i32 noundef %30, i32 noundef %30, double noundef %29, ptr noundef nonnull %46, ptr noundef nonnull %51, ptr noundef nonnull %55)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(176) %4, i8 0, i64 176, i1 false)
  %78 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %46, ptr %78, align 8, !tbaa !15
  %79 = getelementptr inbounds i8, ptr %4, i64 80
  store ptr %51, ptr %79, align 8, !tbaa !19
  %80 = getelementptr inbounds i8, ptr %4, i64 128
  store ptr %56, ptr %80, align 8, !tbaa !20
  call void %77(ptr noundef nonnull %4) #10
  br i1 %66, label %.lr.ph174.preheader, label %._crit_edge175

.lr.ph174.preheader:                              ; preds = %._crit_edge
  %wide.trip.count201 = zext nneg i32 %52 to i64
  br label %.lr.ph174

.lr.ph174:                                        ; preds = %.lr.ph174, %.lr.ph174.preheader
  %indvars.iv198 = phi i64 [ 0, %.lr.ph174.preheader ], [ %indvars.iv.next199.1, %.lr.ph174 ]
  %.0141171 = phi double [ 0.000000e+00, %.lr.ph174.preheader ], [ %.1142.1, %.lr.ph174 ]
  %81 = getelementptr inbounds double, ptr %55, i64 %indvars.iv198
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = getelementptr inbounds double, ptr %56, i64 %indvars.iv198
  %84 = load double, ptr %83, align 8, !tbaa !9
  %85 = fsub double %82, %84
  %86 = call double @llvm.fabs.f64(double %85)
  %87 = fcmp olt double %.0141171, %86
  %.1142 = select i1 %87, double %86, double %.0141171
  %indvars.iv.next199 = or disjoint i64 %indvars.iv198, 1
  %88 = getelementptr inbounds double, ptr %55, i64 %indvars.iv.next199
  %89 = load double, ptr %88, align 8, !tbaa !9
  %90 = getelementptr inbounds double, ptr %56, i64 %indvars.iv.next199
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = fsub double %89, %91
  %93 = call double @llvm.fabs.f64(double %92)
  %94 = fcmp olt double %.1142, %93
  %.1142.1 = select i1 %94, double %93, double %.1142
  %indvars.iv.next199.1 = add nuw nsw i64 %indvars.iv198, 2
  %exitcond202.not.1 = icmp eq i64 %indvars.iv.next199.1, %wide.trip.count201
  br i1 %exitcond202.not.1, label %._crit_edge175, label %.lr.ph174, !llvm.loop !21

._crit_edge175:                                   ; preds = %.lr.ph174, %._crit_edge
  %.0141.lcssa = phi double [ 0.000000e+00, %._crit_edge ], [ %.1142.1, %.lr.ph174 ]
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %.0141.lcssa)
  %96 = call i64 @libxsmm_timer_tick() #10
  %97 = icmp sgt i32 %33, 0
  br i1 %97, label %.lr.ph178, label %._crit_edge179

.lr.ph178:                                        ; preds = %._crit_edge175, %.lr.ph178
  %.5176 = phi i32 [ %98, %.lr.ph178 ], [ 0, %._crit_edge175 ]
  call void @matMulFusedBC(i32 noundef 8, i32 noundef %31, i32 noundef %30, i32 noundef %32, i32 noundef %32, i32 noundef %30, i32 noundef %30, double noundef %29, ptr noundef nonnull %46, ptr noundef nonnull %51, ptr noundef nonnull %55)
  %98 = add nuw nsw i32 %.5176, 1
  %exitcond203.not = icmp eq i32 %98, %33
  br i1 %exitcond203.not, label %._crit_edge179, label %.lr.ph178, !llvm.loop !22

._crit_edge179:                                   ; preds = %.lr.ph178, %._crit_edge175
  %99 = call i64 @libxsmm_timer_tick() #10
  %100 = call double @libxsmm_timer_duration(i64 noundef %96, i64 noundef %99) #10
  %101 = call i64 @libxsmm_timer_tick() #10
  br i1 %97, label %.lr.ph182, label %._crit_edge183

.lr.ph182:                                        ; preds = %._crit_edge179, %.lr.ph182
  %.6180 = phi i32 [ %102, %.lr.ph182 ], [ 0, %._crit_edge179 ]
  call void %77(ptr noundef nonnull %4) #10
  %102 = add nuw nsw i32 %.6180, 1
  %exitcond204.not = icmp eq i32 %102, %33
  br i1 %exitcond204.not, label %._crit_edge183, label %.lr.ph182, !llvm.loop !23

._crit_edge183:                                   ; preds = %.lr.ph182, %._crit_edge179
  %103 = call i64 @libxsmm_timer_tick() #10
  %104 = call double @libxsmm_timer_duration(i64 noundef %101, i64 noundef %103) #10
  %105 = call i32 @libxsmm_get_kernel_info(ptr noundef %77, ptr noundef nonnull %5) #10
  %106 = getelementptr inbounds i8, ptr %5, i64 4
  %107 = load i32, ptr %106, align 4, !tbaa !24
  %108 = fdiv double %42, %100
  %109 = fdiv double %108, 1.000000e+09
  %110 = fdiv double %42, %104
  %111 = fdiv double %110, 1.000000e+09
  %112 = uitofp i32 %107 to double
  %113 = fmul double %41, %112
  %114 = fdiv double %113, %104
  %115 = fdiv double %114, 1.000000e+09
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %109)
  %117 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %111)
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %115)
  br label %119

119:                                              ; preds = %.thread159, %._crit_edge183
  %.0 = phi i32 [ 0, %._crit_edge183 ], [ 1, %.thread159 ]
  call void @libxsmm_free(ptr noundef %46) #10
  call void @libxsmm_free(ptr noundef %51) #10
  call void @libxsmm_free(ptr noundef %55) #10
  call void @libxsmm_free(ptr noundef %56) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #10
  ret i32 %.0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #2

declare noalias ptr @libxsmm_aligned_malloc(i64 noundef, i64 noundef) local_unnamed_addr #3

declare void @libxsmm_create_gemm_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_gemm_shape) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare double @libxsmm_rng_f64() local_unnamed_addr #3

declare ptr @libxsmm_create_packed_gemm_bc_rm(ptr noundef byval(%struct.libxsmm_gemm_shape) align 8, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @matMulFusedBC(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #6

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #7

declare i64 @libxsmm_timer_tick() local_unnamed_addr #3

declare double @libxsmm_timer_duration(i64 noundef, i64 noundef) local_unnamed_addr #3

declare i32 @libxsmm_get_kernel_info(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @libxsmm_free(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !6, i64 32}
!16 = !{!"libxsmm_gemm_param", !17, i64 0, !18, i64 32, !18, i64 80, !18, i64 128}
!17 = !{!"libxsmm_matrix_op_arg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"libxsmm_matrix_arg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!19 = !{!16, !6, i64 80}
!20 = !{!16, !6, i64 128}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = !{!25, !26, i64 4}
!25 = !{!"libxsmm_kernel_info", !26, i64 0, !26, i64 4, !27, i64 8, !26, i64 16}
!26 = !{!"int", !7, i64 0}
!27 = !{!"long", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass