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

; 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::Cmomentum" = type <{ double, double, double, double, double, double, i32, i32, %"class.siscone::Creference", [4 x i8] }>
%"class.siscone::Creference" = type { [3 x i32] }
%"class.siscone::Cstable_cones" = type { %"class.siscone::Cvicinity", %"class.std::vector", ptr, i32, double, double, %"class.siscone::Cmomentum", ptr, ptr, i32, i32, %"class.siscone::Cmomentum", %"class.std::vector.10", %"class.std::vector.15", double }
%"class.siscone::Cvicinity" = type { ptr, double, double, double, double, double, double, i32, %"class.std::vector", %"class.std::vector.0", ptr, %"class.std::vector.5", i32, double, double }
%"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::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<siscone::Cmomentum, std::allocator<siscone::Cmomentum>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cmomentum, std::allocator<siscone::Cmomentum>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cmomentum, std::allocator<siscone::Cmomentum>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cmomentum, std::allocator<siscone::Cmomentum>>::_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::Cmomentum *, std::allocator<siscone::Cmomentum *>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cmomentum *, std::allocator<siscone::Cmomentum *>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cmomentum *, std::allocator<siscone::Cmomentum *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cmomentum *, std::allocator<siscone::Cmomentum *>>::_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::Cvicinity_elm" = type { ptr, ptr, double, double, double, i8, double, %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.siscone::Cvicinity_inclusion" = type { i8, i8 }

declare void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68)) 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) #0

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

declare noundef zeroext i1 @_ZN7siscone10Creference8is_emptyEv(ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7siscone13Cstable_cones33recompute_cone_contents_if_neededERNS_9CmomentumERd(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull align 8 dereferenceable(68) %1, ptr noundef nonnull align 8 dereferenceable(8) %2) #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.siscone::Cmomentum", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.siscone::Cmomentum", align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = load double, ptr %13, align 8, !tbaa !9
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %15, i32 0, i32 0
  %17 = load double, ptr %16, align 8, !tbaa !11
  %18 = call double @llvm.fabs.f64(double %17)
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %19, i32 0, i32 1
  %21 = load double, ptr %20, align 8, !tbaa !15
  %22 = call double @llvm.fabs.f64(double %21)
  %23 = fadd double %18, %22
  %24 = fmul double 1.000000e+03, %23
  %25 = fcmp ogt double %14, %24
  br i1 %25, label %26, label %89

26:                                               ; preds = %3
  %27 = getelementptr inbounds %"class.siscone::Cstable_cones", ptr %12, i32 0, i32 6
  %28 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %27, i32 0, i32 8
  %29 = call noundef zeroext i1 @_ZN7siscone10Creference8is_emptyEv(ptr noundef nonnull align 4 dereferenceable(12) %28)
  br i1 %29, label %30, label %38

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 72, ptr %7) #6
  call void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %7)
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %31, ptr noundef nonnull align 8 dereferenceable(68) %7)
          to label %33 unwind label %34

33:                                               ; preds = %30
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #6
  br label %87

34:                                               ; preds = %30
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %8, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %9, align 4
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %7) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #6
  br label %90

38:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 72, ptr %10) #6
  call void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %10)
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %39, ptr noundef nonnull align 8 dereferenceable(68) %10)
          to label %41 unwind label %48

41:                                               ; preds = %38
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %10) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !16
  br label %42

42:                                               ; preds = %83, %41
  %43 = load i32, ptr %11, align 4, !tbaa !16
  %44 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %12, i32 0, i32 12
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = icmp ult i32 %43, %45
  br i1 %46, label %52, label %47

47:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %86

48:                                               ; preds = %38
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %8, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %9, align 4
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %10) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %10) #6
  br label %90

52:                                               ; preds = %42
  %53 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %12, i32 0, i32 11
  %54 = load i32, ptr %11, align 4, !tbaa !16
  %55 = zext i32 %54 to i64
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %55) #6
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %57, i32 0, i32 5
  %59 = load i8, ptr %58, align 8, !tbaa !31, !range !40, !noundef !41
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %82

61:                                               ; preds = %52
  %62 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %12, i32 0, i32 11
  %63 = load i32, ptr %11, align 4, !tbaa !16
  %64 = zext i32 %63 to i64
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64) #6
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %66, i32 0, i32 1
  %68 = load ptr, ptr %67, align 8, !tbaa !42
  %69 = getelementptr inbounds %"class.siscone::Cvicinity_inclusion", ptr %68, i32 0, i32 0
  %70 = load i8, ptr %69, align 1, !tbaa !43, !range !40, !noundef !41
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %82

72:                                               ; preds = %61
  %73 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %12, i32 0, i32 11
  %74 = load i32, ptr %11, align 4, !tbaa !16
  %75 = zext i32 %74 to i64
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %75) #6
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !45
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %80, ptr noundef nonnull align 8 dereferenceable(68) %79)
  br label %82

82:                                               ; preds = %72, %61, %52
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %11, align 4, !tbaa !16
  %85 = add i32 %84, 1
  store i32 %85, ptr %11, align 4, !tbaa !16
  br label %42, !llvm.loop !46

86:                                               ; preds = %47
  br label %87

87:                                               ; preds = %86, %33
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  store double 0.000000e+00, ptr %88, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %87, %3
  ret void

90:                                               ; preds = %48, %34
  %91 = load ptr, ptr %8, align 8
  %92 = load i32, ptr %9, align 4
  %93 = insertvalue { ptr, i32 } poison, ptr %91, 0
  %94 = insertvalue { ptr, i32 } %93, i32 %92, 1
  resume { ptr, i32 } %94
}

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !10, i64 0}
!12 = !{!"_ZTSN7siscone9CmomentumE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !13, i64 52, !14, i64 56}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!15 = !{!12, !10, i64 8}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !13, i64 144}
!18 = !{!"_ZTSN7siscone9CvicinityE", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !13, i64 56, !19, i64 64, !23, i64 88, !6, i64 112, !27, i64 120, !13, i64 144, !10, i64 152, !10, i64 160}
!19 = !{!"_ZTSSt6vectorIN7siscone9CmomentumESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIN7siscone19Cvicinity_inclusionESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"_ZTSSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!32, !33, i64 40}
!32 = !{!"_ZTSN7siscone13Cvicinity_elmE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !33, i64 40, !10, i64 48, !34, i64 56}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"_ZTSNSt7__cxx114listIPN7siscone13Cvicinity_elmESaIS3_EEE", !35, i64 0}
!35 = !{!"_ZTSNSt7__cxx1110_List_baseIPN7siscone13Cvicinity_elmESaIS3_EEE", !36, i64 0}
!36 = !{!"_ZTSNSt7__cxx1110_List_baseIPN7siscone13Cvicinity_elmESaIS3_EE10_List_implE", !37, i64 0}
!37 = !{!"_ZTSNSt8__detail17_List_node_headerE", !38, i64 0, !39, i64 16}
!38 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!39 = !{!"long", !7, i64 0}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!32, !6, i64 8}
!43 = !{!44, !33, i64 0}
!44 = !{!"_ZTSN7siscone19Cvicinity_inclusionE", !33, i64 0, !33, i64 1}
!45 = !{!32, !6, i64 0}
!46 = distinct !{!46, !47}
!47 = !{!"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"

%"class.siscone::Cmomentum" = type <{ double, double, double, double, double, double, i32, i32, %"class.siscone::Creference", [4 x i8] }>
%"class.siscone::Creference" = type { [3 x i32] }

declare void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68)) 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN7siscone10Creference8is_emptyEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7siscone13Cstable_cones33recompute_cone_contents_if_neededERNS_9CmomentumERd(ptr noundef nonnull align 8 dereferenceable(448) %0, ptr noundef nonnull align 8 dereferenceable(68) %1, ptr nocapture noundef nonnull align 8 dereferenceable(8) %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.siscone::Cmomentum", align 8
  %5 = alloca %"class.siscone::Cmomentum", align 8
  %6 = load double, ptr %2, align 8, !tbaa !5
  %7 = load <2 x double>, ptr %1, align 8, !tbaa !5
  %8 = tail call <2 x double> @llvm.fabs.v2f64(<2 x double> %7)
  %shift = shufflevector <2 x double> %8, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %9 = fadd <2 x double> %8, %shift
  %10 = extractelement <2 x double> %9, i64 0
  %11 = fmul double %10, 1.000000e+03
  %12 = fcmp ogt double %6, %11
  br i1 %12, label %13, label %51

13:                                               ; preds = %3
  %14 = getelementptr inbounds i8, ptr %0, i64 280
  %15 = tail call noundef zeroext i1 @_ZN7siscone10Creference8is_emptyEv(ptr noundef nonnull align 4 dereferenceable(12) %14)
  br i1 %15, label %16, label %21

16:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #6
  call void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %4)
  %17 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %1, ptr noundef nonnull align 8 dereferenceable(68) %4)
          to label %18 unwind label %19

18:                                               ; preds = %16
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %4) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #6
  br label %.loopexit

19:                                               ; preds = %16
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %4) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #6
  br label %52

21:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #6
  call void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %5)
  %22 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %1, ptr noundef nonnull align 8 dereferenceable(68) %5)
          to label %23 unwind label %27

23:                                               ; preds = %21
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %5) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #6
  %24 = getelementptr inbounds i8, ptr %0, i64 144
  %25 = load i32, ptr %24, align 8, !tbaa !9
  %.not = icmp eq i32 %25, 0
  br i1 %.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %26 = getelementptr inbounds i8, ptr %0, i64 120
  br label %29

27:                                               ; preds = %21
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %5) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #6
  br label %52

29:                                               ; preds = %.lr.ph, %47
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %47 ]
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv) #6
  %31 = load ptr, ptr %30, align 8, !tbaa !25
  %32 = getelementptr inbounds i8, ptr %31, i64 40
  %33 = load i8, ptr %32, align 8, !tbaa !26, !range !35, !noundef !36
  %34 = trunc nuw i8 %33 to i1
  br i1 %34, label %35, label %47

35:                                               ; preds = %29
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv) #6
  %37 = load ptr, ptr %36, align 8, !tbaa !25
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !37
  %40 = load i8, ptr %39, align 1, !tbaa !38, !range !35, !noundef !36
  %41 = trunc nuw i8 %40 to i1
  br i1 %41, label %42, label %47

42:                                               ; preds = %35
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv) #6
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  %45 = load ptr, ptr %44, align 8, !tbaa !40
  %46 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %1, ptr noundef nonnull align 8 dereferenceable(68) %45)
  br label %47

47:                                               ; preds = %29, %35, %42
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %48 = load i32, ptr %24, align 8, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = icmp ult i64 %indvars.iv.next, %49
  br i1 %50, label %29, label %.loopexit, !llvm.loop !41

.loopexit:                                        ; preds = %47, %23, %18
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %.loopexit, %3
  ret void

52:                                               ; preds = %27, %19
  %.pn = phi { ptr, i32 } [ %20, %19 ], [ %28, %27 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fabs.v2f64(<2 x double>) #5

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 144}
!10 = !{!"_ZTSN7siscone9CvicinityE", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !13, i64 64, !17, i64 88, !11, i64 112, !21, i64 120, !12, i64 144, !6, i64 152, !6, i64 160}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN7siscone9CmomentumESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, 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", !11, i64 0, !11, i64 8, !11, i64 16}
!21 = !{!"_ZTSSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!25 = !{!11, !11, i64 0}
!26 = !{!27, !28, i64 40}
!27 = !{!"_ZTSN7siscone13Cvicinity_elmE", !11, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !28, i64 40, !6, i64 48, !29, i64 56}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSNSt7__cxx114listIPN7siscone13Cvicinity_elmESaIS3_EEE", !30, i64 0}
!30 = !{!"_ZTSNSt7__cxx1110_List_baseIPN7siscone13Cvicinity_elmESaIS3_EEE", !31, i64 0}
!31 = !{!"_ZTSNSt7__cxx1110_List_baseIPN7siscone13Cvicinity_elmESaIS3_EE10_List_implE", !32, i64 0}
!32 = !{!"_ZTSNSt8__detail17_List_node_headerE", !33, i64 0, !34, i64 16}
!33 = !{!"_ZTSNSt8__detail15_List_node_baseE", !11, i64 0, !11, i64 8}
!34 = !{!"long", !7, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!27, !11, i64 8}
!38 = !{!39, !28, i64 0}
!39 = !{!"_ZTSN7siscone19Cvicinity_inclusionE", !28, i64 0, !28, i64 1}
!40 = !{!27, !11, i64 0}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}


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