; LLVM IR from libxsmm/libxsmm :: samples/magazine (magazine_xsmm)

; 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"

%union.libxsmm_xmmfunction = type { ptr }
%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 [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca double, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca i64, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %union.libxsmm_xmmfunction, align 8
  %30 = alloca %struct.libxsmm_gemm_shape, align 8
  %31 = alloca i32, align 4
  %32 = alloca %struct.libxsmm_gemm_param, align 8
  %33 = alloca i32, align 4
  %34 = alloca %struct.libxsmm_kernel_info, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  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) #6
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp slt i32 1, %37
  br i1 %38, label %39, label %44

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

44:                                               ; preds = %2
  br label %45

45:                                               ; preds = %44, %39
  %46 = phi i32 [ %43, %39 ], [ 0, %44 ]
  store i32 %46, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = icmp slt i32 2, %47
  br i1 %48, label %49, label %54

49:                                               ; preds = %45
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 2
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = call i32 @atoi(ptr noundef %52) #7
  br label %55

54:                                               ; preds = %45
  br label %55

55:                                               ; preds = %54, %49
  %56 = phi i32 [ %53, %49 ], [ 13, %54 ]
  store i32 %56, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = icmp slt i32 3, %57
  br i1 %58, label %59, label %64

59:                                               ; preds = %55
  %60 = load ptr, ptr %5, align 8, !tbaa !9
  %61 = getelementptr inbounds ptr, ptr %60, i64 3
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = call i32 @atoi(ptr noundef %62) #7
  br label %65

64:                                               ; preds = %55
  br label %65

65:                                               ; preds = %64, %59
  %66 = phi i32 [ %63, %59 ], [ 5, %64 ]
  store i32 %66, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = icmp slt i32 4, %67
  br i1 %68, label %69, label %74

69:                                               ; preds = %65
  %70 = load ptr, ptr %5, align 8, !tbaa !9
  %71 = getelementptr inbounds ptr, ptr %70, i64 4
  %72 = load ptr, ptr %71, align 8, !tbaa !9
  %73 = call i32 @atoi(ptr noundef %72) #7
  br label %75

74:                                               ; preds = %65
  br label %75

75:                                               ; preds = %74, %69
  %76 = phi i32 [ %73, %69 ], [ 7, %74 ]
  store i32 %76, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = icmp slt i32 5, %77
  br i1 %78, label %79, label %95

79:                                               ; preds = %75
  %80 = load ptr, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %80, i64 5
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = call i32 @atoi(ptr noundef %82) #7
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %86, label %88

86:                                               ; preds = %79
  %87 = load i32, ptr %7, align 4, !tbaa !5
  br label %93

88:                                               ; preds = %79
  %89 = load ptr, ptr %5, align 8, !tbaa !9
  %90 = getelementptr inbounds ptr, ptr %89, i64 5
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = call i32 @atoi(ptr noundef %91) #7
  br label %93

93:                                               ; preds = %88, %86
  %94 = phi i32 [ %87, %86 ], [ %92, %88 ]
  br label %103

95:                                               ; preds = %75
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = mul i64 8, %97
  %99 = add i64 %98, 0
  %100 = and i64 %99, -1
  %101 = udiv i64 %100, 8
  %102 = trunc i64 %101 to i32
  br label %103

103:                                              ; preds = %95, %93
  %104 = phi i32 [ %94, %93 ], [ %102, %95 ]
  store i32 %104, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %105 = load i32, ptr %4, align 4, !tbaa !5
  %106 = icmp slt i32 6, %105
  br i1 %106, label %107, label %123

107:                                              ; preds = %103
  %108 = load ptr, ptr %5, align 8, !tbaa !9
  %109 = getelementptr inbounds ptr, ptr %108, i64 6
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = call i32 @atoi(ptr noundef %110) #7
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %114, label %116

114:                                              ; preds = %107
  %115 = load i32, ptr %9, align 4, !tbaa !5
  br label %121

116:                                              ; preds = %107
  %117 = load ptr, ptr %5, align 8, !tbaa !9
  %118 = getelementptr inbounds ptr, ptr %117, i64 6
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = call i32 @atoi(ptr noundef %119) #7
  br label %121

121:                                              ; preds = %116, %114
  %122 = phi i32 [ %115, %114 ], [ %120, %116 ]
  br label %131

123:                                              ; preds = %103
  %124 = load i32, ptr %9, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = mul i64 8, %125
  %127 = add i64 %126, 0
  %128 = and i64 %127, -1
  %129 = udiv i64 %128, 8
  %130 = trunc i64 %129 to i32
  br label %131

131:                                              ; preds = %123, %121
  %132 = phi i32 [ %122, %121 ], [ %130, %123 ]
  store i32 %132, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %133 = load i32, ptr %4, align 4, !tbaa !5
  %134 = icmp slt i32 7, %133
  br i1 %134, label %135, label %151

135:                                              ; preds = %131
  %136 = load ptr, ptr %5, align 8, !tbaa !9
  %137 = getelementptr inbounds ptr, ptr %136, i64 7
  %138 = load ptr, ptr %137, align 8, !tbaa !9
  %139 = call i32 @atoi(ptr noundef %138) #7
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %142, label %144

142:                                              ; preds = %135
  %143 = load i32, ptr %7, align 4, !tbaa !5
  br label %149

144:                                              ; preds = %135
  %145 = load ptr, ptr %5, align 8, !tbaa !9
  %146 = getelementptr inbounds ptr, ptr %145, i64 7
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = call i32 @atoi(ptr noundef %147) #7
  br label %149

149:                                              ; preds = %144, %142
  %150 = phi i32 [ %143, %142 ], [ %148, %144 ]
  br label %159

151:                                              ; preds = %131
  %152 = load i32, ptr %7, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = mul i64 8, %153
  %155 = add i64 %154, 0
  %156 = and i64 %155, -1
  %157 = udiv i64 %156, 8
  %158 = trunc i64 %157 to i32
  br label %159

159:                                              ; preds = %151, %149
  %160 = phi i32 [ %150, %149 ], [ %158, %151 ]
  store i32 %160, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  store i8 110, ptr %13, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  store i8 110, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store double 1.000000e+00, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %161 = load i32, ptr %10, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = mul i64 8, %162
  %164 = load i32, ptr %9, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = mul i64 %163, %165
  %167 = add i64 %166, 0
  %168 = and i64 %167, -1
  %169 = udiv i64 %168, 8
  store i64 %169, ptr %16, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %170 = load i32, ptr %11, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = mul i64 8, %171
  %173 = load i32, ptr %8, align 4, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = mul i64 %172, %174
  %176 = add i64 %175, 0
  %177 = and i64 %176, -1
  %178 = udiv i64 %177, 8
  store i64 %178, ptr %17, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %179 = load i32, ptr %12, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = mul i64 8, %180
  %182 = load i32, ptr %8, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = mul i64 %181, %183
  %185 = add i64 %184, 0
  %186 = and i64 %185, -1
  %187 = udiv i64 %186, 8
  store i64 %187, ptr %18, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %188 = load i32, ptr %6, align 4, !tbaa !5
  %189 = icmp sge i32 0, %188
  br i1 %189, label %190, label %199

190:                                              ; preds = %159
  %191 = load i64, ptr %16, align 8, !tbaa !14
  %192 = load i64, ptr %17, align 8, !tbaa !14
  %193 = add i64 %191, %192
  %194 = load i64, ptr %18, align 8, !tbaa !14
  %195 = add i64 %193, %194
  %196 = mul i64 8, %195
  %197 = udiv i64 2147483648, %196
  %198 = trunc i64 %197 to i32
  br label %201

199:                                              ; preds = %159
  %200 = load i32, ptr %6, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %199, %190
  %202 = phi i32 [ %198, %190 ], [ %200, %199 ]
  store i32 %202, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %203 = load i64, ptr %16, align 8, !tbaa !14
  %204 = mul i64 8, %203
  %205 = load i32, ptr %19, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = mul i64 %204, %206
  %208 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %207, i64 noundef 64)
  store ptr %208, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %209 = load i64, ptr %17, align 8, !tbaa !14
  %210 = mul i64 8, %209
  %211 = load i32, ptr %19, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = mul i64 %210, %212
  %214 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %213, i64 noundef 64)
  store ptr %214, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %215 = load i64, ptr %18, align 8, !tbaa !14
  %216 = mul i64 8, %215
  %217 = load i32, ptr %19, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = mul i64 %216, %218
  %220 = call noalias ptr @libxsmm_aligned_malloc(i64 noundef %219, i64 noundef 64)
  store ptr %220, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %221 = load i32, ptr %19, align 4, !tbaa !5
  %222 = sitofp i32 %221 to double
  %223 = fdiv double 1.000000e+00, %222
  store double %223, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 0, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #6
  %224 = load i32, ptr %7, align 4, !tbaa !5
  %225 = load i32, ptr %8, align 4, !tbaa !5
  %226 = load i32, ptr %9, align 4, !tbaa !5
  %227 = load i32, ptr %10, align 4, !tbaa !5
  %228 = load i32, ptr %11, align 4, !tbaa !5
  %229 = load i32, ptr %12, align 4, !tbaa !5
  call void @libxsmm_create_gemm_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_gemm_shape) align 4 %30, i32 noundef %224, i32 noundef %225, i32 noundef %226, i32 noundef %227, i32 noundef %228, i32 noundef %229, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 176, ptr %32) #6
  %230 = load i32, ptr %31, align 4, !tbaa !5
  %231 = or i32 %230, 1
  store i32 %231, ptr %31, align 4, !tbaa !5
  %232 = load i32, ptr %31, align 4, !tbaa !5
  %233 = call ptr @libxsmm_dispatch_gemm(ptr noundef byval(%struct.libxsmm_gemm_shape) align 8 %30, i32 noundef 0, i32 noundef %232)
  store ptr %233, ptr %29, align 8, !tbaa !11
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %234

234:                                              ; preds = %276, %201
  %235 = load i32, ptr %26, align 4, !tbaa !5
  %236 = load i32, ptr %19, align 4, !tbaa !5
  %237 = icmp slt i32 %235, %236
  br i1 %237, label %238, label %279

238:                                              ; preds = %234
  %239 = load i32, ptr %26, align 4, !tbaa !5
  store i32 %239, ptr %27, align 4, !tbaa !5
  %240 = load i32, ptr %26, align 4, !tbaa !5
  %241 = add nsw i32 25, %240
  %242 = load ptr, ptr %20, align 8, !tbaa !9
  %243 = load i32, ptr %27, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = load i64, ptr %16, align 8, !tbaa !14
  %246 = mul i64 %244, %245
  %247 = getelementptr inbounds double, ptr %242, i64 %246
  %248 = load i32, ptr %7, align 4, !tbaa !5
  %249 = load i32, ptr %9, align 4, !tbaa !5
  %250 = load i32, ptr %10, align 4, !tbaa !5
  %251 = load double, ptr %23, align 8, !tbaa !12
  call void @init(i32 noundef %241, ptr noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250, double noundef %251)
  %252 = load i32, ptr %26, align 4, !tbaa !5
  %253 = add nsw i32 75, %252
  %254 = load ptr, ptr %21, align 8, !tbaa !9
  %255 = load i32, ptr %27, align 4, !tbaa !5
  %256 = sext i32 %255 to i64
  %257 = load i64, ptr %17, align 8, !tbaa !14
  %258 = mul i64 %256, %257
  %259 = getelementptr inbounds double, ptr %254, i64 %258
  %260 = load i32, ptr %9, align 4, !tbaa !5
  %261 = load i32, ptr %8, align 4, !tbaa !5
  %262 = load i32, ptr %11, align 4, !tbaa !5
  %263 = load double, ptr %23, align 8, !tbaa !12
  call void @init(i32 noundef %253, ptr noundef %259, i32 noundef %260, i32 noundef %261, i32 noundef %262, double noundef %263)
  %264 = load i32, ptr %26, align 4, !tbaa !5
  %265 = add nsw i32 42, %264
  %266 = load ptr, ptr %22, align 8, !tbaa !9
  %267 = load i32, ptr %27, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = load i64, ptr %18, align 8, !tbaa !14
  %270 = mul i64 %268, %269
  %271 = getelementptr inbounds double, ptr %266, i64 %270
  %272 = load i32, ptr %7, align 4, !tbaa !5
  %273 = load i32, ptr %8, align 4, !tbaa !5
  %274 = load i32, ptr %12, align 4, !tbaa !5
  %275 = load double, ptr %23, align 8, !tbaa !12
  call void @init(i32 noundef %265, ptr noundef %271, i32 noundef %272, i32 noundef %273, i32 noundef %274, double noundef %275)
  br label %276

276:                                              ; preds = %238
  %277 = load i32, ptr %26, align 4, !tbaa !5
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %26, align 4, !tbaa !5
  br label %234, !llvm.loop !16

279:                                              ; preds = %234
  %280 = call i64 @libxsmm_timer_tick()
  store i64 %280, ptr %24, align 8, !tbaa !18
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %281

281:                                              ; preds = %339, %279
  %282 = load i32, ptr %26, align 4, !tbaa !5
  %283 = load i32, ptr %19, align 4, !tbaa !5
  %284 = sub nsw i32 %283, 1
  %285 = icmp slt i32 %282, %284
  br i1 %285, label %286, label %342

286:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %287 = load i32, ptr %26, align 4, !tbaa !5
  %288 = add nsw i32 %287, 1
  store i32 %288, ptr %33, align 4, !tbaa !5
  %289 = load i32, ptr %26, align 4, !tbaa !5
  store i32 %289, ptr %27, align 4, !tbaa !5
  %290 = load ptr, ptr %20, align 8, !tbaa !9
  %291 = load i32, ptr %27, align 4, !tbaa !5
  %292 = sext i32 %291 to i64
  %293 = load i64, ptr %16, align 8, !tbaa !14
  %294 = mul i64 %292, %293
  %295 = getelementptr inbounds double, ptr %290, i64 %294
  %296 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 1
  %297 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %296, i32 0, i32 0
  store ptr %295, ptr %297, align 8, !tbaa !20
  %298 = load ptr, ptr %20, align 8, !tbaa !9
  %299 = load i32, ptr %33, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = load i64, ptr %16, align 8, !tbaa !14
  %302 = mul i64 %300, %301
  %303 = getelementptr inbounds double, ptr %298, i64 %302
  %304 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 1
  %305 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %304, i32 0, i32 5
  store ptr %303, ptr %305, align 8, !tbaa !24
  %306 = load ptr, ptr %21, align 8, !tbaa !9
  %307 = load i32, ptr %27, align 4, !tbaa !5
  %308 = sext i32 %307 to i64
  %309 = load i64, ptr %17, align 8, !tbaa !14
  %310 = mul i64 %308, %309
  %311 = getelementptr inbounds double, ptr %306, i64 %310
  %312 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 2
  %313 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %312, i32 0, i32 0
  store ptr %311, ptr %313, align 8, !tbaa !25
  %314 = load ptr, ptr %21, align 8, !tbaa !9
  %315 = load i32, ptr %33, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = load i64, ptr %17, align 8, !tbaa !14
  %318 = mul i64 %316, %317
  %319 = getelementptr inbounds double, ptr %314, i64 %318
  %320 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 2
  %321 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %320, i32 0, i32 5
  store ptr %319, ptr %321, align 8, !tbaa !26
  %322 = load ptr, ptr %22, align 8, !tbaa !9
  %323 = load i32, ptr %27, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = load i64, ptr %18, align 8, !tbaa !14
  %326 = mul i64 %324, %325
  %327 = getelementptr inbounds double, ptr %322, i64 %326
  %328 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 3
  %329 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %328, i32 0, i32 0
  store ptr %327, ptr %329, align 8, !tbaa !27
  %330 = load ptr, ptr %22, align 8, !tbaa !9
  %331 = load i32, ptr %33, align 4, !tbaa !5
  %332 = sext i32 %331 to i64
  %333 = load i64, ptr %18, align 8, !tbaa !14
  %334 = mul i64 %332, %333
  %335 = getelementptr inbounds double, ptr %330, i64 %334
  %336 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 3
  %337 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %336, i32 0, i32 5
  store ptr %335, ptr %337, align 8, !tbaa !28
  %338 = load ptr, ptr %29, align 8, !tbaa !11
  call void %338(ptr noundef %32)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %339

339:                                              ; preds = %286
  %340 = load i32, ptr %26, align 4, !tbaa !5
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr %26, align 4, !tbaa !5
  br label %281, !llvm.loop !29

342:                                              ; preds = %281
  %343 = load i32, ptr %19, align 4, !tbaa !5
  %344 = sub nsw i32 %343, 1
  store i32 %344, ptr %27, align 4, !tbaa !5
  %345 = load ptr, ptr %20, align 8, !tbaa !9
  %346 = load i32, ptr %27, align 4, !tbaa !5
  %347 = sext i32 %346 to i64
  %348 = load i64, ptr %16, align 8, !tbaa !14
  %349 = mul i64 %347, %348
  %350 = getelementptr inbounds double, ptr %345, i64 %349
  %351 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 1
  %352 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %351, i32 0, i32 0
  store ptr %350, ptr %352, align 8, !tbaa !20
  %353 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 1
  %354 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %353, i32 0, i32 0
  %355 = load ptr, ptr %354, align 8, !tbaa !20
  %356 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 1
  %357 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %356, i32 0, i32 5
  store ptr %355, ptr %357, align 8, !tbaa !24
  %358 = load ptr, ptr %21, align 8, !tbaa !9
  %359 = load i32, ptr %27, align 4, !tbaa !5
  %360 = sext i32 %359 to i64
  %361 = load i64, ptr %17, align 8, !tbaa !14
  %362 = mul i64 %360, %361
  %363 = getelementptr inbounds double, ptr %358, i64 %362
  %364 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 2
  %365 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %364, i32 0, i32 0
  store ptr %363, ptr %365, align 8, !tbaa !25
  %366 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 2
  %367 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %366, i32 0, i32 0
  %368 = load ptr, ptr %367, align 8, !tbaa !25
  %369 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 2
  %370 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %369, i32 0, i32 5
  store ptr %368, ptr %370, align 8, !tbaa !26
  %371 = load ptr, ptr %22, align 8, !tbaa !9
  %372 = load i32, ptr %27, align 4, !tbaa !5
  %373 = sext i32 %372 to i64
  %374 = load i64, ptr %18, align 8, !tbaa !14
  %375 = mul i64 %373, %374
  %376 = getelementptr inbounds double, ptr %371, i64 %375
  %377 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 3
  %378 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %377, i32 0, i32 0
  store ptr %376, ptr %378, align 8, !tbaa !27
  %379 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 3
  %380 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %379, i32 0, i32 0
  %381 = load ptr, ptr %380, align 8, !tbaa !27
  %382 = getelementptr inbounds %struct.libxsmm_gemm_param, ptr %32, i32 0, i32 3
  %383 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %382, i32 0, i32 5
  store ptr %381, ptr %383, align 8, !tbaa !28
  %384 = load ptr, ptr %29, align 8, !tbaa !11
  call void %384(ptr noundef %32)
  %385 = load i64, ptr %24, align 8, !tbaa !18
  %386 = call i64 @libxsmm_timer_tick()
  %387 = call double @libxsmm_timer_duration(i64 noundef %385, i64 noundef %386)
  store double %387, ptr %25, align 8, !tbaa !12
  %388 = load double, ptr %25, align 8, !tbaa !12
  %389 = fcmp olt double 0.000000e+00, %388
  br i1 %389, label %390, label %403

390:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #6
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 24, i1 false)
  %391 = load ptr, ptr %29, align 8, !tbaa !11
  %392 = call i32 @libxsmm_get_kernel_info(ptr noundef %391, ptr noundef %34)
  %393 = getelementptr inbounds %struct.libxsmm_kernel_info, ptr %34, i32 0, i32 1
  %394 = load i32, ptr %393, align 4, !tbaa !30
  %395 = uitofp i32 %394 to double
  %396 = fmul double 1.000000e-09, %395
  %397 = load double, ptr %25, align 8, !tbaa !12
  %398 = fdiv double %396, %397
  %399 = load i32, ptr %19, align 4, !tbaa !5
  %400 = sitofp i32 %399 to double
  %401 = fmul double %398, %400
  %402 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %401)
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #6
  br label %403

403:                                              ; preds = %390, %342
  %404 = load double, ptr %25, align 8, !tbaa !12
  %405 = fmul double 1.000000e+03, %404
  %406 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %405)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  store double 0.000000e+00, ptr %35, align 8, !tbaa !12
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %407

407:                                              ; preds = %428, %403
  %408 = load i32, ptr %26, align 4, !tbaa !5
  %409 = load i32, ptr %19, align 4, !tbaa !5
  %410 = icmp slt i32 %408, %409
  br i1 %410, label %411, label %431

411:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %412 = load ptr, ptr %22, align 8, !tbaa !9
  %413 = load i32, ptr %26, align 4, !tbaa !5
  %414 = sext i32 %413 to i64
  %415 = load i64, ptr %18, align 8, !tbaa !14
  %416 = mul i64 %414, %415
  %417 = getelementptr inbounds double, ptr %412, i64 %416
  %418 = load i32, ptr %7, align 4, !tbaa !5
  %419 = load i32, ptr %8, align 4, !tbaa !5
  %420 = load i32, ptr %12, align 4, !tbaa !5
  %421 = call double @norm(ptr noundef %417, i32 noundef %418, i32 noundef %419, i32 noundef %420)
  store double %421, ptr %36, align 8, !tbaa !12
  %422 = load double, ptr %35, align 8, !tbaa !12
  %423 = load double, ptr %36, align 8, !tbaa !12
  %424 = fcmp olt double %422, %423
  br i1 %424, label %425, label %427

425:                                              ; preds = %411
  %426 = load double, ptr %36, align 8, !tbaa !12
  store double %426, ptr %35, align 8, !tbaa !12
  br label %427

427:                                              ; preds = %425, %411
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %428

428:                                              ; preds = %427
  %429 = load i32, ptr %26, align 4, !tbaa !5
  %430 = add nsw i32 %429, 1
  store i32 %430, ptr %26, align 4, !tbaa !5
  br label %407, !llvm.loop !32

431:                                              ; preds = %407
  %432 = load double, ptr %35, align 8, !tbaa !12
  %433 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %432)
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  %434 = load ptr, ptr %20, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %434)
  %435 = load ptr, ptr %21, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %435)
  %436 = load ptr, ptr %22, align 8, !tbaa !9
  call void @libxsmm_free(ptr noundef %436)
  call void @llvm.lifetime.end.p0(i64 176, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 0
}

; 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

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

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

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 ptr @libxsmm_dispatch_gemm(ptr noundef byval(%struct.libxsmm_gemm_shape) align 8, i32 noundef, i32 noundef) #3

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

declare i64 @libxsmm_timer_tick() #3

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @norm(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #5

declare void @libxsmm_free(ptr noundef) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!21, !10, i64 32}
!21 = !{!"libxsmm_gemm_param", !22, i64 0, !23, i64 32, !23, i64 80, !23, i64 128}
!22 = !{!"libxsmm_matrix_op_arg", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!23 = !{!"libxsmm_matrix_arg", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!24 = !{!21, !10, i64 72}
!25 = !{!21, !10, i64 80}
!26 = !{!21, !10, i64 120}
!27 = !{!21, !10, i64 128}
!28 = !{!21, !10, i64 168}
!29 = distinct !{!29, !17}
!30 = !{!31, !6, i64 4}
!31 = !{!"libxsmm_kernel_info", !6, i64 0, !6, i64 4, !15, i64 8, !6, i64 16}
!32 = distinct !{!32, !17}


; 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 [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef 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 %.thread174

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) #8
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %.thread174, 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) #8
  %15 = icmp ugt i32 %0, 3
  br i1 %15, label %16, label %.thread174

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) #8
  %.not175 = icmp eq i32 %0, 4
  br i1 %.not175, label %.thread174, 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 i32 @atoi(ptr nocapture noundef %22) #8
  %24 = icmp ugt i32 %0, 5
  br i1 %24, label %25, label %.thread174

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) #8
  %. = tail call i32 @llvm.smax.i32(i32 %28, i32 %14)
  %.not176 = icmp eq i32 %0, 6
  br i1 %.not176, label %.thread174, label %29

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %1, i64 48
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = tail call i32 @atoi(ptr nocapture noundef %31) #8
  %.148 = tail call i32 @llvm.smax.i32(i32 %32, i32 %23)
  %33 = icmp ugt i32 %0, 7
  br i1 %33, label %34, label %.thread174

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %1, i64 56
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = tail call i32 @atoi(ptr nocapture noundef %36) #8
  %.149 = tail call i32 @llvm.smax.i32(i32 %37, i32 %14)
  br label %.thread174

.thread174:                                       ; preds = %2, %7, %11, %16, %20, %25, %29, %34
  %38 = phi i32 [ %.148, %34 ], [ %.148, %29 ], [ %23, %25 ], [ %23, %20 ], [ 7, %16 ], [ 7, %11 ], [ 7, %7 ], [ 7, %2 ]
  %39 = phi i32 [ %23, %34 ], [ %23, %29 ], [ %23, %25 ], [ %23, %20 ], [ 7, %16 ], [ 7, %11 ], [ 7, %7 ], [ 7, %2 ]
  %40 = phi i32 [ %14, %34 ], [ %14, %29 ], [ %14, %25 ], [ %14, %20 ], [ %14, %16 ], [ %14, %11 ], [ 13, %7 ], [ 13, %2 ]
  %41 = phi i32 [ %10, %34 ], [ %10, %29 ], [ %10, %25 ], [ %10, %20 ], [ %10, %16 ], [ %10, %11 ], [ %10, %7 ], [ 0, %2 ]
  %42 = phi i32 [ %19, %34 ], [ %19, %29 ], [ %19, %25 ], [ %19, %20 ], [ %19, %16 ], [ 5, %11 ], [ 5, %7 ], [ 5, %2 ]
  %43 = phi i32 [ %., %34 ], [ %., %29 ], [ %., %25 ], [ %14, %20 ], [ %14, %16 ], [ %14, %11 ], [ 13, %7 ], [ 13, %2 ]
  %44 = phi i32 [ %.149, %34 ], [ %14, %29 ], [ %14, %25 ], [ %14, %20 ], [ %14, %16 ], [ %14, %11 ], [ 13, %7 ], [ 13, %2 ]
  %45 = sext i32 %43 to i64
  %46 = shl nsw i64 %45, 3
  %47 = sext i32 %39 to i64
  %48 = mul i64 %46, %47
  %49 = lshr exact i64 %48, 3
  %50 = sext i32 %38 to i64
  %51 = shl nsw i64 %50, 3
  %52 = sext i32 %42 to i64
  %53 = mul i64 %51, %52
  %54 = lshr exact i64 %53, 3
  %55 = sext i32 %44 to i64
  %56 = shl nsw i64 %55, 3
  %57 = mul i64 %56, %52
  %58 = lshr exact i64 %57, 3
  %59 = icmp slt i32 %41, 1
  br i1 %59, label %60, label %66

60:                                               ; preds = %.thread174
  %61 = add nuw nsw i64 %49, %54
  %62 = add nuw nsw i64 %61, %58
  %63 = shl i64 %62, 3
  %64 = udiv i64 2147483648, %63
  %65 = trunc nuw i64 %64 to i32
  br label %66

66:                                               ; preds = %.thread174, %60
  %67 = phi i32 [ %65, %60 ], [ %41, %.thread174 ]
  %68 = sext i32 %67 to i64
  %69 = mul i64 %48, %68
  %70 = tail call noalias ptr @libxsmm_aligned_malloc(i64 noundef %69, i64 noundef 64) #9
  %71 = mul i64 %53, %68
  %72 = tail call noalias ptr @libxsmm_aligned_malloc(i64 noundef %71, i64 noundef 64) #9
  %73 = mul i64 %57, %68
  %74 = tail call noalias ptr @libxsmm_aligned_malloc(i64 noundef %73, i64 noundef 64) #9
  %75 = sitofp i32 %67 to double
  %76 = fdiv double 1.000000e+00, %75
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #9
  call void @libxsmm_create_gemm_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_gemm_shape) align 4 %3, i32 noundef %40, i32 noundef %42, i32 noundef %39, i32 noundef %43, i32 noundef %38, i32 noundef %44, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 0) #9
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %4) #9
  %77 = call ptr @libxsmm_dispatch_gemm(ptr noundef nonnull byval(%struct.libxsmm_gemm_shape) align 8 %3, i32 noundef 0, i32 noundef 1) #9
  %78 = icmp sgt i32 %67, 0
  br i1 %78, label %.lr.ph.preheader, label %._crit_edge

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %79 = mul i64 %49, %indvars.iv
  %80 = getelementptr inbounds double, ptr %70, i64 %79
  %81 = trunc i64 %indvars.iv to i32
  %82 = add i32 %81, 25
  call void @init(i32 noundef %82, ptr noundef %80, i32 noundef %40, i32 noundef %39, i32 noundef %43, double noundef %76)
  %83 = mul i64 %54, %indvars.iv
  %84 = getelementptr inbounds double, ptr %72, i64 %83
  %85 = trunc i64 %indvars.iv to i32
  %86 = add i32 %85, 75
  call void @init(i32 noundef %86, ptr noundef %84, i32 noundef %39, i32 noundef %42, i32 noundef %38, double noundef %76)
  %87 = mul i64 %58, %indvars.iv
  %88 = getelementptr inbounds double, ptr %74, i64 %87
  %89 = trunc i64 %indvars.iv to i32
  %90 = add i32 %89, 42
  call void @init(i32 noundef %90, ptr noundef %88, i32 noundef %40, i32 noundef %42, i32 noundef %44, double noundef %76)
  %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 %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %66
  %91 = call i64 @libxsmm_timer_tick() #9
  %92 = add i32 %67, -1
  %93 = icmp sgt i32 %67, 1
  br i1 %93, label %.lr.ph180, label %._crit_edge181

.lr.ph180:                                        ; preds = %._crit_edge
  %94 = getelementptr inbounds i8, ptr %4, i64 32
  %95 = getelementptr inbounds i8, ptr %4, i64 72
  %96 = getelementptr inbounds i8, ptr %4, i64 80
  %97 = getelementptr inbounds i8, ptr %4, i64 120
  %98 = getelementptr inbounds i8, ptr %4, i64 128
  %99 = getelementptr inbounds i8, ptr %4, i64 168
  %wide.trip.count192 = zext nneg i32 %92 to i64
  br label %100

100:                                              ; preds = %.lr.ph180, %100
  %indvars.iv189 = phi i64 [ 0, %.lr.ph180 ], [ %indvars.iv.next190, %100 ]
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189, 1
  %101 = mul i64 %49, %indvars.iv189
  %102 = getelementptr inbounds double, ptr %70, i64 %101
  store ptr %102, ptr %94, align 8, !tbaa !11
  %103 = mul i64 %49, %indvars.iv.next190
  %104 = getelementptr inbounds double, ptr %70, i64 %103
  store ptr %104, ptr %95, align 8, !tbaa !15
  %105 = mul i64 %54, %indvars.iv189
  %106 = getelementptr inbounds double, ptr %72, i64 %105
  store ptr %106, ptr %96, align 8, !tbaa !16
  %107 = mul i64 %54, %indvars.iv.next190
  %108 = getelementptr inbounds double, ptr %72, i64 %107
  store ptr %108, ptr %97, align 8, !tbaa !17
  %109 = mul i64 %58, %indvars.iv189
  %110 = getelementptr inbounds double, ptr %74, i64 %109
  store ptr %110, ptr %98, align 8, !tbaa !18
  %111 = mul i64 %58, %indvars.iv.next190
  %112 = getelementptr inbounds double, ptr %74, i64 %111
  store ptr %112, ptr %99, align 8, !tbaa !19
  call void %77(ptr noundef nonnull %4) #9
  %exitcond193.not = icmp eq i64 %indvars.iv.next190, %wide.trip.count192
  br i1 %exitcond193.not, label %._crit_edge181, label %100, !llvm.loop !20

._crit_edge181:                                   ; preds = %100, %._crit_edge
  %113 = sext i32 %92 to i64
  %114 = mul i64 %49, %113
  %115 = getelementptr inbounds double, ptr %70, i64 %114
  %116 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %115, ptr %116, align 8, !tbaa !11
  %117 = getelementptr inbounds i8, ptr %4, i64 72
  store ptr %115, ptr %117, align 8, !tbaa !15
  %118 = mul i64 %54, %113
  %119 = getelementptr inbounds double, ptr %72, i64 %118
  %120 = getelementptr inbounds i8, ptr %4, i64 80
  store ptr %119, ptr %120, align 8, !tbaa !16
  %121 = getelementptr inbounds i8, ptr %4, i64 120
  store ptr %119, ptr %121, align 8, !tbaa !17
  %122 = mul i64 %58, %113
  %123 = getelementptr inbounds double, ptr %74, i64 %122
  %124 = getelementptr inbounds i8, ptr %4, i64 128
  store ptr %123, ptr %124, align 8, !tbaa !18
  %125 = getelementptr inbounds i8, ptr %4, i64 168
  store ptr %123, ptr %125, align 8, !tbaa !19
  call void %77(ptr noundef nonnull %4) #9
  %126 = call i64 @libxsmm_timer_tick() #9
  %127 = call double @libxsmm_timer_duration(i64 noundef %91, i64 noundef %126) #9
  %128 = fcmp ogt double %127, 0.000000e+00
  br i1 %128, label %129, label %138

129:                                              ; preds = %._crit_edge181
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, i8 0, i64 24, i1 false)
  %130 = call i32 @libxsmm_get_kernel_info(ptr noundef %77, ptr noundef nonnull %5) #9
  %131 = getelementptr inbounds i8, ptr %5, i64 4
  %132 = load i32, ptr %131, align 4, !tbaa !21
  %133 = uitofp i32 %132 to double
  %134 = fmul double %133, 1.000000e-09
  %135 = fdiv double %134, %127
  %136 = fmul double %135, %75
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %136)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #9
  br label %138

138:                                              ; preds = %129, %._crit_edge181
  %139 = fmul double %127, 1.000000e+03
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, double noundef %139)
  br i1 %78, label %.lr.ph185.preheader, label %._crit_edge186

.lr.ph185.preheader:                              ; preds = %138
  %wide.trip.count197 = zext nneg i32 %67 to i64
  br label %.lr.ph185

.lr.ph185:                                        ; preds = %.lr.ph185.preheader, %.lr.ph185
  %indvars.iv194 = phi i64 [ 0, %.lr.ph185.preheader ], [ %indvars.iv.next195, %.lr.ph185 ]
  %.0135182 = phi double [ 0.000000e+00, %.lr.ph185.preheader ], [ %.1136, %.lr.ph185 ]
  %141 = mul i64 %58, %indvars.iv194
  %142 = getelementptr inbounds double, ptr %74, i64 %141
  %143 = call double @norm(ptr noundef %142, i32 noundef %40, i32 noundef %42, i32 noundef %44)
  %144 = fcmp olt double %.0135182, %143
  %.1136 = select i1 %144, double %143, double %.0135182
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %._crit_edge186, label %.lr.ph185, !llvm.loop !25

._crit_edge186:                                   ; preds = %.lr.ph185, %138
  %.0135.lcssa = phi double [ 0.000000e+00, %138 ], [ %.1136, %.lr.ph185 ]
  %145 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, double noundef %.0135.lcssa)
  call void @libxsmm_free(ptr noundef %70) #9
  call void @libxsmm_free(ptr noundef %72) #9
  call void @libxsmm_free(ptr noundef %74) #9
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #9
  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

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

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

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 ptr @libxsmm_dispatch_gemm(ptr noundef byval(%struct.libxsmm_gemm_shape) align 8, i32 noundef, i32 noundef) local_unnamed_addr #3

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

declare i64 @libxsmm_timer_tick() 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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @norm(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

declare void @libxsmm_free(ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 #6 = { 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !6, i64 32}
!12 = !{!"libxsmm_gemm_param", !13, i64 0, !14, i64 32, !14, i64 80, !14, i64 128}
!13 = !{!"libxsmm_matrix_op_arg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!"libxsmm_matrix_arg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!12, !6, i64 72}
!16 = !{!12, !6, i64 80}
!17 = !{!12, !6, i64 120}
!18 = !{!12, !6, i64 128}
!19 = !{!12, !6, i64 168}
!20 = distinct !{!20, !10}
!21 = !{!22, !23, i64 4}
!22 = !{!"libxsmm_kernel_info", !23, i64 0, !23, i64 4, !24, i64 8, !23, i64 16}
!23 = !{!"int", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = distinct !{!25, !10}


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