; LLVM IR from zeux/meshoptimizer :: src (vertexfilter)

; 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"

@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.meshopt_encodeFilterQuat = external hidden unnamed_addr constant [74 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 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 speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef, i32 noundef) #3

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

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

20:                                               ; preds = %5
  br label %23

21:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 924, ptr noundef @__PRETTY_FUNCTION__.meshopt_encodeFilterQuat) #6
  unreachable

22:                                               ; No predecessors!
  br label %23

23:                                               ; preds = %22, %20
  %24 = load i32, ptr %9, align 4, !tbaa !11
  %25 = icmp sge i32 %24, 4
  br i1 %25, label %26, label %29

26:                                               ; preds = %23
  %27 = load i32, ptr %9, align 4, !tbaa !11
  %28 = icmp sle i32 %27, 16
  br label %29

29:                                               ; preds = %26, %23
  %30 = phi i1 [ false, %23 ], [ %28, %26 ]
  br i1 %30, label %31, label %32

31:                                               ; preds = %29
  br label %34

32:                                               ; preds = %29
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 925, ptr noundef @__PRETTY_FUNCTION__.meshopt_encodeFilterQuat) #6
  unreachable

33:                                               ; No predecessors!
  br label %34

34:                                               ; preds = %33, %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %35, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %36 = call float @sqrtf(float noundef 2.000000e+00) #7
  store float %36, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %163, %34
  %38 = load i64, ptr %13, align 8, !tbaa !9
  %39 = load i64, ptr %7, align 8, !tbaa !9
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %166

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = load i64, ptr %13, align 8, !tbaa !9
  %45 = mul i64 %44, 4
  %46 = getelementptr inbounds float, ptr %43, i64 %45
  store ptr %46, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = mul i64 %48, 4
  %50 = getelementptr inbounds i16, ptr %47, i64 %49
  store ptr %50, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !11
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = getelementptr inbounds float, ptr %51, i64 1
  %53 = load float, ptr %52, align 4, !tbaa !13
  %54 = call float @llvm.fabs.f32(float %53)
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  %56 = load i32, ptr %16, align 4, !tbaa !11
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %55, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !13
  %60 = call float @llvm.fabs.f32(float %59)
  %61 = fcmp ogt float %54, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %42
  br label %65

63:                                               ; preds = %42
  %64 = load i32, ptr %16, align 4, !tbaa !11
  br label %65

65:                                               ; preds = %63, %62
  %66 = phi i32 [ 1, %62 ], [ %64, %63 ]
  store i32 %66, ptr %16, align 4, !tbaa !11
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = getelementptr inbounds float, ptr %67, i64 2
  %69 = load float, ptr %68, align 4, !tbaa !13
  %70 = call float @llvm.fabs.f32(float %69)
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = load i32, ptr %16, align 4, !tbaa !11
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %71, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !13
  %76 = call float @llvm.fabs.f32(float %75)
  %77 = fcmp ogt float %70, %76
  br i1 %77, label %78, label %79

78:                                               ; preds = %65
  br label %81

79:                                               ; preds = %65
  %80 = load i32, ptr %16, align 4, !tbaa !11
  br label %81

81:                                               ; preds = %79, %78
  %82 = phi i32 [ 2, %78 ], [ %80, %79 ]
  store i32 %82, ptr %16, align 4, !tbaa !11
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = getelementptr inbounds float, ptr %83, i64 3
  %85 = load float, ptr %84, align 4, !tbaa !13
  %86 = call float @llvm.fabs.f32(float %85)
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = load i32, ptr %16, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %87, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !13
  %92 = call float @llvm.fabs.f32(float %91)
  %93 = fcmp ogt float %86, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %81
  br label %97

95:                                               ; preds = %81
  %96 = load i32, ptr %16, align 4, !tbaa !11
  br label %97

97:                                               ; preds = %95, %94
  %98 = phi i32 [ 3, %94 ], [ %96, %95 ]
  store i32 %98, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = load i32, ptr %16, align 4, !tbaa !11
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds float, ptr %99, i64 %101
  %103 = load float, ptr %102, align 4, !tbaa !13
  %104 = fcmp olt float %103, 0.000000e+00
  %105 = zext i1 %104 to i64
  %106 = select i1 %104, float -1.000000e+00, float 1.000000e+00
  store float %106, ptr %17, align 4, !tbaa !13
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = load i32, ptr %16, align 4, !tbaa !11
  %109 = add nsw i32 %108, 1
  %110 = and i32 %109, 3
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds float, ptr %107, i64 %111
  %113 = load float, ptr %112, align 4, !tbaa !13
  %114 = load float, ptr %12, align 4, !tbaa !13
  %115 = fmul float %113, %114
  %116 = load float, ptr %17, align 4, !tbaa !13
  %117 = fmul float %115, %116
  %118 = load i32, ptr %9, align 4, !tbaa !11
  %119 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %117, i32 noundef %118)
  %120 = trunc i32 %119 to i16
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = getelementptr inbounds i16, ptr %121, i64 0
  store i16 %120, ptr %122, align 2, !tbaa !15
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = load i32, ptr %16, align 4, !tbaa !11
  %125 = add nsw i32 %124, 2
  %126 = and i32 %125, 3
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %123, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !13
  %130 = load float, ptr %12, align 4, !tbaa !13
  %131 = fmul float %129, %130
  %132 = load float, ptr %17, align 4, !tbaa !13
  %133 = fmul float %131, %132
  %134 = load i32, ptr %9, align 4, !tbaa !11
  %135 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %133, i32 noundef %134)
  %136 = trunc i32 %135 to i16
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = getelementptr inbounds i16, ptr %137, i64 1
  store i16 %136, ptr %138, align 2, !tbaa !15
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load i32, ptr %16, align 4, !tbaa !11
  %141 = add nsw i32 %140, 3
  %142 = and i32 %141, 3
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %139, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !13
  %146 = load float, ptr %12, align 4, !tbaa !13
  %147 = fmul float %145, %146
  %148 = load float, ptr %17, align 4, !tbaa !13
  %149 = fmul float %147, %148
  %150 = load i32, ptr %9, align 4, !tbaa !11
  %151 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %149, i32 noundef %150)
  %152 = trunc i32 %151 to i16
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds i16, ptr %153, i64 2
  store i16 %152, ptr %154, align 2, !tbaa !15
  %155 = load i32, ptr %9, align 4, !tbaa !11
  %156 = call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef 1.000000e+00, i32 noundef %155)
  %157 = and i32 %156, -4
  %158 = load i32, ptr %16, align 4, !tbaa !11
  %159 = or i32 %157, %158
  %160 = trunc i32 %159 to i16
  %161 = load ptr, ptr %15, align 8, !tbaa !5
  %162 = getelementptr inbounds i16, ptr %161, i64 3
  store i16 %160, ptr %162, align 2, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %163

163:                                              ; preds = %97
  %164 = load i64, ptr %13, align 8, !tbaa !9
  %165 = add i64 %164, 1
  store i64 %165, ptr %13, align 8, !tbaa !9
  br label %37, !llvm.loop !17

166:                                              ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void
}

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #5

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 nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint mustprogress 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 = { mustprogress 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 "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple 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 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; 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"

@.str.1 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@__PRETTY_FUNCTION__.meshopt_encodeFilterQuat = external hidden unnamed_addr constant [74 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [24 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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @meshopt_encodeFilterQuat(ptr nocapture noundef writeonly %0, i64 noundef %1, i64 noundef %2, i32 noundef %3, ptr nocapture noundef readonly %4) local_unnamed_addr #3 {
  %6 = icmp eq i64 %2, 8
  br i1 %6, label %8, label %7

7:                                                ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 924, ptr noundef nonnull @__PRETTY_FUNCTION__.meshopt_encodeFilterQuat) #5
  unreachable

8:                                                ; preds = %5
  %9 = add i32 %3, -4
  %10 = icmp ult i32 %9, 13
  br i1 %10, label %.preheader, label %11

.preheader:                                       ; preds = %8
  %.not = icmp eq i64 %1, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

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

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

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.046 = phi i64 [ %77, %.lr.ph ], [ 0, %.preheader ]
  %12 = shl i64 %.046, 2
  %13 = getelementptr inbounds float, ptr %4, i64 %12
  %14 = getelementptr inbounds i16, ptr %0, i64 %12
  %15 = load <2 x float>, ptr %13, align 4, !tbaa !5
  %16 = tail call <2 x float> @llvm.fabs.v2f32(<2 x float> %15)
  %17 = extractelement <2 x float> %16, i64 0
  %18 = extractelement <2 x float> %16, i64 1
  %19 = fcmp ogt float %18, %17
  %20 = zext i1 %19 to i32
  %21 = getelementptr inbounds i8, ptr %13, i64 8
  %22 = load float, ptr %21, align 4, !tbaa !5
  %23 = tail call float @llvm.fabs.f32(float %22)
  %24 = zext i1 %19 to i64
  %25 = getelementptr inbounds float, ptr %13, i64 %24
  %26 = load float, ptr %25, align 4, !tbaa !5
  %27 = tail call float @llvm.fabs.f32(float %26)
  %28 = fcmp ogt float %23, %27
  %29 = select i1 %28, i32 2, i32 %20
  %30 = getelementptr inbounds i8, ptr %13, i64 12
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = tail call float @llvm.fabs.f32(float %31)
  %33 = zext nneg i32 %29 to i64
  %34 = getelementptr inbounds float, ptr %13, i64 %33
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = tail call float @llvm.fabs.f32(float %35)
  %37 = fcmp ogt float %32, %36
  %38 = select i1 %37, i32 3, i32 %29
  %39 = zext nneg i32 %38 to i64
  %40 = getelementptr inbounds float, ptr %13, i64 %39
  %41 = load float, ptr %40, align 4, !tbaa !5
  %42 = fcmp olt float %41, 0.000000e+00
  %43 = select i1 %42, float -1.000000e+00, float 1.000000e+00
  %44 = add nuw nsw i32 %38, 1
  %45 = and i32 %44, 3
  %46 = zext nneg i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %13, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = fmul float %48, 0x3FF6A09E60000000
  %50 = fmul float %49, %43
  %51 = tail call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %50, i32 noundef %3)
  %52 = trunc i32 %51 to i16
  store i16 %52, ptr %14, align 2, !tbaa !9
  %53 = xor i32 %38, 2
  %54 = zext nneg i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %13, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = fmul float %56, 0x3FF6A09E60000000
  %58 = fmul float %43, %57
  %59 = tail call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %58, i32 noundef %3)
  %60 = trunc i32 %59 to i16
  %61 = getelementptr inbounds i8, ptr %14, i64 2
  store i16 %60, ptr %61, align 2, !tbaa !9
  %62 = add nuw nsw i32 %38, 3
  %63 = and i32 %62, 3
  %64 = zext nneg i32 %63 to i64
  %65 = getelementptr inbounds float, ptr %13, i64 %64
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = fmul float %66, 0x3FF6A09E60000000
  %68 = fmul float %43, %67
  %69 = tail call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef %68, i32 noundef %3)
  %70 = trunc i32 %69 to i16
  %71 = getelementptr inbounds i8, ptr %14, i64 4
  store i16 %70, ptr %71, align 2, !tbaa !9
  %72 = tail call noundef i32 @_Z21meshopt_quantizeSnormfi(float noundef 1.000000e+00, i32 noundef %3)
  %73 = and i32 %72, 65532
  %74 = or disjoint i32 %73, %38
  %75 = trunc nuw i32 %74 to i16
  %76 = getelementptr inbounds i8, ptr %14, i64 6
  store i16 %75, ptr %76, align 2, !tbaa !9
  %77 = add nuw i64 %.046, 1
  %exitcond.not = icmp eq i64 %77, %1
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fabs.v2f32(<2 x 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress 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 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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