; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/External/fastjet-3.0.0/plugins/SISCone/siscone/siscone/sph_8348ef76 (EEdd)

; 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.siscone_spherical::CSphjet" = type <{ %"class.siscone_spherical::CSphmomentum", double, i32, [4 x i8], %"class.std::vector", double, %"class.siscone_spherical::CSphtheta_phi_range", i32, [4 x i8] }>
%"class.siscone_spherical::CSphmomentum" = type { %"class.siscone_spherical::CSph3vector.base", double, i32, i32 }
%"class.siscone_spherical::CSph3vector.base" = type <{ double, double, double, double, double, double, %"class.siscone::Creference" }>
%"class.siscone::Creference" = type { [3 x i32] }
%"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 }
%"class.siscone_spherical::CSphtheta_phi_range" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.siscone_spherical::CSphsplit_merge" = type <{ i32, [4 x i8], %"class.std::vector.3", %"class.std::vector.8", i32, [4 x i8], %"class.std::vector.3", %"class.std::vector.3", i32, [4 x i8], double, %"class.std::vector.13", ptr, i32, i8, [3 x i8], %"class.siscone_spherical::CSphsplit_merge_ptcomparison", double, double, %"class.std::auto_ptr", double, i8, [7 x i8] }>
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<siscone_spherical::CSphmomentum, std::allocator<siscone_spherical::CSphmomentum>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone_spherical::CSphmomentum, std::allocator<siscone_spherical::CSphmomentum>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone_spherical::CSphmomentum, std::allocator<siscone_spherical::CSphmomentum>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone_spherical::CSphmomentum, std::allocator<siscone_spherical::CSphmomentum>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<siscone_spherical::CSphjet, std::allocator<siscone_spherical::CSphjet>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone_spherical::CSphjet, std::allocator<siscone_spherical::CSphjet>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone_spherical::CSphjet, std::allocator<siscone_spherical::CSphjet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone_spherical::CSphjet, std::allocator<siscone_spherical::CSphjet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone_spherical::CSphsplit_merge_ptcomparison" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.std::auto_ptr" = type { ptr }
%"class.siscone_spherical::CSph3vector" = type <{ double, double, double, double, double, double, %"class.siscone::Creference", [4 x i8] }>

declare void @_ZN17siscone_spherical12CSphmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

declare noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) #0

; Function Attrs: nounwind
declare void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN17siscone_spherical15CSphsplit_merge14add_protoconesEPSt6vectorINS_12CSphmomentumESaIS2_EEdd(ptr noundef nonnull align 8 dereferenceable(225) %0, ptr noundef %1, double noundef %2, double noundef %3) #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca %"class.siscone_spherical::CSphjet", align 8
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.siscone_spherical::CSphmomentum", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.siscone_spherical::CSphtheta_phi_range", align 4
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store double %2, ptr %8, align 8, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !9
  %25 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr %14) #7
  call void @_ZN17siscone_spherical7CSphjetC1Ev(ptr noundef nonnull align 8 dereferenceable(140) %14)
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNKSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  %28 = icmp eq i64 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %4
  store i32 1, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %208

30:                                               ; preds = %4
  %31 = load double, ptr %9, align 8, !tbaa !9
  %32 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 20
  store double %31, ptr %32, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %33 = load double, ptr %8, align 8, !tbaa !9
  %34 = call double @sqrt(double noundef %33) #7
  store double %34, ptr %16, align 8, !tbaa !9
  %35 = load double, ptr %16, align 8, !tbaa !9
  %36 = call double @tan(double noundef %35) #7
  store double %36, ptr %13, align 8, !tbaa !9
  %37 = load double, ptr %13, align 8, !tbaa !9
  %38 = load double, ptr %13, align 8, !tbaa !9
  %39 = fmul double %38, %37
  store double %39, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = call ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #7
  %42 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %41, ptr %42, align 8
  br label %43

43:                                               ; preds = %124, %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = call ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #7
  %46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br i1 %47, label %49, label %48

48:                                               ; preds = %43
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %132

49:                                               ; preds = %43
  %50 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  store ptr %50, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %19) #7
  invoke void @_ZN17siscone_spherical12CSphmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %51 unwind label %82

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"class.siscone_spherical::CSphjet", ptr %14, i32 0, i32 0
  %53 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %52, ptr noundef nonnull align 8 dereferenceable(80) %19)
          to label %54 unwind label %86

54:                                               ; preds = %51
  call void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #7
  %55 = getelementptr inbounds %"class.siscone_spherical::CSphjet", ptr %14, i32 0, i32 4
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %55) #7
  store i32 0, ptr %10, align 4, !tbaa !30
  br label %56

56:                                               ; preds = %96, %54
  %57 = load i32, ptr %10, align 4, !tbaa !30
  %58 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 4
  %59 = load i32, ptr %58, align 8, !tbaa !31
  %60 = icmp slt i32 %57, %59
  br i1 %60, label %61, label %99

61:                                               ; preds = %56
  %62 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %63 = load i32, ptr %10, align 4, !tbaa !30
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64) #7
  store ptr %65, ptr %12, align 8, !tbaa !5
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load double, ptr %13, align 8, !tbaa !9
  %69 = invoke noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef %66, ptr noundef %67, double noundef %68)
          to label %70 unwind label %91

70:                                               ; preds = %61
  br i1 %69, label %71, label %95

71:                                               ; preds = %70
  %72 = getelementptr inbounds %"class.siscone_spherical::CSphjet", ptr %14, i32 0, i32 4
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.siscone_spherical::CSphmomentum", ptr %73, i32 0, i32 2
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 4 dereferenceable(4) %74)
          to label %75 unwind label %91

75:                                               ; preds = %71
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.siscone_spherical::CSphjet", ptr %14, i32 0, i32 0
  %78 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %77, ptr noundef nonnull align 8 dereferenceable(80) %76)
          to label %79 unwind label %91

79:                                               ; preds = %75
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.siscone_spherical::CSphmomentum", ptr %80, i32 0, i32 3
  store i32 0, ptr %81, align 4, !tbaa !32
  br label %95

82:                                               ; preds = %49
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %20, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %21, align 4
  br label %90

86:                                               ; preds = %51
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %20, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %21, align 4
  call void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %19) #7
  br label %90

90:                                               ; preds = %86, %82
  call void @llvm.lifetime.end.p0(i64 80, ptr %19) #7
  br label %131

91:                                               ; preds = %121, %108, %104, %99, %75, %71, %61
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %20, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %21, align 4
  br label %131

95:                                               ; preds = %79, %70
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %10, align 4, !tbaa !30
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %10, align 4, !tbaa !30
  br label %56, !llvm.loop !36

99:                                               ; preds = %56
  %100 = getelementptr inbounds %"class.siscone_spherical::CSphjet", ptr %14, i32 0, i32 4
  %101 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %100) #7
  %102 = trunc i64 %101 to i32
  %103 = getelementptr inbounds %"class.siscone_spherical::CSphjet", ptr %14, i32 0, i32 2
  store i32 %102, ptr %103, align 8, !tbaa !38
  invoke void @_ZN17siscone_spherical15CSphsplit_merge14compute_EtildeERNS_7CSphjetE(ptr noundef nonnull align 8 dereferenceable(225) %25, ptr noundef nonnull align 8 dereferenceable(140) %14)
          to label %104 unwind label %91

104:                                              ; preds = %99
  %105 = getelementptr inbounds %"class.siscone_spherical::CSphjet", ptr %14, i32 0, i32 0
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %106, ptr noundef nonnull align 8 dereferenceable(80) %105)
          to label %108 unwind label %91

108:                                              ; preds = %104
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN17siscone_spherical11CSph3vector14build_thetaphiEv(ptr noundef nonnull align 8 dereferenceable(60) %109)
          to label %110 unwind label %91

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %111, i32 0, i32 4
  %113 = load double, ptr %112, align 8, !tbaa !45
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %114, i32 0, i32 5
  %116 = load double, ptr %115, align 8, !tbaa !46
  %117 = load double, ptr %16, align 8, !tbaa !9
  invoke void @_ZN17siscone_spherical19CSphtheta_phi_rangeC1Eddd(ptr noundef nonnull align 4 dereferenceable(8) %22, double noundef %113, double noundef %116, double noundef %117)
          to label %118 unwind label %127

118:                                              ; preds = %110
  %119 = getelementptr inbounds %"class.siscone_spherical::CSphjet", ptr %14, i32 0, i32 6
  %120 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN17siscone_spherical19CSphtheta_phi_rangeaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %119, ptr noundef nonnull align 4 dereferenceable(8) %22)
          to label %121 unwind label %127

121:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %122 = invoke noundef zeroext i1 @_ZN17siscone_spherical15CSphsplit_merge6insertERNS_7CSphjetE(ptr noundef nonnull align 8 dereferenceable(225) %25, ptr noundef nonnull align 8 dereferenceable(140) %14)
          to label %123 unwind label %91

123:                                              ; preds = %121
  br label %124

124:                                              ; preds = %123
  %125 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef 0) #7
  %126 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %125, ptr %126, align 8
  br label %43, !llvm.loop !47

127:                                              ; preds = %118, %110
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %20, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %131

131:                                              ; preds = %127, %91, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %207

132:                                              ; preds = %48
  %133 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 8
  %134 = load i32, ptr %133, align 8, !tbaa !48
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %133, align 8, !tbaa !48
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !30
  store i32 0, ptr %10, align 4, !tbaa !30
  br label %136

136:                                              ; preds = %195, %132
  %137 = load i32, ptr %10, align 4, !tbaa !30
  %138 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 4
  %139 = load i32, ptr %138, align 8, !tbaa !31
  %140 = icmp slt i32 %137, %139
  br i1 %140, label %141, label %198

141:                                              ; preds = %136
  %142 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %143 = load i32, ptr %10, align 4, !tbaa !30
  %144 = sext i32 %143 to i64
  %145 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %144) #7
  %146 = getelementptr inbounds %"class.siscone_spherical::CSphmomentum", ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !32
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %194

149:                                              ; preds = %141
  %150 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %151 = load i32, ptr %10, align 4, !tbaa !30
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %152) #7
  %154 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %155 = load i32, ptr %24, align 4, !tbaa !30
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #7
  %158 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %157, ptr noundef nonnull align 8 dereferenceable(80) %153)
          to label %159 unwind label %190

159:                                              ; preds = %149
  %160 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %161 = load i32, ptr %10, align 4, !tbaa !30
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #7
  %164 = getelementptr inbounds %"class.siscone_spherical::CSphmomentum", ptr %163, i32 0, i32 2
  %165 = load i32, ptr %164, align 8, !tbaa !49
  %166 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %167 = load i32, ptr %24, align 4, !tbaa !30
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #7
  %170 = getelementptr inbounds %"class.siscone_spherical::CSphmomentum", ptr %169, i32 0, i32 2
  store i32 %165, ptr %170, align 8, !tbaa !49
  %171 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %172 = load i32, ptr %24, align 4, !tbaa !30
  %173 = sext i32 %172 to i64
  %174 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %173) #7
  %175 = getelementptr inbounds %"class.siscone_spherical::CSphmomentum", ptr %174, i32 0, i32 3
  store i32 1, ptr %175, align 4, !tbaa !32
  %176 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 8
  %177 = load i32, ptr %176, align 8, !tbaa !48
  %178 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 2
  %179 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %180 = load i32, ptr %24, align 4, !tbaa !30
  %181 = sext i32 %180 to i64
  %182 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %179, i64 noundef %181) #7
  %183 = getelementptr inbounds %"class.siscone_spherical::CSphmomentum", ptr %182, i32 0, i32 2
  %184 = load i32, ptr %183, align 8, !tbaa !49
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %178, i64 noundef %185) #7
  %187 = getelementptr inbounds %"class.siscone_spherical::CSphmomentum", ptr %186, i32 0, i32 3
  store i32 %177, ptr %187, align 4, !tbaa !32
  %188 = load i32, ptr %24, align 4, !tbaa !30
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %24, align 4, !tbaa !30
  br label %194

190:                                              ; preds = %204, %198, %149
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %20, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %207

194:                                              ; preds = %159, %141
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %10, align 4, !tbaa !30
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %10, align 4, !tbaa !30
  br label %136, !llvm.loop !50

198:                                              ; preds = %136
  %199 = load i32, ptr %24, align 4, !tbaa !30
  %200 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 4
  store i32 %199, ptr %200, align 8, !tbaa !31
  %201 = getelementptr inbounds %"class.siscone_spherical::CSphsplit_merge", ptr %25, i32 0, i32 6
  %202 = load i32, ptr %24, align 4, !tbaa !30
  %203 = sext i32 %202 to i64
  invoke void @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %203)
          to label %204 unwind label %190

204:                                              ; preds = %198
  %205 = invoke noundef i32 @_ZN17siscone_spherical15CSphsplit_merge31merge_collinear_and_remove_softEv(ptr noundef nonnull align 8 dereferenceable(225) %25)
          to label %206 unwind label %190

206:                                              ; preds = %204
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %208

207:                                              ; preds = %190, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @_ZN17siscone_spherical7CSphjetD1Ev(ptr noundef nonnull align 8 dereferenceable(140) %14) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %210

208:                                              ; preds = %206, %29
  call void @_ZN17siscone_spherical7CSphjetD1Ev(ptr noundef nonnull align 8 dereferenceable(140) %14) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %209 = load i32, ptr %5, align 4
  ret i32 %209

210:                                              ; preds = %207
  %211 = load ptr, ptr %20, align 8
  %212 = load i32, ptr %21, align 4
  %213 = insertvalue { ptr, i32 } poison, ptr %211, 0
  %214 = insertvalue { ptr, i32 } %213, i32 %212, 1
  resume { ptr, i32 } %214
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical15CSphsplit_merge31merge_collinear_and_remove_softEv(ptr noundef nonnull align 8 dereferenceable(225)) #4 align 2

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

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

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

; Function Attrs: nounwind
declare double @tan(double noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef, ptr noundef, double noundef) #6

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17siscone_spherical15CSphsplit_merge14compute_EtildeERNS_7CSphjetE(ptr noundef nonnull align 8 dereferenceable(225), ptr noundef nonnull align 8 dereferenceable(140)) #4 align 2

declare void @_ZN17siscone_spherical11CSph3vector14build_thetaphiEv(ptr noundef nonnull align 8 dereferenceable(60)) #0

declare void @_ZN17siscone_spherical19CSphtheta_phi_rangeC1Eddd(ptr noundef nonnull align 4 dereferenceable(8), double noundef, double noundef, double noundef) unnamed_addr #0

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN17siscone_spherical19CSphtheta_phi_rangeaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN17siscone_spherical15CSphsplit_merge6insertERNS_7CSphjetE(ptr noundef nonnull align 8 dereferenceable(225), ptr noundef nonnull align 8 dereferenceable(140)) #4 align 2

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

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

declare void @_ZN17siscone_spherical7CSphjetC1Ev(ptr)

declare void @_ZN17siscone_spherical7CSphjetD1Ev(ptr)

attributes #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 = { 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 #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 = { 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 #5 = { 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 #6 = { inlinehint 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 #7 = { 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}
!11 = !{!12, !10, i64 216}
!12 = !{!"_ZTSN17siscone_spherical15CSphsplit_mergeE", !13, i64 0, !14, i64 8, !18, i64 32, !13, i64 56, !14, i64 64, !14, i64 88, !13, i64 112, !10, i64 120, !22, i64 128, !6, i64 152, !13, i64 160, !26, i64 164, !27, i64 168, !10, i64 192, !10, i64 200, !29, i64 208, !10, i64 216, !26, i64 224}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIN17siscone_spherical7CSphjetESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN17siscone_spherical7CSphjetESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical7CSphjetESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical7CSphjetESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"_ZTSN17siscone_spherical28CSphsplit_merge_ptcomparisonE", !6, i64 0, !6, i64 8, !28, i64 16}
!28 = !{!"_ZTSN17siscone_spherical18Esplit_merge_scaleE", !7, i64 0}
!29 = !{!"_ZTSSt8auto_ptrISt8multisetIN17siscone_spherical7CSphjetENS1_28CSphsplit_merge_ptcomparisonESaIS2_EEE", !6, i64 0}
!30 = !{!13, !13, i64 0}
!31 = !{!12, !13, i64 56}
!32 = !{!33, !13, i64 76}
!33 = !{!"_ZTSN17siscone_spherical12CSphmomentumE", !34, i64 0, !10, i64 64, !13, i64 72, !13, i64 76}
!34 = !{!"_ZTSN17siscone_spherical11CSph3vectorE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !35, i64 48}
!35 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!39, !13, i64 88}
!39 = !{!"_ZTSN17siscone_spherical7CSphjetE", !33, i64 0, !10, i64 80, !13, i64 88, !40, i64 96, !10, i64 120, !44, i64 128, !13, i64 136}
!40 = !{!"_ZTSSt6vectorIiSaIiEE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!44 = !{!"_ZTSN17siscone_spherical19CSphtheta_phi_rangeE", !13, i64 0, !13, i64 4}
!45 = !{!34, !10, i64 32}
!46 = !{!34, !10, i64 40}
!47 = distinct !{!47, !37}
!48 = !{!12, !13, i64 112}
!49 = !{!33, !13, i64 72}
!50 = distinct !{!50, !37}


; 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.siscone_spherical::CSphjet" = type <{ %"class.siscone_spherical::CSphmomentum", double, i32, [4 x i8], %"class.std::vector", double, %"class.siscone_spherical::CSphtheta_phi_range", i32, [4 x i8] }>
%"class.siscone_spherical::CSphmomentum" = type { %"class.siscone_spherical::CSph3vector.base", double, i32, i32 }
%"class.siscone_spherical::CSph3vector.base" = type <{ double, double, double, double, double, double, %"class.siscone::Creference" }>
%"class.siscone::Creference" = type { [3 x i32] }
%"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 }
%"class.siscone_spherical::CSphtheta_phi_range" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

declare void @_ZN17siscone_spherical12CSphmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

declare noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN17siscone_spherical15CSphsplit_merge14add_protoconesEPSt6vectorINS_12CSphmomentumESaIS2_EEdd(ptr noundef nonnull align 8 dereferenceable(225) %0, ptr noundef %1, double noundef %2, double noundef %3) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.siscone_spherical::CSphjet", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.siscone_spherical::CSphmomentum", align 8
  %9 = alloca %"class.siscone_spherical::CSphtheta_phi_range", align 4
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #8
  call void @_ZN17siscone_spherical7CSphjetC1Ev(ptr noundef nonnull align 8 dereferenceable(140) %5)
  %10 = call noundef i64 @_ZNKSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %113, label %12

12:                                               ; preds = %4
  %13 = getelementptr inbounds i8, ptr %0, i64 216
  store double %3, ptr %13, align 8, !tbaa !5
  %14 = call double @sqrt(double noundef %2) #8
  %15 = call double @tan(double noundef %14) #8
  %16 = fmul double %15, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %17 = call ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  store ptr %17, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %18 = call ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  store ptr %18, ptr %7, align 8
  %19 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %19, label %.lr.ph58, label %._crit_edge59

.lr.ph58:                                         ; preds = %12
  %20 = getelementptr inbounds i8, ptr %5, i64 96
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  %22 = getelementptr inbounds i8, ptr %0, i64 64
  %23 = getelementptr inbounds i8, ptr %5, i64 88
  %24 = getelementptr inbounds i8, ptr %5, i64 128
  br label %33

._crit_edge59:                                    ; preds = %72, %12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %25 = getelementptr inbounds i8, ptr %0, i64 112
  %26 = load i32, ptr %25, align 8, !tbaa !28
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %25, align 8, !tbaa !28
  %28 = getelementptr inbounds i8, ptr %0, i64 56
  %29 = load i32, ptr %28, align 8, !tbaa !29
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph63, label %._crit_edge64

.lr.ph63:                                         ; preds = %._crit_edge59
  %31 = getelementptr inbounds i8, ptr %0, i64 64
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  br label %79

33:                                               ; preds = %.lr.ph58, %72
  %34 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #8
  invoke void @_ZN17siscone_spherical12CSphmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %35 unwind label %49

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(80) %8)
          to label %37 unwind label %51

37:                                               ; preds = %35
  call void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #8
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %38 = load i32, ptr %21, align 8, !tbaa !29
  %39 = icmp sgt i32 %38, 0
  br i1 %39, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %37, %54
  %indvars.iv = phi i64 [ %indvars.iv.next, %54 ], [ 0, %37 ]
  %40 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #8
  %41 = invoke noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef nonnull %40, ptr noundef nonnull %34, double noundef %16)
          to label %42 unwind label %.loopexit49

42:                                               ; preds = %.lr.ph
  br i1 %41, label %43, label %54

43:                                               ; preds = %42
  %44 = getelementptr inbounds i8, ptr %40, i64 72
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 4 dereferenceable(4) %44)
          to label %45 unwind label %.loopexit49

45:                                               ; preds = %43
  %46 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 8 dereferenceable(80) %40)
          to label %47 unwind label %.loopexit49

47:                                               ; preds = %45
  %48 = getelementptr inbounds i8, ptr %40, i64 76
  store i32 0, ptr %48, align 4, !tbaa !30
  br label %54

49:                                               ; preds = %33
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %35
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %8) #8
  br label %53

53:                                               ; preds = %51, %49
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #8
  br label %78

.loopexit49:                                      ; preds = %.lr.ph, %43, %45
  %lpad.loopexit51 = landingpad { ptr, i32 }
          cleanup
  br label %78

.loopexit.split-lp50:                             ; preds = %._crit_edge, %60, %62, %70
  %lpad.loopexit.split-lp52 = landingpad { ptr, i32 }
          cleanup
  br label %78

54:                                               ; preds = %42, %47
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %55 = load i32, ptr %21, align 8, !tbaa !29
  %56 = sext i32 %55 to i64
  %57 = icmp slt i64 %indvars.iv.next, %56
  br i1 %57, label %.lr.ph, label %._crit_edge, !llvm.loop !34

._crit_edge:                                      ; preds = %54, %37
  %58 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #8
  %59 = trunc i64 %58 to i32
  store i32 %59, ptr %23, align 8, !tbaa !36
  invoke void @_ZN17siscone_spherical15CSphsplit_merge14compute_EtildeERNS_7CSphjetE(ptr noundef nonnull align 8 dereferenceable(225) %0, ptr noundef nonnull align 8 dereferenceable(140) %5)
          to label %60 unwind label %.loopexit.split-lp50

60:                                               ; preds = %._crit_edge
  %61 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %34, ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %62 unwind label %.loopexit.split-lp50

62:                                               ; preds = %60
  invoke void @_ZN17siscone_spherical11CSph3vector14build_thetaphiEv(ptr noundef nonnull align 8 dereferenceable(60) %34)
          to label %63 unwind label %.loopexit.split-lp50

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %64 = getelementptr inbounds i8, ptr %34, i64 32
  %65 = load double, ptr %64, align 8, !tbaa !43
  %66 = getelementptr inbounds i8, ptr %34, i64 40
  %67 = load double, ptr %66, align 8, !tbaa !44
  invoke void @_ZN17siscone_spherical19CSphtheta_phi_rangeC1Eddd(ptr noundef nonnull align 4 dereferenceable(8) %9, double noundef %65, double noundef %67, double noundef %14)
          to label %68 unwind label %76

68:                                               ; preds = %63
  %69 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZN17siscone_spherical19CSphtheta_phi_rangeaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %24, ptr noundef nonnull align 4 dereferenceable(8) %9)
          to label %70 unwind label %76

70:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  %71 = invoke noundef zeroext i1 @_ZN17siscone_spherical15CSphsplit_merge6insertERNS_7CSphjetE(ptr noundef nonnull align 8 dereferenceable(225) %0, ptr noundef nonnull align 8 dereferenceable(140) %5)
          to label %72 unwind label %.loopexit.split-lp50

72:                                               ; preds = %70
  %73 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef 0) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %74 = call ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #8
  store ptr %74, ptr %7, align 8
  %75 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br i1 %75, label %33, label %._crit_edge59, !llvm.loop !45

76:                                               ; preds = %68, %63
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  br label %78

78:                                               ; preds = %.loopexit49, %.loopexit.split-lp50, %76, %53
  %.pn46 = phi { ptr, i32 } [ %77, %76 ], [ %.pn, %53 ], [ %lpad.loopexit51, %.loopexit49 ], [ %lpad.loopexit.split-lp52, %.loopexit.split-lp50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %112

79:                                               ; preds = %.lr.ph63, %104
  %indvars.iv66 = phi i64 [ 0, %.lr.ph63 ], [ %indvars.iv.next67, %104 ]
  %.061 = phi i32 [ 0, %.lr.ph63 ], [ %.1, %104 ]
  %80 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv66) #8
  %81 = getelementptr inbounds i8, ptr %80, i64 76
  %82 = load i32, ptr %81, align 4, !tbaa !30
  %.not = icmp eq i32 %82, 0
  br i1 %.not, label %104, label %83

83:                                               ; preds = %79
  %84 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv66) #8
  %85 = sext i32 %.061 to i64
  %86 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %85) #8
  %87 = invoke noundef nonnull align 8 dereferenceable(80) ptr @_ZN17siscone_spherical12CSphmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(80) %86, ptr noundef nonnull align 8 dereferenceable(80) %84)
          to label %88 unwind label %.loopexit

88:                                               ; preds = %83
  %89 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %indvars.iv66) #8
  %90 = getelementptr inbounds i8, ptr %89, i64 72
  %91 = load i32, ptr %90, align 8, !tbaa !46
  %92 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %85) #8
  %93 = getelementptr inbounds i8, ptr %92, i64 72
  store i32 %91, ptr %93, align 8, !tbaa !46
  %94 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %85) #8
  %95 = getelementptr inbounds i8, ptr %94, i64 76
  store i32 1, ptr %95, align 4, !tbaa !30
  %96 = load i32, ptr %25, align 8, !tbaa !28
  %97 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %85) #8
  %98 = getelementptr inbounds i8, ptr %97, i64 72
  %99 = load i32, ptr %98, align 8, !tbaa !46
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %100) #8
  %102 = getelementptr inbounds i8, ptr %101, i64 76
  store i32 %96, ptr %102, align 4, !tbaa !30
  %103 = add nsw i32 %.061, 1
  br label %104

.loopexit:                                        ; preds = %83
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %112

.loopexit.split-lp:                               ; preds = %._crit_edge64, %110
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %112

104:                                              ; preds = %79, %88
  %.1 = phi i32 [ %103, %88 ], [ %.061, %79 ]
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %105 = load i32, ptr %28, align 8, !tbaa !29
  %106 = sext i32 %105 to i64
  %107 = icmp slt i64 %indvars.iv.next67, %106
  br i1 %107, label %79, label %._crit_edge64, !llvm.loop !47

._crit_edge64:                                    ; preds = %104, %._crit_edge59
  %.0.lcssa = phi i32 [ 0, %._crit_edge59 ], [ %.1, %104 ]
  store i32 %.0.lcssa, ptr %28, align 8, !tbaa !29
  %108 = getelementptr inbounds i8, ptr %0, i64 64
  %109 = sext i32 %.0.lcssa to i64
  invoke void @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %109)
          to label %110 unwind label %.loopexit.split-lp

110:                                              ; preds = %._crit_edge64
  %111 = invoke noundef i32 @_ZN17siscone_spherical15CSphsplit_merge31merge_collinear_and_remove_softEv(ptr noundef nonnull align 8 dereferenceable(225) %0)
          to label %113 unwind label %.loopexit.split-lp

112:                                              ; preds = %.loopexit, %.loopexit.split-lp, %78
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %78 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN17siscone_spherical7CSphjetD1Ev(ptr noundef nonnull align 8 dereferenceable(140) %5) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn46.pn

113:                                              ; preds = %110, %4
  %.037 = phi i32 [ 1, %4 ], [ 0, %110 ]
  call void @_ZN17siscone_spherical7CSphjetD1Ev(ptr noundef nonnull align 8 dereferenceable(140) %5) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #8
  ret i32 %.037
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical15CSphsplit_merge31merge_collinear_and_remove_softEv(ptr noundef nonnull align 8 dereferenceable(225)) local_unnamed_addr #4 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef, ptr noundef, double noundef) local_unnamed_addr #7

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17siscone_spherical15CSphsplit_merge14compute_EtildeERNS_7CSphjetE(ptr noundef nonnull align 8 dereferenceable(225), ptr noundef nonnull align 8 dereferenceable(140)) local_unnamed_addr #4 align 2

declare void @_ZN17siscone_spherical11CSph3vector14build_thetaphiEv(ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #0

declare void @_ZN17siscone_spherical19CSphtheta_phi_rangeC1Eddd(ptr noundef nonnull align 4 dereferenceable(8), double noundef, double noundef, double noundef) unnamed_addr #0

declare noundef nonnull align 4 dereferenceable(8) ptr @_ZN17siscone_spherical19CSphtheta_phi_rangeaSERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN17siscone_spherical15CSphsplit_merge6insertERNS_7CSphjetE(ptr noundef nonnull align 8 dereferenceable(225), ptr noundef nonnull align 8 dereferenceable(140)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN9__gnu_cxx17__normal_iteratorIPN17siscone_spherical12CSphmomentumESt6vectorIS2_SaIS2_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

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

declare void @_ZN17siscone_spherical7CSphjetC1Ev(ptr) local_unnamed_addr

declare void @_ZN17siscone_spherical7CSphjetD1Ev(ptr) local_unnamed_addr

attributes #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 = { 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 #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 = { 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 #5 = { 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 #6 = { 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 #7 = { inlinehint 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 #8 = { 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, !19, i64 216}
!6 = !{!"_ZTSN17siscone_spherical15CSphsplit_mergeE", !7, i64 0, !10, i64 8, !15, i64 32, !7, i64 56, !10, i64 64, !10, i64 88, !7, i64 112, !19, i64 120, !20, i64 128, !14, i64 152, !7, i64 160, !24, i64 164, !25, i64 168, !19, i64 192, !19, i64 200, !27, i64 208, !19, i64 216, !24, i64 224}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!19 = !{!"double", !8, i64 0}
!20 = !{!"_ZTSSt6vectorIN17siscone_spherical7CSphjetESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIN17siscone_spherical7CSphjetESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical7CSphjetESaIS1_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical7CSphjetESaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!24 = !{!"bool", !8, i64 0}
!25 = !{!"_ZTSN17siscone_spherical28CSphsplit_merge_ptcomparisonE", !14, i64 0, !14, i64 8, !26, i64 16}
!26 = !{!"_ZTSN17siscone_spherical18Esplit_merge_scaleE", !8, i64 0}
!27 = !{!"_ZTSSt8auto_ptrISt8multisetIN17siscone_spherical7CSphjetENS1_28CSphsplit_merge_ptcomparisonESaIS2_EEE", !14, i64 0}
!28 = !{!6, !7, i64 112}
!29 = !{!6, !7, i64 56}
!30 = !{!31, !7, i64 76}
!31 = !{!"_ZTSN17siscone_spherical12CSphmomentumE", !32, i64 0, !19, i64 64, !7, i64 72, !7, i64 76}
!32 = !{!"_ZTSN17siscone_spherical11CSph3vectorE", !19, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !33, i64 48}
!33 = !{!"_ZTSN7siscone10CreferenceE", !8, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!37, !7, i64 88}
!37 = !{!"_ZTSN17siscone_spherical7CSphjetE", !31, i64 0, !19, i64 80, !7, i64 88, !38, i64 96, !19, i64 120, !42, i64 128, !7, i64 136}
!38 = !{!"_ZTSSt6vectorIiSaIiEE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!42 = !{!"_ZTSN17siscone_spherical19CSphtheta_phi_rangeE", !7, i64 0, !7, i64 4}
!43 = !{!32, !19, i64 32}
!44 = !{!32, !19, i64 40}
!45 = distinct !{!45, !35}
!46 = !{!31, !7, i64 72}
!47 = distinct !{!47, !35}


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