; LLVM IR from tangjz/acm-icpc :: codeforces/complete/933C.ll (Z7get_insSt4pairIS_IddEdES1_)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7get_insSt4pairIS_IddEdES1_(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef byval(%"struct.std::pair.0") align 8 %1, ptr noundef byval(%"struct.std::pair.0") align 8 %2) #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i1, align 1
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  store ptr %0, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %24 = getelementptr inbounds %"struct.std::pair.0", ptr %1, i32 0, i32 0
  %25 = getelementptr inbounds %"struct.std::pair", ptr %24, i32 0, i32 0
  store ptr %25, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %26 = getelementptr inbounds %"struct.std::pair.0", ptr %1, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 1
  store ptr %27, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %28 = getelementptr inbounds %"struct.std::pair.0", ptr %1, i32 0, i32 1
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %29 = getelementptr inbounds %"struct.std::pair.0", ptr %2, i32 0, i32 0
  %30 = getelementptr inbounds %"struct.std::pair", ptr %29, i32 0, i32 0
  store ptr %30, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %31 = getelementptr inbounds %"struct.std::pair.0", ptr %2, i32 0, i32 0
  %32 = getelementptr inbounds %"struct.std::pair", ptr %31, i32 0, i32 1
  store ptr %32, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %33 = getelementptr inbounds %"struct.std::pair.0", ptr %2, i32 0, i32 1
  store ptr %33, ptr %10, align 8, !tbaa !5
  store i1 false, ptr %11, align 1
  call void @_ZNSt6vectorISt4pairIddESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = load double, ptr %36, align 8, !tbaa !9
  %38 = fsub double %35, %37
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load double, ptr %41, align 8, !tbaa !9
  %43 = fsub double %40, %42
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load double, ptr %44, align 8, !tbaa !9
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = fsub double %45, %47
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load double, ptr %51, align 8, !tbaa !9
  %53 = fsub double %50, %52
  %54 = fmul double %48, %53
  %55 = call double @llvm.fmuladd.f64(double %38, double %43, double %54)
  store double %55, ptr %12, align 8, !tbaa !9
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = load double, ptr %58, align 8, !tbaa !9
  %60 = fadd double %57, %59
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load double, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = fadd double %62, %64
  %66 = fmul double %60, %65
  %67 = load double, ptr %12, align 8, !tbaa !9
  %68 = fsub double %67, 1.000000e-09
  %69 = fcmp olt double %66, %68
  br i1 %69, label %84, label %70

70:                                               ; preds = %3
  %71 = load double, ptr %12, align 8, !tbaa !9
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load double, ptr %72, align 8, !tbaa !9
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = fsub double %73, %75
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load double, ptr %79, align 8, !tbaa !9
  %81 = fsub double %78, %80
  %82 = call double @llvm.fmuladd.f64(double %76, double %81, double -1.000000e-09)
  %83 = fcmp olt double %71, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %70, %3
  store i1 true, ptr %11, align 1
  store i32 1, ptr %13, align 4
  br label %173

85:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load double, ptr %86, align 8, !tbaa !9
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load double, ptr %88, align 8, !tbaa !9
  %90 = fsub double %87, %89
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = load double, ptr %91, align 8, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = load double, ptr %93, align 8, !tbaa !9
  %95 = fsub double %92, %94
  %96 = call double @atan2(double noundef %90, double noundef %95) #5
  store double %96, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %97 = load double, ptr %12, align 8, !tbaa !9
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load double, ptr %98, align 8, !tbaa !9
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load double, ptr %100, align 8, !tbaa !9
  %102 = call double @llvm.fmuladd.f64(double %99, double %101, double %97)
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = load double, ptr %103, align 8, !tbaa !9
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load double, ptr %105, align 8, !tbaa !9
  %107 = fneg double %104
  %108 = call double @llvm.fmuladd.f64(double %107, double %106, double %102)
  %109 = load double, ptr %12, align 8, !tbaa !9
  %110 = call double @sqrt(double noundef %109) #5
  %111 = fmul double 2.000000e+00, %110
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = load double, ptr %112, align 8, !tbaa !9
  %114 = fmul double %111, %113
  %115 = fdiv double %108, %114
  %116 = call double @acos(double noundef %115) #5
  store double %116, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = load double, ptr %117, align 8, !tbaa !9
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load double, ptr %119, align 8, !tbaa !9
  %121 = load double, ptr %14, align 8, !tbaa !9
  %122 = load double, ptr %15, align 8, !tbaa !9
  %123 = fadd double %121, %122
  %124 = call double @cos(double noundef %123) #5
  %125 = call double @llvm.fmuladd.f64(double %120, double %124, double %118)
  store double %125, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load double, ptr %126, align 8, !tbaa !9
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load double, ptr %128, align 8, !tbaa !9
  %130 = load double, ptr %14, align 8, !tbaa !9
  %131 = load double, ptr %15, align 8, !tbaa !9
  %132 = fadd double %130, %131
  %133 = call double @sin(double noundef %132) #5
  %134 = call double @llvm.fmuladd.f64(double %129, double %133, double %127)
  store double %134, ptr %18, align 8, !tbaa !9
  invoke void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %135 unwind label %163

135:                                              ; preds = %85
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %136 unwind label %163

136:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  %137 = load double, ptr %15, align 8, !tbaa !9
  %138 = fcmp olt double %137, -1.000000e-09
  br i1 %138, label %142, label %139

139:                                              ; preds = %136
  %140 = load double, ptr %15, align 8, !tbaa !9
  %141 = fcmp ogt double %140, 1.000000e-09
  br i1 %141, label %142, label %171

142:                                              ; preds = %139, %136
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = load double, ptr %143, align 8, !tbaa !9
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = load double, ptr %145, align 8, !tbaa !9
  %147 = load double, ptr %14, align 8, !tbaa !9
  %148 = load double, ptr %15, align 8, !tbaa !9
  %149 = fsub double %147, %148
  %150 = call double @cos(double noundef %149) #5
  %151 = call double @llvm.fmuladd.f64(double %146, double %150, double %144)
  store double %151, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = load double, ptr %152, align 8, !tbaa !9
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = load double, ptr %154, align 8, !tbaa !9
  %156 = load double, ptr %14, align 8, !tbaa !9
  %157 = load double, ptr %15, align 8, !tbaa !9
  %158 = fsub double %156, %157
  %159 = call double @sin(double noundef %158) #5
  %160 = call double @llvm.fmuladd.f64(double %155, double %159, double %153)
  store double %160, ptr %23, align 8, !tbaa !9
  invoke void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %161 unwind label %167

161:                                              ; preds = %142
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %162 unwind label %167

162:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %171

163:                                              ; preds = %135, %85
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %19, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %172

167:                                              ; preds = %161, %142
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %19, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #5
  br label %172

171:                                              ; preds = %162, %139
  store i1 true, ptr %11, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %173

172:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %177

173:                                              ; preds = %171, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  %174 = load i1, ptr %11, align 1
  br i1 %174, label %176, label %175

175:                                              ; preds = %173
  call void @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %176

176:                                              ; preds = %175, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void

177:                                              ; preds = %172
  %178 = load ptr, ptr %19, align 8
  %179 = load i32, ptr %20, align 4
  %180 = insertvalue { ptr, i32 } poison, ptr %178, 0
  %181 = insertvalue { ptr, i32 } %180, i32 %179, 1
  resume { ptr, i32 } %181
}

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

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

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

; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #4

; Function Attrs: nounwind
declare double @acos(double noundef) #4

; Function Attrs: nounwind
declare double @sqrt(double noundef) #4

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

; Function Attrs: nounwind
declare double @cos(double noundef) #4

