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

; 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::Creference" = type { [3 x i32] }
%"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_spherical::CSphstable_cones" = type { %"class.siscone_spherical::CSphvicinity", %"class.std::vector", ptr, i32, double, double, double, %"class.siscone_spherical::CSphmomentum", ptr, ptr, i32, i32, %"class.siscone_spherical::CSphmomentum", %"class.std::vector.10", %"class.std::vector.15", double }
%"class.siscone_spherical::CSphvicinity" = type { ptr, double, double, double, double, double, double, double, double, double, i32, %"class.std::vector", %"class.std::vector.0", ptr, %"class.std::vector.5", i32, [4 x i8], %"class.siscone_spherical::CSph3vector", %"class.siscone_spherical::CSph3vector", %"class.siscone_spherical::CSph3vector" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }
%"class.siscone_spherical::CSph3vector" = type <{ double, double, double, double, double, double, %"class.siscone::Creference", [4 x i8] }>
%"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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone_spherical::sph_hash_cones" = type { ptr, i32, i32, double, double }
%"class.siscone_spherical::sph_hash_element" = type { %"class.siscone_spherical::CSph3vector", i8, ptr }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN17siscone_spherical14sph_hash_conesD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones22proceed_with_stabilityEv(ptr noundef nonnull align 8 dereferenceable(672) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.siscone::Creference", align 4
  %6 = alloca { i64, i32 }, align 8
  %7 = alloca %"class.siscone_spherical::CSphmomentum", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %10 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %59, %1
  %12 = load i32, ptr %3, align 4, !tbaa !9
  %13 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %14, i32 0, i32 2
  %16 = load i32, ptr %15, align 4, !tbaa !38
  %17 = icmp sle i32 %12, %16
  br i1 %17, label %18, label %62

18:                                               ; preds = %11
  %19 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !40
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds ptr, ptr %22, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  store ptr %26, ptr %4, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %54, %18
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %58

30:                                               ; preds = %27
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %31, i32 0, i32 1
  %33 = load i8, ptr %32, align 8, !tbaa !41, !range !44, !noundef !45
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %54

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #8
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %36, i32 0, i32 0
  %38 = call { i64, i32 } @_ZN17siscone_spherical16CSphstable_cones16circle_intersectERNS_11CSph3vectorE(ptr noundef nonnull align 8 dereferenceable(672) %10, ptr noundef nonnull align 8 dereferenceable(60) %37)
  %39 = getelementptr inbounds %"class.siscone::Creference", ptr %5, i32 0, i32 0
  store { i64, i32 } %38, ptr %6, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %6, i64 12, i1 false)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %41, i32 0, i32 6
  %43 = call noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %42)
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #8
  br i1 %43, label %44, label %53

44:                                               ; preds = %35
  %45 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #8
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %46, i32 0, i32 0
  call void @_ZN17siscone_spherical12CSphmomentumC1ERNS_11CSph3vectorEd(ptr noundef nonnull align 8 dereferenceable(80) %7, ptr noundef nonnull align 8 dereferenceable(60) %47, double noundef 1.000000e+00)
  invoke void @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(80) %7)
          to label %48 unwind label %49

48:                                               ; preds = %44
  call void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #8
  br label %53

49:                                               ; preds = %44
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %8, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %9, align 4
  call void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  br label %72

53:                                               ; preds = %48, %35
  br label %54

54:                                               ; preds = %53, %30
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %55, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !46
  store ptr %57, ptr %4, align 8, !tbaa !5
  br label %27, !llvm.loop !47

58:                                               ; preds = %27
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %3, align 4, !tbaa !9
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %3, align 4, !tbaa !9
  br label %11, !llvm.loop !49

62:                                               ; preds = %11
  %63 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 2
  %64 = load ptr, ptr %63, align 8, !tbaa !11
  %65 = icmp eq ptr %64, null
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  call void @_ZN17siscone_spherical14sph_hash_conesD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %64) #8
  call void @_ZdlPvm(ptr noundef %64, i64 noundef 32) #9
  br label %67

67:                                               ; preds = %66, %62
  %68 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 2
  store ptr null, ptr %68, align 8, !tbaa !11
  %69 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 1
  %70 = call noundef i64 @_ZNKSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  %71 = trunc i64 %70 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  ret i32 %71

72:                                               ; preds = %49
  %73 = load ptr, ptr %8, align 8
  %74 = load i32, ptr %9, align 4
  %75 = insertvalue { ptr, i32 } poison, ptr %73, 0
  %76 = insertvalue { ptr, i32 } %75, i32 %74, 1
  resume { ptr, i32 } %76
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZN17siscone_spherical16CSphstable_cones16circle_intersectERNS_11CSph3vectorE(ptr noundef nonnull align 8 dereferenceable(672), ptr noundef nonnull align 8 dereferenceable(60)) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

declare void @_ZN17siscone_spherical12CSphmomentumC1ERNS_11CSph3vectorEd(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(60), double noundef) unnamed_addr #7

attributes #0 = { 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 #1 = { nobuiltin 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { "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 }
attributes #9 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 392}
!12 = !{!"_ZTSN17siscone_spherical16CSphstable_conesE", !13, i64 0, !15, i64 368, !6, i64 392, !10, i64 400, !14, i64 408, !14, i64 416, !14, i64 424, !29, i64 432, !6, i64 512, !6, i64 520, !10, i64 528, !10, i64 532, !29, i64 536, !30, i64 616, !34, i64 640, !14, i64 664}
!13 = !{!"_ZTSN17siscone_spherical12CSphvicinityE", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !10, i64 80, !15, i64 88, !19, i64 112, !6, i64 136, !23, i64 144, !10, i64 168, !27, i64 176, !27, i64 240, !27, i64 304}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIN7siscone19Cvicinity_inclusionESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSN17siscone_spherical11CSph3vectorE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !28, i64 48}
!28 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!29 = !{!"_ZTSN17siscone_spherical12CSphmomentumE", !27, i64 0, !14, i64 64, !10, i64 72, !10, i64 76}
!30 = !{!"_ZTSSt6vectorIPN17siscone_spherical12CSphmomentumESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!39, !10, i64 12}
!39 = !{!"_ZTSN17siscone_spherical14sph_hash_conesE", !6, i64 0, !10, i64 8, !10, i64 12, !14, i64 16, !14, i64 24}
!40 = !{!39, !6, i64 0}
!41 = !{!42, !43, i64 64}
!42 = !{!"_ZTSN17siscone_spherical16sph_hash_elementE", !27, i64 0, !43, i64 64, !6, i64 72}
!43 = !{!"bool", !7, i64 0}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = !{!42, !6, i64 72}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}
!49 = distinct !{!49, !48}


; 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::Creference" = type { [3 x i32] }
%"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" }>

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN17siscone_spherical14sph_hash_conesD1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones22proceed_with_stabilityEv(ptr noundef nonnull align 8 dereferenceable(672) %0) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.siscone::Creference", align 8
  %3 = alloca %"class.siscone_spherical::CSphmomentum", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 392
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 12
  %7 = load i32, ptr %6, align 4, !tbaa !36
  %.not20 = icmp slt i32 %7, 0
  br i1 %.not20, label %._crit_edge24, label %.lr.ph23

.lr.ph23:                                         ; preds = %1
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 368
  br label %9

9:                                                ; preds = %.lr.ph23, %._crit_edge
  %10 = phi ptr [ %5, %.lr.ph23 ], [ %26, %._crit_edge ]
  %indvars.iv = phi i64 [ 0, %.lr.ph23 ], [ %indvars.iv.next, %._crit_edge ]
  %11 = load ptr, ptr %10, align 8, !tbaa !38
  %12 = getelementptr inbounds ptr, ptr %11, i64 %indvars.iv
  %.01117 = load ptr, ptr %12, align 8, !tbaa !39
  %.not1318 = icmp eq ptr %.01117, null
  br i1 %.not1318, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9, %24
  %.01119 = phi ptr [ %.011, %24 ], [ %.01117, %9 ]
  %13 = getelementptr inbounds i8, ptr %.01119, i64 64
  %14 = load i8, ptr %13, align 8, !tbaa !40, !range !43, !noundef !44
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %16, label %24

16:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #7
  %17 = call { i64, i32 } @_ZN17siscone_spherical16CSphstable_cones16circle_intersectERNS_11CSph3vectorE(ptr noundef nonnull align 8 dereferenceable(672) %0, ptr noundef nonnull align 8 dereferenceable(60) %.01119)
  %.fca.0.extract = extractvalue { i64, i32 } %17, 0
  %.fca.1.extract = extractvalue { i64, i32 } %17, 1
  store i64 %.fca.0.extract, ptr %2, align 8
  store i32 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %18 = getelementptr inbounds i8, ptr %.01119, i64 48
  %19 = call noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %18)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #7
  br i1 %19, label %20, label %24

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #7
  call void @_ZN17siscone_spherical12CSphmomentumC1ERNS_11CSph3vectorEd(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 8 dereferenceable(60) %.01119, double noundef 1.000000e+00)
  invoke void @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(80) %3)
          to label %21 unwind label %22

21:                                               ; preds = %20
  call void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #7
  br label %24

22:                                               ; preds = %20
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN17siscone_spherical12CSphmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #7
  resume { ptr, i32 } %23

24:                                               ; preds = %16, %21, %.lr.ph
  %25 = getelementptr inbounds i8, ptr %.01119, i64 72
  %.011 = load ptr, ptr %25, align 8, !tbaa !39
  %.not13 = icmp eq ptr %.011, null
  br i1 %.not13, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !45

._crit_edge.loopexit:                             ; preds = %24
  %.pre = load ptr, ptr %4, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %9
  %26 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %10, %9 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = getelementptr inbounds i8, ptr %26, i64 12
  %28 = load i32, ptr %27, align 4, !tbaa !36
  %29 = sext i32 %28 to i64
  %.not.not = icmp slt i64 %indvars.iv, %29
  br i1 %.not.not, label %9, label %._crit_edge24, !llvm.loop !47

._crit_edge24:                                    ; preds = %._crit_edge, %1
  %.lcssa = phi ptr [ %5, %1 ], [ %26, %._crit_edge ]
  call void @_ZN17siscone_spherical14sph_hash_conesD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %.lcssa) #7
  call void @_ZdlPvm(ptr noundef nonnull %.lcssa, i64 noundef 32) #8
  store ptr null, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %0, i64 368
  %31 = call noundef i64 @_ZNKSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #7
  %32 = trunc i64 %31 to i32
  ret i32 %32
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i32 } @_ZN17siscone_spherical16CSphstable_cones16circle_intersectERNS_11CSph3vectorE(ptr noundef nonnull align 8 dereferenceable(672), ptr noundef nonnull align 8 dereferenceable(60)) local_unnamed_addr #4 align 2

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

declare void @_ZN17siscone_spherical12CSphmomentumC1ERNS_11CSph3vectorEd(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(60), double noundef) unnamed_addr #6

attributes #0 = { 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 #1 = { nobuiltin 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 }
attributes #8 = { builtin 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, !8, i64 392}
!6 = !{!"_ZTSN17siscone_spherical16CSphstable_conesE", !7, i64 0, !13, i64 368, !8, i64 392, !12, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !27, i64 432, !8, i64 512, !8, i64 520, !12, i64 528, !12, i64 532, !27, i64 536, !28, i64 616, !32, i64 640, !11, i64 664}
!7 = !{!"_ZTSN17siscone_spherical12CSphvicinityE", !8, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !12, i64 80, !13, i64 88, !17, i64 112, !8, i64 136, !21, i64 144, !12, i64 168, !25, i64 176, !25, i64 240, !25, i64 304}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"double", !9, i64 0}
!12 = !{!"int", !9, i64 0}
!13 = !{!"_ZTSSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN17siscone_spherical12CSphmomentumESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!17 = !{!"_ZTSSt6vectorIN7siscone19Cvicinity_inclusionESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!21 = !{!"_ZTSSt6vectorIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical16CSphvicinity_elmESaIS2_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!25 = !{!"_ZTSN17siscone_spherical11CSph3vectorE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !26, i64 48}
!26 = !{!"_ZTSN7siscone10CreferenceE", !9, i64 0}
!27 = !{!"_ZTSN17siscone_spherical12CSphmomentumE", !25, i64 0, !11, i64 64, !12, i64 72, !12, i64 76}
!28 = !{!"_ZTSSt6vectorIPN17siscone_spherical12CSphmomentumESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!32 = !{!"_ZTSSt6vectorISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!36 = !{!37, !12, i64 12}
!37 = !{!"_ZTSN17siscone_spherical14sph_hash_conesE", !8, i64 0, !12, i64 8, !12, i64 12, !11, i64 16, !11, i64 24}
!38 = !{!37, !8, i64 0}
!39 = !{!8, !8, i64 0}
!40 = !{!41, !42, i64 64}
!41 = !{!"_ZTSN17siscone_spherical16sph_hash_elementE", !25, i64 0, !42, i64 64, !8, i64 72}
!42 = !{!"bool", !9, i64 0}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = distinct !{!47, !46}


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