; LLVM IR from corentinartaud/graphics :: ThirdParty/FreeImage-3170/Source/OpenEXR/IlmImf (ImfDeepCompositing)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Imf_2_215DeepCompositing15composite_pixelEPfPPKfPPKciii(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::vector", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  %25 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %36, %7
  %27 = load i32, ptr %15, align 4, !tbaa !9
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %39

31:                                               ; preds = %26
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load i32, ptr %15, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds float, ptr %32, i64 %34
  store float 0.000000e+00, ptr %35, align 4, !tbaa !11
  br label %36

36:                                               ; preds = %31
  %37 = load i32, ptr %15, align 4, !tbaa !9
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %15, align 4, !tbaa !9
  br label %26, !llvm.loop !13

39:                                               ; preds = %30
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  br label %146

43:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  %44 = load i32, ptr %14, align 4, !tbaa !9
  %45 = icmp sgt i32 %44, 1
  br i1 %45, label %46, label %78

46:                                               ; preds = %43
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = sext i32 %47 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %48)
          to label %49 unwind label %55

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %64, %49
  %51 = load i32, ptr %19, align 4, !tbaa !9
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = icmp slt i32 %51, %52
  br i1 %53, label %59, label %54

54:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %67

55:                                               ; preds = %67, %46
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %17, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %18, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  br label %147

59:                                               ; preds = %50
  %60 = load i32, ptr %19, align 4, !tbaa !9
  %61 = load i32, ptr %19, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %62) #4
  store i32 %60, ptr %63, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %59
  %65 = load i32, ptr %19, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %19, align 4, !tbaa !9
  br label %50, !llvm.loop !15

67:                                               ; preds = %54
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef 0) #4
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = load ptr, ptr %25, align 8, !tbaa !16
  %75 = getelementptr inbounds ptr, ptr %74, i64 3
  %76 = load ptr, ptr %75, align 8
  invoke void %76(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %68, ptr noundef %69, ptr noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73)
          to label %77 unwind label %55

77:                                               ; preds = %67
  br label %78

78:                                               ; preds = %77, %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %138, %78
  %80 = load i32, ptr %20, align 4, !tbaa !9
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = icmp slt i32 %80, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  store i32 8, ptr %21, align 4
  br label %141

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = icmp sgt i32 %85, 1
  br i1 %86, label %87, label %92

87:                                               ; preds = %84
  %88 = load i32, ptr %20, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %89) #4
  %91 = load i32, ptr %90, align 4, !tbaa !9
  br label %94

92:                                               ; preds = %84
  %93 = load i32, ptr %20, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %92, %87
  %95 = phi i32 [ %91, %87 ], [ %93, %92 ]
  store i32 %95, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds float, ptr %96, i64 2
  %98 = load float, ptr %97, align 4, !tbaa !11
  store float %98, ptr %23, align 4, !tbaa !11
  %99 = load float, ptr %23, align 4, !tbaa !11
  %100 = fpext float %99 to double
  %101 = fcmp oge double %100, 1.000000e+00
  br i1 %101, label %102, label %103

102:                                              ; preds = %94
  store i32 1, ptr %21, align 4
  br label %135

103:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %131, %103
  %105 = load i32, ptr %24, align 4, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = icmp slt i32 %105, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %104
  store i32 11, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %134

109:                                              ; preds = %104
  %110 = load float, ptr %23, align 4, !tbaa !11
  %111 = fpext float %110 to double
  %112 = fsub double 1.000000e+00, %111
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = load i32, ptr %24, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load i32, ptr %22, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds float, ptr %117, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !11
  %122 = fpext float %121 to double
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load i32, ptr %24, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds float, ptr %123, i64 %125
  %127 = load float, ptr %126, align 4, !tbaa !11
  %128 = fpext float %127 to double
  %129 = call double @llvm.fmuladd.f64(double %112, double %122, double %128)
  %130 = fptrunc double %129 to float
  store float %130, ptr %126, align 4, !tbaa !11
  br label %131

131:                                              ; preds = %109
  %132 = load i32, ptr %24, align 4, !tbaa !9
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %24, align 4, !tbaa !9
  br label %104, !llvm.loop !18

134:                                              ; preds = %108
  store i32 0, ptr %21, align 4
  br label %135

135:                                              ; preds = %134, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  %136 = load i32, ptr %21, align 4
  switch i32 %136, label %141 [
    i32 0, label %137
  ]

137:                                              ; preds = %135
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %20, align 4, !tbaa !9
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %20, align 4, !tbaa !9
  br label %79, !llvm.loop !19

141:                                              ; preds = %135, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %142 = load i32, ptr %21, align 4
  switch i32 %142, label %144 [
    i32 8, label %143
  ]

143:                                              ; preds = %141
  store i32 0, ptr %21, align 4
  br label %144

144:                                              ; preds = %143, %141
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  %145 = load i32, ptr %21, align 4
  switch i32 %145, label %152 [
    i32 0, label %146
    i32 1, label %146
  ]

146:                                              ; preds = %144, %144, %42
  ret void

147:                                              ; preds = %55
  %148 = load ptr, ptr %17, align 8
  %149 = load i32, ptr %18, align 4
  %150 = insertvalue { ptr, i32 } poison, ptr %148, 0
  %151 = insertvalue { ptr, i32 } %150, i32 %149, 1
  resume { ptr, i32 } %151

152:                                              ; preds = %144
  unreachable
}

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7Imf_2_215DeepCompositing15composite_pixelEPfPPKfPPKciii(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr nocapture noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::vector", align 8
  %9 = icmp sgt i32 %4, 0
  br i1 %9, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %7
  %10 = zext nneg i32 %4 to i64
  %11 = shl nuw nsw i64 %10, 2
  tail call void @llvm.memset.p0.i64(ptr align 4 %1, i8 0, i64 %11, i1 false), !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %7
  %12 = icmp eq i32 %5, 0
  br i1 %12, label %78, label %13

13:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %14 = icmp sgt i32 %6, 1
  br i1 %14, label %15, label %26

15:                                               ; preds = %13
  %16 = sext i32 %5 to i64
  invoke void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %16)
          to label %.preheader48 unwind label %22

.preheader48:                                     ; preds = %15
  %17 = icmp sgt i32 %5, 0
  br i1 %17, label %.lr.ph51.preheader, label %._crit_edge52

.lr.ph51.preheader:                               ; preds = %.preheader48
  %wide.trip.count = zext nneg i32 %5 to i64
  br label %.lr.ph51

._crit_edge52:                                    ; preds = %.lr.ph51, %.preheader48
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #5
  %19 = load ptr, ptr %0, align 8, !tbaa !9
  %20 = getelementptr inbounds i8, ptr %19, i64 24
  %21 = load ptr, ptr %20, align 8
  invoke void %21(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %18, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6)
          to label %26 unwind label %22

22:                                               ; preds = %._crit_edge52, %15
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  resume { ptr, i32 } %23

.lr.ph51:                                         ; preds = %.lr.ph51.preheader, %.lr.ph51
  %indvars.iv = phi i64 [ 0, %.lr.ph51.preheader ], [ %indvars.iv.next, %.lr.ph51 ]
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #5
  %25 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %25, ptr %24, align 4, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge52, label %.lr.ph51, !llvm.loop !13

26:                                               ; preds = %._crit_edge52, %13
  %27 = icmp sgt i32 %5, 0
  br i1 %27, label %.lr.ph58, label %.critedge

.lr.ph58:                                         ; preds = %26
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  br i1 %9, label %.lr.ph58.split.us.preheader, label %.lr.ph58.split

.lr.ph58.split.us.preheader:                      ; preds = %.lr.ph58
  %29 = zext nneg i32 %5 to i64
  %wide.trip.count75 = zext nneg i32 %4 to i64
  %xtraiter = and i64 %wide.trip.count75, 1
  %30 = icmp eq i32 %4, 1
  %unroll_iter = and i64 %wide.trip.count75, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph58.split.us

.lr.ph58.split.us:                                ; preds = %.lr.ph58.split.us.preheader, %._crit_edge55.us
  %indvars.iv77 = phi i64 [ 0, %.lr.ph58.split.us.preheader ], [ %indvars.iv.next78, %._crit_edge55.us ]
  %31 = trunc nuw nsw i64 %indvars.iv77 to i32
  br i1 %14, label %32, label %35

32:                                               ; preds = %.lr.ph58.split.us
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv77) #5
  %34 = load i32, ptr %33, align 4, !tbaa !11
  br label %35

35:                                               ; preds = %32, %.lr.ph58.split.us
  %36 = phi i32 [ %34, %32 ], [ %31, %.lr.ph58.split.us ]
  %37 = load float, ptr %28, align 4, !tbaa !5
  %38 = fcmp ult float %37, 1.000000e+00
  br i1 %38, label %.preheader.us, label %.critedge

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv72 = phi i64 [ %indvars.iv.next73.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %39 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv72
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = getelementptr inbounds float, ptr %40, i64 %61
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = fpext float %42 to double
  %44 = getelementptr inbounds float, ptr %1, i64 %indvars.iv72
  %45 = load float, ptr %44, align 4, !tbaa !5
  %46 = fpext float %45 to double
  %47 = call double @llvm.fmuladd.f64(double %60, double %43, double %46)
  %48 = fptrunc double %47 to float
  store float %48, ptr %44, align 4, !tbaa !5
  %indvars.iv.next73 = or disjoint i64 %indvars.iv72, 1
  %49 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv.next73
  %50 = load ptr, ptr %49, align 8, !tbaa !15
  %51 = getelementptr inbounds float, ptr %50, i64 %61
  %52 = load float, ptr %51, align 4, !tbaa !5
  %53 = fpext float %52 to double
  %54 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next73
  %55 = load float, ptr %54, align 4, !tbaa !5
  %56 = fpext float %55 to double
  %57 = call double @llvm.fmuladd.f64(double %60, double %53, double %56)
  %58 = fptrunc double %57 to float
  store float %58, ptr %54, align 4, !tbaa !5
  %indvars.iv.next73.1 = add nuw nsw i64 %indvars.iv72, 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_edge55.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !17

.preheader.us:                                    ; preds = %35
  %59 = fpext float %37 to double
  %60 = fsub double 1.000000e+00, %59
  %61 = sext i32 %36 to i64
  br i1 %30, label %._crit_edge55.us.unr-lcssa, label %.preheader.us.new

._crit_edge55.us.unr-lcssa:                       ; preds = %.preheader.us.new, %.preheader.us
  %indvars.iv72.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next73.1, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge55.us, label %._crit_edge55.us.epilog-lcssa

._crit_edge55.us.epilog-lcssa:                    ; preds = %._crit_edge55.us.unr-lcssa
  %62 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv72.unr
  %63 = load ptr, ptr %62, align 8, !tbaa !15
  %64 = getelementptr inbounds float, ptr %63, i64 %61
  %65 = load float, ptr %64, align 4, !tbaa !5
  %66 = fpext float %65 to double
  %67 = getelementptr inbounds float, ptr %1, i64 %indvars.iv72.unr
  %68 = load float, ptr %67, align 4, !tbaa !5
  %69 = fpext float %68 to double
  %70 = call double @llvm.fmuladd.f64(double %60, double %66, double %69)
  %71 = fptrunc double %70 to float
  store float %71, ptr %67, align 4, !tbaa !5
  br label %._crit_edge55.us

._crit_edge55.us:                                 ; preds = %._crit_edge55.us.unr-lcssa, %._crit_edge55.us.epilog-lcssa
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %72 = icmp ult i64 %indvars.iv.next78, %29
  br i1 %72, label %.lr.ph58.split.us, label %.critedge, !llvm.loop !18

.lr.ph58.split:                                   ; preds = %.lr.ph58
  br i1 %14, label %.lr.ph58.split.split.us.preheader, label %.critedge

.lr.ph58.split.split.us.preheader:                ; preds = %.lr.ph58.split
  %73 = zext nneg i32 %5 to i64
  br label %.lr.ph58.split.split.us

.lr.ph58.split.split.us:                          ; preds = %.lr.ph58.split.split.us.preheader, %.lr.ph58.split.split.us
  %indvars.iv69 = phi i64 [ 0, %.lr.ph58.split.split.us.preheader ], [ %indvars.iv.next70, %.lr.ph58.split.split.us ]
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv69) #5
  %75 = load float, ptr %28, align 4, !tbaa !5
  %76 = fcmp ult float %75, 1.000000e+00
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %77 = icmp ult i64 %indvars.iv.next70, %73
  %or.cond64 = select i1 %76, i1 %77, i1 false
  br i1 %or.cond64, label %.lr.ph58.split.split.us, label %.critedge, !llvm.loop !18

.critedge:                                        ; preds = %.lr.ph58.split.split.us, %._crit_edge55.us, %35, %.lr.ph58.split, %26
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #5
  br label %78

78:                                               ; preds = %._crit_edge, %.critedge
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; Effective O3 passes: ADCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass