; LLVM IR from ggml-org/ggml :: src/ggml-cpu (ggml-cpu-quants)

; 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.block_iq3_xxs = type { i16, [96 x i8] }
%struct.block_q8_K = type { float, [256 x i8], [16 x i16] }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@ksigns_iq2xs = external hidden constant [128 x i8], align 16
@kmask_iq2xs = external hidden constant [8 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_iq3_xxs_q8_K = external hidden unnamed_addr constant [126 x i8], align 1
@iq3xxs_grid = external hidden constant [256 x i32], align 16

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext) #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: nounwind uwtable
define dso_local void @ggml_vec_dot_iq3_xxs_q8_K(i32 noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, i64 noundef %4, ptr noalias noundef %5, i64 noundef %6, i32 noundef %7) #5 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca float, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i8, align 1
  %36 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !9
  store i64 %2, ptr %11, align 8, !tbaa !11
  store ptr %3, ptr %12, align 8, !tbaa !9
  store i64 %4, ptr %13, align 8, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !9
  store i64 %6, ptr %15, align 8, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !5
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = srem i32 %37, 256
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %8
  br label %42

41:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 10930, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_iq3_xxs_q8_K) #6
  unreachable

42:                                               ; preds = %40
  %43 = load i32, ptr %16, align 4, !tbaa !5
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %42
  br label %47

46:                                               ; preds = %42
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 10931, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_iq3_xxs_q8_K) #6
  unreachable

47:                                               ; preds = %45
  %48 = load i32, ptr %16, align 4, !tbaa !5
  %49 = load i64, ptr %13, align 8, !tbaa !11
  %50 = load i64, ptr %15, align 8, !tbaa !11
  %51 = load i64, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %52 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %52, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %53 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %53, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %54 = load i32, ptr %9, align 4, !tbaa !5
  %55 = sdiv i32 %54, 256
  store i32 %55, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store float 0.000000e+00, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %229, %47
  %57 = load i32, ptr %22, align 4, !tbaa !5
  %58 = load i32, ptr %19, align 4, !tbaa !5
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 2, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %232

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %62 = load ptr, ptr %17, align 8, !tbaa !9
  %63 = load i32, ptr %22, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %struct.block_iq3_xxs, ptr %62, i64 %64
  %66 = getelementptr inbounds %struct.block_iq3_xxs, ptr %65, i32 0, i32 0
  %67 = load i16, ptr %66, align 2, !tbaa !15
  %68 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %67)
  %69 = load ptr, ptr %18, align 8, !tbaa !9
  %70 = load i32, ptr %22, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.block_q8_K, ptr %69, i64 %71
  %73 = getelementptr inbounds %struct.block_q8_K, ptr %72, i32 0, i32 0
  %74 = load float, ptr %73, align 4, !tbaa !18
  %75 = fmul float %68, %74
  store float %75, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %76 = load ptr, ptr %17, align 8, !tbaa !9
  %77 = load i32, ptr %22, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds %struct.block_iq3_xxs, ptr %76, i64 %78
  %80 = getelementptr inbounds %struct.block_iq3_xxs, ptr %79, i32 0, i32 1
  %81 = getelementptr inbounds [96 x i8], ptr %80, i64 0, i64 0
  store ptr %81, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %82 = load ptr, ptr %17, align 8, !tbaa !9
  %83 = load i32, ptr %22, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds %struct.block_iq3_xxs, ptr %82, i64 %84
  %86 = getelementptr inbounds %struct.block_iq3_xxs, ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds [96 x i8], ptr %86, i64 0, i64 0
  %88 = getelementptr inbounds i8, ptr %87, i64 64
  store ptr %88, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %89 = load ptr, ptr %18, align 8, !tbaa !9
  %90 = load i32, ptr %22, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds %struct.block_q8_K, ptr %89, i64 %91
  %93 = getelementptr inbounds %struct.block_q8_K, ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds [256 x i8], ptr %93, i64 0, i64 0
  store ptr %94, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %220, %61
  %96 = load i32, ptr %29, align 4, !tbaa !5
  %97 = icmp slt i32 %96, 8
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  store i32 5, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %223

99:                                               ; preds = %95
  %100 = load ptr, ptr %26, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 1 %100, i64 4, i1 false)
  %101 = load ptr, ptr %26, align 8, !tbaa !9
  %102 = getelementptr inbounds i8, ptr %101, i64 4
  store ptr %102, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %103 = load i32, ptr %20, align 4, !tbaa !5
  %104 = lshr i32 %103, 28
  %105 = mul i32 2, %104
  %106 = add i32 %105, 1
  store i32 %106, ptr %30, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  store i32 0, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %209, %99
  %108 = load i32, ptr %32, align 4, !tbaa !5
  %109 = icmp slt i32 %108, 4
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  store i32 8, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %212

111:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %112 = load ptr, ptr %25, align 8, !tbaa !9
  %113 = load i32, ptr %32, align 4, !tbaa !5
  %114 = mul nsw i32 2, %113
  %115 = add nsw i32 %114, 0
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i8, ptr %112, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !20
  %119 = zext i8 %118 to i32
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %120
  store ptr %121, ptr %33, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %122 = load ptr, ptr %25, align 8, !tbaa !9
  %123 = load i32, ptr %32, align 4, !tbaa !5
  %124 = mul nsw i32 2, %123
  %125 = add nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i8, ptr %122, i64 %126
  %128 = load i8, ptr %127, align 1, !tbaa !20
  %129 = zext i8 %128 to i32
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %130
  store ptr %131, ptr %34, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #7
  %132 = load i32, ptr %20, align 4, !tbaa !5
  %133 = load i32, ptr %32, align 4, !tbaa !5
  %134 = mul nsw i32 7, %133
  %135 = lshr i32 %132, %134
  %136 = and i32 %135, 127
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds [128 x i8], ptr @ksigns_iq2xs, i64 0, i64 %137
  %139 = load i8, ptr %138, align 1, !tbaa !20
  store i8 %139, ptr %35, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %203, %111
  %141 = load i32, ptr %36, align 4, !tbaa !5
  %142 = icmp slt i32 %141, 4
  br i1 %142, label %144, label %143

143:                                              ; preds = %140
  store i32 11, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %206

144:                                              ; preds = %140
  %145 = load ptr, ptr %33, align 8, !tbaa !9
  %146 = load i32, ptr %36, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i8, ptr %145, i64 %147
  %149 = load i8, ptr %148, align 1, !tbaa !20
  %150 = zext i8 %149 to i32
  %151 = load ptr, ptr %27, align 8, !tbaa !9
  %152 = load i32, ptr %36, align 4, !tbaa !5
  %153 = add nsw i32 %152, 0
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds i8, ptr %151, i64 %154
  %156 = load i8, ptr %155, align 1, !tbaa !20
  %157 = sext i8 %156 to i32
  %158 = mul nsw i32 %150, %157
  %159 = load i8, ptr %35, align 1, !tbaa !20
  %160 = zext i8 %159 to i32
  %161 = load i32, ptr %36, align 4, !tbaa !5
  %162 = add nsw i32 %161, 0
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [8 x i8], ptr @kmask_iq2xs, i64 0, i64 %163
  %165 = load i8, ptr %164, align 1, !tbaa !20
  %166 = zext i8 %165 to i32
  %167 = and i32 %160, %166
  %168 = icmp ne i32 %167, 0
  %169 = zext i1 %168 to i64
  %170 = select i1 %168, i32 -1, i32 1
  %171 = mul nsw i32 %158, %170
  %172 = load i32, ptr %31, align 4, !tbaa !5
  %173 = add nsw i32 %172, %171
  store i32 %173, ptr %31, align 4, !tbaa !5
  %174 = load ptr, ptr %34, align 8, !tbaa !9
  %175 = load i32, ptr %36, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds i8, ptr %174, i64 %176
  %178 = load i8, ptr %177, align 1, !tbaa !20
  %179 = zext i8 %178 to i32
  %180 = load ptr, ptr %27, align 8, !tbaa !9
  %181 = load i32, ptr %36, align 4, !tbaa !5
  %182 = add nsw i32 %181, 4
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %180, i64 %183
  %185 = load i8, ptr %184, align 1, !tbaa !20
  %186 = sext i8 %185 to i32
  %187 = mul nsw i32 %179, %186
  %188 = load i8, ptr %35, align 1, !tbaa !20
  %189 = zext i8 %188 to i32
  %190 = load i32, ptr %36, align 4, !tbaa !5
  %191 = add nsw i32 %190, 4
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [8 x i8], ptr @kmask_iq2xs, i64 0, i64 %192
  %194 = load i8, ptr %193, align 1, !tbaa !20
  %195 = zext i8 %194 to i32
  %196 = and i32 %189, %195
  %197 = icmp ne i32 %196, 0
  %198 = zext i1 %197 to i64
  %199 = select i1 %197, i32 -1, i32 1
  %200 = mul nsw i32 %187, %199
  %201 = load i32, ptr %31, align 4, !tbaa !5
  %202 = add nsw i32 %201, %200
  store i32 %202, ptr %31, align 4, !tbaa !5
  br label %203

203:                                              ; preds = %144
  %204 = load i32, ptr %36, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %36, align 4, !tbaa !5
  br label %140, !llvm.loop !21

206:                                              ; preds = %143
  %207 = load ptr, ptr %27, align 8, !tbaa !9
  %208 = getelementptr inbounds i8, ptr %207, i64 8
  store ptr %208, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  br label %209

209:                                              ; preds = %206
  %210 = load i32, ptr %32, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %32, align 4, !tbaa !5
  br label %107, !llvm.loop !23

212:                                              ; preds = %110
  %213 = load ptr, ptr %25, align 8, !tbaa !9
  %214 = getelementptr inbounds i8, ptr %213, i64 8
  store ptr %214, ptr %25, align 8, !tbaa !9
  %215 = load i32, ptr %31, align 4, !tbaa !5
  %216 = load i32, ptr %30, align 4, !tbaa !5
  %217 = mul i32 %215, %216
  %218 = load i32, ptr %28, align 4, !tbaa !5
  %219 = add i32 %218, %217
  store i32 %219, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %220

220:                                              ; preds = %212
  %221 = load i32, ptr %29, align 4, !tbaa !5
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %29, align 4, !tbaa !5
  br label %95, !llvm.loop !24

223:                                              ; preds = %98
  %224 = load float, ptr %24, align 4, !tbaa !13
  %225 = load i32, ptr %28, align 4, !tbaa !5
  %226 = sitofp i32 %225 to float
  %227 = load float, ptr %21, align 4, !tbaa !13
  %228 = call float @llvm.fmuladd.f32(float %224, float %226, float %227)
  store float %228, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %229

229:                                              ; preds = %223
  %230 = load i32, ptr %22, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %22, align 4, !tbaa !5
  br label %56, !llvm.loop !25

232:                                              ; preds = %60
  %233 = load float, ptr %21, align 4, !tbaa !13
  %234 = fmul float 2.500000e-01, %233
  %235 = load ptr, ptr %10, align 8, !tbaa !9
  store float %234, ptr %235, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  ret void
}

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

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

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


; 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.block_iq3_xxs = type { i16, [96 x i8] }
%struct.block_q8_K = type { float, [256 x i8], [16 x i16] }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1
@ksigns_iq2xs = external hidden local_unnamed_addr constant [128 x i8], align 16
@kmask_iq2xs = external hidden local_unnamed_addr constant [8 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_iq3_xxs_q8_K = external hidden unnamed_addr constant [126 x i8], align 1
@iq3xxs_grid = external hidden local_unnamed_addr constant [256 x i32], align 16

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: nounwind uwtable
define dso_local void @ggml_vec_dot_iq3_xxs_q8_K(i32 noundef %0, ptr noalias nocapture noundef writeonly %1, i64 noundef %2, ptr noalias nocapture noundef readonly %3, i64 noundef %4, ptr noalias nocapture noundef readonly %5, i64 noundef %6, i32 noundef %7) local_unnamed_addr #3 {
  %9 = and i32 %0, 255
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %12, label %11

11:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 10930, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_iq3_xxs_q8_K) #5
  unreachable

12:                                               ; preds = %8
  %13 = icmp eq i32 %7, 1
  br i1 %13, label %15, label %14

14:                                               ; preds = %12
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 10931, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_iq3_xxs_q8_K) #5
  unreachable

15:                                               ; preds = %12
  %16 = ashr exact i32 %0, 8
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %15
  %wide.trip.count = zext nneg i32 %16 to i64
  %.pre.pre = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 4), align 1, !tbaa !5
  %.pre96.pre = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 1), align 1, !tbaa !5
  %.pre97.pre = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 5), align 1, !tbaa !5
  %.pre98.pre = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 2), align 1, !tbaa !5
  %.pre99.pre = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 6), align 1, !tbaa !5
  %18 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 3), align 1
  %19 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 7), align 1
  %20 = load <8 x i8>, ptr @kmask_iq2xs, align 1
  %21 = load i8, ptr @kmask_iq2xs, align 1
  %22 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 4), align 1
  %23 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 1), align 1
  %24 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 5), align 1
  %25 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 2), align 1
  %26 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 6), align 1
  %27 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 3), align 1
  %28 = load i8, ptr getelementptr inbounds (i8, ptr @kmask_iq2xs, i64 7), align 1
  %29 = extractelement <8 x i8> %20, i64 0
  br label %.lr.ph

._crit_edge.loopexit:                             ; preds = %39
  %30 = fmul float %42, 2.500000e-01
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %15
  %.060.lcssa = phi float [ 0.000000e+00, %15 ], [ %30, %._crit_edge.loopexit ]
  store float %.060.lcssa, ptr %1, align 4, !tbaa !8
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %39
  %.pre99 = phi i8 [ %.pre99.pre, %.lr.ph.preheader ], [ %26, %39 ]
  %.pre98 = phi i8 [ %.pre98.pre, %.lr.ph.preheader ], [ %25, %39 ]
  %.pre97 = phi i8 [ %.pre97.pre, %.lr.ph.preheader ], [ %24, %39 ]
  %.pre96 = phi i8 [ %.pre96.pre, %.lr.ph.preheader ], [ %23, %39 ]
  %.pre = phi i8 [ %.pre.pre, %.lr.ph.preheader ], [ %22, %39 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %39 ]
  %.06082 = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %42, %39 ]
  %31 = getelementptr inbounds %struct.block_iq3_xxs, ptr %3, i64 %indvars.iv
  %32 = load i16, ptr %31, align 2, !tbaa !10
  %33 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %32)
  %34 = getelementptr inbounds %struct.block_q8_K, ptr %5, i64 %indvars.iv
  %35 = load float, ptr %34, align 4, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %31, i64 2
  %37 = getelementptr inbounds i8, ptr %31, i64 66
  %38 = getelementptr inbounds i8, ptr %34, i64 4
  br label %43

39:                                               ; preds = %43
  %40 = fmul float %33, %35
  %41 = sitofp i32 %289 to float
  %42 = tail call float @llvm.fmuladd.f32(float %40, float %41, float %.06082)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond95.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond95.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !15

43:                                               ; preds = %.lr.ph, %43
  %44 = phi i8 [ %.pre99, %.lr.ph ], [ %26, %43 ]
  %45 = phi i8 [ %.pre98, %.lr.ph ], [ %25, %43 ]
  %46 = phi i8 [ %.pre97, %.lr.ph ], [ %24, %43 ]
  %47 = phi i8 [ %.pre96, %.lr.ph ], [ %23, %43 ]
  %48 = phi i8 [ %.pre, %.lr.ph ], [ %22, %43 ]
  %.06480 = phi ptr [ %36, %.lr.ph ], [ %287, %43 ]
  %.06579 = phi i32 [ 0, %.lr.ph ], [ %290, %43 ]
  %.06678 = phi i32 [ 0, %.lr.ph ], [ %289, %43 ]
  %.06777 = phi ptr [ %38, %.lr.ph ], [ %scevgep, %43 ]
  %.06976 = phi ptr [ %37, %.lr.ph ], [ %286, %43 ]
  %.0.copyload = load i32, ptr %.06976, align 1
  %49 = lshr i32 %.0.copyload, 27
  %50 = or i32 %49, 1
  %51 = load i8, ptr %.06480, align 1, !tbaa !5
  %52 = zext i8 %51 to i64
  %53 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %52
  %54 = getelementptr inbounds i8, ptr %.06480, i64 1
  %55 = load i8, ptr %54, align 1, !tbaa !5
  %56 = zext i8 %55 to i64
  %57 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %56
  %58 = and i32 %.0.copyload, 127
  %59 = zext nneg i32 %58 to i64
  %60 = getelementptr inbounds [128 x i8], ptr @ksigns_iq2xs, i64 0, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !5
  %62 = load i8, ptr %53, align 4, !tbaa !5
  %63 = zext i8 %62 to i32
  %64 = load i8, ptr %.06777, align 1, !tbaa !5
  %65 = sext i8 %64 to i32
  %66 = mul nsw i32 %65, %63
  %67 = and i8 %29, %61
  %.not = icmp eq i8 %67, 0
  %68 = sub nsw i32 0, %66
  %69 = select i1 %.not, i32 %66, i32 %68
  %70 = load i8, ptr %57, align 4, !tbaa !5
  %71 = zext i8 %70 to i32
  %72 = getelementptr inbounds i8, ptr %.06777, i64 4
  %73 = load i8, ptr %72, align 1, !tbaa !5
  %74 = sext i8 %73 to i32
  %75 = mul nsw i32 %74, %71
  %76 = and i8 %48, %61
  %.not70 = icmp eq i8 %76, 0
  %77 = sub nsw i32 0, %75
  %78 = select i1 %.not70, i32 %75, i32 %77
  %79 = getelementptr inbounds i8, ptr %53, i64 1
  %80 = load i8, ptr %79, align 1, !tbaa !5
  %81 = zext i8 %80 to i32
  %82 = getelementptr inbounds i8, ptr %.06777, i64 1
  %83 = load i8, ptr %82, align 1, !tbaa !5
  %84 = sext i8 %83 to i32
  %85 = mul nsw i32 %84, %81
  %86 = and i8 %47, %61
  %.not.1 = icmp eq i8 %86, 0
  %87 = sub nsw i32 0, %85
  %88 = select i1 %.not.1, i32 %85, i32 %87
  %89 = getelementptr inbounds i8, ptr %57, i64 1
  %90 = load i8, ptr %89, align 1, !tbaa !5
  %91 = zext i8 %90 to i32
  %92 = getelementptr inbounds i8, ptr %.06777, i64 5
  %93 = load i8, ptr %92, align 1, !tbaa !5
  %94 = sext i8 %93 to i32
  %95 = mul nsw i32 %94, %91
  %96 = and i8 %46, %61
  %.not70.1 = icmp eq i8 %96, 0
  %97 = sub nsw i32 0, %95
  %98 = select i1 %.not70.1, i32 %95, i32 %97
  %99 = getelementptr inbounds i8, ptr %53, i64 2
  %100 = load i8, ptr %99, align 2, !tbaa !5
  %101 = zext i8 %100 to i32
  %102 = getelementptr inbounds i8, ptr %.06777, i64 2
  %103 = load i8, ptr %102, align 1, !tbaa !5
  %104 = sext i8 %103 to i32
  %105 = mul nsw i32 %104, %101
  %106 = and i8 %45, %61
  %.not.2 = icmp eq i8 %106, 0
  %107 = sub nsw i32 0, %105
  %108 = select i1 %.not.2, i32 %105, i32 %107
  %109 = getelementptr inbounds i8, ptr %57, i64 2
  %110 = load i8, ptr %109, align 2, !tbaa !5
  %111 = zext i8 %110 to i32
  %112 = getelementptr inbounds i8, ptr %.06777, i64 6
  %113 = load i8, ptr %112, align 1, !tbaa !5
  %114 = sext i8 %113 to i32
  %115 = mul nsw i32 %114, %111
  %116 = and i8 %44, %61
  %.not70.2 = icmp eq i8 %116, 0
  %117 = sub nsw i32 0, %115
  %118 = select i1 %.not70.2, i32 %115, i32 %117
  %119 = getelementptr inbounds i8, ptr %53, i64 3
  %120 = load i8, ptr %119, align 1, !tbaa !5
  %121 = zext i8 %120 to i32
  %122 = getelementptr inbounds i8, ptr %.06777, i64 3
  %123 = load i8, ptr %122, align 1, !tbaa !5
  %124 = sext i8 %123 to i32
  %125 = mul nsw i32 %124, %121
  %126 = and i8 %18, %61
  %.not.3 = icmp eq i8 %126, 0
  %127 = sub nsw i32 0, %125
  %128 = select i1 %.not.3, i32 %125, i32 %127
  %129 = getelementptr inbounds i8, ptr %57, i64 3
  %130 = load i8, ptr %129, align 1, !tbaa !5
  %131 = zext i8 %130 to i32
  %132 = getelementptr inbounds i8, ptr %.06777, i64 7
  %133 = load i8, ptr %132, align 1, !tbaa !5
  %134 = sext i8 %133 to i32
  %135 = mul nsw i32 %134, %131
  %136 = and i8 %19, %61
  %.not70.3 = icmp eq i8 %136, 0
  %137 = sub nsw i32 0, %135
  %138 = select i1 %.not70.3, i32 %135, i32 %137
  %139 = getelementptr inbounds i8, ptr %.06777, i64 8
  %140 = getelementptr inbounds i8, ptr %.06480, i64 2
  %141 = load i8, ptr %140, align 1, !tbaa !5
  %142 = zext i8 %141 to i64
  %143 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %142
  %144 = getelementptr inbounds i8, ptr %.06480, i64 3
  %145 = load i8, ptr %144, align 1, !tbaa !5
  %146 = zext i8 %145 to i64
  %147 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %146
  %148 = lshr i32 %.0.copyload, 7
  %149 = and i32 %148, 127
  %150 = zext nneg i32 %149 to i64
  %151 = getelementptr inbounds [128 x i8], ptr @ksigns_iq2xs, i64 0, i64 %150
  %152 = load i8, ptr %151, align 1, !tbaa !5
  %153 = load <4 x i8>, ptr %143, align 4, !tbaa !5
  %154 = load <4 x i8>, ptr %147, align 4, !tbaa !5
  %155 = shufflevector <4 x i8> %153, <4 x i8> %154, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
  %156 = zext <8 x i8> %155 to <8 x i32>
  %157 = load <8 x i8>, ptr %139, align 1, !tbaa !5
  %158 = sext <8 x i8> %157 to <8 x i32>
  %159 = mul nsw <8 x i32> %158, %156
  %160 = insertelement <8 x i8> poison, i8 %152, i64 0
  %161 = shufflevector <8 x i8> %160, <8 x i8> poison, <8 x i32> zeroinitializer
  %162 = and <8 x i8> %20, %161
  %163 = icmp eq <8 x i8> %162, zeroinitializer
  %164 = sub nsw <8 x i32> zeroinitializer, %159
  %165 = select <8 x i1> %163, <8 x i32> %159, <8 x i32> %164
  %166 = getelementptr inbounds i8, ptr %.06777, i64 16
  %167 = getelementptr inbounds i8, ptr %.06480, i64 4
  %168 = load i8, ptr %167, align 1, !tbaa !5
  %169 = zext i8 %168 to i64
  %170 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %169
  %171 = getelementptr inbounds i8, ptr %.06480, i64 5
  %172 = load i8, ptr %171, align 1, !tbaa !5
  %173 = zext i8 %172 to i64
  %174 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %173
  %175 = lshr i32 %.0.copyload, 14
  %176 = and i32 %175, 127
  %177 = zext nneg i32 %176 to i64
  %178 = getelementptr inbounds [128 x i8], ptr @ksigns_iq2xs, i64 0, i64 %177
  %179 = load i8, ptr %178, align 1, !tbaa !5
  %180 = load <4 x i8>, ptr %170, align 4, !tbaa !5
  %181 = load <4 x i8>, ptr %174, align 4, !tbaa !5
  %182 = shufflevector <4 x i8> %180, <4 x i8> %181, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
  %183 = zext <8 x i8> %182 to <8 x i32>
  %184 = load <8 x i8>, ptr %166, align 1, !tbaa !5
  %185 = sext <8 x i8> %184 to <8 x i32>
  %186 = mul nsw <8 x i32> %185, %183
  %187 = insertelement <8 x i8> poison, i8 %179, i64 0
  %188 = shufflevector <8 x i8> %187, <8 x i8> poison, <8 x i32> zeroinitializer
  %189 = and <8 x i8> %20, %188
  %190 = icmp eq <8 x i8> %189, zeroinitializer
  %191 = sub nsw <8 x i32> zeroinitializer, %186
  %192 = select <8 x i1> %190, <8 x i32> %186, <8 x i32> %191
  %193 = getelementptr inbounds i8, ptr %.06777, i64 24
  %194 = getelementptr inbounds i8, ptr %.06480, i64 6
  %195 = load i8, ptr %194, align 1, !tbaa !5
  %196 = zext i8 %195 to i64
  %197 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %196
  %198 = getelementptr inbounds i8, ptr %.06480, i64 7
  %199 = load i8, ptr %198, align 1, !tbaa !5
  %200 = zext i8 %199 to i64
  %201 = getelementptr inbounds i32, ptr @iq3xxs_grid, i64 %200
  %202 = lshr i32 %.0.copyload, 21
  %203 = and i32 %202, 127
  %204 = zext nneg i32 %203 to i64
  %205 = getelementptr inbounds [128 x i8], ptr @ksigns_iq2xs, i64 0, i64 %204
  %206 = load i8, ptr %205, align 1, !tbaa !5
  %207 = load i8, ptr %197, align 4, !tbaa !5
  %208 = zext i8 %207 to i32
  %209 = load i8, ptr %193, align 1, !tbaa !5
  %210 = sext i8 %209 to i32
  %211 = mul nsw i32 %210, %208
  %212 = and i8 %21, %206
  %.not.392 = icmp eq i8 %212, 0
  %213 = sub nsw i32 0, %211
  %214 = select i1 %.not.392, i32 %211, i32 %213
  %215 = load i8, ptr %201, align 4, !tbaa !5
  %216 = zext i8 %215 to i32
  %217 = getelementptr inbounds i8, ptr %.06777, i64 28
  %218 = load i8, ptr %217, align 1, !tbaa !5
  %219 = sext i8 %218 to i32
  %220 = mul nsw i32 %219, %216
  %221 = and i8 %22, %206
  %.not70.393 = icmp eq i8 %221, 0
  %222 = sub nsw i32 0, %220
  %223 = select i1 %.not70.393, i32 %220, i32 %222
  %224 = getelementptr inbounds i8, ptr %197, i64 1
  %225 = load i8, ptr %224, align 1, !tbaa !5
  %226 = zext i8 %225 to i32
  %227 = getelementptr inbounds i8, ptr %.06777, i64 25
  %228 = load i8, ptr %227, align 1, !tbaa !5
  %229 = sext i8 %228 to i32
  %230 = mul nsw i32 %229, %226
  %231 = and i8 %23, %206
  %.not.1.3 = icmp eq i8 %231, 0
  %232 = sub nsw i32 0, %230
  %233 = select i1 %.not.1.3, i32 %230, i32 %232
  %234 = getelementptr inbounds i8, ptr %201, i64 1
  %235 = load i8, ptr %234, align 1, !tbaa !5
  %236 = zext i8 %235 to i32
  %237 = getelementptr inbounds i8, ptr %.06777, i64 29
  %238 = load i8, ptr %237, align 1, !tbaa !5
  %239 = sext i8 %238 to i32
  %240 = mul nsw i32 %239, %236
  %241 = and i8 %24, %206
  %.not70.1.3 = icmp eq i8 %241, 0
  %242 = sub nsw i32 0, %240
  %243 = select i1 %.not70.1.3, i32 %240, i32 %242
  %244 = getelementptr inbounds i8, ptr %197, i64 2
  %245 = load i8, ptr %244, align 2, !tbaa !5
  %246 = zext i8 %245 to i32
  %247 = getelementptr inbounds i8, ptr %.06777, i64 26
  %248 = load i8, ptr %247, align 1, !tbaa !5
  %249 = sext i8 %248 to i32
  %250 = mul nsw i32 %249, %246
  %251 = and i8 %25, %206
  %.not.2.3 = icmp eq i8 %251, 0
  %252 = sub nsw i32 0, %250
  %253 = select i1 %.not.2.3, i32 %250, i32 %252
  %254 = getelementptr inbounds i8, ptr %201, i64 2
  %255 = load i8, ptr %254, align 2, !tbaa !5
  %256 = zext i8 %255 to i32
  %257 = getelementptr inbounds i8, ptr %.06777, i64 30
  %258 = load i8, ptr %257, align 1, !tbaa !5
  %259 = sext i8 %258 to i32
  %260 = mul nsw i32 %259, %256
  %261 = and i8 %26, %206
  %.not70.2.3 = icmp eq i8 %261, 0
  %262 = sub nsw i32 0, %260
  %263 = select i1 %.not70.2.3, i32 %260, i32 %262
  %264 = getelementptr inbounds i8, ptr %197, i64 3
  %265 = load i8, ptr %264, align 1, !tbaa !5
  %266 = zext i8 %265 to i32
  %267 = getelementptr inbounds i8, ptr %.06777, i64 27
  %268 = load i8, ptr %267, align 1, !tbaa !5
  %269 = sext i8 %268 to i32
  %270 = mul nsw i32 %269, %266
  %271 = and i8 %27, %206
  %.not.3.3 = icmp eq i8 %271, 0
  %272 = sub nsw i32 0, %270
  %273 = select i1 %.not.3.3, i32 %270, i32 %272
  %274 = getelementptr inbounds i8, ptr %201, i64 3
  %275 = load i8, ptr %274, align 1, !tbaa !5
  %276 = zext i8 %275 to i32
  %277 = getelementptr inbounds i8, ptr %.06777, i64 31
  %278 = load i8, ptr %277, align 1, !tbaa !5
  %279 = sext i8 %278 to i32
  %280 = mul nsw i32 %279, %276
  %281 = and i8 %28, %206
  %.not70.3.3 = icmp eq i8 %281, 0
  %282 = sub nsw i32 0, %280
  %283 = select i1 %.not70.3.3, i32 %280, i32 %282
  %284 = tail call i32 @llvm.vector.reduce.add.v8i32(<8 x i32> %165)
  %285 = tail call i32 @llvm.vector.reduce.add.v8i32(<8 x i32> %192)
  %op.rdx = add i32 %284, %285
  %op.rdx112 = add i32 %op.rdx, %69
  %op.rdx113 = add nsw i32 %78, %88
  %op.rdx114 = add nsw i32 %98, %108
  %op.rdx115 = add nsw i32 %118, %128
  %op.rdx116 = add nsw i32 %138, %214
  %op.rdx117 = add nsw i32 %223, %233
  %op.rdx118 = add nsw i32 %243, %253
  %op.rdx119 = add nsw i32 %263, %273
  %op.rdx120 = add i32 %op.rdx112, %op.rdx113
  %op.rdx121 = add nsw i32 %op.rdx114, %op.rdx115
  %op.rdx122 = add nsw i32 %op.rdx116, %op.rdx117
  %op.rdx123 = add nsw i32 %op.rdx118, %op.rdx119
  %op.rdx124 = add i32 %op.rdx120, %op.rdx121
  %op.rdx125 = add nsw i32 %op.rdx122, %op.rdx123
  %op.rdx126 = add i32 %op.rdx124, %op.rdx125
  %op.rdx127 = add i32 %op.rdx126, %283
  %286 = getelementptr inbounds i8, ptr %.06976, i64 4
  %scevgep = getelementptr i8, ptr %.06777, i64 32
  %287 = getelementptr inbounds i8, ptr %.06480, i64 8
  %288 = mul nsw i32 %op.rdx127, %50
  %289 = add i32 %288, %.06678
  %290 = add nuw nsw i32 %.06579, 1
  %exitcond.not = icmp eq i32 %290, 8
  br i1 %exitcond.not, label %39, label %43, !llvm.loop !17
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v8i32(<8 x i32>) #4

attributes #0 = { noreturn 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn 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 = !{!9, !9, i64 0}
!9 = !{!"float", !6, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"", !12, i64 0, !6, i64 2}
!12 = !{!"short", !6, i64 0}
!13 = !{!14, !9, i64 0}
!14 = !{!"", !9, i64 0, !6, i64 4, !6, i64 260}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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