; LLVM IR from libxsmm/libxsmm :: src (generator_packed_gemm)

; 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_descriptor = type <{ i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], i8, i64, i64, i8, i32, i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16, i32, i32, i32, i8 }>
%struct.libxsmm_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

@__func__.libxsmm_generator_packed_gemm = external hidden unnamed_addr constant [30 x i8], align 1
@.str = external hidden unnamed_addr constant [77 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_gemm(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %7 = load ptr, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %7, i32 0, i32 8
  %9 = getelementptr inbounds [3 x i8], ptr %8, i64 0, i64 0
  %10 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %9)
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %12, label %30

12:                                               ; preds = %3
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %13, i32 0, i32 8
  %15 = getelementptr inbounds [3 x i8], ptr %14, i64 0, i64 0
  %16 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %15)
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %30

18:                                               ; preds = %12
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %19, i32 0, i32 8
  %21 = getelementptr inbounds [3 x i8], ptr %20, i64 0, i64 0
  %22 = call i32 @LIBXSMM_GEMM_GETENUM_COMP_PREC(ptr noundef %21)
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %30

24:                                               ; preds = %18
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %25, i32 0, i32 8
  %27 = getelementptr inbounds [3 x i8], ptr %26, i64 0, i64 0
  %28 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %27)
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %63, label %30

30:                                               ; preds = %24, %18, %12, %3
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %31, i32 0, i32 8
  %33 = getelementptr inbounds [3 x i8], ptr %32, i64 0, i64 0
  %34 = call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef %33)
  %35 = icmp eq i32 %34, 1
  br i1 %35, label %36, label %54

36:                                               ; preds = %30
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %37, i32 0, i32 8
  %39 = getelementptr inbounds [3 x i8], ptr %38, i64 0, i64 0
  %40 = call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef %39)
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %42, label %54

42:                                               ; preds = %36
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %43, i32 0, i32 8
  %45 = getelementptr inbounds [3 x i8], ptr %44, i64 0, i64 0
  %46 = call i32 @LIBXSMM_GEMM_GETENUM_COMP_PREC(ptr noundef %45)
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %48, label %54

48:                                               ; preds = %42
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %49, i32 0, i32 8
  %51 = getelementptr inbounds [3 x i8], ptr %50, i64 0, i64 0
  %52 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %51)
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %63, label %54

54:                                               ; preds = %48, %42, %36, %30
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %57 = icmp ult i32 1, %56
  br i1 %57, label %58, label %60

58:                                               ; preds = %54
  %59 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %61

60:                                               ; preds = %54
  br label %61

61:                                               ; preds = %60, %58
  %62 = phi i32 [ %59, %58 ], [ 1, %60 ]
  call void @libxsmm_handle_error(ptr noundef %55, i32 noundef 90004, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 22, i32 noundef %62)
  br label %227

63:                                               ; preds = %48, %24
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %65, align 1, !tbaa !11
  %67 = and i32 %66, 2048
  %68 = icmp eq i32 %67, 2048
  br i1 %68, label %69, label %78

69:                                               ; preds = %63
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %72 = icmp ult i32 1, %71
  br i1 %72, label %73, label %75

73:                                               ; preds = %69
  %74 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %76

75:                                               ; preds = %69
  br label %76

76:                                               ; preds = %75, %73
  %77 = phi i32 [ %74, %73 ], [ 1, %75 ]
  call void @libxsmm_handle_error(ptr noundef %70, i32 noundef 90004, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 27, i32 noundef %77)
  br label %227

78:                                               ; preds = %63
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %80, align 1, !tbaa !11
  %82 = and i32 %81, 4096
  %83 = icmp eq i32 %82, 4096
  br i1 %83, label %84, label %93

84:                                               ; preds = %78
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %87 = icmp ult i32 1, %86
  br i1 %87, label %88, label %90

88:                                               ; preds = %84
  %89 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %91

90:                                               ; preds = %84
  br label %91

91:                                               ; preds = %90, %88
  %92 = phi i32 [ %89, %88 ], [ 1, %90 ]
  call void @libxsmm_handle_error(ptr noundef %85, i32 noundef 90004, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 32, i32 noundef %92)
  br label %227

93:                                               ; preds = %78
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %95, align 1, !tbaa !11
  %97 = and i32 %96, 8192
  %98 = icmp eq i32 %97, 8192
  br i1 %98, label %99, label %108

99:                                               ; preds = %93
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %102 = icmp ult i32 1, %101
  br i1 %102, label %103, label %105

103:                                              ; preds = %99
  %104 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %106

105:                                              ; preds = %99
  br label %106

106:                                              ; preds = %105, %103
  %107 = phi i32 [ %104, %103 ], [ 1, %105 ]
  call void @libxsmm_handle_error(ptr noundef %100, i32 noundef 90004, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 37, i32 noundef %107)
  br label %227

108:                                              ; preds = %93
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %110, align 1, !tbaa !11
  %112 = and i32 %111, 1
  %113 = icmp eq i32 %112, 1
  br i1 %113, label %114, label %123

114:                                              ; preds = %108
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %117 = icmp ult i32 1, %116
  br i1 %117, label %118, label %120

118:                                              ; preds = %114
  %119 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %121

120:                                              ; preds = %114
  br label %121

121:                                              ; preds = %120, %118
  %122 = phi i32 [ %119, %118 ], [ 1, %120 ]
  call void @libxsmm_handle_error(ptr noundef %115, i32 noundef 90050, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 42, i32 noundef %122)
  br label %227

123:                                              ; preds = %108
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %125, align 1, !tbaa !11
  %127 = and i32 %126, 2
  %128 = icmp eq i32 %127, 2
  br i1 %128, label %129, label %138

129:                                              ; preds = %123
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %132 = icmp ult i32 1, %131
  br i1 %132, label %133, label %135

133:                                              ; preds = %129
  %134 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %136

135:                                              ; preds = %129
  br label %136

136:                                              ; preds = %135, %133
  %137 = phi i32 [ %134, %133 ], [ 1, %135 ]
  call void @libxsmm_handle_error(ptr noundef %130, i32 noundef 90040, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 47, i32 noundef %137)
  br label %227

138:                                              ; preds = %123
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %139, i32 0, i32 3
  %141 = load i32, ptr %140, align 1, !tbaa !15
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 1, !tbaa !16
  %145 = icmp ult i32 %141, %144
  br i1 %145, label %146, label %155

146:                                              ; preds = %138
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %149 = icmp ult i32 1, %148
  br i1 %149, label %150, label %152

150:                                              ; preds = %146
  %151 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %153

152:                                              ; preds = %146
  br label %153

153:                                              ; preds = %152, %150
  %154 = phi i32 [ %151, %150 ], [ 1, %152 ]
  call void @libxsmm_handle_error(ptr noundef %147, i32 noundef 90007, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 52, i32 noundef %154)
  br label %227

155:                                              ; preds = %138
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %156, i32 0, i32 4
  %158 = load i32, ptr %157, align 1, !tbaa !17
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %160, align 1, !tbaa !18
  %162 = icmp ult i32 %158, %161
  br i1 %162, label %163, label %172

163:                                              ; preds = %155
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %166 = icmp ult i32 1, %165
  br i1 %166, label %167, label %169

167:                                              ; preds = %163
  %168 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %170

169:                                              ; preds = %163
  br label %170

170:                                              ; preds = %169, %167
  %171 = phi i32 [ %168, %167 ], [ 1, %169 ]
  call void @libxsmm_handle_error(ptr noundef %164, i32 noundef 90008, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 57, i32 noundef %171)
  br label %227

172:                                              ; preds = %155
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %173, i32 0, i32 5
  %175 = load i32, ptr %174, align 1, !tbaa !19
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %176, i32 0, i32 0
  %178 = load i32, ptr %177, align 1, !tbaa !16
  %179 = icmp ult i32 %175, %178
  br i1 %179, label %180, label %189

180:                                              ; preds = %172
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %183 = icmp ult i32 1, %182
  br i1 %183, label %184, label %186

184:                                              ; preds = %180
  %185 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %187

186:                                              ; preds = %180
  br label %187

187:                                              ; preds = %186, %184
  %188 = phi i32 [ %185, %184 ], [ 1, %186 ]
  call void @libxsmm_handle_error(ptr noundef %181, i32 noundef 90009, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 62, i32 noundef %188)
  br label %227

189:                                              ; preds = %172
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %190, i32 0, i32 6
  %192 = load i32, ptr %191, align 4, !tbaa !20
  %193 = icmp uge i32 %192, 1005
  br i1 %193, label %194, label %203

194:                                              ; preds = %189
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %196, align 4, !tbaa !20
  %198 = icmp ule i32 %197, 1999
  br i1 %198, label %199, label %203

199:                                              ; preds = %194
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = load i32, ptr %6, align 4, !tbaa !9
  call void @libxsmm_generator_packed_gemm_avx_avx2_avx512(ptr noundef %200, ptr noundef %201, i32 noundef %202)
  br label %227

203:                                              ; preds = %194, %189
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %204, i32 0, i32 6
  %206 = load i32, ptr %205, align 4, !tbaa !20
  %207 = icmp uge i32 %206, 2001
  br i1 %207, label %208, label %217

208:                                              ; preds = %203
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %210, align 4, !tbaa !20
  %212 = icmp ule i32 %211, 2999
  br i1 %212, label %213, label %217

213:                                              ; preds = %208
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = load i32, ptr %6, align 4, !tbaa !9
  call void @libxsmm_generator_packed_gemm_aarch64(ptr noundef %214, ptr noundef %215, i32 noundef %216)
  br label %226

217:                                              ; preds = %208, %203
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %220 = icmp ult i32 1, %219
  br i1 %220, label %221, label %223

221:                                              ; preds = %217
  %222 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %224

223:                                              ; preds = %217
  br label %224

224:                                              ; preds = %223, %221
  %225 = phi i32 [ %222, %221 ], [ 1, %223 ]
  call void @libxsmm_handle_error(ptr noundef %218, i32 noundef 90004, ptr noundef @__func__.libxsmm_generator_packed_gemm, ptr noundef @.str, i32 noundef 77, i32 noundef %225)
  br label %227

226:                                              ; preds = %213
  br label %227

227:                                              ; preds = %226, %224, %199, %187, %170, %153, %136, %121, %106, %91, %76, %61
  ret void
}

declare i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef) #1

declare i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef) #1

declare i32 @LIBXSMM_GEMM_GETENUM_COMP_PREC(ptr noundef) #1

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #1

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_generator_packed_gemm_avx_avx2_avx512(ptr noundef, ptr noundef, i32 noundef) #1

declare void @libxsmm_generator_packed_gemm_aarch64(ptr noundef, ptr noundef, i32 noundef) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !13, i64 33, !13, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !14, i64 62, !14, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !10, i64 12}
!16 = !{!12, !10, i64 0}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !10, i64 8}
!19 = !{!12, !10, i64 20}
!20 = !{!21, !10, i64 28}
!21 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}


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

@__func__.libxsmm_generator_packed_gemm = external hidden unnamed_addr constant [30 x i8], align 1
@.str = external hidden unnamed_addr constant [77 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_gemm(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %1, i64 29
  %5 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %4) #2
  %6 = icmp eq i32 %5, 0
  br i1 %6, label %7, label %16

7:                                                ; preds = %3
  %8 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %4) #2
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %16

10:                                               ; preds = %7
  %11 = tail call i32 @LIBXSMM_GEMM_GETENUM_COMP_PREC(ptr noundef nonnull %4) #2
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %16

13:                                               ; preds = %10
  %14 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %4) #2
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %33, label %16

16:                                               ; preds = %13, %10, %7, %3
  %17 = tail call i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef nonnull %4) #2
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %28

19:                                               ; preds = %16
  %20 = tail call i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef nonnull %4) #2
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %28

22:                                               ; preds = %19
  %23 = tail call i32 @LIBXSMM_GEMM_GETENUM_COMP_PREC(ptr noundef nonnull %4) #2
  %24 = icmp eq i32 %23, 1
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %4) #2
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %33, label %28

28:                                               ; preds = %25, %22, %19, %16
  %29 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %30 = icmp ugt i32 %29, 1
  %31 = load i32, ptr @libxsmm_verbosity, align 4
  %32 = select i1 %30, i32 %31, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90004, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 22, i32 noundef %32) #2
  br label %113

33:                                               ; preds = %25, %13
  %34 = getelementptr inbounds i8, ptr %1, i64 24
  %35 = load i32, ptr %34, align 1, !tbaa !9
  %36 = and i32 %35, 2048
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %42, label %37

37:                                               ; preds = %33
  %38 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %39 = icmp ugt i32 %38, 1
  %40 = load i32, ptr @libxsmm_verbosity, align 4
  %41 = select i1 %39, i32 %40, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90004, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 27, i32 noundef %41) #2
  br label %113

42:                                               ; preds = %33
  %43 = and i32 %35, 4096
  %.not40 = icmp eq i32 %43, 0
  br i1 %.not40, label %49, label %44

44:                                               ; preds = %42
  %45 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %46 = icmp ugt i32 %45, 1
  %47 = load i32, ptr @libxsmm_verbosity, align 4
  %48 = select i1 %46, i32 %47, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90004, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 32, i32 noundef %48) #2
  br label %113

49:                                               ; preds = %42
  %50 = and i32 %35, 8192
  %.not41 = icmp eq i32 %50, 0
  br i1 %.not41, label %56, label %51

51:                                               ; preds = %49
  %52 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %53 = icmp ugt i32 %52, 1
  %54 = load i32, ptr @libxsmm_verbosity, align 4
  %55 = select i1 %53, i32 %54, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90004, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 37, i32 noundef %55) #2
  br label %113

56:                                               ; preds = %49
  %57 = and i32 %35, 1
  %.not42 = icmp eq i32 %57, 0
  br i1 %.not42, label %63, label %58

58:                                               ; preds = %56
  %59 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %60 = icmp ugt i32 %59, 1
  %61 = load i32, ptr @libxsmm_verbosity, align 4
  %62 = select i1 %60, i32 %61, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90050, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 42, i32 noundef %62) #2
  br label %113

63:                                               ; preds = %56
  %64 = and i32 %35, 2
  %.not43 = icmp eq i32 %64, 0
  br i1 %.not43, label %70, label %65

65:                                               ; preds = %63
  %66 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %67 = icmp ugt i32 %66, 1
  %68 = load i32, ptr @libxsmm_verbosity, align 4
  %69 = select i1 %67, i32 %68, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90040, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 47, i32 noundef %69) #2
  br label %113

70:                                               ; preds = %63
  %71 = getelementptr inbounds i8, ptr %1, i64 12
  %72 = load i32, ptr %71, align 1, !tbaa !13
  %73 = load i32, ptr %1, align 1, !tbaa !14
  %74 = icmp ult i32 %72, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %70
  %76 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %77 = icmp ugt i32 %76, 1
  %78 = load i32, ptr @libxsmm_verbosity, align 4
  %79 = select i1 %77, i32 %78, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90007, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 52, i32 noundef %79) #2
  br label %113

80:                                               ; preds = %70
  %81 = getelementptr inbounds i8, ptr %1, i64 16
  %82 = load i32, ptr %81, align 1, !tbaa !15
  %83 = getelementptr inbounds i8, ptr %1, i64 8
  %84 = load i32, ptr %83, align 1, !tbaa !16
  %85 = icmp ult i32 %82, %84
  br i1 %85, label %86, label %91

86:                                               ; preds = %80
  %87 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %88 = icmp ugt i32 %87, 1
  %89 = load i32, ptr @libxsmm_verbosity, align 4
  %90 = select i1 %88, i32 %89, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90008, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 57, i32 noundef %90) #2
  br label %113

91:                                               ; preds = %80
  %92 = getelementptr inbounds i8, ptr %1, i64 20
  %93 = load i32, ptr %92, align 1, !tbaa !17
  %94 = icmp ult i32 %93, %73
  br i1 %94, label %95, label %100

95:                                               ; preds = %91
  %96 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %97 = icmp ugt i32 %96, 1
  %98 = load i32, ptr @libxsmm_verbosity, align 4
  %99 = select i1 %97, i32 %98, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90009, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 62, i32 noundef %99) #2
  br label %113

100:                                              ; preds = %91
  %101 = getelementptr inbounds i8, ptr %0, i64 28
  %102 = load i32, ptr %101, align 4, !tbaa !18
  %103 = add i32 %102, -1005
  %or.cond = icmp ult i32 %103, 995
  br i1 %or.cond, label %104, label %105

104:                                              ; preds = %100
  tail call void @libxsmm_generator_packed_gemm_avx_avx2_avx512(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %2) #2
  br label %113

105:                                              ; preds = %100
  %106 = add i32 %102, -2001
  %or.cond44 = icmp ult i32 %106, 999
  br i1 %or.cond44, label %107, label %108

107:                                              ; preds = %105
  tail call void @libxsmm_generator_packed_gemm_aarch64(ptr noundef nonnull %0, ptr noundef nonnull %1, i32 noundef %2) #2
  br label %113

108:                                              ; preds = %105
  %109 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %110 = icmp ugt i32 %109, 1
  %111 = load i32, ptr @libxsmm_verbosity, align 4
  %112 = select i1 %110, i32 %111, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90004, ptr noundef nonnull @__func__.libxsmm_generator_packed_gemm, ptr noundef nonnull @.str, i32 noundef 77, i32 noundef %112) #2
  br label %113

113:                                              ; preds = %107, %108, %104, %95, %86, %75, %65, %58, %51, %44, %37, %28
  ret void
}

declare i32 @LIBXSMM_GEMM_GETENUM_A_PREC(ptr noundef) local_unnamed_addr #1

declare i32 @LIBXSMM_GEMM_GETENUM_B_PREC(ptr noundef) local_unnamed_addr #1

declare i32 @LIBXSMM_GEMM_GETENUM_COMP_PREC(ptr noundef) local_unnamed_addr #1

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #1

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_generator_packed_gemm_avx_avx2_avx512(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_generator_packed_gemm_aarch64(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 #2 = { 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 = !{!10, !6, i64 24}
!10 = !{!"libxsmm_gemm_descriptor", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !11, i64 33, !11, i64 41, !7, i64 49, !6, i64 50, !6, i64 54, !6, i64 58, !12, i64 62, !12, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !12, i64 70, !12, i64 72, !12, i64 74, !12, i64 76, !12, i64 78, !12, i64 80, !6, i64 82, !6, i64 86, !6, i64 90, !7, i64 94}
!11 = !{!"long long", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!10, !6, i64 12}
!14 = !{!10, !6, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!10, !6, i64 8}
!17 = !{!10, !6, i64 20}
!18 = !{!19, !6, i64 28}
!19 = !{!"libxsmm_generated_code", !20, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!20 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass