; LLVM IR from ShahjalalShohag/code-library :: Math/Integration (Romberg).ll (Z9integrateee)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z1fe(x86_fp80 noundef) #0

; 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 speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2

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

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

27:                                               ; preds = %2
  %28 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %29 = invoke noundef x86_fp80 @_Z1fe(x86_fp80 noundef %28)
          to label %30 unwind label %48

30:                                               ; preds = %27
  %31 = fadd x86_fp80 %26, %29
  %32 = fmul x86_fp80 %24, %31
  %33 = fdiv x86_fp80 %32, 0xK40008000000000000000
  store x86_fp80 %33, ptr %11, align 16, !tbaa !5
  invoke void @_ZNSt6vectorIeSaIeEE9push_backEOe(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 16 dereferenceable(16) %11)
          to label %34 unwind label %48

34:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %35

35:                                               ; preds = %129, %34
  br label %36

36:                                               ; preds = %35
  %37 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %38 = load x86_fp80, ptr %37, align 16, !tbaa !5
  store x86_fp80 %38, ptr %7, align 16, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr %8, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %39 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %40 = load x86_fp80, ptr %6, align 16, !tbaa !5
  %41 = fdiv x86_fp80 %40, 0xK40008000000000000000
  %42 = fadd x86_fp80 %39, %41
  store x86_fp80 %42, ptr %14, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %61, %36
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %52, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %68

48:                                               ; preds = %30, %27, %2
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %12, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %134

52:                                               ; preds = %43
  %53 = load x86_fp80, ptr %14, align 16, !tbaa !5
  %54 = invoke noundef x86_fp80 @_Z1fe(x86_fp80 noundef %53)
          to label %55 unwind label %64

55:                                               ; preds = %52
  %56 = load x86_fp80, ptr %8, align 16, !tbaa !5
  %57 = fadd x86_fp80 %56, %54
  store x86_fp80 %57, ptr %8, align 16, !tbaa !5
  %58 = load x86_fp80, ptr %6, align 16, !tbaa !5
  %59 = load x86_fp80, ptr %14, align 16, !tbaa !5
  %60 = fadd x86_fp80 %59, %58
  store x86_fp80 %60, ptr %14, align 16, !tbaa !5
  br label %61

61:                                               ; preds = %55
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %15, align 4, !tbaa !9
  br label %43, !llvm.loop !11

64:                                               ; preds = %52
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %12, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %130

68:                                               ; preds = %47
  %69 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #5
  %70 = load x86_fp80, ptr %69, align 16, !tbaa !5
  %71 = load x86_fp80, ptr %6, align 16, !tbaa !5
  %72 = load x86_fp80, ptr %8, align 16, !tbaa !5
  %73 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %71, x86_fp80 %72, x86_fp80 %70)
  %74 = fdiv x86_fp80 %73, 0xK40008000000000000000
  store x86_fp80 %74, ptr %8, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  store x86_fp80 0xK3FFFAAAAAAAAAAAAA800, ptr %16, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  store x86_fp80 0xK3FFDAAAAAAAAAAAAA800, ptr %17, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %104, %68
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %107

80:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  %81 = load x86_fp80, ptr %16, align 16, !tbaa !5
  %82 = load x86_fp80, ptr %8, align 16, !tbaa !5
  %83 = load x86_fp80, ptr %17, align 16, !tbaa !5
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %85) #5
  %87 = load x86_fp80, ptr %86, align 16, !tbaa !5
  %88 = fmul x86_fp80 %83, %87
  %89 = fneg x86_fp80 %88
  %90 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %81, x86_fp80 %82, x86_fp80 %89)
  store x86_fp80 %90, ptr %19, align 16, !tbaa !5
  %91 = load x86_fp80, ptr %8, align 16, !tbaa !5
  %92 = load i32, ptr %18, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %93) #5
  store x86_fp80 %91, ptr %94, align 16, !tbaa !5
  %95 = load x86_fp80, ptr %19, align 16, !tbaa !5
  store x86_fp80 %95, ptr %8, align 16, !tbaa !5
  %96 = load x86_fp80, ptr %16, align 16, !tbaa !5
  %97 = load x86_fp80, ptr %17, align 16, !tbaa !5
  %98 = fneg x86_fp80 %97
  %99 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 0xK40018000000000000000, x86_fp80 %96, x86_fp80 %98)
  %100 = load x86_fp80, ptr %17, align 16, !tbaa !5
  %101 = fdiv x86_fp80 %100, %99
  store x86_fp80 %101, ptr %17, align 16, !tbaa !5
  %102 = load x86_fp80, ptr %17, align 16, !tbaa !5
  %103 = fadd x86_fp80 %102, 0xK3FFF8000000000000000
  store x86_fp80 %103, ptr %16, align 16, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %104

104:                                              ; preds = %80
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %18, align 4, !tbaa !9
  br label %75, !llvm.loop !13

107:                                              ; preds = %79
  invoke void @_ZNSt6vectorIeSaIeEE9push_backERKe(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 16 dereferenceable(16) %8)
          to label %108 unwind label %122

108:                                              ; preds = %107
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = mul nsw i32 %109, 2
  store i32 %110, ptr %9, align 4, !tbaa !9
  %111 = load x86_fp80, ptr %6, align 16, !tbaa !5
  %112 = fdiv x86_fp80 %111, 0xK40008000000000000000
  store x86_fp80 %112, ptr %6, align 16, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %10, align 4, !tbaa !9
  %115 = load x86_fp80, ptr %7, align 16, !tbaa !5
  %116 = load x86_fp80, ptr %8, align 16, !tbaa !5
  %117 = fsub x86_fp80 %115, %116
  %118 = invoke noundef x86_fp80 @_ZSt4fabse(x86_fp80 noundef %117)
          to label %119 unwind label %122

119:                                              ; preds = %108
  %120 = fcmp olt x86_fp80 %118, 0xK3FEB8637BD05AF6C6800
  br i1 %120, label %121, label %126

121:                                              ; preds = %119
  store i32 3, ptr %20, align 4
  br label %127

122:                                              ; preds = %108, %107
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %12, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %130

126:                                              ; preds = %119
  store i32 0, ptr %20, align 4
  br label %127

127:                                              ; preds = %126, %121
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  %128 = load i32, ptr %20, align 4
  switch i32 %128, label %140 [
    i32 0, label %129
    i32 3, label %131
  ]

129:                                              ; preds = %127
  br label %35, !llvm.loop !14

130:                                              ; preds = %122, %64
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  br label %134

131:                                              ; preds = %127
  %132 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %133 = load x86_fp80, ptr %132, align 16, !tbaa !5
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @_ZNSt6vectorIeSaIeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  ret x86_fp80 %133

134:                                              ; preds = %130, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @_ZNSt6vectorIeSaIeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  br label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr %12, align 8
  %137 = load i32, ptr %13, align 4
  %138 = insertvalue { ptr, i32 } poison, ptr %136, 0
  %139 = insertvalue { ptr, i32 } %138, i32 %137, 1
  resume { ptr, i32 } %139

140:                                              ; preds = %127
  unreachable
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt4fabse(x86_fp80 noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIeSaIeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = { 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 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


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

; Function Attrs: mustprogress uwtable
declare dso_local noundef x86_fp80 @_Z1fe(x86_fp80 noundef) local_unnamed_addr #0

; 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 speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2

; 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 uwtable
define dso_local noundef x86_fp80 @_Z9integrateee(x86_fp80 noundef %0, x86_fp80 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca x86_fp80, align 16
  %5 = alloca x86_fp80, align 16
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZNSt6vectorIeSaIeEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %6 = fsub x86_fp80 %1, %0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %7 = invoke noundef x86_fp80 @_Z1fe(x86_fp80 noundef %0)
          to label %8 unwind label %26

8:                                                ; preds = %2
  %9 = invoke noundef x86_fp80 @_Z1fe(x86_fp80 noundef %1)
          to label %10 unwind label %26

10:                                               ; preds = %8
  %11 = fadd x86_fp80 %7, %9
  %12 = fmul x86_fp80 %6, %11
  %13 = fmul x86_fp80 %12, 0xK3FFE8000000000000000
  store x86_fp80 %13, ptr %5, align 16, !tbaa !5
  invoke void @_ZNSt6vectorIeSaIeEE9push_backEOe(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(16) %5)
          to label %14 unwind label %26

14:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %15

15:                                               ; preds = %50, %14
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %50 ], [ 1, %14 ]
  %.034 = phi i32 [ %51, %50 ], [ 1, %14 ]
  %.033 = phi x86_fp80 [ %18, %50 ], [ %6, %14 ]
  %16 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %17 = load x86_fp80, ptr %16, align 16, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr %4, align 16, !tbaa !5
  %18 = fmul x86_fp80 %.033, 0xK3FFE8000000000000000
  %19 = fadd x86_fp80 %18, %0
  %umax = call i32 @llvm.umax.i32(i32 %.034, i32 1)
  br label %28

20:                                               ; preds = %30
  %21 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  %22 = load x86_fp80, ptr %21, align 16, !tbaa !5
  %23 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %24 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %.033, x86_fp80 %23, x86_fp80 %22)
  %25 = fmul x86_fp80 %24, 0xK3FFE8000000000000000
  store x86_fp80 %25, ptr %4, align 16, !tbaa !5
  br label %38

26:                                               ; preds = %10, %8, %2
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %61

28:                                               ; preds = %15, %30
  %.04047 = phi i32 [ 0, %15 ], [ %34, %30 ]
  %.04146 = phi x86_fp80 [ %19, %15 ], [ %33, %30 ]
  %29 = invoke noundef x86_fp80 @_Z1fe(x86_fp80 noundef %.04146)
          to label %30 unwind label %35

30:                                               ; preds = %28
  %31 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %32 = fadd x86_fp80 %29, %31
  store x86_fp80 %32, ptr %4, align 16, !tbaa !5
  %33 = fadd x86_fp80 %.033, %.04146
  %34 = add nuw i32 %.04047, 1
  %exitcond.not = icmp eq i32 %34, %umax
  br i1 %exitcond.not, label %20, label %28, !llvm.loop !9

35:                                               ; preds = %28
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %61

37:                                               ; preds = %38
  invoke void @_ZNSt6vectorIeSaIeEE9push_backERKe(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(16) %4)
          to label %50 unwind label %56

38:                                               ; preds = %20, %38
  %39 = phi x86_fp80 [ %25, %20 ], [ %44, %38 ]
  %indvars.iv = phi i64 [ 0, %20 ], [ %indvars.iv.next, %38 ]
  %.03649 = phi x86_fp80 [ 0xK3FFDAAAAAAAAAAAAA800, %20 ], [ %48, %38 ]
  %.03848 = phi x86_fp80 [ 0xK3FFFAAAAAAAAAAAAA800, %20 ], [ %49, %38 ]
  %40 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  %41 = load x86_fp80, ptr %40, align 16, !tbaa !5
  %42 = fneg x86_fp80 %.03649
  %43 = fmul x86_fp80 %41, %42
  %44 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %.03848, x86_fp80 %39, x86_fp80 %43)
  %45 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %46 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  store x86_fp80 %45, ptr %46, align 16, !tbaa !5
  store x86_fp80 %44, ptr %4, align 16, !tbaa !5
  %47 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %.03848, x86_fp80 0xK40018000000000000000, x86_fp80 %42)
  %48 = fdiv x86_fp80 %.03649, %47
  %49 = fadd x86_fp80 %48, 0xK3FFF8000000000000000
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond52.not = icmp eq i64 %indvars.iv.next, %indvars.iv53
  br i1 %exitcond52.not, label %37, label %38, !llvm.loop !11

50:                                               ; preds = %37
  %51 = shl nsw i32 %.034, 1
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %52 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %53 = fsub x86_fp80 %17, %52
  %54 = call noundef x86_fp80 @_ZSt4fabse(x86_fp80 noundef %53)
  %55 = fcmp olt x86_fp80 %54, 0xK3FEB8637BD05AF6C6800
  br i1 %55, label %58, label %15

56:                                               ; preds = %37
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %61

58:                                               ; preds = %50
  %59 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %60 = load x86_fp80, ptr %59, align 16, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @_ZNSt6vectorIeSaIeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  ret x86_fp80 %60

61:                                               ; preds = %35, %56, %26
  %.pn.pn = phi { ptr, i32 } [ %27, %26 ], [ %36, %35 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @_ZNSt6vectorIeSaIeEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZNSt6vectorIeSaIeEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef x86_fp80 @_ZSt4fabse(x86_fp80 noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #5

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass