; LLVM IR from libxsmm/libxsmm :: tests (threadsafety)

; 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 }
%union.libxsmm_xmmfunction = type { ptr }
%struct.libxsmm_registry_info = type { i64, i64, i64, i64, i64 }
%struct.libxsmm_kernel_info = type { i32, i32, i64, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @test(i32 noundef, i32 noundef, i32 noundef) #0

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

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) #2

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [800 x %union.libxsmm_xmmfunction], align 16
  %3 = alloca %struct.libxsmm_registry_info, align 8
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %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 [2400 x i32], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [2400 x i32], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.libxsmm_gemm_shape, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %union.libxsmm_xmmfunction, align 8
  %28 = alloca %struct.libxsmm_gemm_shape, align 8
  %29 = alloca %struct.libxsmm_kernel_info, align 8
  %30 = alloca %struct.libxsmm_kernel_info, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 6400, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store float 1.000000e+00, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 64, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 800, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 9600, ptr %12) #6
  call void @llvm.memset.p0.i64(ptr align 16 %12, i8 0, i64 9600, i1 false)
  %34 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [2394 x i32] }>, ptr %12, i32 0, i32 0
  store i32 8, ptr %34, align 16
  %35 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [2394 x i32] }>, ptr %12, i32 0, i32 1
  store i32 8, ptr %35, align 4
  %36 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [2394 x i32] }>, ptr %12, i32 0, i32 2
  store i32 8, ptr %36, align 8
  %37 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [2394 x i32] }>, ptr %12, i32 0, i32 3
  store i32 16, ptr %37, align 4
  %38 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [2394 x i32] }>, ptr %12, i32 0, i32 4
  store i32 16, ptr %38, align 16
  %39 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [2394 x i32] }>, ptr %12, i32 0, i32 5
  store i32 8, ptr %39, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 2, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 9600, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 1, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %61, %0
  %41 = load i32, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = mul nsw i32 3, %42
  %44 = icmp slt i32 %41, %43
  br i1 %44, label %45, label %64

45:                                               ; preds = %40
  %46 = call i32 @rand() #6
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = add nsw i32 %47, 0
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %49
  store i32 %46, ptr %50, align 4, !tbaa !9
  %51 = call i32 @rand() #6
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %54
  store i32 %51, ptr %55, align 4, !tbaa !9
  %56 = call i32 @rand() #6
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = add nsw i32 %57, 2
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %59
  store i32 %56, ptr %60, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %45
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = add nsw i32 %62, 3
  store i32 %63, ptr %11, align 4, !tbaa !9
  br label %40, !llvm.loop !11

64:                                               ; preds = %40
  store i32 6, ptr %11, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %81, %64
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = mul nsw i32 3, %67
  %69 = icmp slt i32 %66, %68
  br i1 %69, label %70, label %84

70:                                               ; preds = %65
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  %76 = srem i32 %75, 64
  %77 = add nsw i32 %76, 1
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [2400 x i32], ptr %12, i64 0, i64 %79
  store i32 %77, ptr %80, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %70
  %82 = load i32, ptr %11, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %11, align 4, !tbaa !9
  br label %65, !llvm.loop !13

84:                                               ; preds = %65
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %95, %84
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = icmp slt i32 %86, 800
  br i1 %87, label %88, label %98

88:                                               ; preds = %85
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = srem i32 %89, 2
  %91 = icmp eq i32 0, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %88
  call void @libxsmm_init()
  br label %94

93:                                               ; preds = %88
  call void @libxsmm_finalize()
  br label %94

94:                                               ; preds = %93, %92
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %11, align 4, !tbaa !9
  br label %85, !llvm.loop !14

98:                                               ; preds = %85
  call void @libxsmm_init()
  %99 = call i32 @libxsmm_get_registry_info(ptr noundef %3)
  store i32 %99, ptr %8, align 4, !tbaa !9
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = icmp eq i32 0, %100
  br i1 %101, label %102, label %162

102:                                              ; preds = %98
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.libxsmm_registry_info, ptr %3, i32 0, i32 0
  %106 = load i64, ptr %105, align 8, !tbaa !15
  %107 = icmp ult i64 %104, %106
  br i1 %107, label %108, label %111

108:                                              ; preds = %102
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  br label %114

111:                                              ; preds = %102
  %112 = getelementptr inbounds %struct.libxsmm_registry_info, ptr %3, i32 0, i32 0
  %113 = load i64, ptr %112, align 8, !tbaa !15
  br label %114

114:                                              ; preds = %111, %108
  %115 = phi i64 [ %110, %108 ], [ %113, %111 ]
  %116 = trunc i64 %115 to i32
  store i32 %116, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %158, %114
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %121, label %161

121:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = add nsw i32 %122, 0
  %124 = mul nsw i32 3, %123
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = sub nsw i32 %125, 3
  %127 = icmp slt i32 %124, %126
  br i1 %127, label %128, label %132

128:                                              ; preds = %121
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = add nsw i32 %129, 0
  %131 = mul nsw i32 3, %130
  br label %135

132:                                              ; preds = %121
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = sub nsw i32 %133, 3
  br label %135

135:                                              ; preds = %132, %128
  %136 = phi i32 [ %131, %128 ], [ %134, %132 ]
  store i32 %136, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = add nsw i32 %137, 0
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [2400 x i32], ptr %12, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = add nsw i32 %142, 1
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [2400 x i32], ptr %12, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = load i32, ptr %18, align 4, !tbaa !9
  %148 = add nsw i32 %147, 2
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [2400 x i32], ptr %12, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = call i32 @test(i32 noundef %141, i32 noundef %146, i32 noundef %151)
  store i32 %152, ptr %19, align 4, !tbaa !9
  %153 = load i32, ptr %19, align 4, !tbaa !9
  %154 = icmp ne i32 0, %153
  br i1 %154, label %155, label %157

155:                                              ; preds = %135
  %156 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %156, ptr %8, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %155, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %158

158:                                              ; preds = %157
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %11, align 4, !tbaa !9
  br label %117, !llvm.loop !18

161:                                              ; preds = %117
  br label %162

162:                                              ; preds = %161, %98
  %163 = load i32, ptr %8, align 4, !tbaa !9
  %164 = icmp eq i32 0, %163
  br i1 %164, label %165, label %209

165:                                              ; preds = %162
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %205, %165
  %167 = load i32, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %170, label %208

170:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = mul nsw i32 3, %171
  %173 = add nsw i32 %172, 0
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = srem i32 %176, 64
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = mul nsw i32 3, %179
  %181 = add nsw i32 %180, 1
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %182
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = srem i32 %184, 64
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = mul nsw i32 3, %187
  %189 = add nsw i32 %188, 2
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = srem i32 %192, 64
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #6
  %195 = load i32, ptr %20, align 4, !tbaa !9
  %196 = load i32, ptr %21, align 4, !tbaa !9
  %197 = load i32, ptr %22, align 4, !tbaa !9
  %198 = load i32, ptr %20, align 4, !tbaa !9
  %199 = load i32, ptr %22, align 4, !tbaa !9
  %200 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_create_gemm_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_gemm_shape) align 4 %23, i32 noundef %195, i32 noundef %196, i32 noundef %197, i32 noundef %198, i32 noundef %199, i32 noundef %200, i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %201 = call ptr @libxsmm_dispatch_gemm(ptr noundef byval(%struct.libxsmm_gemm_shape) align 8 %23, i32 noundef 0, i32 noundef 0)
  %202 = load i32, ptr %11, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %203
  store ptr %201, ptr %204, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %205

205:                                              ; preds = %170
  %206 = load i32, ptr %11, align 4, !tbaa !9
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %11, align 4, !tbaa !9
  br label %166, !llvm.loop !20

208:                                              ; preds = %166
  br label %209

209:                                              ; preds = %208, %162
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %210

210:                                              ; preds = %317, %209
  %211 = load i32, ptr %11, align 4, !tbaa !9
  %212 = load i32, ptr %9, align 4, !tbaa !9
  %213 = icmp slt i32 %211, %212
  br i1 %213, label %214, label %320

214:                                              ; preds = %210
  %215 = load i32, ptr %8, align 4, !tbaa !9
  %216 = icmp eq i32 0, %215
  br i1 %216, label %217, label %316

217:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %218 = load i32, ptr %11, align 4, !tbaa !9
  %219 = mul nsw i32 3, %218
  %220 = add nsw i32 %219, 0
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !9
  %224 = srem i32 %223, 64
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %226 = load i32, ptr %11, align 4, !tbaa !9
  %227 = mul nsw i32 3, %226
  %228 = add nsw i32 %227, 1
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !9
  %232 = srem i32 %231, 64
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = mul nsw i32 3, %234
  %236 = add nsw i32 %235, 2
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [2400 x i32], ptr %15, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !9
  %240 = srem i32 %239, 64
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #6
  %242 = load i32, ptr %24, align 4, !tbaa !9
  %243 = load i32, ptr %25, align 4, !tbaa !9
  %244 = load i32, ptr %26, align 4, !tbaa !9
  %245 = load i32, ptr %24, align 4, !tbaa !9
  %246 = load i32, ptr %26, align 4, !tbaa !9
  %247 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_create_gemm_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_gemm_shape) align 4 %28, i32 noundef %242, i32 noundef %243, i32 noundef %244, i32 noundef %245, i32 noundef %246, i32 noundef %247, i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %248 = call ptr @libxsmm_dispatch_gemm(ptr noundef byval(%struct.libxsmm_gemm_shape) align 8 %28, i32 noundef 0, i32 noundef 0)
  store ptr %248, ptr %27, align 8, !tbaa !19
  %249 = load ptr, ptr %27, align 8, !tbaa !19
  %250 = icmp ne ptr null, %249
  br i1 %250, label %251, label %306

251:                                              ; preds = %217
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %253
  %255 = load ptr, ptr %254, align 8, !tbaa !19
  %256 = icmp ne ptr null, %255
  br i1 %256, label %257, label %306

257:                                              ; preds = %251
  %258 = load ptr, ptr %27, align 8, !tbaa !19
  %259 = load i32, ptr %11, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !19
  %263 = icmp ne ptr %258, %262
  br i1 %263, label %264, label %305

264:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %265 = load i32, ptr %11, align 4, !tbaa !9
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %266
  %268 = load ptr, ptr %267, align 8, !tbaa !19
  %269 = call i32 @libxsmm_get_kernel_info(ptr noundef %268, ptr noundef %29)
  store i32 %269, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %270 = load ptr, ptr %27, align 8, !tbaa !19
  %271 = call i32 @libxsmm_get_kernel_info(ptr noundef %270, ptr noundef %30)
  store i32 %271, ptr %32, align 4, !tbaa !9
  %272 = load i32, ptr %31, align 4, !tbaa !9
  %273 = icmp eq i32 0, %272
  br i1 %273, label %274, label %302

274:                                              ; preds = %264
  %275 = load i32, ptr %32, align 4, !tbaa !9
  %276 = icmp eq i32 0, %275
  br i1 %276, label %277, label %302

277:                                              ; preds = %274
  %278 = getelementptr inbounds %struct.libxsmm_kernel_info, ptr %29, i32 0, i32 2
  %279 = load i64, ptr %278, align 8, !tbaa !21
  %280 = getelementptr inbounds %struct.libxsmm_kernel_info, ptr %30, i32 0, i32 2
  %281 = load i64, ptr %280, align 8, !tbaa !21
  %282 = icmp ne i64 %279, %281
  br i1 %282, label %293, label %283

283:                                              ; preds = %277
  %284 = load i32, ptr %11, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %285
  %287 = load ptr, ptr %286, align 8, !tbaa !19
  %288 = load ptr, ptr %27, align 8, !tbaa !19
  %289 = getelementptr inbounds %struct.libxsmm_kernel_info, ptr %29, i32 0, i32 2
  %290 = load i64, ptr %289, align 8, !tbaa !21
  %291 = call i32 @memcmp(ptr noundef %287, ptr noundef %288, i64 noundef %290) #7
  %292 = icmp ne i32 0, %291
  br i1 %292, label %293, label %302

293:                                              ; preds = %283, %277
  %294 = load ptr, ptr @stderr, align 8, !tbaa !23
  %295 = load i32, ptr %24, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  %297 = load i32, ptr %25, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = load i32, ptr %26, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef @.str, i64 noundef %296, i64 noundef %298, i64 noundef %300) #6
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %302

302:                                              ; preds = %293, %283, %274, %264
  %303 = load i32, ptr %10, align 4, !tbaa !9
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  br label %305

305:                                              ; preds = %302, %257
  br label %315

306:                                              ; preds = %251, %217
  %307 = load ptr, ptr @stderr, align 8, !tbaa !23
  %308 = load i32, ptr %24, align 4, !tbaa !9
  %309 = sext i32 %308 to i64
  %310 = load i32, ptr %25, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = load i32, ptr %26, align 4, !tbaa !9
  %313 = sext i32 %312 to i64
  %314 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %307, ptr noundef @.str.2, i64 noundef %309, i64 noundef %311, i64 noundef %313) #6
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %315

315:                                              ; preds = %306, %305
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %316

316:                                              ; preds = %315, %214
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %11, align 4, !tbaa !9
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %11, align 4, !tbaa !9
  br label %210, !llvm.loop !25

320:                                              ; preds = %210
  %321 = load i32, ptr %10, align 4, !tbaa !9
  %322 = icmp ne i32 0, %321
  br i1 %322, label %323, label %331

323:                                              ; preds = %320
  %324 = load ptr, ptr @stderr, align 8, !tbaa !23
  %325 = load i32, ptr %10, align 4, !tbaa !9
  %326 = load i32, ptr %10, align 4, !tbaa !9
  %327 = icmp ne i32 1, %326
  %328 = zext i1 %327 to i64
  %329 = select i1 %327, ptr @.str.4, ptr @.str.5
  %330 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %324, ptr noundef @.str.3, i32 noundef %325, ptr noundef %329) #6
  br label %331

331:                                              ; preds = %323, %320
  %332 = load i32, ptr %8, align 4, !tbaa !9
  %333 = icmp eq i32 0, %332
  br i1 %333, label %334, label %373

334:                                              ; preds = %331
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %335

335:                                              ; preds = %369, %334
  %336 = load i32, ptr %11, align 4, !tbaa !9
  %337 = load i32, ptr %9, align 4, !tbaa !9
  %338 = icmp slt i32 %336, %337
  br i1 %338, label %339, label %372

339:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %340 = load i32, ptr %11, align 4, !tbaa !9
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr %33, align 4, !tbaa !9
  br label %342

342:                                              ; preds = %361, %339
  %343 = load i32, ptr %33, align 4, !tbaa !9
  %344 = load i32, ptr %9, align 4, !tbaa !9
  %345 = icmp slt i32 %343, %344
  br i1 %345, label %346, label %364

346:                                              ; preds = %342
  %347 = load i32, ptr %11, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %348
  %350 = load ptr, ptr %349, align 8, !tbaa !19
  %351 = load i32, ptr %33, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %352
  %354 = load ptr, ptr %353, align 8, !tbaa !19
  %355 = icmp eq ptr %350, %354
  br i1 %355, label %356, label %360

356:                                              ; preds = %346
  %357 = load i32, ptr %33, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %358
  store ptr null, ptr %359, align 8, !tbaa !19
  br label %360

360:                                              ; preds = %356, %346
  br label %361

361:                                              ; preds = %360
  %362 = load i32, ptr %33, align 4, !tbaa !9
  %363 = add nsw i32 %362, 1
  store i32 %363, ptr %33, align 4, !tbaa !9
  br label %342, !llvm.loop !26

364:                                              ; preds = %342
  %365 = load i32, ptr %11, align 4, !tbaa !9
  %366 = sext i32 %365 to i64
  %367 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %2, i64 0, i64 %366
  %368 = load ptr, ptr %367, align 8, !tbaa !19
  call void @libxsmm_release_kernel(ptr noundef %368)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %369

369:                                              ; preds = %364
  %370 = load i32, ptr %11, align 4, !tbaa !9
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr %11, align 4, !tbaa !9
  br label %335, !llvm.loop !27

372:                                              ; preds = %335
  br label %373

373:                                              ; preds = %372, %331
  call void @libxsmm_finalize()
  %374 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 9600, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 9600, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 6400, ptr %2) #6
  ret i32 %374
}

; Function Attrs: nounwind
declare i32 @rand() #4

declare void @libxsmm_init() #2

declare void @libxsmm_finalize() #2

declare i32 @libxsmm_get_registry_info(ptr noundef) #2

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #5

declare void @libxsmm_release_kernel(ptr noundef) #2

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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { nounwind willreturn memory(read) "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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !17, i64 0}
!16 = !{!"libxsmm_registry_info", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32}
!17 = !{!"long", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !12}
!21 = !{!22, !17, i64 8}
!22 = !{!"libxsmm_kernel_info", !10, i64 0, !10, i64 4, !17, i64 8, !10, i64 16}
!23 = !{!24, !24, i64 0}
!24 = !{!"any pointer", !7, i64 0}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}


; 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 }
%union.libxsmm_xmmfunction = type { ptr }
%struct.libxsmm_registry_info = type { i64, i64, i64, i64, i64 }
%struct.libxsmm_kernel_info = type { i32, i32, i64, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [47 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @test(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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 #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
  %1 = alloca [800 x %union.libxsmm_xmmfunction], align 16
  %2 = alloca %struct.libxsmm_registry_info, align 8
  %3 = alloca [2400 x i32], align 16
  %4 = alloca [2400 x i32], align 16
  %5 = alloca %struct.libxsmm_gemm_shape, align 8
  %6 = alloca %struct.libxsmm_gemm_shape, align 8
  %7 = alloca %struct.libxsmm_kernel_info, align 8
  %8 = alloca %struct.libxsmm_kernel_info, align 8
  call void @llvm.lifetime.start.p0(i64 6400, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 9600, ptr nonnull %3) #8
  %9 = getelementptr inbounds i8, ptr %3, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(9600) %9, i8 0, i64 9584, i1 false)
  store <4 x i32> <i32 8, i32 8, i32 8, i32 16>, ptr %3, align 16
  %10 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 16, ptr %10, align 16
  %11 = getelementptr inbounds i8, ptr %3, i64 20
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 9600, ptr nonnull %4) #8
  br label %12

12:                                               ; preds = %0, %12
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %12 ]
  %13 = tail call i32 @rand() #8
  %14 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %indvars.iv
  store i32 %13, ptr %14, align 4, !tbaa !5
  %15 = tail call i32 @rand() #8
  %16 = add nuw nsw i64 %indvars.iv, 1
  %17 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %16
  store i32 %15, ptr %17, align 4, !tbaa !5
  %18 = tail call i32 @rand() #8
  %19 = add nuw nsw i64 %indvars.iv, 2
  %20 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %19
  store i32 %18, ptr %20, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 3
  %21 = icmp ult i64 %indvars.iv, 2397
  br i1 %21, label %12, label %vector.body, !llvm.loop !9

vector.body:                                      ; preds = %12, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %12 ]
  %offset.idx = or disjoint i64 %index, 6
  %22 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %offset.idx
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %wide.load = load <4 x i32>, ptr %22, align 8, !tbaa !5
  %wide.load196 = load <4 x i32>, ptr %23, align 8, !tbaa !5
  %24 = add nsw <4 x i32> %wide.load, <i32 1, i32 1, i32 1, i32 1>
  %25 = add nsw <4 x i32> %wide.load196, <i32 1, i32 1, i32 1, i32 1>
  %26 = srem <4 x i32> %24, <i32 64, i32 64, i32 64, i32 64>
  %27 = srem <4 x i32> %25, <i32 64, i32 64, i32 64, i32 64>
  %28 = add nsw <4 x i32> %26, <i32 1, i32 1, i32 1, i32 1>
  %29 = add nsw <4 x i32> %27, <i32 1, i32 1, i32 1, i32 1>
  %30 = getelementptr inbounds [2400 x i32], ptr %3, i64 0, i64 %offset.idx
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  store <4 x i32> %28, ptr %30, align 8, !tbaa !5
  store <4 x i32> %29, ptr %31, align 8, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, 2392
  br i1 %32, label %.preheader124, label %vector.body, !llvm.loop !11

.preheader124:                                    ; preds = %vector.body
  %33 = getelementptr inbounds i8, ptr %4, i64 9592
  %34 = load i32, ptr %33, align 8, !tbaa !5
  %35 = add nsw i32 %34, 1
  %36 = srem i32 %35, 64
  %37 = add nsw i32 %36, 1
  %38 = getelementptr inbounds i8, ptr %3, i64 9592
  store i32 %37, ptr %38, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %4, i64 9596
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  %42 = srem i32 %41, 64
  %43 = add nsw i32 %42, 1
  %44 = getelementptr inbounds i8, ptr %3, i64 9596
  store i32 %43, ptr %44, align 4, !tbaa !5
  br label %.preheader123

.preheader123:                                    ; preds = %.preheader124, %49
  %.296127 = phi i32 [ %50, %49 ], [ 0, %.preheader124 ]
  %45 = and i32 %.296127, 1
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %.preheader123
  tail call void @libxsmm_init() #8
  br label %49

48:                                               ; preds = %.preheader123
  tail call void @libxsmm_finalize() #8
  br label %49

49:                                               ; preds = %47, %48
  %50 = add nuw nsw i32 %.296127, 1
  %exitcond154.not = icmp eq i32 %50, 800
  br i1 %exitcond154.not, label %51, label %.preheader123, !llvm.loop !14

51:                                               ; preds = %49
  tail call void @libxsmm_init() #8
  %52 = call i32 @libxsmm_get_registry_info(ptr noundef nonnull %2) #8
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %.lr.ph137

54:                                               ; preds = %51
  %55 = load i64, ptr %2, align 8
  %56 = call i64 @llvm.umin.i64(i64 %55, i64 800)
  %57 = trunc nuw nsw i64 %56 to i32
  %.not149 = icmp eq i64 %55, 0
  br i1 %.not149, label %.thread, label %.lr.ph

.lr.ph:                                           ; preds = %54
  %58 = add nsw i32 %57, -3
  br label %59

59:                                               ; preds = %.lr.ph, %59
  %.089129 = phi i32 [ 0, %.lr.ph ], [ %.1, %59 ]
  %.397128 = phi i32 [ 0, %.lr.ph ], [ %73, %59 ]
  %60 = mul nuw nsw i32 %.397128, 3
  %. = call i32 @llvm.smin.i32(i32 %60, i32 %58)
  %61 = sext i32 %. to i64
  %62 = getelementptr inbounds [2400 x i32], ptr %3, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = add nsw i32 %., 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [2400 x i32], ptr %3, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %68 = add nsw i32 %., 2
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2400 x i32], ptr %3, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call i32 @test(i32 noundef %63, i32 noundef %67, i32 noundef %71)
  %.not117 = icmp eq i32 %72, 0
  %.1 = select i1 %.not117, i32 %.089129, i32 %72
  %73 = add nuw nsw i32 %.397128, 1
  %exitcond155.not = icmp eq i32 %73, %57
  br i1 %exitcond155.not, label %._crit_edge, label %59, !llvm.loop !15

._crit_edge:                                      ; preds = %59
  %74 = icmp eq i32 %.1, 0
  br i1 %74, label %.lr.ph131, label %.thread

.lr.ph131:                                        ; preds = %._crit_edge, %.lr.ph131
  %indvars.iv156 = phi i64 [ %indvars.iv.next157, %.lr.ph131 ], [ 0, %._crit_edge ]
  %75 = mul nuw nsw i64 %indvars.iv156, 3
  %76 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = srem i32 %77, 64
  %79 = add nsw i32 %78, 1
  %80 = add nuw nsw i64 %75, 1
  %81 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = srem i32 %82, 64
  %84 = add nsw i32 %83, 1
  %85 = add nuw nsw i64 %75, 2
  %86 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = srem i32 %87, 64
  %89 = add nsw i32 %88, 1
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #8
  call void @libxsmm_create_gemm_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_gemm_shape) align 4 %5, i32 noundef %79, i32 noundef %84, i32 noundef %89, i32 noundef %79, i32 noundef %89, i32 noundef %79, i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 1) #8
  %90 = call ptr @libxsmm_dispatch_gemm(ptr noundef nonnull byval(%struct.libxsmm_gemm_shape) align 8 %5, i32 noundef 0, i32 noundef 0) #8
  %91 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %1, i64 0, i64 %indvars.iv156
  store ptr %90, ptr %91, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %exitcond159.not = icmp eq i64 %indvars.iv.next157, %56
  br i1 %exitcond159.not, label %.thread, label %.lr.ph131, !llvm.loop !17

.thread:                                          ; preds = %.lr.ph131, %54, %._crit_edge
  %.2121 = phi i32 [ %.1, %._crit_edge ], [ 0, %54 ], [ 0, %.lr.ph131 ]
  %.not195 = icmp eq i64 %55, 0
  br i1 %.not195, label %.loopexit, label %.lr.ph137

.lr.ph137:                                        ; preds = %51, %.thread
  %.090120182 = phi i32 [ %57, %.thread ], [ 800, %51 ]
  %.2121181 = phi i32 [ %.2121, %.thread ], [ %52, %51 ]
  %92 = getelementptr inbounds i8, ptr %7, i64 8
  %93 = getelementptr inbounds i8, ptr %8, i64 8
  %wide.trip.count163 = zext i32 %.090120182 to i64
  br label %94

94:                                               ; preds = %.lr.ph137, %141
  %indvars.iv160 = phi i64 [ 0, %.lr.ph137 ], [ %indvars.iv.next161, %141 ]
  %.3136 = phi i32 [ %.2121181, %.lr.ph137 ], [ %.6, %141 ]
  %.091135 = phi i32 [ 0, %.lr.ph137 ], [ %.293, %141 ]
  %95 = icmp eq i32 %.3136, 0
  br i1 %95, label %96, label %141

96:                                               ; preds = %94
  %97 = mul nuw nsw i64 %indvars.iv160, 3
  %98 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = srem i32 %99, 64
  %101 = add nsw i32 %100, 1
  %102 = add nuw nsw i64 %97, 1
  %103 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = srem i32 %104, 64
  %106 = add nsw i32 %105, 1
  %107 = add nuw nsw i64 %97, 2
  %108 = getelementptr inbounds [2400 x i32], ptr %4, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = srem i32 %109, 64
  %111 = add nsw i32 %110, 1
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #8
  call void @libxsmm_create_gemm_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_gemm_shape) align 4 %6, i32 noundef %101, i32 noundef %106, i32 noundef %111, i32 noundef %101, i32 noundef %111, i32 noundef %101, i32 noundef 1, i32 noundef 1, i32 noundef 1, i32 noundef 1) #8
  %112 = call ptr @libxsmm_dispatch_gemm(ptr noundef nonnull byval(%struct.libxsmm_gemm_shape) align 8 %6, i32 noundef 0, i32 noundef 0) #8
  %.not112 = icmp eq ptr %112, null
  br i1 %.not112, label %134, label %113

113:                                              ; preds = %96
  %114 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %1, i64 0, i64 %indvars.iv160
  %115 = load ptr, ptr %114, align 8, !tbaa !16
  %.not113 = icmp eq ptr %115, null
  br i1 %.not113, label %134, label %116

116:                                              ; preds = %113
  %.not114 = icmp eq ptr %112, %115
  br i1 %.not114, label %140, label %117

117:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  %118 = call i32 @libxsmm_get_kernel_info(ptr noundef nonnull %115, ptr noundef nonnull %7) #8
  %119 = call i32 @libxsmm_get_kernel_info(ptr noundef nonnull %112, ptr noundef nonnull %8) #8
  %120 = icmp eq i32 %118, 0
  %121 = icmp eq i32 %119, 0
  %or.cond = select i1 %120, i1 %121, i1 false
  br i1 %or.cond, label %122, label %132

122:                                              ; preds = %117
  %123 = load i64, ptr %92, align 8, !tbaa !18
  %124 = load i64, ptr %93, align 8, !tbaa !18
  %.not115 = icmp eq i64 %123, %124
  br i1 %.not115, label %125, label %126

125:                                              ; preds = %122
  %bcmp = call i32 @bcmp(ptr nonnull %115, ptr nonnull %112, i64 %123)
  %.not116 = icmp eq i32 %bcmp, 0
  br i1 %.not116, label %132, label %126

126:                                              ; preds = %125, %122
  %127 = load ptr, ptr @stderr, align 8, !tbaa !21
  %128 = sext i32 %101 to i64
  %129 = sext i32 %106 to i64
  %130 = sext i32 %111 to i64
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef nonnull @.str, i64 noundef %128, i64 noundef %129, i64 noundef %130) #9
  br label %132

132:                                              ; preds = %126, %125, %117
  %.4 = phi i32 [ 1, %126 ], [ 0, %125 ], [ 0, %117 ]
  %133 = add nsw i32 %.091135, 1
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %140

134:                                              ; preds = %113, %96
  %135 = load ptr, ptr @stderr, align 8, !tbaa !21
  %136 = sext i32 %101 to i64
  %137 = sext i32 %106 to i64
  %138 = sext i32 %111 to i64
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef nonnull @.str.2, i64 noundef %136, i64 noundef %137, i64 noundef %138) #9
  br label %140

140:                                              ; preds = %116, %132, %134
  %.192 = phi i32 [ %133, %132 ], [ %.091135, %116 ], [ %.091135, %134 ]
  %.5 = phi i32 [ %.4, %132 ], [ 0, %116 ], [ 1, %134 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #8
  br label %141

141:                                              ; preds = %94, %140
  %.293 = phi i32 [ %.192, %140 ], [ %.091135, %94 ]
  %.6 = phi i32 [ %.5, %140 ], [ %.3136, %94 ]
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %exitcond164.not = icmp eq i64 %indvars.iv.next161, %wide.trip.count163
  br i1 %exitcond164.not, label %._crit_edge138, label %94, !llvm.loop !23

._crit_edge138:                                   ; preds = %141
  %.not = icmp eq i32 %.293, 0
  br i1 %.not, label %146, label %142

142:                                              ; preds = %._crit_edge138
  %143 = load ptr, ptr @stderr, align 8, !tbaa !21
  %.not111 = icmp eq i32 %.293, 1
  %144 = select i1 %.not111, ptr @.str.5, ptr @.str.4
  %145 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %143, ptr noundef nonnull @.str.3, i32 noundef %.293, ptr noundef nonnull %144) #9
  br label %146

146:                                              ; preds = %142, %._crit_edge138
  %147 = icmp eq i32 %.6, 0
  br i1 %147, label %.lr.ph146.preheader, label %.loopexit

.lr.ph146.preheader:                              ; preds = %146
  %148 = zext nneg i32 %.090120182 to i64
  br label %.lr.ph146

.lr.ph146:                                        ; preds = %.lr.ph146.preheader, %._crit_edge144
  %indvars.iv172 = phi i64 [ 0, %.lr.ph146.preheader ], [ %indvars.iv.next173, %._crit_edge144 ]
  %indvars.iv165 = phi i64 [ 1, %.lr.ph146.preheader ], [ %indvars.iv.next166, %._crit_edge144 ]
  %149 = xor i64 %indvars.iv172, -1
  %150 = add nsw i64 %149, %wide.trip.count163
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %151 = icmp ult i64 %indvars.iv.next173, %148
  br i1 %151, label %.lr.ph143, label %._crit_edge144

.lr.ph143:                                        ; preds = %.lr.ph146
  %152 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %1, i64 0, i64 %indvars.iv172
  %min.iters.check = icmp ult i64 %150, 4
  br i1 %min.iters.check, label %scalar.ph198.preheader, label %vector.ph199

vector.ph199:                                     ; preds = %.lr.ph143
  %n.vec = and i64 %150, -4
  %ind.end = add i64 %indvars.iv165, %n.vec
  br label %vector.body201

vector.body201:                                   ; preds = %vector.body201, %vector.ph199
  %index202 = phi i64 [ 0, %vector.ph199 ], [ %index.next208, %vector.body201 ]
  %offset.idx203 = add i64 %indvars.iv165, %index202
  %153 = load ptr, ptr %152, align 8, !tbaa !16
  %broadcast.splatinsert206 = insertelement <2 x ptr> poison, ptr %153, i64 0
  %broadcast.splat207 = shufflevector <2 x ptr> %broadcast.splatinsert206, <2 x ptr> poison, <2 x i32> zeroinitializer
  %154 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %1, i64 0, i64 %offset.idx203
  %155 = getelementptr inbounds i8, ptr %154, i64 16
  %wide.load204 = load <2 x ptr>, ptr %154, align 8, !tbaa !16
  %wide.load205 = load <2 x ptr>, ptr %155, align 8, !tbaa !16
  %156 = icmp eq <2 x ptr> %broadcast.splat207, %wide.load204
  %157 = icmp eq <2 x ptr> %broadcast.splat207, %wide.load205
  %158 = select <2 x i1> %156, <2 x ptr> zeroinitializer, <2 x ptr> %wide.load204
  %159 = select <2 x i1> %157, <2 x ptr> zeroinitializer, <2 x ptr> %wide.load205
  store <2 x ptr> %158, ptr %154, align 8
  store <2 x ptr> %159, ptr %155, align 8
  %index.next208 = add nuw i64 %index202, 4
  %160 = icmp eq i64 %index.next208, %n.vec
  br i1 %160, label %middle.block197, label %vector.body201, !llvm.loop !24

middle.block197:                                  ; preds = %vector.body201
  %cmp.n = icmp eq i64 %150, %n.vec
  br i1 %cmp.n, label %._crit_edge144, label %scalar.ph198.preheader

scalar.ph198.preheader:                           ; preds = %middle.block197, %.lr.ph143
  %indvars.iv167.ph = phi i64 [ %indvars.iv165, %.lr.ph143 ], [ %ind.end, %middle.block197 ]
  br label %scalar.ph198

scalar.ph198:                                     ; preds = %scalar.ph198.preheader, %scalar.ph198
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %scalar.ph198 ], [ %indvars.iv167.ph, %scalar.ph198.preheader ]
  %161 = load ptr, ptr %152, align 8, !tbaa !16
  %162 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %1, i64 0, i64 %indvars.iv167
  %163 = load ptr, ptr %162, align 8, !tbaa !16
  %164 = icmp eq ptr %161, %163
  %spec.store.select = select i1 %164, ptr null, ptr %163
  store ptr %spec.store.select, ptr %162, align 8
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next168, %148
  br i1 %exitcond171.not, label %._crit_edge144, label %scalar.ph198, !llvm.loop !25

._crit_edge144:                                   ; preds = %scalar.ph198, %middle.block197, %.lr.ph146
  %165 = getelementptr inbounds [800 x %union.libxsmm_xmmfunction], ptr %1, i64 0, i64 %indvars.iv172
  %166 = load ptr, ptr %165, align 8, !tbaa !16
  call void @libxsmm_release_kernel(ptr noundef %166) #8
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %exitcond176.not = icmp eq i64 %indvars.iv.next173, %148
  br i1 %exitcond176.not, label %.loopexit, label %.lr.ph146, !llvm.loop !26

.loopexit:                                        ; preds = %._crit_edge144, %.thread, %146
  %.3.lcssa189194 = phi i32 [ %.6, %146 ], [ %.2121, %.thread ], [ %.6, %._crit_edge144 ]
  call void @libxsmm_finalize() #8
  call void @llvm.lifetime.end.p0(i64 9600, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 9600, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 6400, ptr nonnull %1) #8
  ret i32 %.3.lcssa189194
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #5

declare void @libxsmm_init() local_unnamed_addr #2

declare void @libxsmm_finalize() local_unnamed_addr #2

declare i32 @libxsmm_get_registry_info(ptr noundef) local_unnamed_addr #2

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

declare void @libxsmm_release_kernel(ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #6

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #7

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

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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nofree nounwind willreturn memory(argmem: read) }
attributes #8 = { nounwind }
attributes #9 = { cold 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !10}
!18 = !{!19, !20, i64 8}
!19 = !{!"libxsmm_kernel_info", !6, i64 0, !6, i64 4, !20, i64 8, !6, i64 16}
!20 = !{!"long", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"any pointer", !7, i64 0}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10, !12, !13}
!25 = distinct !{!25, !10, !13, !12}
!26 = distinct !{!26, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass