; LLVM IR from awawa-dev/HyperHDR :: sources/image/ColorRgb.ll (ZN8ColorRgb7rgb2hsvEhhhRtRhS1_)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8ColorRgb7rgb2hsvEhhhRtRhS1_(i8 noundef zeroext %0, i8 noundef zeroext %1, i8 noundef zeroext %2, ptr noundef nonnull align 2 dereferenceable(2) %3, ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull align 1 dereferenceable(1) %5) #1 align 2 {
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  store i8 %0, ptr %7, align 1, !tbaa !5
  store i8 %1, ptr %8, align 1, !tbaa !5
  store i8 %2, ptr %9, align 1, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !8
  store ptr %4, ptr %11, align 8, !tbaa !8
  store ptr %5, ptr %12, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %22 = load i8, ptr %7, align 1, !tbaa !5
  %23 = zext i8 %22 to i32
  %24 = sitofp i32 %23 to double
  %25 = fdiv double %24, 2.550000e+02
  %26 = fptrunc double %25 to float
  store float %26, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %27 = load i8, ptr %8, align 1, !tbaa !5
  %28 = zext i8 %27 to i32
  %29 = sitofp i32 %28 to double
  %30 = fdiv double %29, 2.550000e+02
  %31 = fptrunc double %30 to float
  store float %31, ptr %14, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %32 = load i8, ptr %9, align 1, !tbaa !5
  %33 = zext i8 %32 to i32
  %34 = sitofp i32 %33 to double
  %35 = fdiv double %34, 2.550000e+02
  %36 = fptrunc double %35 to float
  store float %36, ptr %15, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %38 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %39 = load float, ptr %38, align 4, !tbaa !10
  store float %39, ptr %16, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %42 = load float, ptr %41, align 4, !tbaa !10
  store float %42, ptr %17, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %43 = load float, ptr %16, align 4, !tbaa !10
  %44 = load float, ptr %17, align 4, !tbaa !10
  %45 = fsub float %43, %44
  store float %45, ptr %18, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %46 = load float, ptr %16, align 4, !tbaa !10
  %47 = fpext float %46 to double
  %48 = fmul double %47, 2.550000e+02
  %49 = call double @llvm.round.f64(double %48)
  %50 = fptosi double %49 to i32
  %51 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %50)
  %52 = load ptr, ptr %12, align 8, !tbaa !8
  store i8 %51, ptr %52, align 1, !tbaa !5
  %53 = load float, ptr %18, align 4, !tbaa !10
  %54 = call noundef float @_ZNSt14numeric_limitsIfE7epsilonEv() #5
  %55 = fcmp olt float %53, %54
  br i1 %55, label %56, label %59

56:                                               ; preds = %6
  %57 = load ptr, ptr %11, align 8, !tbaa !8
  store i8 0, ptr %57, align 1, !tbaa !5
  %58 = load ptr, ptr %10, align 8, !tbaa !8
  store i16 0, ptr %58, align 2, !tbaa !12
  store i32 1, ptr %21, align 4
  br label %138

59:                                               ; preds = %6
  %60 = load float, ptr %16, align 4, !tbaa !10
  %61 = call noundef float @_ZNSt14numeric_limitsIfE7epsilonEv() #5
  %62 = fcmp ogt float %60, %61
  br i1 %62, label %63, label %67

63:                                               ; preds = %59
  %64 = load float, ptr %18, align 4, !tbaa !10
  %65 = load float, ptr %16, align 4, !tbaa !10
  %66 = fdiv float %64, %65
  store float %66, ptr %20, align 4, !tbaa !10
  br label %70

67:                                               ; preds = %59
  %68 = load ptr, ptr %11, align 8, !tbaa !8
  store i8 0, ptr %68, align 1, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !8
  store i16 0, ptr %69, align 2, !tbaa !12
  store i32 1, ptr %21, align 4
  br label %138

70:                                               ; preds = %63
  %71 = load float, ptr %13, align 4, !tbaa !10
  %72 = load float, ptr %16, align 4, !tbaa !10
  %73 = fcmp oge float %71, %72
  br i1 %73, label %74, label %80

74:                                               ; preds = %70
  %75 = load float, ptr %14, align 4, !tbaa !10
  %76 = load float, ptr %15, align 4, !tbaa !10
  %77 = fsub float %75, %76
  %78 = load float, ptr %18, align 4, !tbaa !10
  %79 = fdiv float %77, %78
  store float %79, ptr %19, align 4, !tbaa !10
  br label %103

80:                                               ; preds = %70
  %81 = load float, ptr %14, align 4, !tbaa !10
  %82 = load float, ptr %16, align 4, !tbaa !10
  %83 = fcmp oge float %81, %82
  br i1 %83, label %84, label %93

84:                                               ; preds = %80
  %85 = load float, ptr %15, align 4, !tbaa !10
  %86 = load float, ptr %13, align 4, !tbaa !10
  %87 = fsub float %85, %86
  %88 = load float, ptr %18, align 4, !tbaa !10
  %89 = fdiv float %87, %88
  %90 = fpext float %89 to double
  %91 = fadd double 2.000000e+00, %90
  %92 = fptrunc double %91 to float
  store float %92, ptr %19, align 4, !tbaa !10
  br label %102

93:                                               ; preds = %80
  %94 = load float, ptr %13, align 4, !tbaa !10
  %95 = load float, ptr %14, align 4, !tbaa !10
  %96 = fsub float %94, %95
  %97 = load float, ptr %18, align 4, !tbaa !10
  %98 = fdiv float %96, %97
  %99 = fpext float %98 to double
  %100 = fadd double 4.000000e+00, %99
  %101 = fptrunc double %100 to float
  store float %101, ptr %19, align 4, !tbaa !10
  br label %102

102:                                              ; preds = %93, %84
  br label %103

103:                                              ; preds = %102, %74
  %104 = load float, ptr %19, align 4, !tbaa !10
  %105 = fpext float %104 to double
  %106 = fmul double %105, 6.000000e+01
  %107 = fptrunc double %106 to float
  store float %107, ptr %19, align 4, !tbaa !10
  br label %108

108:                                              ; preds = %112, %103
  %109 = load float, ptr %19, align 4, !tbaa !10
  %110 = fpext float %109 to double
  %111 = fcmp olt double %110, 0.000000e+00
  br i1 %111, label %112, label %117

112:                                              ; preds = %108
  %113 = load float, ptr %19, align 4, !tbaa !10
  %114 = fpext float %113 to double
  %115 = fadd double %114, 3.600000e+02
  %116 = fptrunc double %115 to float
  store float %116, ptr %19, align 4, !tbaa !10
  br label %108, !llvm.loop !14

117:                                              ; preds = %108
  br label %118

118:                                              ; preds = %122, %117
  %119 = load float, ptr %19, align 4, !tbaa !10
  %120 = fpext float %119 to double
  %121 = fcmp ogt double %120, 3.600000e+02
  br i1 %121, label %122, label %127

122:                                              ; preds = %118
  %123 = load float, ptr %19, align 4, !tbaa !10
  %124 = fpext float %123 to double
  %125 = fsub double %124, 3.600000e+02
  %126 = fptrunc double %125 to float
  store float %126, ptr %19, align 4, !tbaa !10
  br label %118, !llvm.loop !16

127:                                              ; preds = %118
  %128 = load float, ptr %19, align 4, !tbaa !10
  %129 = call noundef float @_ZSt5roundf(float noundef %128)
  %130 = fptoui float %129 to i16
  %131 = load ptr, ptr %10, align 8, !tbaa !8
  store i16 %130, ptr %131, align 2, !tbaa !12
  %132 = load float, ptr %20, align 4, !tbaa !10
  %133 = fmul float %132, 2.550000e+02
  %134 = call noundef float @_ZSt5roundf(float noundef %133)
  %135 = fptosi float %134 to i32
  %136 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %135)
  %137 = load ptr, ptr %11, align 8, !tbaa !8
  store i8 %136, ptr %137, align 1, !tbaa !5
  store i32 0, ptr %21, align 4
  br label %138

138:                                              ; preds = %127, %67, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %139 = load i32, ptr %21, align 4
  switch i32 %139, label %141 [
    i32 0, label %140
    i32 1, label %140
  ]

140:                                              ; preds = %138, %138
  ret void

141:                                              ; preds = %138
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNSt14numeric_limitsIfE7epsilonEv() #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5roundf(float noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !6, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN8ColorRgb7rgb2hsvEhhhRtRhS1_(i8 noundef zeroext %0, i8 noundef zeroext %1, i8 noundef zeroext %2, ptr nocapture noundef nonnull writeonly align 2 dereferenceable(2) %3, ptr nocapture noundef nonnull writeonly align 1 dereferenceable(1) %4, ptr nocapture noundef nonnull writeonly align 1 dereferenceable(1) %5) local_unnamed_addr #1 align 2 {
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %10 = uitofp i8 %0 to double
  %11 = fdiv double %10, 2.550000e+02
  %12 = fptrunc double %11 to float
  store float %12, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %13 = uitofp i8 %1 to double
  %14 = fdiv double %13, 2.550000e+02
  %15 = fptrunc double %14 to float
  store float %15, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %16 = uitofp i8 %2 to double
  %17 = fdiv double %16, 2.550000e+02
  %18 = fptrunc double %17 to float
  store float %18, ptr %9, align 4, !tbaa !5
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %21 = load float, ptr %20, align 4, !tbaa !5
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %24 = load float, ptr %23, align 4, !tbaa !5
  %25 = fsub float %21, %24
  %26 = fpext float %21 to double
  %27 = fmul double %26, 2.550000e+02
  %28 = call double @llvm.round.f64(double %27)
  %29 = fptosi double %28 to i32
  %30 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %29)
  store i8 %30, ptr %5, align 1, !tbaa !9
  %31 = call noundef float @_ZNSt14numeric_limitsIfE7epsilonEv() #4
  %32 = fcmp olt float %25, %31
  br i1 %32, label %33, label %34

33:                                               ; preds = %6
  store i8 0, ptr %4, align 1, !tbaa !9
  store i16 0, ptr %3, align 2, !tbaa !10
  br label %72

34:                                               ; preds = %6
  %35 = call noundef float @_ZNSt14numeric_limitsIfE7epsilonEv() #4
  %36 = fcmp ogt float %21, %35
  br i1 %36, label %37, label %42

37:                                               ; preds = %34
  %38 = fdiv float %25, %21
  %39 = load float, ptr %7, align 4, !tbaa !5
  %40 = fcmp ult float %39, %21
  %41 = load float, ptr %8, align 4, !tbaa !5
  br i1 %40, label %47, label %43

42:                                               ; preds = %34
  store i8 0, ptr %4, align 1, !tbaa !9
  store i16 0, ptr %3, align 2, !tbaa !10
  br label %72

43:                                               ; preds = %37
  %44 = load float, ptr %9, align 4, !tbaa !5
  %45 = fsub float %41, %44
  %46 = fdiv float %45, %25
  br label %58

47:                                               ; preds = %37
  %48 = fcmp ult float %41, %21
  br i1 %48, label %54, label %49

49:                                               ; preds = %47
  %50 = load float, ptr %9, align 4, !tbaa !5
  %51 = fsub float %50, %39
  %52 = fdiv float %51, %25
  %53 = fadd float %52, 2.000000e+00
  br label %58

54:                                               ; preds = %47
  %55 = fsub float %39, %41
  %56 = fdiv float %55, %25
  %57 = fadd float %56, 4.000000e+00
  br label %58

58:                                               ; preds = %49, %54, %43
  %.0 = phi float [ %46, %43 ], [ %53, %49 ], [ %57, %54 ]
  %59 = fmul float %.0, 6.000000e+01
  %60 = fcmp olt float %59, 0.000000e+00
  br i1 %60, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %58
  %.1.lcssa = phi float [ %59, %58 ], [ %62, %.lr.ph ]
  %61 = fcmp ogt float %.1.lcssa, 3.600000e+02
  br i1 %61, label %.lr.ph36, label %._crit_edge

.lr.ph:                                           ; preds = %58, %.lr.ph
  %.134 = phi float [ %62, %.lr.ph ], [ %59, %58 ]
  %62 = fadd float %.134, 3.600000e+02
  %63 = fcmp olt float %62, 0.000000e+00
  br i1 %63, label %.lr.ph, label %.preheader, !llvm.loop !12

.lr.ph36:                                         ; preds = %.preheader, %.lr.ph36
  %.235 = phi float [ %64, %.lr.ph36 ], [ %.1.lcssa, %.preheader ]
  %64 = fadd float %.235, -3.600000e+02
  %65 = fcmp ogt float %64, 3.600000e+02
  br i1 %65, label %.lr.ph36, label %._crit_edge, !llvm.loop !14

._crit_edge:                                      ; preds = %.lr.ph36, %.preheader
  %.2.lcssa = phi float [ %.1.lcssa, %.preheader ], [ %64, %.lr.ph36 ]
  %66 = call noundef float @_ZSt5roundf(float noundef %.2.lcssa)
  %67 = fptoui float %66 to i16
  store i16 %67, ptr %3, align 2, !tbaa !10
  %68 = fmul float %38, 2.550000e+02
  %69 = call noundef float @_ZSt5roundf(float noundef %68)
  %70 = fptosi float %69 to i32
  %71 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %70)
  store i8 %71, ptr %4, align 1, !tbaa !9
  br label %72

72:                                               ; preds = %._crit_edge, %42, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNSt14numeric_limitsIfE7epsilonEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5roundf(float noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


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