; LLVM IR from robotic-vision-lab/Cloud-Object-Recognition-Engine :: 3rdparty/libsvm/svm.ll (ZN9Solver_NU13calculate_rhoEv)

; 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.Solver = type <{ ptr, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr, i32, i8, [3 x i8] }>
%class.Solver_NU = type { %class.Solver.base, ptr }
%class.Solver.base = type <{ ptr, i32, [4 x i8], ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr, i32, i8 }>
%"struct.Solver::SolutionInfo" = type { double, double, double, double, double }

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Solver14is_lower_boundEi(ptr noundef nonnull align 8 dereferenceable(117), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Solver14is_upper_boundEi(ptr noundef nonnull align 8 dereferenceable(117), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL3minIdET_S0_S0_(double noundef, double noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL3maxIdET_S0_S0_(double noundef, double noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN9Solver_NU13calculate_rhoEv(ptr noundef nonnull align 8 dereferenceable(128) %0) unnamed_addr #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store double 0x7FF0000000000000, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store double 0x7FF0000000000000, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store double 0xFFF0000000000000, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store double 0xFFF0000000000000, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store double 0.000000e+00, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store double 0.000000e+00, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %105, %1
  %16 = load i32, ptr %11, align 4, !tbaa !9
  %17 = getelementptr inbounds %class.Solver, ptr %14, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = icmp slt i32 %16, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %108

21:                                               ; preds = %15
  %22 = getelementptr inbounds %class.Solver, ptr %14, i32 0, i32 3
  %23 = load ptr, ptr %22, align 8, !tbaa !16
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i8, ptr %23, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !17
  %28 = sext i8 %27 to i32
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %30, label %67

30:                                               ; preds = %21
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = call noundef zeroext i1 @_ZN6Solver14is_upper_boundEi(ptr noundef nonnull align 8 dereferenceable(117) %14, i32 noundef %31)
  br i1 %32, label %33, label %42

33:                                               ; preds = %30
  %34 = load double, ptr %7, align 8, !tbaa !11
  %35 = getelementptr inbounds %class.Solver, ptr %14, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %36, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = call noundef double @_ZL3maxIdET_S0_S0_(double noundef %34, double noundef %40)
  store double %41, ptr %7, align 8, !tbaa !11
  br label %66

42:                                               ; preds = %30
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = call noundef zeroext i1 @_ZN6Solver14is_lower_boundEi(ptr noundef nonnull align 8 dereferenceable(117) %14, i32 noundef %43)
  br i1 %44, label %45, label %54

45:                                               ; preds = %42
  %46 = load double, ptr %5, align 8, !tbaa !11
  %47 = getelementptr inbounds %class.Solver, ptr %14, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds double, ptr %48, i64 %50
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = call noundef double @_ZL3minIdET_S0_S0_(double noundef %46, double noundef %52)
  store double %53, ptr %5, align 8, !tbaa !11
  br label %65

54:                                               ; preds = %42
  %55 = load i32, ptr %3, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %3, align 4, !tbaa !9
  %57 = getelementptr inbounds %class.Solver, ptr %14, i32 0, i32 4
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %58, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  %63 = load double, ptr %9, align 8, !tbaa !11
  %64 = fadd double %63, %62
  store double %64, ptr %9, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %54, %45
  br label %66

66:                                               ; preds = %65, %33
  br label %104

67:                                               ; preds = %21
  %68 = load i32, ptr %11, align 4, !tbaa !9
  %69 = call noundef zeroext i1 @_ZN6Solver14is_upper_boundEi(ptr noundef nonnull align 8 dereferenceable(117) %14, i32 noundef %68)
  br i1 %69, label %70, label %79

70:                                               ; preds = %67
  %71 = load double, ptr %8, align 8, !tbaa !11
  %72 = getelementptr inbounds %class.Solver, ptr %14, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !18
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %73, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = call noundef double @_ZL3maxIdET_S0_S0_(double noundef %71, double noundef %77)
  store double %78, ptr %8, align 8, !tbaa !11
  br label %103

79:                                               ; preds = %67
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = call noundef zeroext i1 @_ZN6Solver14is_lower_boundEi(ptr noundef nonnull align 8 dereferenceable(117) %14, i32 noundef %80)
  br i1 %81, label %82, label %91

82:                                               ; preds = %79
  %83 = load double, ptr %6, align 8, !tbaa !11
  %84 = getelementptr inbounds %class.Solver, ptr %14, i32 0, i32 4
  %85 = load ptr, ptr %84, align 8, !tbaa !18
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %85, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = call noundef double @_ZL3minIdET_S0_S0_(double noundef %83, double noundef %89)
  store double %90, ptr %6, align 8, !tbaa !11
  br label %102

91:                                               ; preds = %79
  %92 = load i32, ptr %4, align 4, !tbaa !9
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %4, align 4, !tbaa !9
  %94 = getelementptr inbounds %class.Solver, ptr %14, i32 0, i32 4
  %95 = load ptr, ptr %94, align 8, !tbaa !18
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !11
  %100 = load double, ptr %10, align 8, !tbaa !11
  %101 = fadd double %100, %99
  store double %101, ptr %10, align 8, !tbaa !11
  br label %102

102:                                              ; preds = %91, %82
  br label %103

103:                                              ; preds = %102, %70
  br label %104

104:                                              ; preds = %103, %66
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %11, align 4, !tbaa !9
  br label %15, !llvm.loop !19

108:                                              ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %109 = load i32, ptr %3, align 4, !tbaa !9
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %111, label %116

111:                                              ; preds = %108
  %112 = load double, ptr %9, align 8, !tbaa !11
  %113 = load i32, ptr %3, align 4, !tbaa !9
  %114 = sitofp i32 %113 to double
  %115 = fdiv double %112, %114
  store double %115, ptr %12, align 8, !tbaa !11
  br label %121

116:                                              ; preds = %108
  %117 = load double, ptr %5, align 8, !tbaa !11
  %118 = load double, ptr %7, align 8, !tbaa !11
  %119 = fadd double %117, %118
  %120 = fdiv double %119, 2.000000e+00
  store double %120, ptr %12, align 8, !tbaa !11
  br label %121

121:                                              ; preds = %116, %111
  %122 = load i32, ptr %4, align 4, !tbaa !9
  %123 = icmp sgt i32 %122, 0
  br i1 %123, label %124, label %129

124:                                              ; preds = %121
  %125 = load double, ptr %10, align 8, !tbaa !11
  %126 = load i32, ptr %4, align 4, !tbaa !9
  %127 = sitofp i32 %126 to double
  %128 = fdiv double %125, %127
  store double %128, ptr %13, align 8, !tbaa !11
  br label %134

129:                                              ; preds = %121
  %130 = load double, ptr %6, align 8, !tbaa !11
  %131 = load double, ptr %8, align 8, !tbaa !11
  %132 = fadd double %130, %131
  %133 = fdiv double %132, 2.000000e+00
  store double %133, ptr %13, align 8, !tbaa !11
  br label %134

134:                                              ; preds = %129, %124
  %135 = load double, ptr %12, align 8, !tbaa !11
  %136 = load double, ptr %13, align 8, !tbaa !11
  %137 = fadd double %135, %136
  %138 = fdiv double %137, 2.000000e+00
  %139 = getelementptr inbounds %class.Solver_NU, ptr %14, i32 0, i32 1
  %140 = load ptr, ptr %139, align 8, !tbaa !21
  %141 = getelementptr inbounds %"struct.Solver::SolutionInfo", ptr %140, i32 0, i32 4
  store double %138, ptr %141, align 8, !tbaa !23
  %142 = load double, ptr %12, align 8, !tbaa !11
  %143 = load double, ptr %13, align 8, !tbaa !11
  %144 = fsub double %142, %143
  %145 = fdiv double %144, 2.000000e+00
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret double %145
}

attributes #0 = { 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 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 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS6Solver", !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !10, i64 112, !15, i64 116}
!15 = !{!"bool", !7, i64 0}
!16 = !{!14, !6, i64 16}
!17 = !{!7, !7, i64 0}
!18 = !{!14, !6, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !6, i64 120}
!22 = !{!"_ZTS9Solver_NU", !14, i64 0, !6, i64 120}
!23 = !{!24, !12, i64 32}
!24 = !{!"_ZTSN6Solver12SolutionInfoE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}


; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Solver14is_lower_boundEi(ptr noundef nonnull align 8 dereferenceable(117), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Solver14is_upper_boundEi(ptr noundef nonnull align 8 dereferenceable(117), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL3minIdET_S0_S0_(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef double @_ZL3maxIdET_S0_S0_(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef double @_ZN9Solver_NU13calculate_rhoEv(ptr noundef nonnull align 8 dereferenceable(128) %0) unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load i32, ptr %2, align 8, !tbaa !5
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  br label %28

._crit_edge:                                      ; preds = %73
  %7 = fadd double %.147, %.143
  %8 = fmul double %7, 5.000000e-01
  %9 = fadd double %.145, %.141
  %10 = fmul double %9, 5.000000e-01
  %11 = icmp sgt i32 %.151.fr, 0
  %12 = uitofp nneg i32 %.151.fr to double
  %13 = fdiv double %.139, %12
  %14 = select i1 %11, double %13, double %8
  %15 = icmp sgt i32 %.149.fr, 0
  br i1 %15, label %16, label %.thread

16:                                               ; preds = %._crit_edge
  %17 = uitofp nneg i32 %.149.fr to double
  %18 = fdiv double %.1, %17
  br label %.thread

.thread:                                          ; preds = %1, %._crit_edge, %16
  %19 = phi double [ %14, %16 ], [ %14, %._crit_edge ], [ 0x7FF8000000000000, %1 ]
  %20 = phi double [ %18, %16 ], [ %10, %._crit_edge ], [ 0x7FF8000000000000, %1 ]
  %21 = fadd double %19, %20
  %22 = fmul double %21, 5.000000e-01
  %23 = getelementptr inbounds i8, ptr %0, i64 120
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %24, i64 32
  store double %22, ptr %25, align 8, !tbaa !15
  %26 = fsub double %19, %20
  %27 = fmul double %26, 5.000000e-01
  ret double %27

28:                                               ; preds = %.lr.ph, %73
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %73 ]
  %.03759 = phi double [ 0.000000e+00, %.lr.ph ], [ %.1, %73 ]
  %.03858 = phi double [ 0.000000e+00, %.lr.ph ], [ %.139, %73 ]
  %.04057 = phi double [ 0xFFF0000000000000, %.lr.ph ], [ %.141, %73 ]
  %.04256 = phi double [ 0xFFF0000000000000, %.lr.ph ], [ %.143, %73 ]
  %.04455 = phi double [ 0x7FF0000000000000, %.lr.ph ], [ %.145, %73 ]
  %.04654 = phi double [ 0x7FF0000000000000, %.lr.ph ], [ %.147, %73 ]
  %.04853 = phi i32 [ 0, %.lr.ph ], [ %.149.fr, %73 ]
  %.05052 = phi i32 [ 0, %.lr.ph ], [ %.151.fr, %73 ]
  %29 = load ptr, ptr %5, align 8, !tbaa !17
  %30 = getelementptr inbounds i8, ptr %29, i64 %indvars.iv
  %31 = load i8, ptr %30, align 1, !tbaa !18
  %32 = icmp eq i8 %31, 1
  %33 = trunc nuw nsw i64 %indvars.iv to i32
  %34 = tail call noundef zeroext i1 @_ZN6Solver14is_upper_boundEi(ptr noundef nonnull align 8 dereferenceable(117) %0, i32 noundef %33)
  br i1 %32, label %35, label %54

35:                                               ; preds = %28
  br i1 %34, label %36, label %41

36:                                               ; preds = %35
  %37 = load ptr, ptr %6, align 8, !tbaa !19
  %38 = getelementptr inbounds double, ptr %37, i64 %indvars.iv
  %39 = load double, ptr %38, align 8, !tbaa !20
  %40 = tail call noundef double @_ZL3maxIdET_S0_S0_(double noundef %.04256, double noundef %39)
  br label %73

41:                                               ; preds = %35
  %42 = tail call noundef zeroext i1 @_ZN6Solver14is_lower_boundEi(ptr noundef nonnull align 8 dereferenceable(117) %0, i32 noundef %33)
  br i1 %42, label %43, label %48

43:                                               ; preds = %41
  %44 = load ptr, ptr %6, align 8, !tbaa !19
  %45 = getelementptr inbounds double, ptr %44, i64 %indvars.iv
  %46 = load double, ptr %45, align 8, !tbaa !20
  %47 = tail call noundef double @_ZL3minIdET_S0_S0_(double noundef %.04654, double noundef %46)
  br label %73

48:                                               ; preds = %41
  %49 = add nsw i32 %.05052, 1
  %50 = load ptr, ptr %6, align 8, !tbaa !19
  %51 = getelementptr inbounds double, ptr %50, i64 %indvars.iv
  %52 = load double, ptr %51, align 8, !tbaa !20
  %53 = fadd double %.03858, %52
  br label %73

54:                                               ; preds = %28
  br i1 %34, label %55, label %60

55:                                               ; preds = %54
  %56 = load ptr, ptr %6, align 8, !tbaa !19
  %57 = getelementptr inbounds double, ptr %56, i64 %indvars.iv
  %58 = load double, ptr %57, align 8, !tbaa !20
  %59 = tail call noundef double @_ZL3maxIdET_S0_S0_(double noundef %.04057, double noundef %58)
  br label %73

60:                                               ; preds = %54
  %61 = tail call noundef zeroext i1 @_ZN6Solver14is_lower_boundEi(ptr noundef nonnull align 8 dereferenceable(117) %0, i32 noundef %33)
  br i1 %61, label %62, label %67

62:                                               ; preds = %60
  %63 = load ptr, ptr %6, align 8, !tbaa !19
  %64 = getelementptr inbounds double, ptr %63, i64 %indvars.iv
  %65 = load double, ptr %64, align 8, !tbaa !20
  %66 = tail call noundef double @_ZL3minIdET_S0_S0_(double noundef %.04455, double noundef %65)
  br label %73

67:                                               ; preds = %60
  %68 = add nsw i32 %.04853, 1
  %69 = load ptr, ptr %6, align 8, !tbaa !19
  %70 = getelementptr inbounds double, ptr %69, i64 %indvars.iv
  %71 = load double, ptr %70, align 8, !tbaa !20
  %72 = fadd double %.03759, %71
  br label %73

73:                                               ; preds = %43, %48, %36, %62, %67, %55
  %.151 = phi i32 [ %.05052, %36 ], [ %.05052, %43 ], [ %49, %48 ], [ %.05052, %55 ], [ %.05052, %62 ], [ %.05052, %67 ]
  %.149 = phi i32 [ %.04853, %36 ], [ %.04853, %43 ], [ %.04853, %48 ], [ %.04853, %55 ], [ %.04853, %62 ], [ %68, %67 ]
  %.147 = phi double [ %.04654, %36 ], [ %47, %43 ], [ %.04654, %48 ], [ %.04654, %55 ], [ %.04654, %62 ], [ %.04654, %67 ]
  %.145 = phi double [ %.04455, %36 ], [ %.04455, %43 ], [ %.04455, %48 ], [ %.04455, %55 ], [ %66, %62 ], [ %.04455, %67 ]
  %.143 = phi double [ %40, %36 ], [ %.04256, %43 ], [ %.04256, %48 ], [ %.04256, %55 ], [ %.04256, %62 ], [ %.04256, %67 ]
  %.141 = phi double [ %.04057, %36 ], [ %.04057, %43 ], [ %.04057, %48 ], [ %59, %55 ], [ %.04057, %62 ], [ %.04057, %67 ]
  %.139 = phi double [ %.03858, %36 ], [ %.03858, %43 ], [ %53, %48 ], [ %.03858, %55 ], [ %.03858, %62 ], [ %.03858, %67 ]
  %.1 = phi double [ %.03759, %36 ], [ %.03759, %43 ], [ %.03759, %48 ], [ %.03759, %55 ], [ %.03759, %62 ], [ %72, %67 ]
  %.149.fr = freeze i32 %.149
  %.151.fr = freeze i32 %.151
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %74 = load i32, ptr %2, align 8, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next, %75
  br i1 %76, label %28, label %._crit_edge, !llvm.loop !21
}

attributes #0 = { 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 #1 = { 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" }

!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 8}
!6 = !{!"_ZTS6Solver", !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !7, i64 112, !12, i64 116}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"bool", !8, i64 0}
!13 = !{!14, !10, i64 120}
!14 = !{!"_ZTS9Solver_NU", !6, i64 0, !10, i64 120}
!15 = !{!16, !11, i64 32}
!16 = !{!"_ZTSN6Solver12SolutionInfoE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!17 = !{!6, !10, i64 16}
!18 = !{!8, !8, i64 0}
!19 = !{!6, !10, i64 24}
!20 = !{!11, !11, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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