; LLVM IR from kylechampley/XrayPhysics :: src/xsource.ll (ZN10xraySource14bremsstrahlungEv)

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

%class.xraySource = type { float, i32, float, ptr, i32, float, float, ptr }

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; 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
declare dso_local noundef float @_ZN10xraySource5gammaEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN10xraySource35PhilibertAbsorptionCorrectionFactorEff(ptr noundef nonnull align 8 dereferenceable(48), float noundef, float noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN10xraySource14bremsstrahlungEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  %14 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 1
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = icmp sle i32 %15, 45
  br i1 %16, label %17, label %24

17:                                               ; preds = %1
  %18 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = sitofp i32 %19 to float
  %21 = fpext float %20 to double
  %22 = call double @llvm.fmuladd.f64(double -2.857000e-03, double %21, double 2.986000e-01)
  %23 = fptrunc double %22 to float
  store float %23, ptr %3, align 4, !tbaa !13
  br label %31

24:                                               ; preds = %1
  %25 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 1
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = sitofp i32 %26 to float
  %28 = fpext float %27 to double
  %29 = call double @llvm.fmuladd.f64(double -6.900000e-04, double %28, double 2.010000e-01)
  %30 = fptrunc double %29 to float
  store float %30, ptr %3, align 4, !tbaa !13
  br label %31

31:                                               ; preds = %24, %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %32 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 0
  %33 = load float, ptr %32, align 8, !tbaa !14
  %34 = call noundef float @_ZN10xraySource9gamma_invEf(ptr noundef nonnull align 8 dereferenceable(48) %13, float noundef %33)
  %35 = fpext float %34 to double
  %36 = fadd double 5.000000e-01, %35
  %37 = fptosi double %36 to i32
  store i32 %37, ptr %4, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %38 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 0
  %39 = load float, ptr %38, align 8, !tbaa !14
  %40 = call noundef float @_ZN10xraySource5gammaEi(ptr noundef nonnull align 8 dereferenceable(48) %13, i32 noundef 0)
  %41 = fsub float %39, %40
  %42 = load i32, ptr %4, align 4, !tbaa !15
  %43 = sitofp i32 %42 to float
  %44 = fdiv float %41, %43
  store float %44, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %45 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 4
  %46 = load i32, ptr %45, align 8, !tbaa !16
  %47 = sext i32 %46 to i64
  %48 = mul i64 4, %47
  %49 = call noalias ptr @malloc(i64 noundef %48) #8
  store ptr %49, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !15
  br label %50

50:                                               ; preds = %129, %31
  %51 = load i32, ptr %7, align 4, !tbaa !15
  %52 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 4
  %53 = load i32, ptr %52, align 8, !tbaa !16
  %54 = icmp slt i32 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %132

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %57 = load i32, ptr %7, align 4, !tbaa !15
  %58 = call noundef float @_ZN10xraySource5gammaEi(ptr noundef nonnull align 8 dereferenceable(48) %13, i32 noundef %57)
  store float %58, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %59 = load float, ptr %8, align 4, !tbaa !13
  %60 = call noundef float @_ZN10xraySource35PhilibertAbsorptionCorrectionFactorEff(ptr noundef nonnull align 8 dereferenceable(48) %13, float noundef %59, float noundef 0.000000e+00)
  store float %60, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %61 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 0
  %62 = load float, ptr %61, align 8, !tbaa !14
  %63 = fpext float %62 to double
  %64 = load float, ptr %8, align 4, !tbaa !13
  %65 = fpext float %64 to double
  %66 = fmul double 2.000000e+00, %65
  %67 = fdiv double %63, %66
  %68 = load float, ptr %3, align 4, !tbaa !13
  %69 = call noundef double @_ZSt3powIdfEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %67, float noundef %68)
  %70 = fptrunc double %69 to float
  store float %70, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %71 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 0
  %72 = load float, ptr %71, align 8, !tbaa !14
  %73 = fpext float %72 to double
  %74 = load float, ptr %8, align 4, !tbaa !13
  %75 = fpext float %74 to double
  %76 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %73, double %75)
  %77 = fmul double 3.339700e+01, %76
  %78 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 1
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = sitofp i32 %79 to float
  %81 = fpext float %80 to double
  %82 = fdiv double %77, %81
  %83 = call double @log(double noundef %82) #7
  %84 = fptrunc double %83 to float
  store float %84, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %85 = load float, ptr %8, align 4, !tbaa !13
  %86 = call noundef float @_ZN10xraySource5RfuncEf(ptr noundef nonnull align 8 dereferenceable(48) %13, float noundef %85)
  store float %86, ptr %12, align 4, !tbaa !13
  %87 = load float, ptr %8, align 4, !tbaa !13
  %88 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 0
  %89 = load float, ptr %88, align 8, !tbaa !14
  %90 = fcmp ole float %87, %89
  br i1 %90, label %91, label %123

91:                                               ; preds = %56
  %92 = load float, ptr %5, align 4, !tbaa !13
  %93 = fpext float %92 to double
  %94 = fmul double %93, 5.471520e+09
  %95 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = sitofp i32 %96 to double
  %98 = fmul double %94, %97
  %99 = getelementptr inbounds %class.xraySource, ptr %13, i32 0, i32 0
  %100 = load float, ptr %99, align 8, !tbaa !14
  %101 = load float, ptr %8, align 4, !tbaa !13
  %102 = fdiv float %100, %101
  %103 = fpext float %102 to double
  %104 = fsub double %103, 1.000000e+00
  %105 = fmul double %98, %104
  %106 = load float, ptr %10, align 4, !tbaa !13
  %107 = fpext float %106 to double
  %108 = fmul double %105, %107
  %109 = load float, ptr %12, align 4, !tbaa !13
  %110 = fpext float %109 to double
  %111 = fmul double %108, %110
  %112 = load float, ptr %11, align 4, !tbaa !13
  %113 = fpext float %112 to double
  %114 = fdiv double %111, %113
  %115 = load float, ptr %9, align 4, !tbaa !13
  %116 = fpext float %115 to double
  %117 = fmul double %114, %116
  %118 = fptrunc double %117 to float
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = load i32, ptr %7, align 4, !tbaa !15
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds float, ptr %119, i64 %121
  store float %118, ptr %122, align 4, !tbaa !13
  br label %128

123:                                              ; preds = %56
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load i32, ptr %7, align 4, !tbaa !15
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds float, ptr %124, i64 %126
  store float 0.000000e+00, ptr %127, align 4, !tbaa !13
  br label %128

128:                                              ; preds = %123, %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %7, align 4, !tbaa !15
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %7, align 4, !tbaa !15
  br label %50, !llvm.loop !17

132:                                              ; preds = %55
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret ptr %133
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN10xraySource9gamma_invEf(ptr noundef nonnull align 8 dereferenceable(48), float noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdfEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, float noundef) #5

; Function Attrs: nounwind
declare double @log(double noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN10xraySource5RfuncEf(ptr noundef nonnull align 8 dereferenceable(48), float noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 = { 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 #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 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

!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, !12, i64 4}
!10 = !{!"_ZTS10xraySource", !11, i64 0, !12, i64 4, !11, i64 8, !6, i64 16, !12, i64 24, !11, i64 28, !11, i64 32, !6, i64 40}
!11 = !{!"float", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!10, !12, i64 24}
!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"

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN10xraySource5gammaEi(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN10xraySource35PhilibertAbsorptionCorrectionFactorEff(ptr noundef nonnull align 8 dereferenceable(48), float noundef, float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noalias noundef ptr @_ZN10xraySource14bremsstrahlungEv(ptr noundef nonnull align 8 dereferenceable(48) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 4
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = icmp slt i32 %3, 46
  br i1 %4, label %5, label %9

5:                                                ; preds = %1
  %6 = sitofp i32 %3 to float
  %7 = fpext float %6 to double
  %8 = tail call double @llvm.fmuladd.f64(double %7, double -2.857000e-03, double 2.986000e-01)
  br label %13

9:                                                ; preds = %1
  %10 = uitofp nneg i32 %3 to float
  %11 = fpext float %10 to double
  %12 = tail call double @llvm.fmuladd.f64(double %11, double -6.900000e-04, double 2.010000e-01)
  br label %13

13:                                               ; preds = %9, %5
  %.0.in = phi double [ %8, %5 ], [ %12, %9 ]
  %.0 = fptrunc double %.0.in to float
  %14 = load float, ptr %0, align 8, !tbaa !12
  %15 = tail call noundef float @_ZN10xraySource9gamma_invEf(ptr noundef nonnull align 8 dereferenceable(48) %0, float noundef %14)
  %16 = load float, ptr %0, align 8, !tbaa !12
  %17 = tail call noundef float @_ZN10xraySource5gammaEi(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef 0)
  %18 = getelementptr inbounds i8, ptr %0, i64 24
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = sext i32 %19 to i64
  %21 = shl nsw i64 %20, 2
  %22 = tail call noalias ptr @malloc(i64 noundef %21) #6
  %23 = icmp sgt i32 %19, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %13
  %24 = fsub float %16, %17
  %25 = fpext float %15 to double
  %26 = fadd double %25, 5.000000e-01
  %27 = fptosi double %26 to i32
  %28 = sitofp i32 %27 to float
  %29 = fdiv float %24, %28
  %30 = fpext float %29 to double
  %31 = fmul double %30, 5.471520e+09
  br label %32

._crit_edge:                                      ; preds = %73, %13
  ret ptr %22

32:                                               ; preds = %.lr.ph, %73
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %73 ]
  %33 = trunc nuw nsw i64 %indvars.iv to i32
  %34 = tail call noundef float @_ZN10xraySource5gammaEi(ptr noundef nonnull align 8 dereferenceable(48) %0, i32 noundef %33)
  %35 = tail call noundef float @_ZN10xraySource35PhilibertAbsorptionCorrectionFactorEff(ptr noundef nonnull align 8 dereferenceable(48) %0, float noundef %34, float noundef 0.000000e+00)
  %36 = load float, ptr %0, align 8, !tbaa !12
  %37 = fpext float %36 to double
  %38 = fpext float %34 to double
  %39 = fmul double %38, 2.000000e+00
  %40 = fdiv double %37, %39
  %41 = tail call noundef double @_ZSt3powIdfEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %40, float noundef %.0)
  %42 = load float, ptr %0, align 8, !tbaa !12
  %43 = fpext float %42 to double
  %44 = tail call double @llvm.fmuladd.f64(double %43, double 2.000000e+00, double %38)
  %45 = fmul double %44, 3.339700e+01
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sitofp i32 %46 to float
  %48 = fpext float %47 to double
  %49 = fdiv double %45, %48
  %50 = tail call double @log(double noundef %49) #7
  %51 = tail call noundef float @_ZN10xraySource5RfuncEf(ptr noundef nonnull align 8 dereferenceable(48) %0, float noundef %34)
  %52 = load float, ptr %0, align 8, !tbaa !12
  %53 = fcmp ugt float %34, %52
  br i1 %53, label %73, label %54

54:                                               ; preds = %32
  %55 = fptrunc double %50 to float
  %56 = fptrunc double %41 to float
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sitofp i32 %57 to double
  %59 = fmul double %31, %58
  %60 = fdiv float %52, %34
  %61 = fpext float %60 to double
  %62 = fadd double %61, -1.000000e+00
  %63 = fmul double %62, %59
  %64 = fpext float %56 to double
  %65 = fmul double %63, %64
  %66 = fpext float %51 to double
  %67 = fmul double %65, %66
  %68 = fpext float %55 to double
  %69 = fdiv double %67, %68
  %70 = fpext float %35 to double
  %71 = fmul double %69, %70
  %72 = fptrunc double %71 to float
  br label %73

73:                                               ; preds = %32, %54
  %.sink = phi float [ %72, %54 ], [ 0.000000e+00, %32 ]
  %74 = getelementptr inbounds float, ptr %22, i64 %indvars.iv
  store float %.sink, ptr %74, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %75 = load i32, ptr %18, align 8, !tbaa !13
  %76 = sext i32 %75 to i64
  %77 = icmp slt i64 %indvars.iv.next, %76
  br i1 %77, label %32, label %._crit_edge, !llvm.loop !14
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN10xraySource9gamma_invEf(ptr noundef nonnull align 8 dereferenceable(48), float noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdfEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN10xraySource5RfuncEf(ptr noundef nonnull align 8 dereferenceable(48), float noundef) local_unnamed_addr #1 align 2

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 = { 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 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nounwind allocsize(0) }
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, !10, i64 4}
!6 = !{!"_ZTS10xraySource", !7, i64 0, !10, i64 4, !7, i64 8, !11, i64 16, !10, i64 24, !7, i64 28, !7, i64 32, !11, i64 40}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !10, i64 24}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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