; 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_q4_1 = type { %union.anon, [16 x i8] }
%union.anon = type { i32 }
%struct.block_q8_1 = type { %union.anon.0, [32 x i8] }
%union.anon.0 = type { i32 }
%struct.anon = type { i16, i16 }
%struct.anon.1 = type { i16, i16 }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_q4_1_q8_1 = external hidden unnamed_addr constant [123 x i8], align 1

; 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: nounwind uwtable
define dso_local void @ggml_vec_dot_q4_1_q8_1(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) #4 {
  %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 i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 32, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = sdiv i32 %29, 32
  store i32 %30, ptr %18, align 4, !tbaa !5
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = srem i32 %31, 32
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %8
  br label %36

35:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 2614, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_q4_1_q8_1) #6
  unreachable

36:                                               ; preds = %34
  %37 = load i32, ptr %16, align 4, !tbaa !5
  %38 = icmp eq i32 %37, 1
  br i1 %38, label %39, label %40

39:                                               ; preds = %36
  br label %41

40:                                               ; preds = %36
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 2618, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_q4_1_q8_1) #6
  unreachable

41:                                               ; preds = %39
  %42 = load i32, ptr %16, align 4, !tbaa !5
  %43 = load i64, ptr %13, align 8, !tbaa !11
  %44 = load i64, ptr %15, align 8, !tbaa !11
  %45 = load i64, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %46 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %46, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %47 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %47, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store float 0.000000e+00, ptr %22, align 4, !tbaa !13
  br label %48

48:                                               ; preds = %155, %41
  %49 = load i32, ptr %21, align 4, !tbaa !5
  %50 = load i32, ptr %18, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %158

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %109, %52
  %54 = load i32, ptr %25, align 4, !tbaa !5
  %55 = icmp slt i32 %54, 16
  br i1 %55, label %57, label %56

56:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %112

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %58 = load ptr, ptr %19, align 8, !tbaa !9
  %59 = load i32, ptr %21, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds %struct.block_q4_1, ptr %58, i64 %60
  %62 = getelementptr inbounds %struct.block_q4_1, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %25, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [16 x i8], ptr %62, i64 0, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !15
  %67 = zext i8 %66 to i32
  %68 = and i32 %67, 15
  store i32 %68, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %69 = load ptr, ptr %19, align 8, !tbaa !9
  %70 = load i32, ptr %21, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %struct.block_q4_1, ptr %69, i64 %71
  %73 = getelementptr inbounds %struct.block_q4_1, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %25, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [16 x i8], ptr %73, i64 0, i64 %75
  %77 = load i8, ptr %76, align 1, !tbaa !15
  %78 = zext i8 %77 to i32
  %79 = ashr i32 %78, 4
  store i32 %79, ptr %27, align 4, !tbaa !5
  %80 = load i32, ptr %26, align 4, !tbaa !5
  %81 = load ptr, ptr %20, align 8, !tbaa !9
  %82 = load i32, ptr %21, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds %struct.block_q8_1, ptr %81, i64 %83
  %85 = getelementptr inbounds %struct.block_q8_1, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %25, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [32 x i8], ptr %85, i64 0, i64 %87
  %89 = load i8, ptr %88, align 1, !tbaa !15
  %90 = sext i8 %89 to i32
  %91 = mul nsw i32 %80, %90
  %92 = load i32, ptr %23, align 4, !tbaa !5
  %93 = add nsw i32 %92, %91
  store i32 %93, ptr %23, align 4, !tbaa !5
  %94 = load i32, ptr %27, align 4, !tbaa !5
  %95 = load ptr, ptr %20, align 8, !tbaa !9
  %96 = load i32, ptr %21, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %struct.block_q8_1, ptr %95, i64 %97
  %99 = getelementptr inbounds %struct.block_q8_1, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %25, align 4, !tbaa !5
  %101 = add nsw i32 %100, 16
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [32 x i8], ptr %99, i64 0, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !15
  %105 = sext i8 %104 to i32
  %106 = mul nsw i32 %94, %105
  %107 = load i32, ptr %24, align 4, !tbaa !5
  %108 = add nsw i32 %107, %106
  store i32 %108, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %109

109:                                              ; preds = %57
  %110 = load i32, ptr %25, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %25, align 4, !tbaa !5
  br label %53, !llvm.loop !16

112:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %113 = load i32, ptr %23, align 4, !tbaa !5
  %114 = load i32, ptr %24, align 4, !tbaa !5
  %115 = add nsw i32 %113, %114
  store i32 %115, ptr %28, align 4, !tbaa !5
  %116 = load ptr, ptr %19, align 8, !tbaa !9
  %117 = load i32, ptr %21, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds %struct.block_q4_1, ptr %116, i64 %118
  %120 = getelementptr inbounds %struct.block_q4_1, ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds %struct.anon, ptr %120, i32 0, i32 0
  %122 = load i16, ptr %121, align 4, !tbaa !15
  %123 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %122)
  %124 = load ptr, ptr %20, align 8, !tbaa !9
  %125 = load i32, ptr %21, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds %struct.block_q8_1, ptr %124, i64 %126
  %128 = getelementptr inbounds %struct.block_q8_1, ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %struct.anon.1, ptr %128, i32 0, i32 0
  %130 = load i16, ptr %129, align 4, !tbaa !15
  %131 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %130)
  %132 = fmul float %123, %131
  %133 = load i32, ptr %28, align 4, !tbaa !5
  %134 = sitofp i32 %133 to float
  %135 = load ptr, ptr %19, align 8, !tbaa !9
  %136 = load i32, ptr %21, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.block_q4_1, ptr %135, i64 %137
  %139 = getelementptr inbounds %struct.block_q4_1, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds %struct.anon, ptr %139, i32 0, i32 1
  %141 = load i16, ptr %140, align 2, !tbaa !15
  %142 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %141)
  %143 = load ptr, ptr %20, align 8, !tbaa !9
  %144 = load i32, ptr %21, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds %struct.block_q8_1, ptr %143, i64 %145
  %147 = getelementptr inbounds %struct.block_q8_1, ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds %struct.anon.1, ptr %147, i32 0, i32 1
  %149 = load i16, ptr %148, align 2, !tbaa !15
  %150 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %149)
  %151 = fmul float %142, %150
  %152 = call float @llvm.fmuladd.f32(float %132, float %134, float %151)
  %153 = load float, ptr %22, align 4, !tbaa !13
  %154 = fadd float %153, %152
  store float %154, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %155

155:                                              ; preds = %112
  %156 = load i32, ptr %21, align 4, !tbaa !5
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %21, align 4, !tbaa !5
  br label %48, !llvm.loop !18

158:                                              ; preds = %48
  %159 = load float, ptr %22, align 4, !tbaa !13
  %160 = load ptr, ptr %10, align 8, !tbaa !9
  store float %159, ptr %160, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  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 = { 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 = { nounwind }
attributes #6 = { 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 = !{!"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 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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_q4_1 = type { %union.anon, [16 x i8] }
%union.anon = type { i32 }
%struct.block_q8_1 = type { %union.anon.0, [32 x i8] }
%union.anon.0 = type { i32 }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_q4_1_q8_1 = external hidden unnamed_addr constant [123 x i8], align 1

; 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_q4_1_q8_1(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 = sdiv i32 %0, 32
  %10 = and i32 %0, 31
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %13, label %12

12:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 2614, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_q4_1_q8_1) #5
  unreachable

13:                                               ; preds = %8
  %14 = icmp eq i32 %7, 1
  br i1 %14, label %.preheader47, label %16

.preheader47:                                     ; preds = %13
  %15 = icmp sgt i32 %0, 31
  br i1 %15, label %.preheader.preheader, label %._crit_edge

.preheader.preheader:                             ; preds = %.preheader47
  %wide.trip.count = zext nneg i32 %9 to i64
  br label %.preheader

16:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 2618, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_q4_1_q8_1) #5
  unreachable

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %.preheader ]
  %.04351 = phi float [ 0.000000e+00, %.preheader.preheader ], [ %46, %.preheader ]
  %17 = getelementptr inbounds %struct.block_q4_1, ptr %3, i64 %indvars.iv, i32 1, i64 0
  %18 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv, i32 1, i64 0
  %19 = load <16 x i8>, ptr %17, align 1, !tbaa !5
  %20 = zext <16 x i8> %19 to <16 x i16>
  %21 = shufflevector <16 x i16> %20, <16 x i16> poison, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>
  %22 = and <32 x i16> %21, <i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison, i16 poison>
  %23 = lshr <32 x i16> %21, <i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 15, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4, i16 4>
  %24 = shufflevector <32 x i16> %22, <32 x i16> %23, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
  %25 = load <32 x i8>, ptr %18, align 1, !tbaa !5
  %26 = sext <32 x i8> %25 to <32 x i16>
  %27 = mul nsw <32 x i16> %24, %26
  %28 = sext <32 x i16> %27 to <32 x i32>
  %29 = tail call i32 @llvm.vector.reduce.add.v32i32(<32 x i32> %28)
  %30 = getelementptr inbounds %struct.block_q4_1, ptr %3, i64 %indvars.iv
  %31 = load i16, ptr %30, align 4, !tbaa !5
  %32 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %31)
  %33 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv
  %34 = load i16, ptr %33, align 4, !tbaa !5
  %35 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %34)
  %36 = fmul float %32, %35
  %37 = sitofp i32 %29 to float
  %38 = getelementptr inbounds i8, ptr %30, i64 2
  %39 = load i16, ptr %38, align 2, !tbaa !5
  %40 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %39)
  %41 = getelementptr inbounds i8, ptr %33, i64 2
  %42 = load i16, ptr %41, align 2, !tbaa !5
  %43 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %42)
  %44 = fmul float %40, %43
  %45 = tail call float @llvm.fmuladd.f32(float %36, float %37, float %44)
  %46 = fadd float %.04351, %45
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.preheader, !llvm.loop !8

._crit_edge:                                      ; preds = %.preheader, %.preheader47
  %.043.lcssa = phi float [ 0.000000e+00, %.preheader47 ], [ %46, %.preheader ]
  store float %.043.lcssa, ptr %1, align 4, !tbaa !10
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v32i32(<32 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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !6, i64 0}


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