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

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_q4_0_q8_0 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 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: nounwind uwtable
define dso_local void @ggml_vec_dot_q4_0_q8_0(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) #2 {
  %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 1916, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_q4_0_q8_0) #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 1920, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_q4_0_q8_0) #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 = %137, %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 %140

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 = %111, %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 %114

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_0, ptr %58, i64 %60
  %62 = getelementptr inbounds %struct.block_q4_0, 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
  %69 = sub nsw i32 %68, 8
  store i32 %69, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %70 = load ptr, ptr %19, align 8, !tbaa !9
  %71 = load i32, ptr %21, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds %struct.block_q4_0, ptr %70, i64 %72
  %74 = getelementptr inbounds %struct.block_q4_0, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %25, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [16 x i8], ptr %74, i64 0, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !15
  %79 = zext i8 %78 to i32
  %80 = ashr i32 %79, 4
  %81 = sub nsw i32 %80, 8
  store i32 %81, ptr %27, align 4, !tbaa !5
  %82 = load i32, ptr %26, align 4, !tbaa !5
  %83 = load ptr, ptr %20, align 8, !tbaa !9
  %84 = load i32, ptr %21, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds %struct.block_q8_0, ptr %83, i64 %85
  %87 = getelementptr inbounds %struct.block_q8_0, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %25, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [32 x i8], ptr %87, i64 0, i64 %89
  %91 = load i8, ptr %90, align 1, !tbaa !15
  %92 = sext i8 %91 to i32
  %93 = mul nsw i32 %82, %92
  %94 = load i32, ptr %23, align 4, !tbaa !5
  %95 = add nsw i32 %94, %93
  store i32 %95, ptr %23, align 4, !tbaa !5
  %96 = load i32, ptr %27, align 4, !tbaa !5
  %97 = load ptr, ptr %20, align 8, !tbaa !9
  %98 = load i32, ptr %21, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %struct.block_q8_0, ptr %97, i64 %99
  %101 = getelementptr inbounds %struct.block_q8_0, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %25, align 4, !tbaa !5
  %103 = add nsw i32 %102, 16
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [32 x i8], ptr %101, i64 0, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !15
  %107 = sext i8 %106 to i32
  %108 = mul nsw i32 %96, %107
  %109 = load i32, ptr %24, align 4, !tbaa !5
  %110 = add nsw i32 %109, %108
  store i32 %110, 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 %111

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

114:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %115 = load i32, ptr %23, align 4, !tbaa !5
  %116 = load i32, ptr %24, align 4, !tbaa !5
  %117 = add nsw i32 %115, %116
  store i32 %117, ptr %28, align 4, !tbaa !5
  %118 = load i32, ptr %28, align 4, !tbaa !5
  %119 = sitofp i32 %118 to float
  %120 = load ptr, ptr %19, align 8, !tbaa !9
  %121 = load i32, ptr %21, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %struct.block_q4_0, ptr %120, i64 %122
  %124 = getelementptr inbounds %struct.block_q4_0, ptr %123, i32 0, i32 0
  %125 = load i16, ptr %124, align 2, !tbaa !18
  %126 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %125)
  %127 = fmul float %119, %126
  %128 = load ptr, ptr %20, align 8, !tbaa !9
  %129 = load i32, ptr %21, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds %struct.block_q8_0, ptr %128, i64 %130
  %132 = getelementptr inbounds %struct.block_q8_0, ptr %131, i32 0, i32 0
  %133 = load i16, ptr %132, align 2, !tbaa !18
  %134 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %133)
  %135 = load float, ptr %22, align 4, !tbaa !13
  %136 = call float @llvm.fmuladd.f32(float %127, float %134, float %135)
  store float %136, 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 %137

137:                                              ; preds = %114
  %138 = load i32, ptr %21, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %21, align 4, !tbaa !5
  br label %48, !llvm.loop !21

140:                                              ; preds = %48
  %141 = load float, ptr %22, align 4, !tbaa !13
  %142 = load ptr, ptr %10, align 8, !tbaa !9
  store float %141, ptr %142, 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
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 = { 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 = !{!19, !20, i64 0}
!19 = !{!"", !20, i64 0, !7, i64 2}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !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_0 = type { i16, [16 x i8] }
%struct.block_q8_0 = type { i16, [32 x i8] }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_q4_0_q8_0 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 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: nounwind uwtable
define dso_local void @ggml_vec_dot_q4_0_q8_0(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 #1 {
  %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 1916, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_q4_0_q8_0) #5
  unreachable

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

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

.preheader.preheader:                             ; preds = %.preheader43
  %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 1920, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_q4_0_q8_0) #5
  unreachable

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %.preheader ]
  %.03947 = phi float [ 0.000000e+00, %.preheader.preheader ], [ %39, %.preheader ]
  %17 = getelementptr inbounds %struct.block_q4_0, ptr %3, i64 %indvars.iv, i32 1, i64 0
  %18 = getelementptr inbounds %struct.block_q8_0, 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 = add nsw <32 x i16> %24, <i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8, i16 -8>
  %26 = load <32 x i8>, ptr %18, align 1, !tbaa !5
  %27 = sext <32 x i8> %26 to <32 x i16>
  %28 = mul nsw <32 x i16> %25, %27
  %29 = sext <32 x i16> %28 to <32 x i32>
  %30 = tail call i32 @llvm.vector.reduce.add.v32i32(<32 x i32> %29)
  %31 = sitofp i32 %30 to float
  %32 = getelementptr inbounds %struct.block_q4_0, ptr %3, i64 %indvars.iv
  %33 = load i16, ptr %32, align 2, !tbaa !8
  %34 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %33)
  %35 = fmul float %34, %31
  %36 = getelementptr inbounds %struct.block_q8_0, ptr %5, i64 %indvars.iv
  %37 = load i16, ptr %36, align 2, !tbaa !8
  %38 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %37)
  %39 = tail call float @llvm.fmuladd.f32(float %35, float %38, float %.03947)
  %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 !11

._crit_edge:                                      ; preds = %.preheader, %.preheader43
  %.039.lcssa = phi float [ 0.000000e+00, %.preheader43 ], [ %39, %.preheader ]
  store float %.039.lcssa, ptr %1, align 4, !tbaa !13
  ret void
}

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

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

; 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 = { 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 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 0}
!9 = !{!"", !10, i64 0, !6, i64 2}
!10 = !{!"short", !6, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"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