; 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_q5_0 = type { i16, [4 x i8], [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__.dequantize_row_q5_0 = external hidden unnamed_addr constant [79 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: 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) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @dequantize_row_q5_0(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #4 {
  %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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  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
  %17 = load i64, ptr %6, align 8, !tbaa !9
  %18 = srem i64 %17, 32
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  br label %22

21:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 299, ptr noundef @__PRETTY_FUNCTION__.dequantize_row_q5_0) #5
  unreachable

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %23 = load i64, ptr %6, align 8, !tbaa !9
  %24 = sdiv i64 %23, 32
  %25 = trunc i64 %24 to i32
  store i32 %25, 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 %26

26:                                               ; preds = %121, %22
  %27 = load i32, ptr %8, align 4, !tbaa !11
  %28 = load i32, ptr %7, align 4, !tbaa !11
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

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

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load i32, ptr %8, align 4, !tbaa !11
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds %struct.block_q5_0, ptr %32, i64 %34
  %36 = getelementptr inbounds %struct.block_q5_0, ptr %35, i32 0, i32 0
  %37 = load i16, ptr %36, align 2, !tbaa !13
  %38 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %37)
  store float %38, ptr %10, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = load i32, ptr %8, align 4, !tbaa !11
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds %struct.block_q5_0, ptr %39, i64 %41
  %43 = getelementptr inbounds %struct.block_q5_0, ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds [4 x i8], ptr %43, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 2 %44, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %45

45:                                               ; preds = %117, %31
  %46 = load i32, ptr %12, align 4, !tbaa !11
  %47 = icmp slt i32 %46, 16
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %50 = load i32, ptr %11, align 4, !tbaa !11
  %51 = load i32, ptr %12, align 4, !tbaa !11
  %52 = add nsw i32 %51, 0
  %53 = lshr i32 %50, %52
  %54 = shl i32 %53, 4
  %55 = and i32 %54, 16
  %56 = trunc i32 %55 to i8
  store i8 %56, ptr %13, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %57 = load i32, ptr %11, align 4, !tbaa !11
  %58 = load i32, ptr %12, align 4, !tbaa !11
  %59 = add nsw i32 %58, 12
  %60 = lshr i32 %57, %59
  %61 = and i32 %60, 16
  %62 = trunc i32 %61 to i8
  store i8 %62, ptr %14, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load i32, ptr %8, align 4, !tbaa !11
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds %struct.block_q5_0, ptr %63, i64 %65
  %67 = getelementptr inbounds %struct.block_q5_0, ptr %66, i32 0, i32 2
  %68 = load i32, ptr %12, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [16 x i8], ptr %67, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !18
  %72 = zext i8 %71 to i32
  %73 = and i32 %72, 15
  %74 = load i8, ptr %13, align 1, !tbaa !18
  %75 = zext i8 %74 to i32
  %76 = or i32 %73, %75
  %77 = sub nsw i32 %76, 16
  store i32 %77, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = load i32, ptr %8, align 4, !tbaa !11
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds %struct.block_q5_0, ptr %78, i64 %80
  %82 = getelementptr inbounds %struct.block_q5_0, ptr %81, i32 0, i32 2
  %83 = load i32, ptr %12, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [16 x i8], ptr %82, i64 0, i64 %84
  %86 = load i8, ptr %85, align 1, !tbaa !18
  %87 = zext i8 %86 to i32
  %88 = ashr i32 %87, 4
  %89 = load i8, ptr %14, align 1, !tbaa !18
  %90 = zext i8 %89 to i32
  %91 = or i32 %88, %90
  %92 = sub nsw i32 %91, 16
  store i32 %92, ptr %16, align 4, !tbaa !11
  %93 = load i32, ptr %15, align 4, !tbaa !11
  %94 = sitofp i32 %93 to float
  %95 = load float, ptr %10, align 4, !tbaa !16
  %96 = fmul float %94, %95
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !11
  %99 = mul nsw i32 %98, 32
  %100 = load i32, ptr %12, align 4, !tbaa !11
  %101 = add nsw i32 %99, %100
  %102 = add nsw i32 %101, 0
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds float, ptr %97, i64 %103
  store float %96, ptr %104, align 4, !tbaa !16
  %105 = load i32, ptr %16, align 4, !tbaa !11
  %106 = sitofp i32 %105 to float
  %107 = load float, ptr %10, align 4, !tbaa !16
  %108 = fmul float %106, %107
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load i32, ptr %8, align 4, !tbaa !11
  %111 = mul nsw i32 %110, 32
  %112 = load i32, ptr %12, align 4, !tbaa !11
  %113 = add nsw i32 %111, %112
  %114 = add nsw i32 %113, 16
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds float, ptr %109, i64 %115
  store float %108, ptr %116, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  br label %117

117:                                              ; preds = %49
  %118 = load i32, ptr %12, align 4, !tbaa !11
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %12, align 4, !tbaa !11
  br label %45, !llvm.loop !19

120:                                              ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %8, align 4, !tbaa !11
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %8, align 4, !tbaa !11
  br label %26, !llvm.loop !21

124:                                              ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !15, i64 0}
!14 = !{!"", !15, i64 0, !7, i64 2, !7, i64 6}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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_q5_0 = type { i16, [4 x i8], [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__.dequantize_row_q5_0 = external hidden unnamed_addr constant [79 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: nounwind uwtable
define dso_local void @dequantize_row_q5_0(ptr noalias nocapture noundef readonly %0, ptr noalias nocapture noundef writeonly %1, i64 noundef %2) local_unnamed_addr #2 {
  %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 299, ptr noundef nonnull @__PRETTY_FUNCTION__.dequantize_row_q5_0) #3
  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 %.lr.ph.preheader, label %._crit_edge

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

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv36 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next37, %.lr.ph ]
  %11 = getelementptr inbounds %struct.block_q5_0, ptr %0, i64 %indvars.iv36
  %12 = load i16, ptr %11, align 2, !tbaa !5
  %13 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %12)
  %broadcast.splatinsert42 = insertelement <4 x float> poison, float %13, i64 0
  %broadcast.splat43 = shufflevector <4 x float> %broadcast.splatinsert42, <4 x float> poison, <4 x i32> zeroinitializer
  %14 = getelementptr inbounds i8, ptr %11, i64 2
  %.0.copyload = load i32, ptr %14, align 2
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.0.copyload, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %15 = shl i64 %indvars.iv36, 5
  %16 = and i64 %15, 4294967264
  %17 = getelementptr inbounds i8, ptr %11, i64 6
  %18 = lshr <4 x i32> %broadcast.splat, <i32 0, i32 1, i32 2, i32 3>
  %19 = shl <4 x i32> %18, <i32 4, i32 4, i32 4, i32 4>
  %20 = and <4 x i32> %19, <i32 16, i32 16, i32 16, i32 16>
  %21 = lshr <4 x i32> %broadcast.splat, <i32 12, i32 13, i32 14, i32 15>
  %22 = and <4 x i32> %21, <i32 16, i32 16, i32 16, i32 16>
  %wide.load = load <4 x i8>, ptr %17, align 1, !tbaa !10
  %23 = zext <4 x i8> %wide.load to <4 x i32>
  %24 = and <4 x i32> %23, <i32 15, i32 15, i32 15, i32 15>
  %25 = add nsw <4 x i32> %20, <i32 -16, i32 -16, i32 -16, i32 -16>
  %26 = or disjoint <4 x i32> %25, %24
  %27 = lshr <4 x i32> %23, <i32 4, i32 4, i32 4, i32 4>
  %28 = add nsw <4 x i32> %22, <i32 -16, i32 -16, i32 -16, i32 -16>
  %29 = or disjoint <4 x i32> %28, %27
  %30 = sitofp <4 x i32> %26 to <4 x float>
  %31 = fmul <4 x float> %broadcast.splat43, %30
  %32 = getelementptr inbounds float, ptr %1, i64 %16
  store <4 x float> %31, ptr %32, align 4, !tbaa !11
  %33 = sitofp <4 x i32> %29 to <4 x float>
  %34 = fmul <4 x float> %broadcast.splat43, %33
  %35 = or disjoint i64 %16, 16
  %36 = getelementptr inbounds float, ptr %1, i64 %35
  store <4 x float> %34, ptr %36, align 4, !tbaa !11
  %37 = lshr <4 x i32> %broadcast.splat, <i32 4, i32 5, i32 6, i32 7>
  %38 = shl nuw <4 x i32> %37, <i32 4, i32 4, i32 4, i32 4>
  %39 = and <4 x i32> %38, <i32 16, i32 16, i32 16, i32 16>
  %40 = lshr <4 x i32> %broadcast.splat, <i32 16, i32 17, i32 18, i32 19>
  %41 = and <4 x i32> %40, <i32 16, i32 16, i32 16, i32 16>
  %42 = getelementptr inbounds i8, ptr %11, i64 10
  %wide.load.1 = load <4 x i8>, ptr %42, align 1, !tbaa !10
  %43 = zext <4 x i8> %wide.load.1 to <4 x i32>
  %44 = and <4 x i32> %43, <i32 15, i32 15, i32 15, i32 15>
  %45 = add nsw <4 x i32> %39, <i32 -16, i32 -16, i32 -16, i32 -16>
  %46 = or disjoint <4 x i32> %45, %44
  %47 = lshr <4 x i32> %43, <i32 4, i32 4, i32 4, i32 4>
  %48 = add nsw <4 x i32> %41, <i32 -16, i32 -16, i32 -16, i32 -16>
  %49 = or disjoint <4 x i32> %48, %47
  %50 = sitofp <4 x i32> %46 to <4 x float>
  %51 = fmul <4 x float> %broadcast.splat43, %50
  %52 = or disjoint i64 %16, 4
  %53 = getelementptr inbounds float, ptr %1, i64 %52
  store <4 x float> %51, ptr %53, align 4, !tbaa !11
  %54 = sitofp <4 x i32> %49 to <4 x float>
  %55 = fmul <4 x float> %broadcast.splat43, %54
  %56 = or disjoint i64 %16, 20
  %57 = getelementptr inbounds float, ptr %1, i64 %56
  store <4 x float> %55, ptr %57, align 4, !tbaa !11
  %58 = lshr <4 x i32> %broadcast.splat, <i32 8, i32 9, i32 10, i32 11>
  %59 = shl nuw nsw <4 x i32> %58, <i32 4, i32 4, i32 4, i32 4>
  %60 = and <4 x i32> %59, <i32 16, i32 16, i32 16, i32 16>
  %61 = lshr <4 x i32> %broadcast.splat, <i32 20, i32 21, i32 22, i32 23>
  %62 = and <4 x i32> %61, <i32 16, i32 16, i32 16, i32 16>
  %63 = getelementptr inbounds i8, ptr %11, i64 14
  %wide.load.2 = load <4 x i8>, ptr %63, align 1, !tbaa !10
  %64 = zext <4 x i8> %wide.load.2 to <4 x i32>
  %65 = and <4 x i32> %64, <i32 15, i32 15, i32 15, i32 15>
  %66 = add nsw <4 x i32> %60, <i32 -16, i32 -16, i32 -16, i32 -16>
  %67 = or disjoint <4 x i32> %66, %65
  %68 = lshr <4 x i32> %64, <i32 4, i32 4, i32 4, i32 4>
  %69 = add nsw <4 x i32> %62, <i32 -16, i32 -16, i32 -16, i32 -16>
  %70 = or disjoint <4 x i32> %69, %68
  %71 = sitofp <4 x i32> %67 to <4 x float>
  %72 = fmul <4 x float> %broadcast.splat43, %71
  %73 = or disjoint i64 %16, 8
  %74 = getelementptr inbounds float, ptr %1, i64 %73
  store <4 x float> %72, ptr %74, align 4, !tbaa !11
  %75 = sitofp <4 x i32> %70 to <4 x float>
  %76 = fmul <4 x float> %broadcast.splat43, %75
  %77 = or disjoint i64 %16, 24
  %78 = getelementptr inbounds float, ptr %1, i64 %77
  store <4 x float> %76, ptr %78, align 4, !tbaa !11
  %79 = lshr <4 x i32> %broadcast.splat, <i32 12, i32 13, i32 14, i32 15>
  %80 = shl nuw nsw <4 x i32> %79, <i32 4, i32 4, i32 4, i32 4>
  %81 = and <4 x i32> %80, <i32 16, i32 16, i32 16, i32 16>
  %82 = lshr <4 x i32> %broadcast.splat, <i32 24, i32 25, i32 26, i32 27>
  %83 = and <4 x i32> %82, <i32 16, i32 16, i32 16, i32 16>
  %84 = getelementptr inbounds i8, ptr %11, i64 18
  %wide.load.3 = load <4 x i8>, ptr %84, align 1, !tbaa !10
  %85 = zext <4 x i8> %wide.load.3 to <4 x i32>
  %86 = and <4 x i32> %85, <i32 15, i32 15, i32 15, i32 15>
  %87 = add nsw <4 x i32> %81, <i32 -16, i32 -16, i32 -16, i32 -16>
  %88 = or disjoint <4 x i32> %87, %86
  %89 = lshr <4 x i32> %85, <i32 4, i32 4, i32 4, i32 4>
  %90 = add nsw <4 x i32> %83, <i32 -16, i32 -16, i32 -16, i32 -16>
  %91 = or disjoint <4 x i32> %90, %89
  %92 = sitofp <4 x i32> %88 to <4 x float>
  %93 = fmul <4 x float> %broadcast.splat43, %92
  %94 = or disjoint i64 %16, 12
  %95 = getelementptr inbounds float, ptr %1, i64 %94
  store <4 x float> %93, ptr %95, align 4, !tbaa !11
  %96 = sitofp <4 x i32> %91 to <4 x float>
  %97 = fmul <4 x float> %broadcast.splat43, %96
  %98 = or disjoint i64 %16, 28
  %99 = getelementptr inbounds float, ptr %1, i64 %98
  store <4 x float> %97, ptr %99, align 4, !tbaa !11
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %exitcond39.not = icmp eq i64 %indvars.iv.next37, %wide.trip.count
  br i1 %exitcond39.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13
}

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 = { 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 = { 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, !8, i64 6}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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