; LLVM IR from ggml-org/ggml :: src (ggml-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_0 = type { i16, [16 x i8] }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@__PRETTY_FUNCTION__.quantize_row_q4_0_ref = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @quantize_row_q4_0_ref(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %21 = load i64, ptr %6, align 8, !tbaa !9
  %22 = srem i64 %21, 32
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %3
  br label %26

25:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 34, ptr noundef @__PRETTY_FUNCTION__.quantize_row_q4_0_ref) #5
  unreachable

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %27 = load i64, ptr %6, align 8, !tbaa !9
  %28 = sdiv i64 %27, 32
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %30

30:                                               ; preds = %162, %26
  %31 = load i32, ptr %8, align 4, !tbaa !11
  %32 = load i32, ptr %7, align 4, !tbaa !11
  %33 = icmp slt i32 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %165

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 0.000000e+00, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store float 0.000000e+00, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %36

36:                                               ; preds = %58, %35
  %37 = load i32, ptr %12, align 4, !tbaa !11
  %38 = icmp slt i32 %37, 32
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %61

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load i32, ptr %8, align 4, !tbaa !11
  %43 = mul nsw i32 %42, 32
  %44 = load i32, ptr %12, align 4, !tbaa !11
  %45 = add nsw i32 %43, %44
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %41, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !13
  store float %48, ptr %13, align 4, !tbaa !13
  %49 = load float, ptr %10, align 4, !tbaa !13
  %50 = load float, ptr %13, align 4, !tbaa !13
  %51 = call float @llvm.fabs.f32(float %50)
  %52 = fcmp olt float %49, %51
  br i1 %52, label %53, label %57

53:                                               ; preds = %40
  %54 = load float, ptr %13, align 4, !tbaa !13
  %55 = call float @llvm.fabs.f32(float %54)
  store float %55, ptr %10, align 4, !tbaa !13
  %56 = load float, ptr %13, align 4, !tbaa !13
  store float %56, ptr %11, align 4, !tbaa !13
  br label %57

57:                                               ; preds = %53, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %58

58:                                               ; preds = %57
  %59 = load i32, ptr %12, align 4, !tbaa !11
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %12, align 4, !tbaa !11
  br label %36, !llvm.loop !15

61:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %62 = load float, ptr %11, align 4, !tbaa !13
  %63 = fdiv float %62, -8.000000e+00
  store float %63, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %64 = load float, ptr %14, align 4, !tbaa !13
  %65 = fcmp une float %64, 0.000000e+00
  br i1 %65, label %66, label %69

66:                                               ; preds = %61
  %67 = load float, ptr %14, align 4, !tbaa !13
  %68 = fdiv float 1.000000e+00, %67
  br label %70

69:                                               ; preds = %61
  br label %70

70:                                               ; preds = %69, %66
  %71 = phi float [ %68, %66 ], [ 0.000000e+00, %69 ]
  store float %71, ptr %15, align 4, !tbaa !13
  %72 = load float, ptr %14, align 4, !tbaa !13
  %73 = call zeroext i16 @ggml_compute_fp32_to_fp16(float noundef %72)
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = load i32, ptr %8, align 4, !tbaa !11
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.block_q4_0, ptr %74, i64 %76
  %78 = getelementptr inbounds %struct.block_q4_0, ptr %77, i32 0, i32 0
  store i16 %73, ptr %78, align 2, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %79

79:                                               ; preds = %158, %70
  %80 = load i32, ptr %16, align 4, !tbaa !11
  %81 = icmp slt i32 %80, 16
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %161

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !11
  %86 = mul nsw i32 %85, 32
  %87 = add nsw i32 %86, 0
  %88 = load i32, ptr %16, align 4, !tbaa !11
  %89 = add nsw i32 %87, %88
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds float, ptr %84, i64 %90
  %92 = load float, ptr %91, align 4, !tbaa !13
  %93 = load float, ptr %15, align 4, !tbaa !13
  %94 = fmul float %92, %93
  store float %94, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load i32, ptr %8, align 4, !tbaa !11
  %97 = mul nsw i32 %96, 32
  %98 = add nsw i32 %97, 16
  %99 = load i32, ptr %16, align 4, !tbaa !11
  %100 = add nsw i32 %98, %99
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds float, ptr %95, i64 %101
  %103 = load float, ptr %102, align 4, !tbaa !13
  %104 = load float, ptr %15, align 4, !tbaa !13
  %105 = fmul float %103, %104
  store float %105, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  %106 = load float, ptr %17, align 4, !tbaa !13
  %107 = fadd float %106, 8.500000e+00
  %108 = fptosi float %107 to i8
  %109 = sext i8 %108 to i32
  %110 = icmp slt i32 15, %109
  br i1 %110, label %111, label %112

111:                                              ; preds = %83
  br label %117

112:                                              ; preds = %83
  %113 = load float, ptr %17, align 4, !tbaa !13
  %114 = fadd float %113, 8.500000e+00
  %115 = fptosi float %114 to i8
  %116 = sext i8 %115 to i32
  br label %117

117:                                              ; preds = %112, %111
  %118 = phi i32 [ 15, %111 ], [ %116, %112 ]
  %119 = trunc i32 %118 to i8
  store i8 %119, ptr %19, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  %120 = load float, ptr %18, align 4, !tbaa !13
  %121 = fadd float %120, 8.500000e+00
  %122 = fptosi float %121 to i8
  %123 = sext i8 %122 to i32
  %124 = icmp slt i32 15, %123
  br i1 %124, label %125, label %126

125:                                              ; preds = %117
  br label %131

126:                                              ; preds = %117
  %127 = load float, ptr %18, align 4, !tbaa !13
  %128 = fadd float %127, 8.500000e+00
  %129 = fptosi float %128 to i8
  %130 = sext i8 %129 to i32
  br label %131

131:                                              ; preds = %126, %125
  %132 = phi i32 [ 15, %125 ], [ %130, %126 ]
  %133 = trunc i32 %132 to i8
  store i8 %133, ptr %20, align 1, !tbaa !20
  %134 = load i8, ptr %19, align 1, !tbaa !20
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = load i32, ptr %8, align 4, !tbaa !11
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds %struct.block_q4_0, ptr %135, i64 %137
  %139 = getelementptr inbounds %struct.block_q4_0, ptr %138, i32 0, i32 1
  %140 = load i32, ptr %16, align 4, !tbaa !11
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [16 x i8], ptr %139, i64 0, i64 %141
  store i8 %134, ptr %142, align 1, !tbaa !20
  %143 = load i8, ptr %20, align 1, !tbaa !20
  %144 = zext i8 %143 to i32
  %145 = shl i32 %144, 4
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = load i32, ptr %8, align 4, !tbaa !11
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds %struct.block_q4_0, ptr %146, i64 %148
  %150 = getelementptr inbounds %struct.block_q4_0, ptr %149, i32 0, i32 1
  %151 = load i32, ptr %16, align 4, !tbaa !11
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [16 x i8], ptr %150, i64 0, i64 %152
  %154 = load i8, ptr %153, align 1, !tbaa !20
  %155 = zext i8 %154 to i32
  %156 = or i32 %155, %145
  %157 = trunc i32 %156 to i8
  store i8 %157, ptr %153, align 1, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %158

158:                                              ; preds = %131
  %159 = load i32, ptr %16, align 4, !tbaa !11
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %16, align 4, !tbaa !11
  br label %79, !llvm.loop !21

161:                                              ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %8, align 4, !tbaa !11
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %8, align 4, !tbaa !11
  br label %30, !llvm.loop !22

165:                                              ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr 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 speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

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

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

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

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

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


; 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_0 = type { i16, [16 x i8] }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@__PRETTY_FUNCTION__.quantize_row_q4_0_ref = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @quantize_row_q4_0_ref(ptr noalias nocapture noundef readonly %0, ptr noalias nocapture noundef writeonly %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = and i64 %2, 31
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %7, label %6

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 34, ptr noundef nonnull @__PRETTY_FUNCTION__.quantize_row_q4_0_ref) #5
  unreachable

7:                                                ; preds = %3
  %8 = lshr exact i64 %2, 5
  %9 = trunc i64 %8 to i32
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.preheader.preheader, label %._crit_edge

.preheader.preheader:                             ; preds = %7
  %wide.trip.count = and i64 %8, 2147483647
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %vector.ph
  %indvars.iv57 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next58, %vector.ph ]
  %11 = shl nsw i64 %indvars.iv57, 5
  %invariant.gep = getelementptr inbounds float, ptr %0, i64 %11
  br label %77

._crit_edge:                                      ; preds = %vector.ph, %7
  ret void

vector.ph:                                        ; preds = %77
  %12 = fmul float %.143.1, -1.250000e-01
  %13 = tail call zeroext i16 @ggml_compute_fp32_to_fp16(float noundef %12)
  %14 = getelementptr inbounds %struct.block_q4_0, ptr %1, i64 %indvars.iv57
  store i16 %13, ptr %14, align 2, !tbaa !5
  %15 = fcmp une float %12, 0.000000e+00
  %16 = fdiv float 1.000000e+00, %12
  %17 = select i1 %15, float %16, float 0.000000e+00
  %broadcast.splatinsert = insertelement <4 x float> poison, float %17, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %18 = getelementptr inbounds i8, ptr %14, i64 2
  %19 = getelementptr inbounds float, ptr %0, i64 %11
  %wide.load = load <4 x float>, ptr %19, align 4, !tbaa !10
  %20 = fmul <4 x float> %broadcast.splat, %wide.load
  %21 = or disjoint i64 %11, 16
  %22 = getelementptr inbounds float, ptr %0, i64 %21
  %wide.load61 = load <4 x float>, ptr %22, align 4, !tbaa !10
  %23 = fmul <4 x float> %broadcast.splat, %wide.load61
  %24 = fadd <4 x float> %20, <float 8.500000e+00, float 8.500000e+00, float 8.500000e+00, float 8.500000e+00>
  %25 = fptosi <4 x float> %24 to <4 x i8>
  %26 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %25, <4 x i8> <i8 15, i8 15, i8 15, i8 15>)
  %27 = fadd <4 x float> %23, <float 8.500000e+00, float 8.500000e+00, float 8.500000e+00, float 8.500000e+00>
  %28 = fptosi <4 x float> %27 to <4 x i8>
  %29 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %28, <4 x i8> <i8 15, i8 15, i8 15, i8 15>)
  %30 = shl <4 x i8> %29, <i8 4, i8 4, i8 4, i8 4>
  %31 = or <4 x i8> %30, %26
  store <4 x i8> %31, ptr %18, align 1, !tbaa !12
  %32 = or disjoint i64 %11, 4
  %33 = getelementptr inbounds float, ptr %0, i64 %32
  %wide.load.1 = load <4 x float>, ptr %33, align 4, !tbaa !10
  %34 = fmul <4 x float> %broadcast.splat, %wide.load.1
  %35 = or disjoint i64 %11, 20
  %36 = getelementptr inbounds float, ptr %0, i64 %35
  %wide.load61.1 = load <4 x float>, ptr %36, align 4, !tbaa !10
  %37 = fmul <4 x float> %broadcast.splat, %wide.load61.1
  %38 = fadd <4 x float> %34, <float 8.500000e+00, float 8.500000e+00, float 8.500000e+00, float 8.500000e+00>
  %39 = fptosi <4 x float> %38 to <4 x i8>
  %40 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %39, <4 x i8> <i8 15, i8 15, i8 15, i8 15>)
  %41 = fadd <4 x float> %37, <float 8.500000e+00, float 8.500000e+00, float 8.500000e+00, float 8.500000e+00>
  %42 = fptosi <4 x float> %41 to <4 x i8>
  %43 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %42, <4 x i8> <i8 15, i8 15, i8 15, i8 15>)
  %44 = getelementptr inbounds i8, ptr %14, i64 6
  %45 = shl <4 x i8> %43, <i8 4, i8 4, i8 4, i8 4>
  %46 = or <4 x i8> %45, %40
  store <4 x i8> %46, ptr %44, align 1, !tbaa !12
  %47 = or disjoint i64 %11, 8
  %48 = getelementptr inbounds float, ptr %0, i64 %47
  %wide.load.2 = load <4 x float>, ptr %48, align 4, !tbaa !10
  %49 = fmul <4 x float> %broadcast.splat, %wide.load.2
  %50 = or disjoint i64 %11, 24
  %51 = getelementptr inbounds float, ptr %0, i64 %50
  %wide.load61.2 = load <4 x float>, ptr %51, align 4, !tbaa !10
  %52 = fmul <4 x float> %broadcast.splat, %wide.load61.2
  %53 = fadd <4 x float> %49, <float 8.500000e+00, float 8.500000e+00, float 8.500000e+00, float 8.500000e+00>
  %54 = fptosi <4 x float> %53 to <4 x i8>
  %55 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %54, <4 x i8> <i8 15, i8 15, i8 15, i8 15>)
  %56 = fadd <4 x float> %52, <float 8.500000e+00, float 8.500000e+00, float 8.500000e+00, float 8.500000e+00>
  %57 = fptosi <4 x float> %56 to <4 x i8>
  %58 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %57, <4 x i8> <i8 15, i8 15, i8 15, i8 15>)
  %59 = getelementptr inbounds i8, ptr %14, i64 10
  %60 = shl <4 x i8> %58, <i8 4, i8 4, i8 4, i8 4>
  %61 = or <4 x i8> %60, %55
  store <4 x i8> %61, ptr %59, align 1, !tbaa !12
  %62 = or disjoint i64 %11, 12
  %63 = getelementptr inbounds float, ptr %0, i64 %62
  %wide.load.3 = load <4 x float>, ptr %63, align 4, !tbaa !10
  %64 = fmul <4 x float> %broadcast.splat, %wide.load.3
  %65 = or disjoint i64 %11, 28
  %66 = getelementptr inbounds float, ptr %0, i64 %65
  %wide.load61.3 = load <4 x float>, ptr %66, align 4, !tbaa !10
  %67 = fmul <4 x float> %broadcast.splat, %wide.load61.3
  %68 = fadd <4 x float> %64, <float 8.500000e+00, float 8.500000e+00, float 8.500000e+00, float 8.500000e+00>
  %69 = fptosi <4 x float> %68 to <4 x i8>
  %70 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %69, <4 x i8> <i8 15, i8 15, i8 15, i8 15>)
  %71 = fadd <4 x float> %67, <float 8.500000e+00, float 8.500000e+00, float 8.500000e+00, float 8.500000e+00>
  %72 = fptosi <4 x float> %71 to <4 x i8>
  %73 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %72, <4 x i8> <i8 15, i8 15, i8 15, i8 15>)
  %74 = getelementptr inbounds i8, ptr %14, i64 14
  %75 = shl <4 x i8> %73, <i8 4, i8 4, i8 4, i8 4>
  %76 = or <4 x i8> %75, %70
  store <4 x i8> %76, ptr %74, align 1, !tbaa !12
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %exitcond60.not = icmp eq i64 %indvars.iv.next58, %wide.trip.count
  br i1 %exitcond60.not, label %._crit_edge, label %.preheader, !llvm.loop !13

77:                                               ; preds = %77, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next.1, %77 ]
  %.04149 = phi float [ 0.000000e+00, %.preheader ], [ %.1.1, %77 ]
  %.04248 = phi float [ 0.000000e+00, %.preheader ], [ %.143.1, %77 ]
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv
  %78 = load float, ptr %gep, align 4, !tbaa !10
  %79 = tail call float @llvm.fabs.f32(float %78)
  %80 = fcmp olt float %.04149, %79
  %.143 = select i1 %80, float %78, float %.04248
  %.1 = select i1 %80, float %79, float %.04149
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %gep.1 = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv.next
  %81 = load float, ptr %gep.1, align 4, !tbaa !10
  %82 = tail call float @llvm.fabs.f32(float %81)
  %83 = fcmp olt float %.1, %82
  %.143.1 = select i1 %83, float %81, float %.143
  %.1.1 = select i1 %83, float %82, float %.1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 32
  br i1 %exitcond.not.1, label %vector.ph, label %77, !llvm.loop !15
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i8> @llvm.smin.v4i8(<4 x i8>, <4 x i8>) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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, !7, i64 0}
!6 = !{!"", !7, i64 0, !8, i64 2}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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