; Function Attrs: nounwind
declare double @sin(double noundef) #4

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(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 "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7get_insSt4pairIS_IddEdES1_(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr nocapture noundef readonly byval(%"struct.std::pair.0") align 8 %1, ptr nocapture noundef readonly byval(%"struct.std::pair.0") align 8 %2) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = getelementptr inbounds i8, ptr %1, i64 16
  %12 = getelementptr inbounds i8, ptr %2, i64 8
  %13 = getelementptr inbounds i8, ptr %2, i64 16
  tail call void @_ZNSt6vectorISt4pairIddESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %14 = load double, ptr %2, align 8, !tbaa !5
  %15 = load double, ptr %1, align 8, !tbaa !5
  %16 = fsub double %14, %15
  %17 = load double, ptr %12, align 8, !tbaa !5
  %18 = load double, ptr %10, align 8, !tbaa !5
  %19 = fsub double %17, %18
  %20 = fmul double %19, %19
  %21 = tail call double @llvm.fmuladd.f64(double %16, double %16, double %20)
  %22 = load double, ptr %11, align 8, !tbaa !5
  %23 = load double, ptr %13, align 8, !tbaa !5
  %24 = fadd double %22, %23
  %25 = fmul double %24, %24
  %26 = fadd double %21, -1.000000e-09
  %27 = fcmp olt double %25, %26
  br i1 %27, label %60, label %28

28:                                               ; preds = %3
  %29 = fsub double %22, %23
  %30 = tail call double @llvm.fmuladd.f64(double %29, double %29, double -1.000000e-09)
  %31 = fcmp olt double %21, %30
  br i1 %31, label %60, label %32

32:                                               ; preds = %28
  %33 = tail call double @atan2(double noundef %19, double noundef %16) #6
  %34 = tail call double @llvm.fmuladd.f64(double %22, double %22, double %21)
  %35 = fneg double %23
  %36 = tail call double @llvm.fmuladd.f64(double %35, double %23, double %34)
  %sqrt = tail call double @llvm.sqrt.f64(double %21)
  %37 = fmul double %sqrt, 2.000000e+00
  %38 = fmul double %22, %37
  %39 = fdiv double %36, %38
  %40 = tail call double @acos(double noundef %39) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %41 = fadd double %33, %40
  %42 = tail call double @cos(double noundef %41) #6
  %43 = tail call double @llvm.fmuladd.f64(double %22, double %42, double %15)
  store double %43, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %44 = tail call double @sin(double noundef %41) #6
  %45 = tail call double @llvm.fmuladd.f64(double %22, double %44, double %18)
  store double %45, ptr %6, align 8, !tbaa !5
  call void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %46 unwind label %55

46:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %47 = call double @llvm.fabs.f64(double %40)
  %or.cond = fcmp ogt double %47, 1.000000e-09
  br i1 %or.cond, label %48, label %60

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %49 = fsub double %33, %40
  %50 = call double @cos(double noundef %49) #6
  %51 = call double @llvm.fmuladd.f64(double %22, double %50, double %15)
  store double %51, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %52 = call double @sin(double noundef %49) #6
  %53 = call double @llvm.fmuladd.f64(double %22, double %52, double %18)
  store double %53, ptr %9, align 8, !tbaa !5
  call void @_ZNSt4pairIddEC2IddTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS3_S4_EEEbE4typeELb1EEEOS3_OS4_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  invoke void @_ZNSt6vectorISt4pairIddESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %54 unwind label %57

54:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %60

55:                                               ; preds = %32
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  br label %59

57:                                               ; preds = %48
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %59

59:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  resume { ptr, i32 } %.pn

60:                                               ; preds = %28, %3, %46, %54
  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 nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIddESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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 nofree nounwind willreturn memory(write)
declare double @atan2(double noundef, double noundef) local_unnamed_addr #4

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZNSt6vectorISt4pairIddESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.sqrt.f64(double) #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 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 nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass