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

; 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.siscone_spherical::sph_hash_cones" = type { ptr, i32, i32, double, double }
%"class.siscone_spherical::sph_hash_element" = type { %"class.siscone_spherical::CSph3vector", i8, ptr }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN17siscone_spherical14sph_hash_cones6insertEPNS_12CSphmomentumES2_S2_bb(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  %19 = zext i1 %4 to i8
  store i8 %19, ptr %12, align 1, !tbaa !9
  %20 = zext i1 %5 to i8
  store i8 %20, ptr %13, align 1, !tbaa !9
  %21 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %22, i32 0, i32 6
  %24 = getelementptr inbounds %"class.siscone::Creference", ptr %23, i32 0, i32 0
  %25 = getelementptr inbounds [3 x i32], ptr %24, i64 0, i64 0
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 2
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = and i32 %26, %28
  store i32 %29, ptr %15, align 4, !tbaa !11
  %30 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = load i32, ptr %15, align 4, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds ptr, ptr %31, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %35, ptr %14, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %143, %6
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %96

39:                                               ; preds = %36
  %40 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #8
  invoke void @_ZN17siscone_spherical16sph_hash_elementC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %40)
          to label %41 unwind label %92

41:                                               ; preds = %39
  store ptr %40, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %43, i32 0, i32 0
  %45 = call noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(60) %44, ptr noundef nonnull align 8 dereferenceable(60) %42)
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 4
  %49 = load double, ptr %48, align 8, !tbaa !17
  %50 = call noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef %46, ptr noundef %47, double noundef %49)
  %51 = zext i1 %50 to i32
  %52 = load i8, ptr %12, align 1, !tbaa !9, !range !18, !noundef !19
  %53 = trunc i8 %52 to i1
  %54 = zext i1 %53 to i32
  %55 = xor i32 %51, %54
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %69, label %57

57:                                               ; preds = %41
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 4
  %61 = load double, ptr %60, align 8, !tbaa !17
  %62 = call noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef %58, ptr noundef %59, double noundef %61)
  %63 = zext i1 %62 to i32
  %64 = load i8, ptr %13, align 1, !tbaa !9, !range !18, !noundef !19
  %65 = trunc i8 %64 to i1
  %66 = zext i1 %65 to i32
  %67 = xor i32 %63, %66
  %68 = icmp ne i32 %67, 0
  br label %69

69:                                               ; preds = %57, %41
  %70 = phi i1 [ true, %41 ], [ %68, %57 ]
  %71 = xor i1 %70, true
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %72, i32 0, i32 1
  %74 = zext i1 %71 to i8
  store i8 %74, ptr %73, align 8, !tbaa !20
  %75 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !16
  %77 = load i32, ptr %15, align 4, !tbaa !11
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = load ptr, ptr %14, align 8, !tbaa !5
  %82 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %81, i32 0, i32 2
  store ptr %80, ptr %82, align 8, !tbaa !24
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !16
  %86 = load i32, ptr %15, align 4, !tbaa !11
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds ptr, ptr %85, i64 %87
  store ptr %83, ptr %88, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 1
  %90 = load i32, ptr %89, align 8, !tbaa !25
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %89, align 8, !tbaa !25
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %145

92:                                               ; preds = %39
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %16, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %17, align 4
  call void @_ZdlPvm(ptr noundef %40, i64 noundef 80) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %147

96:                                               ; preds = %36
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %97, i32 0, i32 6
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds %"class.siscone_spherical::CSph3vector", ptr %100, i32 0, i32 6
  %102 = call noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12) %98, ptr noundef nonnull align 4 dereferenceable(12) %101)
  br i1 %102, label %103, label %139

103:                                              ; preds = %96
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  %105 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %104, i32 0, i32 1
  %106 = load i8, ptr %105, align 8, !tbaa !20, !range !18, !noundef !19
  %107 = trunc i8 %106 to i1
  br i1 %107, label %108, label %138

108:                                              ; preds = %103
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 4
  %112 = load double, ptr %111, align 8, !tbaa !17
  %113 = call noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef %109, ptr noundef %110, double noundef %112)
  %114 = zext i1 %113 to i32
  %115 = load i8, ptr %12, align 1, !tbaa !9, !range !18, !noundef !19
  %116 = trunc i8 %115 to i1
  %117 = zext i1 %116 to i32
  %118 = xor i32 %114, %117
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %132, label %120

120:                                              ; preds = %108
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %"class.siscone_spherical::sph_hash_cones", ptr %21, i32 0, i32 4
  %124 = load double, ptr %123, align 8, !tbaa !17
  %125 = call noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef %121, ptr noundef %122, double noundef %124)
  %126 = zext i1 %125 to i32
  %127 = load i8, ptr %13, align 1, !tbaa !9, !range !18, !noundef !19
  %128 = trunc i8 %127 to i1
  %129 = zext i1 %128 to i32
  %130 = xor i32 %126, %129
  %131 = icmp ne i32 %130, 0
  br label %132

132:                                              ; preds = %120, %108
  %133 = phi i1 [ true, %108 ], [ %131, %120 ]
  %134 = xor i1 %133, true
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %135, i32 0, i32 1
  %137 = zext i1 %134 to i8
  store i8 %137, ptr %136, align 8, !tbaa !20
  br label %138

138:                                              ; preds = %132, %103
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %145

139:                                              ; preds = %96
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = getelementptr inbounds %"class.siscone_spherical::sph_hash_element", ptr %140, i32 0, i32 2
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  store ptr %142, ptr %14, align 8, !tbaa !5
  br label %143

143:                                              ; preds = %139
  br i1 true, label %36, label %144, !llvm.loop !26

144:                                              ; preds = %143
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %145

145:                                              ; preds = %144, %138, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %146 = load i32, ptr %7, align 4
  ret i32 %146

147:                                              ; preds = %92
  %148 = load ptr, ptr %16, align 8
  %149 = load i32, ptr %17, align 4
  %150 = insertvalue { ptr, i32 } poison, ptr %148, 0
  %151 = insertvalue { ptr, i32 } %150, i32 %149, 1
  resume { ptr, i32 } %151
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN17siscone_spherical16sph_hash_elementC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 = { 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 #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 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 12}
!14 = !{!"_ZTSN17siscone_spherical14sph_hash_conesE", !6, i64 0, !12, i64 8, !12, i64 12, !15, i64 16, !15, i64 24}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !6, i64 0}
!17 = !{!14, !15, i64 24}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !10, i64 64}
!21 = !{!"_ZTSN17siscone_spherical16sph_hash_elementE", !22, i64 0, !10, i64 64, !6, i64 72}
!22 = !{!"_ZTSN17siscone_spherical11CSph3vectorE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !23, i64 48}
!23 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!24 = !{!21, !6, i64 72}
!25 = !{!14, !12, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


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

; 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_spherical14sph_hash_cones6insertEPNS_12CSphmomentumES2_S2_bb(ptr nocapture noundef nonnull align 8 dereferenceable(32) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = getelementptr inbounds i8, ptr %1, i64 48
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = and i32 %10, %8
  %12 = load ptr, ptr %0, align 8, !tbaa !13
  %13 = sext i32 %11 to i64
  %14 = getelementptr inbounds ptr, ptr %12, i64 %13
  %.03032 = load ptr, ptr %14, align 8, !tbaa !14
  %15 = icmp eq ptr %.03032, null
  br i1 %15, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %60, %6
  %16 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #6
  invoke void @_ZN17siscone_spherical16sph_hash_elementC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %16)
          to label %17 unwind label %39

17:                                               ; preds = %._crit_edge
  %18 = tail call noundef nonnull align 8 dereferenceable(60) ptr @_ZN17siscone_spherical11CSph3vectoraSERKS0_(ptr noundef nonnull align 8 dereferenceable(60) %16, ptr noundef nonnull align 8 dereferenceable(60) %1)
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = load double, ptr %19, align 8, !tbaa !15
  %21 = tail call noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef nonnull %1, ptr noundef %2, double noundef %20)
  %22 = xor i1 %21, %4
  br i1 %22, label %29, label %23

23:                                               ; preds = %17
  %24 = load double, ptr %19, align 8, !tbaa !15
  %25 = tail call noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef nonnull %1, ptr noundef %3, double noundef %24)
  %26 = xor i1 %25, %5
  %27 = xor i1 %26, true
  %28 = zext i1 %27 to i8
  br label %29

29:                                               ; preds = %23, %17
  %30 = phi i8 [ 0, %17 ], [ %28, %23 ]
  %31 = getelementptr inbounds i8, ptr %16, i64 64
  store i8 %30, ptr %31, align 8, !tbaa !16
  %32 = load ptr, ptr %0, align 8, !tbaa !13
  %33 = getelementptr inbounds ptr, ptr %32, i64 %13
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = getelementptr inbounds i8, ptr %16, i64 72
  store ptr %34, ptr %35, align 8, !tbaa !21
  store ptr %16, ptr %33, align 8, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load i32, ptr %36, align 8, !tbaa !22
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 8, !tbaa !22
  br label %63

39:                                               ; preds = %._crit_edge
  %40 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %16, i64 noundef 80) #7
  resume { ptr, i32 } %40

.lr.ph:                                           ; preds = %6, %60
  %.03033 = phi ptr [ %.030, %60 ], [ %.03032, %6 ]
  %41 = getelementptr inbounds i8, ptr %.03033, i64 48
  %42 = tail call noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %41)
  br i1 %42, label %43, label %60

43:                                               ; preds = %.lr.ph
  %44 = getelementptr inbounds i8, ptr %.03033, i64 64
  %45 = load i8, ptr %44, align 8, !tbaa !16, !range !23, !noundef !24
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %47, label %63

47:                                               ; preds = %43
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  %49 = load double, ptr %48, align 8, !tbaa !15
  %50 = tail call noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef %1, ptr noundef %2, double noundef %49)
  %51 = xor i1 %50, %4
  br i1 %51, label %58, label %52

52:                                               ; preds = %47
  %53 = load double, ptr %48, align 8, !tbaa !15
  %54 = tail call noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef %1, ptr noundef %3, double noundef %53)
  %55 = xor i1 %54, %5
  %56 = xor i1 %55, true
  %57 = zext i1 %56 to i8
  br label %58

58:                                               ; preds = %52, %47
  %59 = phi i8 [ 0, %47 ], [ %57, %52 ]
  store i8 %59, ptr %44, align 8, !tbaa !16
  br label %63

60:                                               ; preds = %.lr.ph
  %61 = getelementptr inbounds i8, ptr %.03033, i64 72
  %.030 = load ptr, ptr %61, align 8, !tbaa !14
  %62 = icmp eq ptr %.030, null
  br i1 %62, label %._crit_edge, label %.lr.ph, !llvm.loop !25

63:                                               ; preds = %43, %58, %29
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN17siscone_spherical16sph_hash_elementC2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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 #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN17siscone_spherical9is_closerEPKNS_11CSph3vectorES2_d(ptr noundef, ptr noundef, double noundef) local_unnamed_addr #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

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 = { 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 #3 = { 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 #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 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 = { builtin allocsize(0) }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 12}
!10 = !{!"_ZTSN17siscone_spherical14sph_hash_conesE", !11, i64 0, !6, i64 8, !6, i64 12, !12, i64 16, !12, i64 24}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !12, i64 24}
!16 = !{!17, !20, i64 64}
!17 = !{!"_ZTSN17siscone_spherical16sph_hash_elementE", !18, i64 0, !20, i64 64, !11, i64 72}
!18 = !{!"_ZTSN17siscone_spherical11CSph3vectorE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !19, i64 48}
!19 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!17, !11, i64 72}
!22 = !{!10, !6, i64 8}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass