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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones16get_stable_conesEd(ptr noundef nonnull align 8 dereferenceable(672) %0, double noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !9
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %11 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %10, i32 0, i32 10
  %12 = load i32, ptr %11, align 8, !tbaa !11
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %78

15:                                               ; preds = %2
  %16 = load double, ptr %5, align 8, !tbaa !9
  %17 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 4
  store double %16, ptr %17, align 8, !tbaa !28
  %18 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 4
  %19 = load double, ptr %18, align 8, !tbaa !28
  %20 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 4
  %21 = load double, ptr %20, align 8, !tbaa !28
  %22 = fmul double %19, %21
  %23 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 5
  store double %22, ptr %23, align 8, !tbaa !39
  %24 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 4
  %25 = load double, ptr %24, align 8, !tbaa !28
  %26 = call double @tan(double noundef %25) #7
  %27 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 6
  store double %26, ptr %27, align 8, !tbaa !40
  %28 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 6
  %29 = load double, ptr %28, align 8, !tbaa !40
  %30 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 6
  %31 = load double, ptr %30, align 8, !tbaa !40
  %32 = fmul double %31, %29
  store double %32, ptr %30, align 8, !tbaa !40
  %33 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 32) #8
  %34 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %10, i32 0, i32 10
  %35 = load i32, ptr %34, align 8, !tbaa !11
  %36 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 4
  %37 = load double, ptr %36, align 8, !tbaa !28
  invoke void @_ZN17siscone_spherical14sph_hash_conesC1Eid(ptr noundef nonnull align 8 dereferenceable(32) %33, i32 noundef %35, double noundef %37)
          to label %38 unwind label %60

38:                                               ; preds = %15
  %39 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 2
  store ptr %33, ptr %39, align 8, !tbaa !41
  store i32 0, ptr %6, align 4, !tbaa !42
  br label %40

40:                                               ; preds = %73, %38
  %41 = load i32, ptr %6, align 4, !tbaa !42
  %42 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %10, i32 0, i32 10
  %43 = load i32, ptr %42, align 8, !tbaa !11
  %44 = icmp slt i32 %41, %43
  br i1 %44, label %45, label %76

45:                                               ; preds = %40
  %46 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %10, i32 0, i32 11
  %47 = load i32, ptr %6, align 4, !tbaa !42
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %48) #7
  %50 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 4
  %51 = load double, ptr %50, align 8, !tbaa !28
  %52 = fmul double 2.000000e+00, %51
  call void @_ZN17siscone_spherical12CSphvicinity5buildEPNS_12CSphmomentumEd(ptr noundef nonnull align 8 dereferenceable(368) %10, ptr noundef %49, double noundef %52)
  %53 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %10, i32 0, i32 15
  %54 = load i32, ptr %53, align 8, !tbaa !43
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %64

56:                                               ; preds = %45
  %57 = getelementptr inbounds %"class.siscone_spherical::CSphstable_cones", ptr %10, i32 0, i32 1
  %58 = getelementptr inbounds %"class.siscone_spherical::CSphvicinity", ptr %10, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !44
  call void @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(80) %59)
  br label %73

60:                                               ; preds = %15
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %8, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %33, i64 noundef 32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %80

64:                                               ; preds = %45
  %65 = call noundef i32 @_ZN17siscone_spherical16CSphstable_cones9init_coneEv(ptr noundef nonnull align 8 dereferenceable(672) %10)
  br label %66

66:                                               ; preds = %68, %64
  %67 = call noundef i32 @_ZN17siscone_spherical16CSphstable_cones9test_coneEv(ptr noundef nonnull align 8 dereferenceable(672) %10)
  br label %68

68:                                               ; preds = %66
  %69 = call noundef i32 @_ZN17siscone_spherical16CSphstable_cones11update_coneEv(ptr noundef nonnull align 8 dereferenceable(672) %10)
  %70 = icmp ne i32 %69, 0
  %71 = xor i1 %70, true
  br i1 %71, label %66, label %72, !llvm.loop !45

72:                                               ; preds = %68
  br label %73

73:                                               ; preds = %72, %56
  %74 = load i32, ptr %6, align 4, !tbaa !42
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %6, align 4, !tbaa !42
  br label %40, !llvm.loop !47

76:                                               ; preds = %40
  %77 = call noundef i32 @_ZN17siscone_spherical16CSphstable_cones22proceed_with_stabilityEv(ptr noundef nonnull align 8 dereferenceable(672) %10)
  store i32 %77, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %78

78:                                               ; preds = %76, %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %79 = load i32, ptr %3, align 4
  ret i32 %79

80:                                               ; preds = %60
  %81 = load ptr, ptr %8, align 8
  %82 = load i32, ptr %9, align 4
  %83 = insertvalue { ptr, i32 } poison, ptr %81, 0
  %84 = insertvalue { ptr, i32 } %83, i32 %82, 1
  resume { ptr, i32 } %84
}

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

declare void @_ZN17siscone_spherical14sph_hash_conesC1Eid(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, double noundef) unnamed_addr #5

declare void @_ZN17siscone_spherical12CSphvicinity5buildEPNS_12CSphmomentumEd(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef, double noundef) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones9init_coneEv(ptr noundef nonnull align 8 dereferenceable(672)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones9test_coneEv(ptr noundef nonnull align 8 dereferenceable(672)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones11update_coneEv(ptr noundef nonnull align 8 dereferenceable(672)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones22proceed_with_stabilityEv(ptr noundef nonnull align 8 dereferenceable(672)) #1 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nobuiltin allocsize(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 = { "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 = { 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 = { nounwind }
attributes #8 = { builtin allocsize(0) }
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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 80}
!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 = !{!29, !10, i64 408}
!29 = !{!"_ZTSN17siscone_spherical16CSphstable_conesE", !12, i64 0, !14, i64 368, !6, i64 392, !13, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !30, i64 432, !6, i64 512, !6, i64 520, !13, i64 528, !13, i64 532, !30, i64 536, !31, i64 616, !35, i64 640, !10, i64 664}
!30 = !{!"_ZTSN17siscone_spherical12CSphmomentumE", !26, i64 0, !10, i64 64, !13, i64 72, !13, i64 76}
!31 = !{!"_ZTSSt6vectorIPN17siscone_spherical12CSphmomentumESaIS2_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSSt6vectorISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!29, !10, i64 416}
!40 = !{!29, !10, i64 424}
!41 = !{!29, !6, i64 392}
!42 = !{!13, !13, i64 0}
!43 = !{!12, !13, i64 168}
!44 = !{!12, !6, i64 0}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = distinct !{!47, !46}


; 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"

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones16get_stable_conesEd(ptr noundef nonnull align 8 dereferenceable(672) %0, double noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 80
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i32 %4, 0
  br i1 %5, label %42, label %6

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 408
  store double %1, ptr %7, align 8, !tbaa !26
  %8 = fmul double %1, %1
  %9 = getelementptr inbounds i8, ptr %0, i64 416
  store double %8, ptr %9, align 8, !tbaa !37
  %10 = tail call double @tan(double noundef %1) #6
  %11 = getelementptr inbounds i8, ptr %0, i64 424
  %12 = fmul double %10, %10
  store double %12, ptr %11, align 8, !tbaa !38
  %13 = tail call noalias noundef nonnull dereferenceable(32) ptr @_Znwm(i64 noundef 32) #7
  %14 = load i32, ptr %3, align 8, !tbaa !5
  %15 = load double, ptr %7, align 8, !tbaa !26
  invoke void @_ZN17siscone_spherical14sph_hash_conesC1Eid(ptr noundef nonnull align 8 dereferenceable(32) %13, i32 noundef %14, double noundef %15)
          to label %16 unwind label %31

16:                                               ; preds = %6
  %17 = getelementptr inbounds i8, ptr %0, i64 392
  store ptr %13, ptr %17, align 8, !tbaa !39
  %18 = load i32, ptr %3, align 8, !tbaa !5
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  %21 = getelementptr inbounds i8, ptr %0, i64 168
  %22 = getelementptr inbounds i8, ptr %0, i64 368
  br label %23

23:                                               ; preds = %.lr.ph, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %.loopexit ]
  %24 = tail call noundef nonnull align 8 dereferenceable(80) ptr @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef %indvars.iv) #6
  %25 = load double, ptr %7, align 8, !tbaa !26
  %26 = fmul double %25, 2.000000e+00
  tail call void @_ZN17siscone_spherical12CSphvicinity5buildEPNS_12CSphmomentumEd(ptr noundef nonnull align 8 dereferenceable(368) %0, ptr noundef nonnull %24, double noundef %26)
  %27 = load i32, ptr %21, align 8, !tbaa !40
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %33

29:                                               ; preds = %23
  %30 = load ptr, ptr %0, align 8, !tbaa !41
  tail call void @_ZNSt6vectorIN17siscone_spherical12CSphmomentumESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(80) %30)
  br label %.loopexit

31:                                               ; preds = %6
  %32 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %13, i64 noundef 32) #8
  resume { ptr, i32 } %32

33:                                               ; preds = %23
  %34 = tail call noundef i32 @_ZN17siscone_spherical16CSphstable_cones9init_coneEv(ptr noundef nonnull align 8 dereferenceable(672) %0)
  br label %35

35:                                               ; preds = %35, %33
  %36 = tail call noundef i32 @_ZN17siscone_spherical16CSphstable_cones9test_coneEv(ptr noundef nonnull align 8 dereferenceable(672) %0)
  %37 = tail call noundef i32 @_ZN17siscone_spherical16CSphstable_cones11update_coneEv(ptr noundef nonnull align 8 dereferenceable(672) %0)
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %35, label %.loopexit, !llvm.loop !42

.loopexit:                                        ; preds = %35, %29
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr %3, align 8, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = icmp slt i64 %indvars.iv.next, %39
  br i1 %40, label %23, label %._crit_edge, !llvm.loop !44

._crit_edge:                                      ; preds = %.loopexit, %16
  %41 = tail call noundef i32 @_ZN17siscone_spherical16CSphstable_cones22proceed_with_stabilityEv(ptr noundef nonnull align 8 dereferenceable(672) %0)
  br label %42

42:                                               ; preds = %2, %._crit_edge
  %.0 = phi i32 [ %41, %._crit_edge ], [ 0, %2 ]
  ret i32 %.0
}

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

declare void @_ZN17siscone_spherical14sph_hash_conesC1Eid(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, double noundef) unnamed_addr #4

declare void @_ZN17siscone_spherical12CSphvicinity5buildEPNS_12CSphmomentumEd(ptr noundef nonnull align 8 dereferenceable(368), ptr noundef, double noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones9init_coneEv(ptr noundef nonnull align 8 dereferenceable(672)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones9test_coneEv(ptr noundef nonnull align 8 dereferenceable(672)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones11update_coneEv(ptr noundef nonnull align 8 dereferenceable(672)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN17siscone_spherical16CSphstable_cones22proceed_with_stabilityEv(ptr noundef nonnull align 8 dereferenceable(672)) local_unnamed_addr #1 align 2

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { nobuiltin allocsize(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 = { 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 = { nounwind }
attributes #7 = { builtin allocsize(0) }
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, !11, i64 80}
!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 = !{!27, !10, i64 408}
!27 = !{!"_ZTSN17siscone_spherical16CSphstable_conesE", !6, i64 0, !12, i64 368, !7, i64 392, !11, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !28, i64 432, !7, i64 512, !7, i64 520, !11, i64 528, !11, i64 532, !28, i64 536, !29, i64 616, !33, i64 640, !10, i64 664}
!28 = !{!"_ZTSN17siscone_spherical12CSphmomentumE", !24, i64 0, !10, i64 64, !11, i64 72, !11, i64 76}
!29 = !{!"_ZTSSt6vectorIPN17siscone_spherical12CSphmomentumESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPN17siscone_spherical12CSphmomentumESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!33 = !{!"_ZTSSt6vectorISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!37 = !{!27, !10, i64 416}
!38 = !{!27, !10, i64 424}
!39 = !{!27, !7, i64 392}
!40 = !{!6, !11, i64 168}
!41 = !{!6, !7, i64 0}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}


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