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

; 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::CSph3vector" = type <{ double, double, double, double, double, double, %"class.siscone::Creference", [4 x i8] }>
%"class.siscone::Creference" = type { [3 x i32] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.siscone_spherical::CSphvicinity" = type { ptr, double, double, double, double, double, double, double, double, double, i32, %"class.std::vector", %"class.std::vector.3", ptr, %"class.std::vector.8", i32, [4 x i8], %"class.siscone_spherical::CSph3vector", %"class.siscone_spherical::CSph3vector", %"class.siscone_spherical::CSph3vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<siscone::Cvicinity_inclusion, std::allocator<siscone::Cvicinity_inclusion>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cvicinity_inclusion, std::allocator<siscone::Cvicinity_inclusion>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cvicinity_inclusion, std::allocator<siscone::Cvicinity_inclusion>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cvicinity_inclusion, std::allocator<siscone::Cvicinity_inclusion>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<siscone_spherical::CSphvicinity_elm *, std::allocator<siscone_spherical::CSphvicinity_elm *>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone_spherical::CSphvicinity_elm *, std::allocator<siscone_spherical::CSphvicinity_elm *>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone_spherical::CSphvicinity_elm *, std::allocator<siscone_spherical::CSphvicinity_elm *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone_spherical::CSphvicinity_elm *, std::allocator<siscone_spherical::CSphvicinity_elm *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN17siscone_spherical7ve_lessEPNS_16CSphvicinity_elmES1_(ptr noundef, ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN17siscone_spherical11CSph3vectorD1Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #1

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

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

; 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) #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17siscone_spherical12CSphvicinity5buildEPNS_12CSphmomentumEd(ptr noundef nonnull align 8 dereferenceable(368) %0, ptr noundef %1, double noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca %"class.siscone_spherical::CSph3vector", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store double %2, ptr %6, align 8, !tbaa !9
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 0
  store ptr %15, ptr %16, align 8, !tbaa !11
  %17 = load double, ptr %6, align 8, !tbaa !9
  %18 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 1
  store double %17, ptr %18, align 8, !tbaa !28
  %19 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 1
  %20 = load double, ptr %19, align 8, !tbaa !28
  %21 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 1
  %22 = load double, ptr %21, align 8, !tbaa !28
  %23 = fmul double %20, %22
  %24 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 2
  store double %23, ptr %24, align 8, !tbaa !29
  %25 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 1
  %26 = load double, ptr %25, align 8, !tbaa !28
  %27 = call double @cos(double noundef %26) #6
  %28 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 3
  store double %27, ptr %28, align 8, !tbaa !30
  %29 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 2
  %30 = load double, ptr %29, align 8, !tbaa !29
  %31 = fmul double 2.500000e-01, %30
  %32 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 5
  store double %31, ptr %32, align 8, !tbaa !31
  %33 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 1
  %34 = load double, ptr %33, align 8, !tbaa !28
  %35 = fmul double 5.000000e-01, %34
  %36 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 4
  store double %35, ptr %36, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %37 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 4
  %38 = load double, ptr %37, align 8, !tbaa !32
  %39 = call double @tan(double noundef %38) #6
  store double %39, ptr %8, align 8, !tbaa !9
  %40 = load double, ptr %8, align 8, !tbaa !9
  %41 = load double, ptr %8, align 8, !tbaa !9
  %42 = fmul double %40, %41
  %43 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 6
  store double %42, ptr %43, align 8, !tbaa !33
  %44 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 4
  %45 = load double, ptr %44, align 8, !tbaa !32
  %46 = call double @cos(double noundef %45) #6
  %47 = fsub double 1.000000e+00, %46
  %48 = fmul double 2.000000e+00, %47
  %49 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 7
  store double %48, ptr %49, align 8, !tbaa !34
  %50 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 4
  %51 = load double, ptr %50, align 8, !tbaa !32
  %52 = fdiv double 1.000000e+00, %51
  %53 = fdiv double %52, 0x3D719799812DEA11
  %54 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 8
  store double %53, ptr %54, align 8, !tbaa !35
  %55 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 4
  %56 = load double, ptr %55, align 8, !tbaa !32
  %57 = fdiv double 5.000000e-01, %56
  %58 = fdiv double %57, 0x3D719799812DEA11
  %59 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 9
  store double %58, ptr %59, align 8, !tbaa !36
  %60 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 14
  call void @_ZNSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #6
  %61 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %64, i32 0, i32 3
  call void @_ZN17siscone_spherical11CSph3vectordvERKd(ptr dead_on_unwind writable sret(%"class.siscone_spherical::CSph3vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(60) %62, ptr noundef nonnull align 8 dereferenceable(8) %65)
  %66 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 17
  %67 = invoke noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(60) %66, ptr noundef nonnull align 8 dereferenceable(60) %9)
          to label %68 unwind label %93

68:                                               ; preds = %3
  call void @_ZN17siscone_spherical11CSph3vectorD1Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #6
  %69 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 17
  %70 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 18
  %71 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 19
  call void @_ZN17siscone_spherical11CSph3vector22get_angular_directionsERS0_S1_(ptr noundef nonnull align 8 dereferenceable(60) %69, ptr noundef nonnull align 8 dereferenceable(60) %70, ptr noundef nonnull align 8 dereferenceable(60) %71)
  %72 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 18
  %73 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %72, i32 0, i32 3
  %74 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 18
  %75 = call noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectordVERKd(ptr noundef nonnull align 8 dereferenceable(60) %74, ptr noundef nonnull align 8 dereferenceable(8) %73)
  %76 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 19
  %77 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %76, i32 0, i32 3
  %78 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 19
  %79 = call noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectordVERKd(ptr noundef nonnull align 8 dereferenceable(60) %78, ptr noundef nonnull align 8 dereferenceable(8) %77)
  store i32 0, ptr %7, align 4, !tbaa !37
  br label %80

80:                                               ; preds = %90, %68
  %81 = load i32, ptr %7, align 4, !tbaa !37
  %82 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 10
  %83 = load i32, ptr %82, align 8, !tbaa !38
  %84 = icmp slt i32 %81, %83
  br i1 %84, label %85, label %97

85:                                               ; preds = %80
  %86 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 11
  %87 = load i32, ptr %7, align 4, !tbaa !37
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %88) #6
  call void @_ZN17siscone_spherical12CSphvicinity18append_to_vicinityEPNS_12CSphmomentumE(ptr noundef nonnull align 8 dereferenceable(368) %14, ptr noundef %89)
  br label %90

90:                                               ; preds = %85
  %91 = load i32, ptr %7, align 4, !tbaa !37
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %7, align 4, !tbaa !37
  br label %80, !llvm.loop !39

93:                                               ; preds = %3
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %10, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %11, align 4
  call void @_ZN17siscone_spherical11CSph3vectorD1Ev(ptr noundef nonnull align 8 dereferenceable(60) %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %112

97:                                               ; preds = %80
  %98 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 14
  %99 = call ptr @_ZNSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #6
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  %101 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 14
  %102 = call ptr @_ZNSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %101) #6
  %103 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %102, ptr %103, align 8
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN17siscone_spherical16CSphvicinity_elmESt6vectorIS4_SaIS4_EEEEPFbS4_S4_EEvT_SC_T0_(ptr %105, ptr %107, ptr noundef @_ZN17siscone_spherical7ve_lessEPNS_16CSphvicinity_elmES1_)
  %108 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 14
  %109 = call noundef i64 @_ZNKSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %108) #6
  %110 = trunc i64 %109 to i32
  %111 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %14, i32 0, i32 15
  store i32 %110, ptr %111, align 8, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void

112:                                              ; preds = %93
  %113 = load ptr, ptr %10, align 8
  %114 = load i32, ptr %11, align 4
  %115 = insertvalue { ptr, i32 } poison, ptr %113, 0
  %116 = insertvalue { ptr, i32 } %115, i32 %114, 1
  resume { ptr, i32 } %116
}

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

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

declare void @_ZN17siscone_spherical11CSph3vectordvERKd(ptr dead_on_unwind writable sret(%"class.siscone_spherical::CSph3vector") align 8, ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(8)) #4

declare noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) #4

declare void @_ZN17siscone_spherical11CSph3vector22get_angular_directionsERS0_S1_(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) #4

declare noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectordVERKd(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17siscone_spherical12CSphvicinity18append_to_vicinityEPNS_12CSphmomentumE(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN17siscone_spherical16CSphvicinity_elmESt6vectorIS4_SaIS4_EEEEPFbS4_S4_EEvT_SC_T0_(ptr, ptr, ptr noundef) #5

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 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 = { 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, !6, i64 0}
!12 = !{!"_ZTSN17siscone_spherical12CSphvicinityE", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !13, i64 80, !14, i64 88, !18, i64 112, !6, i64 136, !22, i64 144, !13, i64 168, !26, i64 176, !26, i64 240, !26, i64 304}
!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 = !{!"_ZTSSt6vectorIN7siscone19Cvicinity_inclusionESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN17siscone_spherical11CSph3vectorE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !27, i64 48}
!27 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!28 = !{!12, !10, i64 8}
!29 = !{!12, !10, i64 16}
!30 = !{!12, !10, i64 24}
!31 = !{!12, !10, i64 40}
!32 = !{!12, !10, i64 32}
!33 = !{!12, !10, i64 48}
!34 = !{!12, !10, i64 56}
!35 = !{!12, !10, i64 64}
!36 = !{!12, !10, i64 72}
!37 = !{!13, !13, i64 0}
!38 = !{!12, !13, i64 80}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!12, !13, i64 168}


; 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::CSph3vector" = type <{ double, double, double, double, double, double, %"class.siscone::Creference", [4 x i8] }>
%"class.siscone::Creference" = type { [3 x i32] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN17siscone_spherical7ve_lessEPNS_16CSphvicinity_elmES1_(ptr noundef, ptr noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN17siscone_spherical11CSph3vectorD1Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #1

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

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

; 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 #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17siscone_spherical12CSphvicinity5buildEPNS_12CSphmomentumEd(ptr noundef nonnull align 8 dereferenceable(368) %0, ptr noundef %1, double noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.siscone_spherical::CSph3vector", align 8
  store ptr %1, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  store double %2, ptr %5, align 8, !tbaa !26
  %6 = fmul double %2, %2
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  store double %6, ptr %7, align 8, !tbaa !27
  %8 = tail call double @cos(double noundef %2) #7
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  store double %8, ptr %9, align 8, !tbaa !28
  %10 = getelementptr inbounds i8, ptr %0, i64 32
  %11 = load <2 x double>, ptr %5, align 8, !tbaa !29
  %12 = fmul <2 x double> %11, <double 5.000000e-01, double 2.500000e-01>
  store <2 x double> %12, ptr %10, align 8, !tbaa !29
  %13 = extractelement <2 x double> %12, i64 0
  %14 = tail call double @tan(double noundef %13) #7
  %15 = fmul double %14, %14
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  store double %15, ptr %16, align 8, !tbaa !30
  %17 = load double, ptr %10, align 8, !tbaa !31
  %18 = tail call double @cos(double noundef %17) #7
  %19 = fsub double 1.000000e+00, %18
  %20 = fmul double %19, 2.000000e+00
  %21 = getelementptr inbounds i8, ptr %0, i64 56
  store double %20, ptr %21, align 8, !tbaa !32
  %22 = load <2 x double>, ptr %10, align 8
  %23 = getelementptr inbounds i8, ptr %0, i64 64
  %24 = shufflevector <2 x double> %22, <2 x double> poison, <2 x i32> zeroinitializer
  %25 = fdiv <2 x double> <double 1.000000e+00, double 5.000000e-01>, %24
  %26 = fdiv <2 x double> %25, <double 0x3D719799812DEA11, double 0x3D719799812DEA11>
  store <2 x double> %26, ptr %23, align 8, !tbaa !29
  %27 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZNSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  %28 = load ptr, ptr %0, align 8, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %28, i64 24
  call void @_ZN17siscone_spherical11CSph3vectordvERKd(ptr dead_on_unwind nonnull writable sret(%"class.siscone_spherical::CSph3vector") align 8 %4, ptr noundef nonnull align 8 dereferenceable(60) %28, ptr noundef nonnull align 8 dereferenceable(8) %29)
  %30 = getelementptr inbounds i8, ptr %0, i64 176
  %31 = invoke noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(60) %30, ptr noundef nonnull align 8 dereferenceable(60) %4)
          to label %32 unwind label %48

32:                                               ; preds = %3
  call void @_ZN17siscone_spherical11CSph3vectorD1Ev(ptr noundef nonnull align 8 dereferenceable(60) %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  %33 = getelementptr inbounds i8, ptr %0, i64 240
  %34 = getelementptr inbounds i8, ptr %0, i64 304
  call void @_ZN17siscone_spherical11CSph3vector22get_angular_directionsERS0_S1_(ptr noundef nonnull align 8 dereferenceable(60) %30, ptr noundef nonnull align 8 dereferenceable(60) %33, ptr noundef nonnull align 8 dereferenceable(60) %34)
  %35 = getelementptr inbounds i8, ptr %0, i64 264
  %36 = call noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectordVERKd(ptr noundef nonnull align 8 dereferenceable(60) %33, ptr noundef nonnull align 8 dereferenceable(8) %35)
  %37 = getelementptr inbounds i8, ptr %0, i64 328
  %38 = call noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectordVERKd(ptr noundef nonnull align 8 dereferenceable(60) %34, ptr noundef nonnull align 8 dereferenceable(8) %37)
  %39 = getelementptr inbounds i8, ptr %0, i64 80
  %40 = load i32, ptr %39, align 8, !tbaa !33
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %32
  %42 = getelementptr inbounds i8, ptr %0, i64 88
  br label %43

43:                                               ; preds = %.lr.ph, %43
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %43 ]
  %44 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %indvars.iv) #7
  call void @_ZN17siscone_spherical12CSphvicinity18append_to_vicinityEPNS_12CSphmomentumE(ptr noundef nonnull align 8 dereferenceable(368) %0, ptr noundef nonnull %44)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %45 = load i32, ptr %39, align 8, !tbaa !33
  %46 = sext i32 %45 to i64
  %47 = icmp slt i64 %indvars.iv.next, %46
  br i1 %47, label %43, label %._crit_edge, !llvm.loop !34

48:                                               ; preds = %3
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN17siscone_spherical11CSph3vectorD1Ev(ptr noundef nonnull align 8 dereferenceable(60) %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  resume { ptr, i32 } %49

._crit_edge:                                      ; preds = %43, %32
  %50 = call ptr @_ZNSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %51 = call ptr @_ZNSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN17siscone_spherical16CSphvicinity_elmESt6vectorIS4_SaIS4_EEEEPFbS4_S4_EEvT_SC_T0_(ptr %50, ptr %51, ptr noundef nonnull @_ZN17siscone_spherical7ve_lessEPNS_16CSphvicinity_elmES1_)
  %52 = call noundef i64 @_ZNKSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  %53 = trunc i64 %52 to i32
  %54 = getelementptr inbounds i8, ptr %0, i64 168
  store i32 %53, ptr %54, align 8, !tbaa !36
  ret void
}

; 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 @tan(double noundef) local_unnamed_addr #4

declare void @_ZN17siscone_spherical11CSph3vectordvERKd(ptr dead_on_unwind writable sret(%"class.siscone_spherical::CSph3vector") align 8, ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #5

declare void @_ZN17siscone_spherical11CSph3vector22get_angular_directionsERS0_S1_(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectordVERKd(ptr noundef nonnull align 8 dereferenceable(60), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN17siscone_spherical12CSphvicinity18append_to_vicinityEPNS_12CSphmomentumE(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPPN17siscone_spherical16CSphvicinity_elmESt6vectorIS4_SaIS4_EEEEPFbS4_S4_EEvT_SC_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #6

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { "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, !7, i64 0}
!6 = !{!"_ZTSN17siscone_spherical12CSphvicinityE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !11, i64 80, !12, i64 88, !16, i64 112, !7, i64 136, !20, i64 144, !11, i64 168, !24, i64 176, !24, i64 240, !24, i64 304}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!"_ZTSSt6vectorIN7siscone19Cvicinity_inclusionESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"_ZTSSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!24 = !{!"_ZTSN17siscone_spherical11CSph3vectorE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !25, i64 48}
!25 = !{!"_ZTSN7siscone10CreferenceE", !8, i64 0}
!26 = !{!6, !10, i64 8}
!27 = !{!6, !10, i64 16}
!28 = !{!6, !10, i64 24}
!29 = !{!10, !10, i64 0}
!30 = !{!6, !10, i64 48}
!31 = !{!6, !10, i64 32}
!32 = !{!6, !10, i64 56}
!33 = !{!6, !11, i64 80}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!6, !11, i64 168}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass