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

; 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
define dso_local noundef float @_ZN10xraySource5muEffEf(ptr noundef nonnull align 8 dereferenceable(48) %0, float noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  %15 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %16 = getelementptr inbounds %class.xraySource, ptr %15, i32 0, i32 0
  %17 = load float, ptr %16, align 8, !tbaa !11
  store float %17, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %18 = load float, ptr %5, align 4, !tbaa !9
  %19 = load float, ptr %4, align 4, !tbaa !9
  %20 = fsub float %18, %19
  %21 = fpext float %20 to double
  %22 = fdiv double %21, 2.400000e+01
  %23 = fptrunc double %22 to float
  store float %23, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %24 = load float, ptr %5, align 4, !tbaa !9
  %25 = load float, ptr %4, align 4, !tbaa !9
  %26 = fsub float %24, %25
  %27 = load float, ptr %6, align 4, !tbaa !9
  %28 = fdiv float %26, %27
  %29 = call noundef float @_ZSt4ceilf(float noundef %28)
  %30 = fptosi float %29 to i32
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %32 = load i32, ptr %7, align 4, !tbaa !14
  %33 = sext i32 %32 to i64
  %34 = mul i64 4, %33
  %35 = call noalias ptr @malloc(i64 noundef %34) #7
  store ptr %35, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %36 = load i32, ptr %7, align 4, !tbaa !14
  %37 = sext i32 %36 to i64
  %38 = mul i64 4, %37
  %39 = call noalias ptr @malloc(i64 noundef %38) #7
  store ptr %39, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store float 0.000000e+00, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !14
  br label %40

40:                                               ; preds = %76, %2
  %41 = load i32, ptr %11, align 4, !tbaa !14
  %42 = load i32, ptr %7, align 4, !tbaa !14
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %79

45:                                               ; preds = %40
  %46 = load float, ptr %4, align 4, !tbaa !9
  %47 = load float, ptr %6, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !14
  %49 = sitofp i32 %48 to float
  %50 = call float @llvm.fmuladd.f32(float %47, float %49, float %46)
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = load i32, ptr %11, align 4, !tbaa !14
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds float, ptr %51, i64 %53
  store float %50, ptr %54, align 4, !tbaa !9
  %55 = load float, ptr %5, align 4, !tbaa !9
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = load i32, ptr %11, align 4, !tbaa !14
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %56, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fdiv float %55, %60
  %62 = fpext float %61 to double
  %63 = fsub double %62, 1.000000e+00
  %64 = fptrunc double %63 to float
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = load i32, ptr %11, align 4, !tbaa !14
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds float, ptr %65, i64 %67
  store float %64, ptr %68, align 4, !tbaa !9
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load i32, ptr %11, align 4, !tbaa !14
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds float, ptr %69, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !9
  %74 = load float, ptr %10, align 4, !tbaa !9
  %75 = fadd float %74, %73
  store float %75, ptr %10, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %45
  %77 = load i32, ptr %11, align 4, !tbaa !14
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %11, align 4, !tbaa !14
  br label %40, !llvm.loop !15

79:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load i32, ptr %7, align 4, !tbaa !14
  %82 = call noundef ptr @_ZN10xraySource7muTotalEPfi(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef %80, i32 noundef %81)
  store ptr %82, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store float 0.000000e+00, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !14
  br label %83

83:                                               ; preds = %104, %79
  %84 = load i32, ptr %14, align 4, !tbaa !14
  %85 = load i32, ptr %7, align 4, !tbaa !14
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %107

88:                                               ; preds = %83
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = load i32, ptr %14, align 4, !tbaa !14
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %89, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !9
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i32, ptr %14, align 4, !tbaa !14
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %94, i64 %96
  %98 = load float, ptr %97, align 4, !tbaa !9
  %99 = fmul float %93, %98
  %100 = load float, ptr %10, align 4, !tbaa !9
  %101 = fdiv float %99, %100
  %102 = load float, ptr %13, align 4, !tbaa !9
  %103 = fadd float %102, %101
  store float %103, ptr %13, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %88
  %105 = load i32, ptr %14, align 4, !tbaa !14
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %14, align 4, !tbaa !14
  br label %83, !llvm.loop !17

107:                                              ; preds = %87
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %108) #6
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %109) #6
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free(ptr noundef %110) #6
  %111 = load float, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret float %111
}

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

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS10xraySource", !10, i64 0, !13, i64 4, !10, i64 8, !6, i64 16, !13, i64 24, !10, i64 28, !10, i64 32, !6, i64 40}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; 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
define dso_local noundef float @_ZN10xraySource5muEffEf(ptr noundef nonnull align 8 dereferenceable(48) %0, float noundef %1) local_unnamed_addr #1 align 2 {
  %3 = load float, ptr %0, align 8, !tbaa !5
  %4 = fsub float %3, %1
  %5 = fdiv float %4, 2.400000e+01
  %6 = fdiv float %4, %5
  %7 = tail call noundef float @_ZSt4ceilf(float noundef %6)
  %8 = fptosi float %7 to i32
  %9 = add i32 %8, 1
  %10 = sext i32 %9 to i64
  %11 = shl nsw i64 %10, 2
  %12 = tail call noalias ptr @malloc(i64 noundef %11) #5
  %13 = tail call noalias ptr @malloc(i64 noundef %11) #5
  %.not43 = icmp slt i32 %8, 0
  br i1 %.not43, label %._crit_edge.thread, label %.lr.ph.preheader

._crit_edge.thread:                               ; preds = %2
  %14 = tail call noundef ptr @_ZN10xraySource7muTotalEPfi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef %12, i32 noundef %9)
  br label %._crit_edge51

.lr.ph.preheader:                                 ; preds = %2
  %wide.trip.count = zext i32 %9 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %15 = icmp eq i32 %8, 0
  br i1 %15, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa63.ph = phi float [ poison, %.lr.ph.preheader ], [ %41, %.lr.ph ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.lr.ph ]
  %.03945.unr = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %41, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa
  %16 = trunc nuw nsw i64 %indvars.iv.unr to i32
  %17 = uitofp nneg i32 %16 to float
  %18 = tail call float @llvm.fmuladd.f32(float %5, float %17, float %1)
  %19 = getelementptr inbounds float, ptr %12, i64 %indvars.iv.unr
  store float %18, ptr %19, align 4, !tbaa !12
  %20 = fdiv float %3, %18
  %21 = fadd float %20, -1.000000e+00
  %22 = getelementptr inbounds float, ptr %13, i64 %indvars.iv.unr
  store float %21, ptr %22, align 4, !tbaa !12
  %23 = fadd float %.03945.unr, %21
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.unr-lcssa, %.lr.ph.epil
  %.lcssa63 = phi float [ %.lcssa63.ph, %._crit_edge.unr-lcssa ], [ %23, %.lr.ph.epil ]
  %24 = tail call noundef ptr @_ZN10xraySource7muTotalEPfi(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull %12, i32 noundef %9)
  br i1 %.not43, label %._crit_edge51, label %.lr.ph50.preheader

.lr.ph50.preheader:                               ; preds = %._crit_edge
  %wide.trip.count58 = zext i32 %9 to i64
  %xtraiter65 = and i64 %wide.trip.count58, 3
  %25 = icmp ult i32 %9, 4
  br i1 %25, label %._crit_edge51.loopexit.unr-lcssa, label %.lr.ph50.preheader.new

.lr.ph50.preheader.new:                           ; preds = %.lr.ph50.preheader
  %unroll_iter68 = and i64 %wide.trip.count58, 4294967292
  br label %.lr.ph50

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.lr.ph ]
  %.03945 = phi float [ 0.000000e+00, %.lr.ph.preheader.new ], [ %41, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %26 = trunc nuw nsw i64 %indvars.iv to i32
  %27 = uitofp nneg i32 %26 to float
  %28 = tail call float @llvm.fmuladd.f32(float %5, float %27, float %1)
  %29 = getelementptr inbounds float, ptr %12, i64 %indvars.iv
  store float %28, ptr %29, align 4, !tbaa !12
  %30 = fdiv float %3, %28
  %31 = fadd float %30, -1.000000e+00
  %32 = getelementptr inbounds float, ptr %13, i64 %indvars.iv
  store float %31, ptr %32, align 4, !tbaa !12
  %33 = fadd float %.03945, %31
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %34 = trunc nuw nsw i64 %indvars.iv.next to i32
  %35 = uitofp nneg i32 %34 to float
  %36 = tail call float @llvm.fmuladd.f32(float %5, float %35, float %1)
  %37 = getelementptr inbounds float, ptr %12, i64 %indvars.iv.next
  store float %36, ptr %37, align 4, !tbaa !12
  %38 = fdiv float %3, %36
  %39 = fadd float %38, -1.000000e+00
  %40 = getelementptr inbounds float, ptr %13, i64 %indvars.iv.next
  store float %39, ptr %40, align 4, !tbaa !12
  %41 = fadd float %33, %39
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !13

._crit_edge51.loopexit.unr-lcssa:                 ; preds = %.lr.ph50, %.lr.ph50.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph50.preheader ], [ %77, %.lr.ph50 ]
  %indvars.iv55.unr = phi i64 [ 0, %.lr.ph50.preheader ], [ %indvars.iv.next56.3, %.lr.ph50 ]
  %.03847.unr = phi float [ 0.000000e+00, %.lr.ph50.preheader ], [ %77, %.lr.ph50 ]
  %lcmp.mod66.not = icmp eq i64 %xtraiter65, 0
  br i1 %lcmp.mod66.not, label %._crit_edge51, label %.lr.ph50.epil

.lr.ph50.epil:                                    ; preds = %._crit_edge51.loopexit.unr-lcssa, %.lr.ph50.epil
  %indvars.iv55.epil = phi i64 [ %indvars.iv.next56.epil, %.lr.ph50.epil ], [ %indvars.iv55.unr, %._crit_edge51.loopexit.unr-lcssa ]
  %.03847.epil = phi float [ %48, %.lr.ph50.epil ], [ %.03847.unr, %._crit_edge51.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph50.epil ], [ 0, %._crit_edge51.loopexit.unr-lcssa ]
  %42 = getelementptr inbounds float, ptr %24, i64 %indvars.iv55.epil
  %43 = load float, ptr %42, align 4, !tbaa !12
  %44 = getelementptr inbounds float, ptr %13, i64 %indvars.iv55.epil
  %45 = load float, ptr %44, align 4, !tbaa !12
  %46 = fmul float %43, %45
  %47 = fdiv float %46, %.lcssa63
  %48 = fadd float %.03847.epil, %47
  %indvars.iv.next56.epil = add nuw nsw i64 %indvars.iv55.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter65
  br i1 %epil.iter.cmp.not, label %._crit_edge51, label %.lr.ph50.epil, !llvm.loop !15

._crit_edge51:                                    ; preds = %._crit_edge51.loopexit.unr-lcssa, %.lr.ph50.epil, %._crit_edge.thread, %._crit_edge
  %49 = phi ptr [ %24, %._crit_edge ], [ %14, %._crit_edge.thread ], [ %24, %.lr.ph50.epil ], [ %24, %._crit_edge51.loopexit.unr-lcssa ]
  %.038.lcssa = phi float [ 0.000000e+00, %._crit_edge ], [ 0.000000e+00, %._crit_edge.thread ], [ %.lcssa.ph, %._crit_edge51.loopexit.unr-lcssa ], [ %48, %.lr.ph50.epil ]
  tail call void @free(ptr noundef %13) #6
  tail call void @free(ptr noundef %12) #6
  tail call void @free(ptr noundef %49) #6
  ret float %.038.lcssa

.lr.ph50:                                         ; preds = %.lr.ph50, %.lr.ph50.preheader.new
  %indvars.iv55 = phi i64 [ 0, %.lr.ph50.preheader.new ], [ %indvars.iv.next56.3, %.lr.ph50 ]
  %.03847 = phi float [ 0.000000e+00, %.lr.ph50.preheader.new ], [ %77, %.lr.ph50 ]
  %niter69 = phi i64 [ 0, %.lr.ph50.preheader.new ], [ %niter69.next.3, %.lr.ph50 ]
  %50 = getelementptr inbounds float, ptr %24, i64 %indvars.iv55
  %51 = load float, ptr %50, align 4, !tbaa !12
  %52 = getelementptr inbounds float, ptr %13, i64 %indvars.iv55
  %53 = load float, ptr %52, align 4, !tbaa !12
  %54 = fmul float %51, %53
  %55 = fdiv float %54, %.lcssa63
  %56 = fadd float %.03847, %55
  %indvars.iv.next56 = or disjoint i64 %indvars.iv55, 1
  %57 = getelementptr inbounds float, ptr %24, i64 %indvars.iv.next56
  %58 = load float, ptr %57, align 4, !tbaa !12
  %59 = getelementptr inbounds float, ptr %13, i64 %indvars.iv.next56
  %60 = load float, ptr %59, align 4, !tbaa !12
  %61 = fmul float %58, %60
  %62 = fdiv float %61, %.lcssa63
  %63 = fadd float %56, %62
  %indvars.iv.next56.1 = or disjoint i64 %indvars.iv55, 2
  %64 = getelementptr inbounds float, ptr %24, i64 %indvars.iv.next56.1
  %65 = load float, ptr %64, align 4, !tbaa !12
  %66 = getelementptr inbounds float, ptr %13, i64 %indvars.iv.next56.1
  %67 = load float, ptr %66, align 4, !tbaa !12
  %68 = fmul float %65, %67
  %69 = fdiv float %68, %.lcssa63
  %70 = fadd float %63, %69
  %indvars.iv.next56.2 = or disjoint i64 %indvars.iv55, 3
  %71 = getelementptr inbounds float, ptr %24, i64 %indvars.iv.next56.2
  %72 = load float, ptr %71, align 4, !tbaa !12
  %73 = getelementptr inbounds float, ptr %13, i64 %indvars.iv.next56.2
  %74 = load float, ptr %73, align 4, !tbaa !12
  %75 = fmul float %72, %74
  %76 = fdiv float %75, %.lcssa63
  %77 = fadd float %70, %76
  %indvars.iv.next56.3 = add nuw nsw i64 %indvars.iv55, 4
  %niter69.next.3 = add nuw i64 %niter69, 4
  %niter69.ncmp.3 = icmp eq i64 %niter69.next.3, %unroll_iter68
  br i1 %niter69.ncmp.3, label %._crit_edge51.loopexit.unr-lcssa, label %.lr.ph50, !llvm.loop !17
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4ceilf(float noundef) 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: mustprogress uwtable
declare dso_local noundef ptr @_ZN10xraySource7muTotalEPfi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

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 = { 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 #5 = { nounwind allocsize(0) }
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, !7, i64 0}
!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 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !14}


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