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

; 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_tile_config = type { i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8 }
%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 }

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_spgemm_setup_tile(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_spgemm_bcsc_bsparse_config_tiles_amx(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) #1 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %struct.libxsmm_tile_config, align 2
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca ptr, align 8
  %24 = alloca i8, align 1
  %25 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !9
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 34, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %26, i32 0, i32 8
  %28 = getelementptr inbounds [3 x i8], ptr %27, i64 0, i64 0
  %29 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %28)
  %30 = call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %29)
  store i32 %30, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %31 = load i32, ptr %14, align 4, !tbaa !9
  %32 = load i32, ptr %18, align 4, !tbaa !9
  %33 = udiv i32 %31, %32
  store i32 %33, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  br label %34

34:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #3
  store i8 34, ptr %22, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  store ptr %17, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #3
  store i8 0, ptr %24, align 1, !tbaa !11
  br label %35

35:                                               ; preds = %46, %34
  %36 = load i8, ptr %24, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  %38 = load i8, ptr %22, align 1, !tbaa !11
  %39 = sext i8 %38 to i32
  %40 = icmp slt i32 %37, %39
  br i1 %40, label %41, label %49

41:                                               ; preds = %35
  %42 = load ptr, ptr %23, align 8, !tbaa !5
  %43 = load i8, ptr %24, align 1, !tbaa !11
  %44 = sext i8 %43 to i64
  %45 = getelementptr inbounds i8, ptr %42, i64 %44
  store i8 0, ptr %45, align 1, !tbaa !11
  br label %46

46:                                               ; preds = %41
  %47 = load i8, ptr %24, align 1, !tbaa !11
  %48 = add i8 %47, 1
  store i8 %48, ptr %24, align 1, !tbaa !11
  br label %35, !llvm.loop !12

49:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #3
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %64, %51
  %53 = load i32, ptr %19, align 4, !tbaa !9
  %54 = icmp ugt i32 %53, 16
  br i1 %54, label %62, label %55

55:                                               ; preds = %52
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = load i32, ptr %18, align 4, !tbaa !9
  %58 = udiv i32 %56, %57
  %59 = load i32, ptr %19, align 4, !tbaa !9
  %60 = urem i32 %58, %59
  %61 = icmp ne i32 %60, 0
  br label %62

62:                                               ; preds = %55, %52
  %63 = phi i1 [ true, %52 ], [ %61, %55 ]
  br i1 %63, label %64, label %67

64:                                               ; preds = %62
  %65 = load i32, ptr %19, align 4, !tbaa !9
  %66 = add i32 %65, -1
  store i32 %66, ptr %19, align 4, !tbaa !9
  br label %52, !llvm.loop !15

67:                                               ; preds = %62
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = icmp ule i32 %68, 32
  br i1 %69, label %70, label %101

70:                                               ; preds = %67
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = icmp ule i32 %71, 16
  br i1 %72, label %73, label %75

73:                                               ; preds = %70
  %74 = load i32, ptr %15, align 4, !tbaa !9
  br label %76

75:                                               ; preds = %70
  br label %76

76:                                               ; preds = %75, %73
  %77 = phi i32 [ %74, %73 ], [ 16, %75 ]
  store i32 %77, ptr %20, align 4, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = sub i32 %78, 16
  %80 = icmp ult i32 %79, 1
  br i1 %80, label %81, label %82

81:                                               ; preds = %76
  br label %85

82:                                               ; preds = %76
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = sub i32 %83, 16
  br label %85

85:                                               ; preds = %82, %81
  %86 = phi i32 [ 1, %81 ], [ %84, %82 ]
  %87 = icmp ult i32 16, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %85
  br label %99

89:                                               ; preds = %85
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = sub i32 %90, 16
  %92 = icmp ult i32 %91, 1
  br i1 %92, label %93, label %94

93:                                               ; preds = %89
  br label %97

94:                                               ; preds = %89
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = sub i32 %95, 16
  br label %97

97:                                               ; preds = %94, %93
  %98 = phi i32 [ 1, %93 ], [ %96, %94 ]
  br label %99

99:                                               ; preds = %97, %88
  %100 = phi i32 [ 16, %88 ], [ %98, %97 ]
  store i32 %100, ptr %21, align 4, !tbaa !9
  br label %147

101:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %102 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %102, ptr %25, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %113, %101
  %104 = load i32, ptr %25, align 4, !tbaa !9
  %105 = icmp ugt i32 %104, 32
  br i1 %105, label %111, label %106

106:                                              ; preds = %103
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %25, align 4, !tbaa !9
  %109 = urem i32 %107, %108
  %110 = icmp ne i32 %109, 0
  br label %111

111:                                              ; preds = %106, %103
  %112 = phi i1 [ true, %103 ], [ %110, %106 ]
  br i1 %112, label %113, label %116

113:                                              ; preds = %111
  %114 = load i32, ptr %25, align 4, !tbaa !9
  %115 = add i32 %114, -1
  store i32 %115, ptr %25, align 4, !tbaa !9
  br label %103, !llvm.loop !16

116:                                              ; preds = %111
  %117 = load i32, ptr %25, align 4, !tbaa !9
  %118 = icmp ule i32 %117, 16
  br i1 %118, label %119, label %121

119:                                              ; preds = %116
  %120 = load i32, ptr %25, align 4, !tbaa !9
  br label %122

121:                                              ; preds = %116
  br label %122

122:                                              ; preds = %121, %119
  %123 = phi i32 [ %120, %119 ], [ 16, %121 ]
  store i32 %123, ptr %20, align 4, !tbaa !9
  %124 = load i32, ptr %25, align 4, !tbaa !9
  %125 = sub i32 %124, 16
  %126 = icmp ult i32 %125, 1
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  br label %131

128:                                              ; preds = %122
  %129 = load i32, ptr %25, align 4, !tbaa !9
  %130 = sub i32 %129, 16
  br label %131

131:                                              ; preds = %128, %127
  %132 = phi i32 [ 1, %127 ], [ %130, %128 ]
  %133 = icmp ult i32 16, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %131
  br label %145

135:                                              ; preds = %131
  %136 = load i32, ptr %25, align 4, !tbaa !9
  %137 = sub i32 %136, 16
  %138 = icmp ult i32 %137, 1
  br i1 %138, label %139, label %140

139:                                              ; preds = %135
  br label %143

140:                                              ; preds = %135
  %141 = load i32, ptr %25, align 4, !tbaa !9
  %142 = sub i32 %141, 16
  br label %143

143:                                              ; preds = %140, %139
  %144 = phi i32 [ 1, %139 ], [ %142, %140 ]
  br label %145

145:                                              ; preds = %143, %134
  %146 = phi i32 [ 16, %134 ], [ %144, %143 ]
  store i32 %146, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  br label %147

147:                                              ; preds = %145, %99
  %148 = getelementptr inbounds %struct.libxsmm_tile_config, ptr %17, i32 0, i32 0
  store i8 1, ptr %148, align 2, !tbaa !17
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %183

151:                                              ; preds = %147
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = getelementptr inbounds i32, ptr %152, i64 0
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = icmp eq i32 %154, 2
  br i1 %155, label %156, label %169

156:                                              ; preds = %151
  %157 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef 16, i32 noundef %157, ptr noundef %17)
  %158 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef 16, i32 noundef %158, ptr noundef %17)
  %159 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef 16, i32 noundef %159, ptr noundef %17)
  %160 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef 16, i32 noundef %160, ptr noundef %17)
  %161 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef 16, i32 noundef %161, ptr noundef %17)
  %162 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef 16, i32 noundef %162, ptr noundef %17)
  %163 = load i32, ptr %19, align 4, !tbaa !9
  %164 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %163, i32 noundef %164, ptr noundef %17)
  %165 = load i32, ptr %19, align 4, !tbaa !9
  %166 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %165, i32 noundef %166, ptr noundef %17)
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  %168 = getelementptr inbounds i32, ptr %167, i64 0
  store i32 4, ptr %168, align 4, !tbaa !9
  br label %182

169:                                              ; preds = %151
  %170 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef 16, i32 noundef %170, ptr noundef %17)
  %171 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef 16, i32 noundef %171, ptr noundef %17)
  %172 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef 16, i32 noundef %172, ptr noundef %17)
  %173 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef 16, i32 noundef %173, ptr noundef %17)
  %174 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef 16, i32 noundef %174, ptr noundef %17)
  %175 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef 16, i32 noundef %175, ptr noundef %17)
  %176 = load i32, ptr %19, align 4, !tbaa !9
  %177 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %176, i32 noundef %177, ptr noundef %17)
  %178 = load i32, ptr %19, align 4, !tbaa !9
  %179 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %178, i32 noundef %179, ptr noundef %17)
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  %181 = getelementptr inbounds i32, ptr %180, i64 0
  store i32 5, ptr %181, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %169, %156
  br label %244

183:                                              ; preds = %147
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = icmp eq i32 %184, 2
  br i1 %185, label %186, label %202

186:                                              ; preds = %183
  %187 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef 16, i32 noundef %187, ptr noundef %17)
  %188 = load i32, ptr %11, align 4, !tbaa !9
  %189 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef %188, i32 noundef %189, ptr noundef %17)
  %190 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef 16, i32 noundef %190, ptr noundef %17)
  %191 = load i32, ptr %11, align 4, !tbaa !9
  %192 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef %191, i32 noundef %192, ptr noundef %17)
  %193 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef 16, i32 noundef %193, ptr noundef %17)
  %194 = load i32, ptr %11, align 4, !tbaa !9
  %195 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef %194, i32 noundef %195, ptr noundef %17)
  %196 = load i32, ptr %19, align 4, !tbaa !9
  %197 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %196, i32 noundef %197, ptr noundef %17)
  %198 = load i32, ptr %19, align 4, !tbaa !9
  %199 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %198, i32 noundef %199, ptr noundef %17)
  %200 = load ptr, ptr %16, align 8, !tbaa !5
  %201 = getelementptr inbounds i32, ptr %200, i64 0
  store i32 4, ptr %201, align 4, !tbaa !9
  br label %243

202:                                              ; preds = %183
  %203 = load i32, ptr %12, align 4, !tbaa !9
  %204 = icmp ugt i32 %203, 2
  br i1 %204, label %205, label %223

205:                                              ; preds = %202
  %206 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef 16, i32 noundef %206, ptr noundef %17)
  %207 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef 16, i32 noundef %207, ptr noundef %17)
  %208 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef 16, i32 noundef %208, ptr noundef %17)
  %209 = load i32, ptr %11, align 4, !tbaa !9
  %210 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef %209, i32 noundef %210, ptr noundef %17)
  %211 = load i32, ptr %11, align 4, !tbaa !9
  %212 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef %211, i32 noundef %212, ptr noundef %17)
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef %213, i32 noundef %214, ptr noundef %17)
  %215 = load i32, ptr %19, align 4, !tbaa !9
  %216 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %215, i32 noundef %216, ptr noundef %17)
  %217 = load i32, ptr %19, align 4, !tbaa !9
  %218 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %217, i32 noundef %218, ptr noundef %17)
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = getelementptr inbounds i32, ptr %219, i64 0
  store i32 2, ptr %220, align 4, !tbaa !9
  %221 = load ptr, ptr %16, align 8, !tbaa !5
  %222 = getelementptr inbounds i32, ptr %221, i64 1
  store i32 5, ptr %222, align 4, !tbaa !9
  br label %242

223:                                              ; preds = %202
  %224 = load i32, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef %224, i32 noundef %225, ptr noundef %17)
  %226 = load i32, ptr %11, align 4, !tbaa !9
  %227 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef %226, i32 noundef %227, ptr noundef %17)
  %228 = load i32, ptr %11, align 4, !tbaa !9
  %229 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef %228, i32 noundef %229, ptr noundef %17)
  %230 = load i32, ptr %11, align 4, !tbaa !9
  %231 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef %230, i32 noundef %231, ptr noundef %17)
  %232 = load i32, ptr %11, align 4, !tbaa !9
  %233 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef %232, i32 noundef %233, ptr noundef %17)
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef %234, i32 noundef %235, ptr noundef %17)
  %236 = load i32, ptr %19, align 4, !tbaa !9
  %237 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %236, i32 noundef %237, ptr noundef %17)
  %238 = load i32, ptr %19, align 4, !tbaa !9
  %239 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %238, i32 noundef %239, ptr noundef %17)
  %240 = load ptr, ptr %16, align 8, !tbaa !5
  %241 = getelementptr inbounds i32, ptr %240, i64 0
  store i32 5, ptr %241, align 4, !tbaa !9
  br label %242

242:                                              ; preds = %223, %205
  br label %243

243:                                              ; preds = %242, %186
  br label %244

244:                                              ; preds = %243, %182
  %245 = load ptr, ptr %10, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %245, i32 0, i32 6
  %247 = load i32, ptr %246, align 1, !tbaa !20
  %248 = and i32 64, %247
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %256

250:                                              ; preds = %244
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %251, i32 0, i32 6
  %253 = load i32, ptr %252, align 1, !tbaa !20
  %254 = and i32 128, %253
  %255 = icmp eq i32 %254, 0
  br i1 %255, label %268, label %256

256:                                              ; preds = %250, %244
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %257, i32 0, i32 6
  %259 = load i32, ptr %258, align 1, !tbaa !20
  %260 = and i32 64, %259
  %261 = icmp eq i32 %260, 0
  br i1 %261, label %262, label %273

262:                                              ; preds = %256
  %263 = load ptr, ptr %10, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %264, align 1, !tbaa !20
  %266 = and i32 128, %265
  %267 = icmp eq i32 %266, 0
  br i1 %267, label %268, label %273

268:                                              ; preds = %262, %250
  %269 = load ptr, ptr %9, align 8, !tbaa !5
  %270 = load ptr, ptr %9, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %270, i32 0, i32 6
  %272 = load i32, ptr %271, align 4, !tbaa !23
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %269, i32 noundef 0, i32 noundef %272, i32 noundef 50001, i32 noundef 127, i32 noundef 0, ptr noundef %17)
  br label %273

273:                                              ; preds = %268, %262, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 34, ptr %17) #3
  ret void
}

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef) #2

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #2

declare void @libxsmm_x86_instruction_tile_control(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind }

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

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

%struct.libxsmm_tile_config = type { i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8 }

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_spgemm_setup_tile(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_spgemm_bcsc_bsparse_config_tiles_amx(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef readonly %4, i32 noundef %5, i32 noundef %6, ptr nocapture noundef writeonly %7) local_unnamed_addr #1 {
.preheader125.preheader:
  %8 = alloca %struct.libxsmm_tile_config, align 2
  call void @llvm.lifetime.start.p0(i64 34, ptr nonnull %8) #5
  %9 = getelementptr inbounds i8, ptr %1, i64 29
  %10 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %9) #5
  %11 = tail call i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef %10) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 2 dereferenceable(34) %8, i8 0, i64 34, i1 false), !tbaa !5
  %12 = udiv i32 %5, %11
  br label %.preheader125

.preheader125:                                    ; preds = %.preheader125.preheader, %.critedge
  %.0111 = phi i32 [ %16, %.critedge ], [ %12, %.preheader125.preheader ]
  %13 = icmp ugt i32 %.0111, 16
  br i1 %13, label %.critedge, label %14

14:                                               ; preds = %.preheader125
  %15 = urem i32 %12, %.0111
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %17, label %.critedge

.critedge:                                        ; preds = %.preheader125, %14
  %16 = add i32 %.0111, -1
  br label %.preheader125, !llvm.loop !8

17:                                               ; preds = %14
  %18 = icmp ult i32 %6, 33
  br i1 %18, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %17, %.critedge2
  %.0 = phi i32 [ %22, %.critedge2 ], [ %6, %17 ]
  %19 = icmp ugt i32 %.0, 32
  br i1 %19, label %.critedge2, label %20

20:                                               ; preds = %.preheader
  %21 = urem i32 %6, %.0
  %.not119 = icmp eq i32 %21, 0
  br i1 %.not119, label %.loopexit, label %.critedge2

.critedge2:                                       ; preds = %.preheader, %20
  %22 = add i32 %.0, -1
  br label %.preheader, !llvm.loop !10

.loopexit:                                        ; preds = %20, %17
  %.0.lcssa.sink129 = phi i32 [ %6, %17 ], [ %.0, %20 ]
  %23 = tail call i32 @llvm.umin.i32(i32 %.0.lcssa.sink129, i32 16)
  %24 = add nsw i32 %.0.lcssa.sink129, -16
  %25 = tail call i32 @llvm.umax.i32(i32 %24, i32 1)
  %26 = tail call i32 @llvm.umin.i32(i32 %25, i32 16)
  store i8 1, ptr %8, align 2, !tbaa !11
  %27 = icmp eq i32 %2, 0
  br i1 %27, label %28, label %33

28:                                               ; preds = %.loopexit
  %29 = load i32, ptr %4, align 4, !tbaa !14
  %30 = icmp eq i32 %29, 2
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef 16, i32 noundef %23, ptr noundef nonnull %8)
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef 16, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef 16, i32 noundef %26, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef 16, i32 noundef %26, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef 16, i32 noundef %.0111, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef 16, i32 noundef %.0111, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %.0111, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %.0111, i32 noundef %26, ptr noundef nonnull %8)
  store i32 4, ptr %7, align 4, !tbaa !14
  br label %41

32:                                               ; preds = %28
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef 16, i32 noundef %26, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef 16, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef 16, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef 16, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef 16, i32 noundef %.0111, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %.0111, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %.0111, i32 noundef %26, ptr noundef nonnull %8)
  store i32 5, ptr %7, align 4, !tbaa !14
  br label %41

33:                                               ; preds = %.loopexit
  %34 = icmp eq i32 %3, 2
  br i1 %34, label %35, label %36

35:                                               ; preds = %33
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef 16, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef %2, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef 16, i32 noundef %26, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef %2, i32 noundef %26, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef 16, i32 noundef %.0111, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef %2, i32 noundef %.0111, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %.0111, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %.0111, i32 noundef %26, ptr noundef nonnull %8)
  store i32 4, ptr %7, align 4, !tbaa !14
  br label %41

36:                                               ; preds = %33
  %37 = icmp ugt i32 %3, 2
  br i1 %37, label %38, label %40

38:                                               ; preds = %36
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef 16, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef 16, i32 noundef %26, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef 16, i32 noundef %.0111, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef %2, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef %2, i32 noundef %26, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef %2, i32 noundef %.0111, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %.0111, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %.0111, i32 noundef %26, ptr noundef nonnull %8)
  store i32 2, ptr %7, align 4, !tbaa !14
  %39 = getelementptr inbounds i8, ptr %7, i64 4
  store i32 5, ptr %39, align 4, !tbaa !14
  br label %41

40:                                               ; preds = %36
  call void @libxsmm_spgemm_setup_tile(i32 noundef 0, i32 noundef %2, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 1, i32 noundef %2, i32 noundef %26, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 2, i32 noundef %2, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 3, i32 noundef %2, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 4, i32 noundef %2, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 5, i32 noundef %2, i32 noundef %.0111, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 6, i32 noundef %.0111, i32 noundef %23, ptr noundef nonnull %8)
  call void @libxsmm_spgemm_setup_tile(i32 noundef 7, i32 noundef %.0111, i32 noundef %26, ptr noundef nonnull %8)
  store i32 5, ptr %7, align 4, !tbaa !14
  br label %41

41:                                               ; preds = %35, %40, %38, %31, %32
  %42 = getelementptr inbounds i8, ptr %1, i64 24
  %43 = load i32, ptr %42, align 1, !tbaa !16
  %44 = and i32 %43, 128
  %or.cond124 = icmp eq i32 %44, 0
  br i1 %or.cond124, label %45, label %48

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %0, i64 28
  %47 = load i32, ptr %46, align 4, !tbaa !19
  call void @libxsmm_x86_instruction_tile_control(ptr noundef %0, i32 noundef 0, i32 noundef %47, i32 noundef 50001, i32 noundef 127, i32 noundef 0, ptr noundef nonnull %8) #5
  br label %48

48:                                               ; preds = %41, %45
  call void @llvm.lifetime.end.p0(i64 34, ptr nonnull %8) #5
  ret void
}

declare i32 @libxsmm_cpuid_dot_pack_factor(i32 noundef) local_unnamed_addr #2

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #2

declare void @libxsmm_x86_instruction_tile_control(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = !{!12, !6, i64 0}
!12 = !{!"libxsmm_tile_config", !6, i64 0, !13, i64 2, !6, i64 4, !13, i64 6, !6, i64 8, !13, i64 10, !6, i64 12, !13, i64 14, !6, i64 16, !13, i64 18, !6, i64 20, !13, i64 22, !6, i64 24, !13, i64 26, !6, i64 28, !13, i64 30, !6, i64 32}
!13 = !{!"short", !6, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !6, i64 0}
!16 = !{!17, !15, i64 24}
!17 = !{!"libxsmm_gemm_descriptor", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !6, i64 28, !6, i64 29, !6, i64 32, !18, i64 33, !18, i64 41, !6, i64 49, !15, i64 50, !15, i64 54, !15, i64 58, !13, i64 62, !13, i64 64, !6, i64 66, !6, i64 67, !6, i64 68, !6, i64 69, !13, i64 70, !13, i64 72, !13, i64 74, !13, i64 76, !13, i64 78, !13, i64 80, !15, i64 82, !15, i64 86, !15, i64 90, !6, i64 94}
!18 = !{!"long long", !6, i64 0}
!19 = !{!20, !15, i64 28}
!20 = !{!"libxsmm_generated_code", !21, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28}
!21 = !{!"any pointer", !6, i64 0}


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