; LLVM IR from ggml-org/ggml :: tests (test-mul-mat2)

; 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.ggml_init_params = type { i64, ptr, i8 }

@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_2_row_size(i32 noundef) #4

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_3_row_size(i32 noundef) #4

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_4_row_size(i32 noundef) #4

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_5_row_size(i32 noundef) #4

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_6_row_size(i32 noundef) #4

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

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

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

39:                                               ; preds = %34, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %40 = call noalias ptr @malloc(i64 noundef 6553600) #12
  store ptr %40, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %41 = call noalias ptr @malloc(i64 noundef 7864320) #12
  store ptr %41, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %42 = call noalias ptr @malloc(i64 noundef 7864320) #12
  store ptr %42, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #10
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %58, %39
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 1638400
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #10
  br label %61

47:                                               ; preds = %43
  %48 = call i32 @rand() #10
  %49 = sitofp i32 %48 to float
  %50 = fdiv float %49, 0x41E0000000000000
  %51 = fpext float %50 to double
  %52 = fsub double 8.000000e-01, %51
  %53 = fptrunc double %52 to float
  %54 = load ptr, ptr %9, align 8, !tbaa !9
  %55 = load i32, ptr %12, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds float, ptr %54, i64 %56
  store float %53, ptr %57, align 4, !tbaa !11
  br label %58

58:                                               ; preds = %47
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %12, align 4, !tbaa !5
  br label %43, !llvm.loop !13

61:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %77, %61
  %63 = load i32, ptr %13, align 4, !tbaa !5
  %64 = icmp slt i32 %63, 1966080
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %80

66:                                               ; preds = %62
  %67 = call i32 @rand() #10
  %68 = sitofp i32 %67 to float
  %69 = fdiv float %68, 0x41E0000000000000
  %70 = fpext float %69 to double
  %71 = fsub double 8.000000e-01, %70
  %72 = fptrunc double %71 to float
  %73 = load ptr, ptr %10, align 8, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds float, ptr %73, i64 %75
  store float %72, ptr %76, align 4, !tbaa !11
  br label %77

77:                                               ; preds = %66
  %78 = load i32, ptr %13, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %13, align 4, !tbaa !5
  br label %62, !llvm.loop !15

80:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  store ptr null, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  store ptr null, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  store i64 0, ptr %16, align 8, !tbaa !16
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = icmp eq i32 %81, 1
  br i1 %82, label %83, label %98

83:                                               ; preds = %80
  %84 = call i32 @quantize_1_row_size(i32 noundef 1280)
  %85 = mul nsw i32 %84, 1280
  %86 = sext i32 %85 to i64
  %87 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %86) #13
  store ptr %87, ptr %14, align 8, !tbaa !9
  %88 = call i32 @quantize_1_row_size(i32 noundef 1280)
  %89 = mul nsw i32 %88, 1536
  %90 = sext i32 %89 to i64
  %91 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %90) #13
  store ptr %91, ptr %15, align 8, !tbaa !9
  %92 = call i32 @quantize_1_row_size(i32 noundef 1280)
  %93 = mul nsw i32 %92, 1280
  %94 = call i32 @quantize_1_row_size(i32 noundef 1280)
  %95 = mul nsw i32 %94, 1536
  %96 = add nsw i32 %93, %95
  %97 = sext i32 %96 to i64
  store i64 %97, ptr %16, align 8, !tbaa !16
  br label %98

98:                                               ; preds = %83, %80
  %99 = load i32, ptr %8, align 4, !tbaa !5
  %100 = icmp eq i32 %99, 2
  br i1 %100, label %101, label %116

101:                                              ; preds = %98
  %102 = call i32 @quantize_2_row_size(i32 noundef 1280)
  %103 = mul nsw i32 %102, 1280
  %104 = sext i32 %103 to i64
  %105 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %104) #13
  store ptr %105, ptr %14, align 8, !tbaa !9
  %106 = call i32 @quantize_2_row_size(i32 noundef 1280)
  %107 = mul nsw i32 %106, 1536
  %108 = sext i32 %107 to i64
  %109 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %108) #13
  store ptr %109, ptr %15, align 8, !tbaa !9
  %110 = call i32 @quantize_2_row_size(i32 noundef 1280)
  %111 = mul nsw i32 %110, 1280
  %112 = call i32 @quantize_2_row_size(i32 noundef 1280)
  %113 = mul nsw i32 %112, 1536
  %114 = add nsw i32 %111, %113
  %115 = sext i32 %114 to i64
  store i64 %115, ptr %16, align 8, !tbaa !16
  br label %116

116:                                              ; preds = %101, %98
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = icmp eq i32 %117, 3
  br i1 %118, label %119, label %134

119:                                              ; preds = %116
  %120 = call i32 @quantize_3_row_size(i32 noundef 1280)
  %121 = mul nsw i32 %120, 1280
  %122 = sext i32 %121 to i64
  %123 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %122) #13
  store ptr %123, ptr %14, align 8, !tbaa !9
  %124 = call i32 @quantize_3_row_size(i32 noundef 1280)
  %125 = mul nsw i32 %124, 1536
  %126 = sext i32 %125 to i64
  %127 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %126) #13
  store ptr %127, ptr %15, align 8, !tbaa !9
  %128 = call i32 @quantize_3_row_size(i32 noundef 1280)
  %129 = mul nsw i32 %128, 1280
  %130 = call i32 @quantize_3_row_size(i32 noundef 1280)
  %131 = mul nsw i32 %130, 1536
  %132 = add nsw i32 %129, %131
  %133 = sext i32 %132 to i64
  store i64 %133, ptr %16, align 8, !tbaa !16
  br label %134

134:                                              ; preds = %119, %116
  %135 = load i32, ptr %8, align 4, !tbaa !5
  %136 = icmp eq i32 %135, 4
  br i1 %136, label %137, label %152

137:                                              ; preds = %134
  %138 = call i32 @quantize_4_row_size(i32 noundef 1280)
  %139 = mul nsw i32 %138, 1280
  %140 = sext i32 %139 to i64
  %141 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %140) #13
  store ptr %141, ptr %14, align 8, !tbaa !9
  %142 = call i32 @quantize_4_row_size(i32 noundef 1280)
  %143 = mul nsw i32 %142, 1536
  %144 = sext i32 %143 to i64
  %145 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %144) #13
  store ptr %145, ptr %15, align 8, !tbaa !9
  %146 = call i32 @quantize_4_row_size(i32 noundef 1280)
  %147 = mul nsw i32 %146, 1280
  %148 = call i32 @quantize_4_row_size(i32 noundef 1280)
  %149 = mul nsw i32 %148, 1536
  %150 = add nsw i32 %147, %149
  %151 = sext i32 %150 to i64
  store i64 %151, ptr %16, align 8, !tbaa !16
  br label %152

152:                                              ; preds = %137, %134
  %153 = load i32, ptr %8, align 4, !tbaa !5
  %154 = icmp eq i32 %153, 5
  br i1 %154, label %155, label %170

155:                                              ; preds = %152
  %156 = call i32 @quantize_5_row_size(i32 noundef 1280)
  %157 = mul nsw i32 %156, 1280
  %158 = sext i32 %157 to i64
  %159 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %158) #13
  store ptr %159, ptr %14, align 8, !tbaa !9
  %160 = call i32 @quantize_5_row_size(i32 noundef 1280)
  %161 = mul nsw i32 %160, 1536
  %162 = sext i32 %161 to i64
  %163 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %162) #13
  store ptr %163, ptr %15, align 8, !tbaa !9
  %164 = call i32 @quantize_5_row_size(i32 noundef 1280)
  %165 = mul nsw i32 %164, 1280
  %166 = call i32 @quantize_5_row_size(i32 noundef 1280)
  %167 = mul nsw i32 %166, 1536
  %168 = add nsw i32 %165, %167
  %169 = sext i32 %168 to i64
  store i64 %169, ptr %16, align 8, !tbaa !16
  br label %170

170:                                              ; preds = %155, %152
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = icmp eq i32 %171, 6
  br i1 %172, label %173, label %188

173:                                              ; preds = %170
  %174 = call i32 @quantize_6_row_size(i32 noundef 1280)
  %175 = mul nsw i32 %174, 1280
  %176 = sext i32 %175 to i64
  %177 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %176) #13
  store ptr %177, ptr %14, align 8, !tbaa !9
  %178 = call i32 @quantize_6_row_size(i32 noundef 1280)
  %179 = mul nsw i32 %178, 1536
  %180 = sext i32 %179 to i64
  %181 = call noalias ptr @calloc(i64 noundef 1, i64 noundef %180) #13
  store ptr %181, ptr %15, align 8, !tbaa !9
  %182 = call i32 @quantize_6_row_size(i32 noundef 1280)
  %183 = mul nsw i32 %182, 1280
  %184 = call i32 @quantize_6_row_size(i32 noundef 1280)
  %185 = mul nsw i32 %184, 1536
  %186 = add nsw i32 %183, %185
  %187 = sext i32 %186 to i64
  store i64 %187, ptr %16, align 8, !tbaa !16
  br label %188

188:                                              ; preds = %173, %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  store i64 7208960, ptr %17, align 8, !tbaa !16
  %189 = load i64, ptr %16, align 8, !tbaa !16
  %190 = uitofp i64 %189 to float
  %191 = fdiv float %190, 7.208960e+06
  %192 = fpext float %191 to double
  %193 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %192)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %194 = call i64 @ggml_time_us()
  store i64 %194, ptr %18, align 8, !tbaa !16
  %195 = load i32, ptr %8, align 4, !tbaa !5
  %196 = icmp eq i32 %195, 1
  br i1 %196, label %197, label %202

197:                                              ; preds = %188
  %198 = load ptr, ptr %9, align 8, !tbaa !9
  %199 = load ptr, ptr %14, align 8, !tbaa !9
  call void @quantize_1(ptr noundef %198, ptr noundef %199, i32 noundef 1280, i32 noundef 1280)
  %200 = load ptr, ptr %10, align 8, !tbaa !9
  %201 = load ptr, ptr %15, align 8, !tbaa !9
  call void @quantize_1(ptr noundef %200, ptr noundef %201, i32 noundef 1536, i32 noundef 1280)
  br label %202

202:                                              ; preds = %197, %188
  %203 = load i32, ptr %8, align 4, !tbaa !5
  %204 = icmp eq i32 %203, 2
  br i1 %204, label %205, label %210

205:                                              ; preds = %202
  %206 = load ptr, ptr %9, align 8, !tbaa !9
  %207 = load ptr, ptr %14, align 8, !tbaa !9
  call void @quantize_2(ptr noundef %206, ptr noundef %207, i32 noundef 1280, i32 noundef 1280)
  %208 = load ptr, ptr %10, align 8, !tbaa !9
  %209 = load ptr, ptr %15, align 8, !tbaa !9
  call void @quantize_2(ptr noundef %208, ptr noundef %209, i32 noundef 1536, i32 noundef 1280)
  br label %210

210:                                              ; preds = %205, %202
  %211 = load i32, ptr %8, align 4, !tbaa !5
  %212 = icmp eq i32 %211, 3
  br i1 %212, label %213, label %218

213:                                              ; preds = %210
  %214 = load ptr, ptr %9, align 8, !tbaa !9
  %215 = load ptr, ptr %14, align 8, !tbaa !9
  call void @quantize_3(ptr noundef %214, ptr noundef %215, i32 noundef 1280, i32 noundef 1280)
  %216 = load ptr, ptr %10, align 8, !tbaa !9
  %217 = load ptr, ptr %15, align 8, !tbaa !9
  call void @quantize_3(ptr noundef %216, ptr noundef %217, i32 noundef 1536, i32 noundef 1280)
  br label %218

218:                                              ; preds = %213, %210
  %219 = load i32, ptr %8, align 4, !tbaa !5
  %220 = icmp eq i32 %219, 4
  br i1 %220, label %221, label %226

221:                                              ; preds = %218
  %222 = load ptr, ptr %9, align 8, !tbaa !9
  %223 = load ptr, ptr %14, align 8, !tbaa !9
  call void @quantize_4(ptr noundef %222, ptr noundef %223, i32 noundef 1280, i32 noundef 1280)
  %224 = load ptr, ptr %10, align 8, !tbaa !9
  %225 = load ptr, ptr %15, align 8, !tbaa !9
  call void @quantize_4(ptr noundef %224, ptr noundef %225, i32 noundef 1536, i32 noundef 1280)
  br label %226

226:                                              ; preds = %221, %218
  %227 = load i32, ptr %8, align 4, !tbaa !5
  %228 = icmp eq i32 %227, 5
  br i1 %228, label %229, label %234

229:                                              ; preds = %226
  %230 = load ptr, ptr %9, align 8, !tbaa !9
  %231 = load ptr, ptr %14, align 8, !tbaa !9
  call void @quantize_5(ptr noundef %230, ptr noundef %231, i32 noundef 1280, i32 noundef 1280)
  %232 = load ptr, ptr %10, align 8, !tbaa !9
  %233 = load ptr, ptr %15, align 8, !tbaa !9
  call void @quantize_5(ptr noundef %232, ptr noundef %233, i32 noundef 1536, i32 noundef 1280)
  br label %234

234:                                              ; preds = %229, %226
  %235 = load i32, ptr %8, align 4, !tbaa !5
  %236 = icmp eq i32 %235, 6
  br i1 %236, label %237, label %242

237:                                              ; preds = %234
  %238 = load ptr, ptr %9, align 8, !tbaa !9
  %239 = load ptr, ptr %14, align 8, !tbaa !9
  call void @quantize_6(ptr noundef %238, ptr noundef %239, i32 noundef 1280, i32 noundef 1280)
  %240 = load ptr, ptr %10, align 8, !tbaa !9
  %241 = load ptr, ptr %15, align 8, !tbaa !9
  call void @quantize_6(ptr noundef %240, ptr noundef %241, i32 noundef 1536, i32 noundef 1280)
  br label %242

242:                                              ; preds = %237, %234
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #10
  %243 = call i64 @ggml_time_us()
  store i64 %243, ptr %19, align 8, !tbaa !16
  %244 = load i64, ptr %19, align 8, !tbaa !16
  %245 = load i64, ptr %18, align 8, !tbaa !16
  %246 = sub nsw i64 %244, %245
  %247 = sitofp i64 %246 to double
  %248 = fdiv double %247, 1.000000e+03
  %249 = load i32, ptr %8, align 4, !tbaa !5
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %248, i32 noundef %249)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #10
  store i32 0, ptr %20, align 4, !tbaa !5
  br label %251

251:                                              ; preds = %269, %242
  %252 = load i32, ptr %20, align 4, !tbaa !5
  %253 = icmp slt i32 %252, 16
  br i1 %253, label %255, label %254

254:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #10
  br label %272

255:                                              ; preds = %251
  %256 = load ptr, ptr %9, align 8, !tbaa !9
  %257 = load i32, ptr %20, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds float, ptr %256, i64 %258
  %260 = load float, ptr %259, align 4, !tbaa !11
  %261 = fpext float %260 to double
  %262 = load ptr, ptr %10, align 8, !tbaa !9
  %263 = load i32, ptr %20, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds float, ptr %262, i64 %264
  %266 = load float, ptr %265, align 4, !tbaa !11
  %267 = fpext float %266 to double
  %268 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %261, double noundef %267)
  br label %269

269:                                              ; preds = %255
  %270 = load i32, ptr %20, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr %20, align 4, !tbaa !5
  br label %251, !llvm.loop !18

272:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  store i32 1, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %273 = call i64 @ggml_cycles()
  store i64 %273, ptr %22, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %274 = call i64 @ggml_time_us()
  store i64 %274, ptr %23, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  store double 7.812500e-04, ptr %24, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  store double 0.000000e+00, ptr %25, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #10
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %275

275:                                              ; preds = %329, %272
  %276 = load i32, ptr %26, align 4, !tbaa !5
  %277 = icmp slt i32 %276, 1
  br i1 %277, label %279, label %278

278:                                              ; preds = %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #10
  br label %332

279:                                              ; preds = %275
  %280 = load i32, ptr %8, align 4, !tbaa !5
  %281 = icmp eq i32 %280, 0
  br i1 %281, label %282, label %286

282:                                              ; preds = %279
  %283 = load ptr, ptr %9, align 8, !tbaa !9
  %284 = load ptr, ptr %10, align 8, !tbaa !9
  %285 = load ptr, ptr %11, align 8, !tbaa !9
  call void @mul_mat_f32_naive(ptr noundef %283, ptr noundef %284, ptr noundef %285, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %286

286:                                              ; preds = %282, %279
  %287 = load i32, ptr %8, align 4, !tbaa !5
  %288 = icmp eq i32 %287, 1
  br i1 %288, label %289, label %293

289:                                              ; preds = %286
  %290 = load ptr, ptr %14, align 8, !tbaa !9
  %291 = load ptr, ptr %15, align 8, !tbaa !9
  %292 = load ptr, ptr %11, align 8, !tbaa !9
  call void @mul_mat_gq_1(ptr noundef %290, ptr noundef %291, ptr noundef %292, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %293

293:                                              ; preds = %289, %286
  %294 = load i32, ptr %8, align 4, !tbaa !5
  %295 = icmp eq i32 %294, 2
  br i1 %295, label %296, label %300

296:                                              ; preds = %293
  %297 = load ptr, ptr %14, align 8, !tbaa !9
  %298 = load ptr, ptr %15, align 8, !tbaa !9
  %299 = load ptr, ptr %11, align 8, !tbaa !9
  call void @mul_mat_gq_2(ptr noundef %297, ptr noundef %298, ptr noundef %299, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %300

300:                                              ; preds = %296, %293
  %301 = load i32, ptr %8, align 4, !tbaa !5
  %302 = icmp eq i32 %301, 3
  br i1 %302, label %303, label %307

303:                                              ; preds = %300
  %304 = load ptr, ptr %14, align 8, !tbaa !9
  %305 = load ptr, ptr %15, align 8, !tbaa !9
  %306 = load ptr, ptr %11, align 8, !tbaa !9
  call void @mul_mat_gq_3(ptr noundef %304, ptr noundef %305, ptr noundef %306, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %307

307:                                              ; preds = %303, %300
  %308 = load i32, ptr %8, align 4, !tbaa !5
  %309 = icmp eq i32 %308, 4
  br i1 %309, label %310, label %314

310:                                              ; preds = %307
  %311 = load ptr, ptr %14, align 8, !tbaa !9
  %312 = load ptr, ptr %15, align 8, !tbaa !9
  %313 = load ptr, ptr %11, align 8, !tbaa !9
  call void @mul_mat_gq_4(ptr noundef %311, ptr noundef %312, ptr noundef %313, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %314

314:                                              ; preds = %310, %307
  %315 = load i32, ptr %8, align 4, !tbaa !5
  %316 = icmp eq i32 %315, 5
  br i1 %316, label %317, label %321

317:                                              ; preds = %314
  %318 = load ptr, ptr %14, align 8, !tbaa !9
  %319 = load ptr, ptr %15, align 8, !tbaa !9
  %320 = load ptr, ptr %11, align 8, !tbaa !9
  call void @mul_mat_gq_5(ptr noundef %318, ptr noundef %319, ptr noundef %320, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %321

321:                                              ; preds = %317, %314
  %322 = load i32, ptr %8, align 4, !tbaa !5
  %323 = icmp eq i32 %322, 6
  br i1 %323, label %324, label %328

324:                                              ; preds = %321
  %325 = load ptr, ptr %14, align 8, !tbaa !9
  %326 = load ptr, ptr %15, align 8, !tbaa !9
  %327 = load ptr, ptr %11, align 8, !tbaa !9
  call void @mul_mat_gq_6(ptr noundef %325, ptr noundef %326, ptr noundef %327, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %328

328:                                              ; preds = %324, %321
  br label %329

329:                                              ; preds = %328
  %330 = load i32, ptr %26, align 4, !tbaa !5
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %26, align 4, !tbaa !5
  br label %275, !llvm.loop !21

332:                                              ; preds = %278
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %333

333:                                              ; preds = %347, %332
  %334 = load i32, ptr %27, align 4, !tbaa !5
  %335 = icmp slt i32 %334, 1536
  br i1 %335, label %337, label %336

336:                                              ; preds = %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  br label %350

337:                                              ; preds = %333
  %338 = load ptr, ptr %11, align 8, !tbaa !9
  %339 = load i32, ptr %27, align 4, !tbaa !5
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds float, ptr %338, i64 %340
  %342 = load float, ptr %341, align 4, !tbaa !11
  %343 = fpext float %342 to double
  %344 = load double, ptr %24, align 8, !tbaa !19
  %345 = load double, ptr %25, align 8, !tbaa !19
  %346 = call double @llvm.fmuladd.f64(double %343, double %344, double %345)
  store double %346, ptr %25, align 8, !tbaa !19
  br label %347

347:                                              ; preds = %337
  %348 = load i32, ptr %27, align 4, !tbaa !5
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %27, align 4, !tbaa !5
  br label %333, !llvm.loop !22

350:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #10
  %351 = call i64 @ggml_cycles()
  store i64 %351, ptr %28, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #10
  %352 = call i64 @ggml_time_us()
  store i64 %352, ptr %29, align 8, !tbaa !16
  %353 = load i64, ptr %28, align 8, !tbaa !16
  %354 = load i64, ptr %22, align 8, !tbaa !16
  %355 = sub nsw i64 %353, %354
  %356 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef @__func__.main, i64 noundef %355)
  %357 = load i64, ptr %29, align 8, !tbaa !16
  %358 = load i64, ptr %23, align 8, !tbaa !16
  %359 = sub nsw i64 %357, %358
  %360 = trunc i64 %359 to i32
  %361 = load i64, ptr %29, align 8, !tbaa !16
  %362 = load i64, ptr %23, align 8, !tbaa !16
  %363 = sub nsw i64 %361, %362
  %364 = sitofp i64 %363 to double
  %365 = fdiv double %364, 1.000000e+03
  %366 = fdiv double %365, 1.000000e+00
  %367 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, ptr noundef @__func__.main, i32 noundef %360, double noundef %366)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #10
  %368 = load double, ptr %25, align 8, !tbaa !19
  %369 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, double noundef %368)
  %370 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %370) #10
  %371 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %371) #10
  %372 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %372) #10
  %373 = load ptr, ptr %14, align 8, !tbaa !9
  %374 = icmp ne ptr %373, null
  br i1 %374, label %375, label %377

375:                                              ; preds = %350
  %376 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %376) #10
  br label %377

377:                                              ; preds = %375, %350
  %378 = load ptr, ptr %15, align 8, !tbaa !9
  %379 = icmp ne ptr %378, null
  br i1 %379, label %380, label %382

380:                                              ; preds = %377
  %381 = load ptr, ptr %15, align 8, !tbaa !9
  call void @free(ptr noundef %381) #10
  br label %382

382:                                              ; preds = %380, %377
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  ret i32 0
}

declare void @ggml_time_init() #5

declare ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8) #5

declare void @ggml_free(ptr noundef) #5

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #7

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #8

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_1_row_size(i32 noundef) #4

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

declare i64 @ggml_time_us() #5

declare i64 @ggml_cycles() #5

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #0

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

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

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


; 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.ggml_init_params = type { i64, ptr, i8 }

@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_2_row_size(i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_3_row_size(i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_4_row_size(i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_5_row_size(i32 noundef) local_unnamed_addr #4

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_6_row_size(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = alloca %struct.ggml_init_params, align 8
  tail call void @ggml_time_init() #12
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #12
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, i8 0, i64 24, i1 false)
  %4 = tail call ptr @ggml_init(ptr noundef nonnull byval(%struct.ggml_init_params) align 8 %3) #12
  tail call void @ggml_free(ptr noundef %4) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #12
  %5 = icmp sgt i32 %0, 1
  br i1 %5, label %6, label %10

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = tail call i32 @atoi(ptr nocapture noundef %8) #13
  br label %10

10:                                               ; preds = %6, %2
  %.0 = phi i32 [ %9, %6 ], [ 0, %2 ]
  %11 = tail call noalias dereferenceable_or_null(6553600) ptr @malloc(i64 noundef 6553600) #14
  %12 = tail call noalias dereferenceable_or_null(7864320) ptr @malloc(i64 noundef 7864320) #14
  %13 = tail call noalias dereferenceable_or_null(7864320) ptr @malloc(i64 noundef 7864320) #14
  br label %14

14:                                               ; preds = %10, %14
  %indvars.iv = phi i64 [ 0, %10 ], [ %indvars.iv.next, %14 ]
  %15 = tail call i32 @rand() #12
  %16 = sitofp i32 %15 to float
  %17 = fmul float %16, 0x3E00000000000000
  %18 = fpext float %17 to double
  %19 = fsub double 8.000000e-01, %18
  %20 = fptrunc double %19 to float
  %21 = getelementptr inbounds float, ptr %11, i64 %indvars.iv
  store float %20, ptr %21, align 4, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1638400
  br i1 %exitcond.not, label %.preheader, label %14, !llvm.loop !11

22:                                               ; preds = %.preheader
  %23 = icmp eq i32 %.0, 1
  br i1 %23, label %.thread, label %45

.preheader:                                       ; preds = %14, %.preheader
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %.preheader ], [ 0, %14 ]
  %24 = tail call i32 @rand() #12
  %25 = sitofp i32 %24 to float
  %26 = fmul float %25, 0x3E00000000000000
  %27 = fpext float %26 to double
  %28 = fsub double 8.000000e-01, %27
  %29 = fptrunc double %28 to float
  %30 = getelementptr inbounds float, ptr %12, i64 %indvars.iv164
  store float %29, ptr %30, align 4, !tbaa !9
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  %exitcond167.not = icmp eq i64 %indvars.iv.next165, 1966080
  br i1 %exitcond167.not, label %22, label %.preheader, !llvm.loop !13

.thread:                                          ; preds = %22
  %31 = tail call i32 @quantize_1_row_size(i32 noundef 1280)
  %32 = mul nsw i32 %31, 1280
  %33 = sext i32 %32 to i64
  %34 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %33) #15
  %35 = tail call i32 @quantize_1_row_size(i32 noundef 1280)
  %36 = mul nsw i32 %35, 1536
  %37 = sext i32 %36 to i64
  %38 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %37) #15
  %39 = tail call i32 @quantize_1_row_size(i32 noundef 1280)
  %40 = mul nsw i32 %39, 1280
  %41 = tail call i32 @quantize_1_row_size(i32 noundef 1280)
  %42 = mul nsw i32 %41, 1536
  %43 = add nsw i32 %42, %40
  %44 = sext i32 %43 to i64
  br label %.thread153

45:                                               ; preds = %22
  switch i32 %.0, label %.thread153 [
    i32 2, label %46
    i32 3, label %61
    i32 4, label %76
    i32 5, label %91
    i32 6, label %106
  ]

46:                                               ; preds = %45
  %47 = tail call i32 @quantize_2_row_size(i32 noundef 1280)
  %48 = mul nsw i32 %47, 1280
  %49 = sext i32 %48 to i64
  %50 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %49) #15
  %51 = tail call i32 @quantize_2_row_size(i32 noundef 1280)
  %52 = mul nsw i32 %51, 1536
  %53 = sext i32 %52 to i64
  %54 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %53) #15
  %55 = tail call i32 @quantize_2_row_size(i32 noundef 1280)
  %56 = mul nsw i32 %55, 1280
  %57 = tail call i32 @quantize_2_row_size(i32 noundef 1280)
  %58 = mul nsw i32 %57, 1536
  %59 = add nsw i32 %58, %56
  %60 = sext i32 %59 to i64
  br label %.thread153

61:                                               ; preds = %45
  %62 = tail call i32 @quantize_3_row_size(i32 noundef 1280)
  %63 = mul nsw i32 %62, 1280
  %64 = sext i32 %63 to i64
  %65 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %64) #15
  %66 = tail call i32 @quantize_3_row_size(i32 noundef 1280)
  %67 = mul nsw i32 %66, 1536
  %68 = sext i32 %67 to i64
  %69 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %68) #15
  %70 = tail call i32 @quantize_3_row_size(i32 noundef 1280)
  %71 = mul nsw i32 %70, 1280
  %72 = tail call i32 @quantize_3_row_size(i32 noundef 1280)
  %73 = mul nsw i32 %72, 1536
  %74 = add nsw i32 %73, %71
  %75 = sext i32 %74 to i64
  br label %.thread153

76:                                               ; preds = %45
  %77 = tail call i32 @quantize_4_row_size(i32 noundef 1280)
  %78 = mul nsw i32 %77, 1280
  %79 = sext i32 %78 to i64
  %80 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %79) #15
  %81 = tail call i32 @quantize_4_row_size(i32 noundef 1280)
  %82 = mul nsw i32 %81, 1536
  %83 = sext i32 %82 to i64
  %84 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %83) #15
  %85 = tail call i32 @quantize_4_row_size(i32 noundef 1280)
  %86 = mul nsw i32 %85, 1280
  %87 = tail call i32 @quantize_4_row_size(i32 noundef 1280)
  %88 = mul nsw i32 %87, 1536
  %89 = add nsw i32 %88, %86
  %90 = sext i32 %89 to i64
  br label %.thread153

91:                                               ; preds = %45
  %92 = tail call i32 @quantize_5_row_size(i32 noundef 1280)
  %93 = mul nsw i32 %92, 1280
  %94 = sext i32 %93 to i64
  %95 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %94) #15
  %96 = tail call i32 @quantize_5_row_size(i32 noundef 1280)
  %97 = mul nsw i32 %96, 1536
  %98 = sext i32 %97 to i64
  %99 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %98) #15
  %100 = tail call i32 @quantize_5_row_size(i32 noundef 1280)
  %101 = mul nsw i32 %100, 1280
  %102 = tail call i32 @quantize_5_row_size(i32 noundef 1280)
  %103 = mul nsw i32 %102, 1536
  %104 = add nsw i32 %103, %101
  %105 = sext i32 %104 to i64
  br label %.thread153

106:                                              ; preds = %45
  %107 = tail call i32 @quantize_6_row_size(i32 noundef 1280)
  %108 = mul nsw i32 %107, 1280
  %109 = sext i32 %108 to i64
  %110 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %109) #15
  %111 = tail call i32 @quantize_6_row_size(i32 noundef 1280)
  %112 = mul nsw i32 %111, 1536
  %113 = sext i32 %112 to i64
  %114 = tail call noalias ptr @calloc(i64 noundef 1, i64 noundef %113) #15
  %115 = tail call i32 @quantize_6_row_size(i32 noundef 1280)
  %116 = mul nsw i32 %115, 1280
  %117 = tail call i32 @quantize_6_row_size(i32 noundef 1280)
  %118 = mul nsw i32 %117, 1536
  %119 = add nsw i32 %118, %116
  %120 = sext i32 %119 to i64
  br label %.thread153

.thread153:                                       ; preds = %45, %91, %61, %.thread, %46, %76, %106
  %121 = phi i1 [ true, %106 ], [ false, %76 ], [ false, %46 ], [ false, %.thread ], [ false, %61 ], [ false, %91 ], [ false, %45 ]
  %122 = phi i1 [ false, %106 ], [ true, %76 ], [ false, %46 ], [ false, %.thread ], [ false, %61 ], [ false, %91 ], [ false, %45 ]
  %123 = phi i1 [ false, %106 ], [ false, %76 ], [ true, %46 ], [ false, %.thread ], [ false, %61 ], [ false, %91 ], [ false, %45 ]
  %124 = phi i1 [ false, %106 ], [ false, %76 ], [ false, %46 ], [ false, %.thread ], [ true, %61 ], [ false, %91 ], [ false, %45 ]
  %125 = phi i1 [ false, %106 ], [ false, %76 ], [ false, %46 ], [ false, %.thread ], [ false, %61 ], [ true, %91 ], [ false, %45 ]
  %.5123 = phi i64 [ %120, %106 ], [ %90, %76 ], [ %60, %46 ], [ %44, %.thread ], [ %75, %61 ], [ %105, %91 ], [ 0, %45 ]
  %.5117 = phi ptr [ %114, %106 ], [ %84, %76 ], [ %54, %46 ], [ %38, %.thread ], [ %69, %61 ], [ %99, %91 ], [ null, %45 ]
  %.5 = phi ptr [ %110, %106 ], [ %80, %76 ], [ %50, %46 ], [ %34, %.thread ], [ %65, %61 ], [ %95, %91 ], [ null, %45 ]
  %126 = uitofp i64 %.5123 to float
  %127 = fdiv float %126, 7.208960e+06
  %128 = fpext float %127 to double
  %129 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %128)
  %130 = tail call i64 @ggml_time_us() #12
  br i1 %23, label %131, label %132

131:                                              ; preds = %.thread153
  tail call void @quantize_1(ptr noundef %11, ptr noundef %.5, i32 noundef 1280, i32 noundef 1280)
  tail call void @quantize_1(ptr noundef nonnull %12, ptr noundef %.5117, i32 noundef 1536, i32 noundef 1280)
  br label %132

132:                                              ; preds = %131, %.thread153
  br i1 %123, label %133, label %134

133:                                              ; preds = %132
  tail call void @quantize_2(ptr noundef %11, ptr noundef %.5, i32 noundef 1280, i32 noundef 1280)
  tail call void @quantize_2(ptr noundef nonnull %12, ptr noundef %.5117, i32 noundef 1536, i32 noundef 1280)
  br label %134

134:                                              ; preds = %133, %132
  br i1 %124, label %135, label %136

135:                                              ; preds = %134
  tail call void @quantize_3(ptr noundef %11, ptr noundef %.5, i32 noundef 1280, i32 noundef 1280)
  tail call void @quantize_3(ptr noundef nonnull %12, ptr noundef %.5117, i32 noundef 1536, i32 noundef 1280)
  br label %136

136:                                              ; preds = %135, %134
  br i1 %122, label %137, label %138

137:                                              ; preds = %136
  tail call void @quantize_4(ptr noundef %11, ptr noundef %.5, i32 noundef 1280, i32 noundef 1280)
  tail call void @quantize_4(ptr noundef nonnull %12, ptr noundef %.5117, i32 noundef 1536, i32 noundef 1280)
  br label %138

138:                                              ; preds = %137, %136
  br i1 %125, label %139, label %140

139:                                              ; preds = %138
  tail call void @quantize_5(ptr noundef %11, ptr noundef %.5, i32 noundef 1280, i32 noundef 1280)
  tail call void @quantize_5(ptr noundef nonnull %12, ptr noundef %.5117, i32 noundef 1536, i32 noundef 1280)
  br label %140

140:                                              ; preds = %139, %138
  br i1 %121, label %141, label %.critedge

141:                                              ; preds = %140
  tail call void @quantize_6(ptr noundef %11, ptr noundef %.5, i32 noundef 1280, i32 noundef 1280)
  tail call void @quantize_6(ptr noundef nonnull %12, ptr noundef %.5117, i32 noundef 1536, i32 noundef 1280)
  br label %.critedge

.critedge:                                        ; preds = %141, %140
  %142 = tail call i64 @ggml_time_us() #12
  %143 = sub nsw i64 %142, %130
  %144 = sitofp i64 %143 to double
  %145 = fdiv double %144, 1.000000e+03
  %146 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, double noundef %145, i32 noundef %.0)
  %147 = load float, ptr %11, align 4, !tbaa !9
  %148 = fpext float %147 to double
  %149 = load float, ptr %12, align 4, !tbaa !9
  %150 = fpext float %149 to double
  %151 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %148, double noundef %150)
  %152 = getelementptr inbounds i8, ptr %11, i64 4
  %153 = load float, ptr %152, align 4, !tbaa !9
  %154 = fpext float %153 to double
  %155 = getelementptr inbounds i8, ptr %12, i64 4
  %156 = load float, ptr %155, align 4, !tbaa !9
  %157 = fpext float %156 to double
  %158 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %154, double noundef %157)
  %159 = getelementptr inbounds i8, ptr %11, i64 8
  %160 = load float, ptr %159, align 4, !tbaa !9
  %161 = fpext float %160 to double
  %162 = getelementptr inbounds i8, ptr %12, i64 8
  %163 = load float, ptr %162, align 4, !tbaa !9
  %164 = fpext float %163 to double
  %165 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %161, double noundef %164)
  %166 = getelementptr inbounds i8, ptr %11, i64 12
  %167 = load float, ptr %166, align 4, !tbaa !9
  %168 = fpext float %167 to double
  %169 = getelementptr inbounds i8, ptr %12, i64 12
  %170 = load float, ptr %169, align 4, !tbaa !9
  %171 = fpext float %170 to double
  %172 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %168, double noundef %171)
  %173 = getelementptr inbounds i8, ptr %11, i64 16
  %174 = load float, ptr %173, align 4, !tbaa !9
  %175 = fpext float %174 to double
  %176 = getelementptr inbounds i8, ptr %12, i64 16
  %177 = load float, ptr %176, align 4, !tbaa !9
  %178 = fpext float %177 to double
  %179 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %175, double noundef %178)
  %180 = getelementptr inbounds i8, ptr %11, i64 20
  %181 = load float, ptr %180, align 4, !tbaa !9
  %182 = fpext float %181 to double
  %183 = getelementptr inbounds i8, ptr %12, i64 20
  %184 = load float, ptr %183, align 4, !tbaa !9
  %185 = fpext float %184 to double
  %186 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %182, double noundef %185)
  %187 = getelementptr inbounds i8, ptr %11, i64 24
  %188 = load float, ptr %187, align 4, !tbaa !9
  %189 = fpext float %188 to double
  %190 = getelementptr inbounds i8, ptr %12, i64 24
  %191 = load float, ptr %190, align 4, !tbaa !9
  %192 = fpext float %191 to double
  %193 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %189, double noundef %192)
  %194 = getelementptr inbounds i8, ptr %11, i64 28
  %195 = load float, ptr %194, align 4, !tbaa !9
  %196 = fpext float %195 to double
  %197 = getelementptr inbounds i8, ptr %12, i64 28
  %198 = load float, ptr %197, align 4, !tbaa !9
  %199 = fpext float %198 to double
  %200 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %196, double noundef %199)
  %201 = getelementptr inbounds i8, ptr %11, i64 32
  %202 = load float, ptr %201, align 4, !tbaa !9
  %203 = fpext float %202 to double
  %204 = getelementptr inbounds i8, ptr %12, i64 32
  %205 = load float, ptr %204, align 4, !tbaa !9
  %206 = fpext float %205 to double
  %207 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %203, double noundef %206)
  %208 = getelementptr inbounds i8, ptr %11, i64 36
  %209 = load float, ptr %208, align 4, !tbaa !9
  %210 = fpext float %209 to double
  %211 = getelementptr inbounds i8, ptr %12, i64 36
  %212 = load float, ptr %211, align 4, !tbaa !9
  %213 = fpext float %212 to double
  %214 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %210, double noundef %213)
  %215 = getelementptr inbounds i8, ptr %11, i64 40
  %216 = load float, ptr %215, align 4, !tbaa !9
  %217 = fpext float %216 to double
  %218 = getelementptr inbounds i8, ptr %12, i64 40
  %219 = load float, ptr %218, align 4, !tbaa !9
  %220 = fpext float %219 to double
  %221 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %217, double noundef %220)
  %222 = getelementptr inbounds i8, ptr %11, i64 44
  %223 = load float, ptr %222, align 4, !tbaa !9
  %224 = fpext float %223 to double
  %225 = getelementptr inbounds i8, ptr %12, i64 44
  %226 = load float, ptr %225, align 4, !tbaa !9
  %227 = fpext float %226 to double
  %228 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %224, double noundef %227)
  %229 = getelementptr inbounds i8, ptr %11, i64 48
  %230 = load float, ptr %229, align 4, !tbaa !9
  %231 = fpext float %230 to double
  %232 = getelementptr inbounds i8, ptr %12, i64 48
  %233 = load float, ptr %232, align 4, !tbaa !9
  %234 = fpext float %233 to double
  %235 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %231, double noundef %234)
  %236 = getelementptr inbounds i8, ptr %11, i64 52
  %237 = load float, ptr %236, align 4, !tbaa !9
  %238 = fpext float %237 to double
  %239 = getelementptr inbounds i8, ptr %12, i64 52
  %240 = load float, ptr %239, align 4, !tbaa !9
  %241 = fpext float %240 to double
  %242 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %238, double noundef %241)
  %243 = getelementptr inbounds i8, ptr %11, i64 56
  %244 = load float, ptr %243, align 4, !tbaa !9
  %245 = fpext float %244 to double
  %246 = getelementptr inbounds i8, ptr %12, i64 56
  %247 = load float, ptr %246, align 4, !tbaa !9
  %248 = fpext float %247 to double
  %249 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %245, double noundef %248)
  %250 = getelementptr inbounds i8, ptr %11, i64 60
  %251 = load float, ptr %250, align 4, !tbaa !9
  %252 = fpext float %251 to double
  %253 = getelementptr inbounds i8, ptr %12, i64 60
  %254 = load float, ptr %253, align 4, !tbaa !9
  %255 = fpext float %254 to double
  %256 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, double noundef %252, double noundef %255)
  %257 = tail call i64 @ggml_cycles() #12
  %258 = tail call i64 @ggml_time_us() #12
  %259 = icmp eq i32 %.0, 0
  br i1 %259, label %.thread157, label %260

.thread157:                                       ; preds = %.critedge
  tail call void @mul_mat_f32_naive(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %13, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %262

260:                                              ; preds = %.critedge
  br i1 %23, label %261, label %262

261:                                              ; preds = %260
  tail call void @mul_mat_gq_1(ptr noundef %.5, ptr noundef %.5117, ptr noundef %13, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %262

262:                                              ; preds = %.thread157, %261, %260
  br i1 %123, label %263, label %264

263:                                              ; preds = %262
  tail call void @mul_mat_gq_2(ptr noundef %.5, ptr noundef %.5117, ptr noundef %13, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %264

264:                                              ; preds = %263, %262
  br i1 %124, label %265, label %266

265:                                              ; preds = %264
  tail call void @mul_mat_gq_3(ptr noundef %.5, ptr noundef %.5117, ptr noundef %13, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %266

266:                                              ; preds = %265, %264
  br i1 %122, label %267, label %268

267:                                              ; preds = %266
  tail call void @mul_mat_gq_4(ptr noundef %.5, ptr noundef %.5117, ptr noundef %13, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %268

268:                                              ; preds = %267, %266
  br i1 %125, label %269, label %270

269:                                              ; preds = %268
  tail call void @mul_mat_gq_5(ptr noundef %.5, ptr noundef %.5117, ptr noundef %13, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %270

270:                                              ; preds = %269, %268
  br i1 %121, label %271, label %.preheader176

271:                                              ; preds = %270
  tail call void @mul_mat_gq_6(ptr noundef %.5, ptr noundef %.5117, ptr noundef %13, i32 noundef 1280, i32 noundef 1536, i32 noundef 1280)
  br label %.preheader176

.preheader176:                                    ; preds = %270, %271
  br label %283

272:                                              ; preds = %283
  %273 = tail call i64 @ggml_cycles() #12
  %274 = tail call i64 @ggml_time_us() #12
  %275 = sub nsw i64 %273, %257
  %276 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull @__func__.main, i64 noundef %275)
  %277 = sub nsw i64 %274, %258
  %278 = trunc i64 %277 to i32
  %279 = sitofp i64 %277 to double
  %280 = fdiv double %279, 1.000000e+03
  %281 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8, ptr noundef nonnull @__func__.main, i32 noundef %278, double noundef %280)
  %282 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, double noundef %299)
  tail call void @free(ptr noundef %11) #12
  tail call void @free(ptr noundef %12) #12
  tail call void @free(ptr noundef nonnull %13) #12
  %.not = icmp eq ptr %.5, null
  br i1 %.not, label %301, label %300

283:                                              ; preds = %283, %.preheader176
  %indvars.iv172 = phi i64 [ 0, %.preheader176 ], [ %indvars.iv.next173.3, %283 ]
  %.0109161 = phi double [ 0.000000e+00, %.preheader176 ], [ %299, %283 ]
  %284 = getelementptr inbounds float, ptr %13, i64 %indvars.iv172
  %285 = load float, ptr %284, align 4, !tbaa !9
  %286 = fpext float %285 to double
  %287 = tail call double @llvm.fmuladd.f64(double %286, double 7.812500e-04, double %.0109161)
  %indvars.iv.next173 = or disjoint i64 %indvars.iv172, 1
  %288 = getelementptr inbounds float, ptr %13, i64 %indvars.iv.next173
  %289 = load float, ptr %288, align 4, !tbaa !9
  %290 = fpext float %289 to double
  %291 = tail call double @llvm.fmuladd.f64(double %290, double 7.812500e-04, double %287)
  %indvars.iv.next173.1 = or disjoint i64 %indvars.iv172, 2
  %292 = getelementptr inbounds float, ptr %13, i64 %indvars.iv.next173.1
  %293 = load float, ptr %292, align 4, !tbaa !9
  %294 = fpext float %293 to double
  %295 = tail call double @llvm.fmuladd.f64(double %294, double 7.812500e-04, double %291)
  %indvars.iv.next173.2 = or disjoint i64 %indvars.iv172, 3
  %296 = getelementptr inbounds float, ptr %13, i64 %indvars.iv.next173.2
  %297 = load float, ptr %296, align 4, !tbaa !9
  %298 = fpext float %297 to double
  %299 = tail call double @llvm.fmuladd.f64(double %298, double 7.812500e-04, double %295)
  %indvars.iv.next173.3 = add nuw nsw i64 %indvars.iv172, 4
  %exitcond175.not.3 = icmp eq i64 %indvars.iv.next173.3, 1536
  br i1 %exitcond175.not.3, label %272, label %283, !llvm.loop !14

300:                                              ; preds = %272
  tail call void @free(ptr noundef nonnull %.5) #12
  br label %301

301:                                              ; preds = %300, %272
  %.not125 = icmp eq ptr %.5117, null
  br i1 %.not125, label %303, label %302

302:                                              ; preds = %301
  tail call void @free(ptr noundef nonnull %.5117) #12
  br label %303

303:                                              ; preds = %302, %301
  ret i32 0
}

declare void @ggml_time_init() local_unnamed_addr #5

declare ptr @ggml_init(ptr noundef byval(%struct.ggml_init_params) align 8) local_unnamed_addr #5

declare void @ggml_free(ptr noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #8

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @quantize_1_row_size(i32 noundef) local_unnamed_addr #4

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

declare i64 @ggml_time_us() local_unnamed_addr #5

declare i64 @ggml_cycles() local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #11

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #9 = { 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 #10 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #12 = { nounwind }
attributes #13 = { nounwind willreturn memory(read) }
attributes #14 = { nounwind allocsize(0) }
attributes #15 = { nounwind allocsize(0,1) }

!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 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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