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

; 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::Csiscone" = type <{ %"class.siscone::Cstable_cones", %"class.siscone::Csplit_merge.base", [7 x i8], %"class.std::vector.30", i8, [7 x i8] }>
%"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.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.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::Csplit_merge.base" = type <{ i32, [4 x i8], %"class.std::vector", %"class.std::vector.20", i32, [4 x i8], %"class.std::vector", %"class.std::vector", i32, [4 x i8], double, %"class.std::vector.25", ptr, i32, i8, [3 x i8], %"class.siscone::Csplit_merge_ptcomparison", double, double, %"class.std::auto_ptr", double, i8 }>
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone::Csplit_merge_ptcomparison" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.std::auto_ptr" = type { ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone::Csplit_merge" = type <{ i32, [4 x i8], %"class.std::vector", %"class.std::vector.20", i32, [4 x i8], %"class.std::vector", %"class.std::vector", i32, [4 x i8], double, %"class.std::vector.25", ptr, i32, i8, [3 x i8], %"class.siscone::Csplit_merge_ptcomparison", double, double, %"class.std::auto_ptr", double, i8, [7 x i8] }>

; 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

declare noundef i32 @_ZN7siscone12Csplit_merge13partial_clearEv(ptr noundef nonnull align 8 dereferenceable(225)) #1

declare noundef i32 @_ZN7siscone12Csplit_merge14add_protoconesEPSt6vectorINS_9CmomentumESaIS2_EEdd(ptr noundef nonnull align 8 dereferenceable(225), ptr noundef, double noundef, double noundef) #1

declare noundef i32 @_ZN7siscone12Csplit_merge7performEdd(ptr noundef nonnull align 8 dereferenceable(225), double noundef, double noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7siscone8Csiscone14recompute_jetsEddNS_18Esplit_merge_scaleE(ptr noundef nonnull align 8 dereferenceable(705) %0, double noundef %1, double noundef %2, i32 noundef %3) #2 align 2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !11
  %11 = load ptr, ptr %6, align 8
  %12 = getelementptr inbounds %"class.siscone::Csiscone", ptr %11, i32 0, i32 4
  %13 = load i8, ptr %12, align 8, !tbaa !13, !range !56, !noundef !57
  %14 = trunc i8 %13 to i1
  br i1 %14, label %16, label %15

15:                                               ; preds = %4
  store i32 -1, ptr %5, align 4
  br label %49

16:                                               ; preds = %4
  %17 = load i32, ptr %9, align 4, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %11, i64 448
  %19 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %18, i32 0, i32 16
  %20 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 2
  store i32 %17, ptr %20, align 8, !tbaa !58
  %21 = getelementptr inbounds i8, ptr %11, i64 448
  %22 = call noundef i32 @_ZN7siscone12Csplit_merge13partial_clearEv(ptr noundef nonnull align 8 dereferenceable(225) %21)
  %23 = getelementptr inbounds i8, ptr %11, i64 448
  %24 = call noundef i32 @_ZN7siscone12Csplit_merge10init_pleftEv(ptr noundef nonnull align 8 dereferenceable(225) %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !59
  br label %25

25:                                               ; preds = %41, %16
  %26 = load i32, ptr %10, align 4, !tbaa !59
  %27 = zext i32 %26 to i64
  %28 = getelementptr inbounds %"class.siscone::Csiscone", ptr %11, i32 0, i32 3
  %29 = call noundef i64 @_ZNKSt6vectorIS_IN7siscone9CmomentumESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #4
  %30 = icmp ult i64 %27, %29
  br i1 %30, label %31, label %44

31:                                               ; preds = %25
  %32 = getelementptr inbounds i8, ptr %11, i64 448
  %33 = getelementptr inbounds %"class.siscone::Csiscone", ptr %11, i32 0, i32 3
  %34 = load i32, ptr %10, align 4, !tbaa !59
  %35 = zext i32 %34 to i64
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN7siscone9CmomentumESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35) #4
  %37 = getelementptr inbounds %"class.siscone::Cstable_cones", ptr %11, i32 0, i32 5
  %38 = load double, ptr %37, align 8, !tbaa !60
  %39 = load double, ptr %8, align 8, !tbaa !9
  %40 = call noundef i32 @_ZN7siscone12Csplit_merge14add_protoconesEPSt6vectorINS_9CmomentumESaIS2_EEdd(ptr noundef nonnull align 8 dereferenceable(225) %32, ptr noundef %36, double noundef %38, double noundef %39)
  br label %41

41:                                               ; preds = %31
  %42 = load i32, ptr %10, align 4, !tbaa !59
  %43 = add i32 %42, 1
  store i32 %43, ptr %10, align 4, !tbaa !59
  br label %25, !llvm.loop !61

44:                                               ; preds = %25
  %45 = getelementptr inbounds i8, ptr %11, i64 448
  %46 = load double, ptr %7, align 8, !tbaa !9
  %47 = load double, ptr %8, align 8, !tbaa !9
  %48 = call noundef i32 @_ZN7siscone12Csplit_merge7performEdd(ptr noundef nonnull align 8 dereferenceable(225) %45, double noundef %46, double noundef %47)
  store i32 %48, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %49

49:                                               ; preds = %44, %15
  %50 = load i32, ptr %5, align 4
  ret i32 %50
}

declare noundef i32 @_ZN7siscone12Csplit_merge10init_pleftEv(ptr noundef nonnull align 8 dereferenceable(225)) #1

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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, !12, i64 0}
!12 = !{!"_ZTSN7siscone18Esplit_merge_scaleE", !7, i64 0}
!13 = !{!14, !49, i64 704}
!14 = !{!"_ZTSN7siscone8CsisconeE", !15, i64 0, !40, i64 448, !52, i64 680, !49, i64 704}
!15 = !{!"_ZTSN7siscone13Cstable_conesE", !16, i64 0, !18, i64 168, !6, i64 192, !17, i64 200, !10, i64 208, !10, i64 216, !30, i64 224, !6, i64 296, !6, i64 304, !17, i64 312, !17, i64 316, !30, i64 320, !32, i64 392, !36, i64 416, !10, i64 440}
!16 = !{!"_ZTSN7siscone9CvicinityE", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !17, i64 56, !18, i64 64, !22, i64 88, !6, i64 112, !26, i64 120, !17, i64 144, !10, i64 152, !10, i64 160}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt6vectorIN7siscone9CmomentumESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSSt6vectorIN7siscone19Cvicinity_inclusionESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSN7siscone9CmomentumE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !17, i64 48, !17, i64 52, !31, i64 56}
!31 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!32 = !{!"_ZTSSt6vectorIPN7siscone9CmomentumESaIS2_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIPN7siscone9CmomentumESaIS2_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPN7siscone9CmomentumESaIS2_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIPN7siscone9CmomentumESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!"_ZTSSt6vectorISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseISt4pairIN7siscone10CreferenceES2_ESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSN7siscone12Csplit_mergeE", !17, i64 0, !18, i64 8, !41, i64 32, !17, i64 56, !18, i64 64, !18, i64 88, !17, i64 112, !10, i64 120, !45, i64 128, !6, i64 152, !17, i64 160, !49, i64 164, !50, i64 168, !10, i64 192, !10, i64 200, !51, i64 208, !10, i64 216, !49, i64 224}
!41 = !{!"_ZTSSt6vectorIdSaIdEE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!45 = !{!"_ZTSSt6vectorIN7siscone4CjetESaIS1_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIN7siscone4CjetESaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIN7siscone4CjetESaIS1_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIN7siscone4CjetESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"bool", !7, i64 0}
!50 = !{!"_ZTSN7siscone25Csplit_merge_ptcomparisonE", !6, i64 0, !6, i64 8, !12, i64 16}
!51 = !{!"_ZTSSt8auto_ptrISt8multisetIN7siscone4CjetENS1_25Csplit_merge_ptcomparisonESaIS2_EEE", !6, i64 0}
!52 = !{!"_ZTSSt6vectorIS_IN7siscone9CmomentumESaIS1_EESaIS3_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseISt6vectorIN7siscone9CmomentumESaIS2_EESaIS4_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN7siscone9CmomentumESaIS2_EESaIS4_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN7siscone9CmomentumESaIS2_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!56 = !{i8 0, i8 2}
!57 = !{}
!58 = !{!40, !12, i64 184}
!59 = !{!17, !17, i64 0}
!60 = !{!15, !10, i64 216}
!61 = distinct !{!61, !62}
!62 = !{!"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"

declare noundef i32 @_ZN7siscone12Csplit_merge13partial_clearEv(ptr noundef nonnull align 8 dereferenceable(225)) local_unnamed_addr #0

declare noundef i32 @_ZN7siscone12Csplit_merge14add_protoconesEPSt6vectorINS_9CmomentumESaIS2_EEdd(ptr noundef nonnull align 8 dereferenceable(225), ptr noundef, double noundef, double noundef) local_unnamed_addr #0

declare noundef i32 @_ZN7siscone12Csplit_merge7performEdd(ptr noundef nonnull align 8 dereferenceable(225), double noundef, double noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7siscone8Csiscone14recompute_jetsEddNS_18Esplit_merge_scaleE(ptr noundef nonnull align 8 dereferenceable(705) %0, double noundef %1, double noundef %2, i32 noundef %3) local_unnamed_addr #1 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 704
  %6 = load i8, ptr %5, align 8, !tbaa !5, !range !53, !noundef !54
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %8, label %26

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 448
  %10 = getelementptr inbounds i8, ptr %0, i64 632
  store i32 %3, ptr %10, align 8, !tbaa !55
  %11 = tail call noundef i32 @_ZN7siscone12Csplit_merge13partial_clearEv(ptr noundef nonnull align 8 dereferenceable(225) %9)
  %12 = tail call noundef i32 @_ZN7siscone12Csplit_merge10init_pleftEv(ptr noundef nonnull align 8 dereferenceable(225) %9)
  %13 = getelementptr inbounds i8, ptr %0, i64 680
  %14 = tail call noundef i64 @_ZNKSt6vectorIS_IN7siscone9CmomentumESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %15 = getelementptr inbounds i8, ptr %0, i64 216
  br label %16

16:                                               ; preds = %.lr.ph, %16
  %17 = phi i64 [ 0, %.lr.ph ], [ %22, %16 ]
  %.010 = phi i32 [ 0, %.lr.ph ], [ %21, %16 ]
  %18 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN7siscone9CmomentumESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %17) #3
  %19 = load double, ptr %15, align 8, !tbaa !56
  %20 = tail call noundef i32 @_ZN7siscone12Csplit_merge14add_protoconesEPSt6vectorINS_9CmomentumESaIS2_EEdd(ptr noundef nonnull align 8 dereferenceable(225) %9, ptr noundef nonnull %18, double noundef %19, double noundef %2)
  %21 = add i32 %.010, 1
  %22 = zext i32 %21 to i64
  %23 = tail call noundef i64 @_ZNKSt6vectorIS_IN7siscone9CmomentumESaIS1_EESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  %24 = icmp ugt i64 %23, %22
  br i1 %24, label %16, label %._crit_edge, !llvm.loop !57

._crit_edge:                                      ; preds = %16, %8
  %25 = tail call noundef i32 @_ZN7siscone12Csplit_merge7performEdd(ptr noundef nonnull align 8 dereferenceable(225) %9, double noundef %1, double noundef %2)
  br label %26

26:                                               ; preds = %4, %._crit_edge
  %.08 = phi i32 [ %25, %._crit_edge ], [ -1, %4 ]
  ret i32 %.08
}

declare noundef i32 @_ZN7siscone12Csplit_merge10init_pleftEv(ptr noundef nonnull align 8 dereferenceable(225)) local_unnamed_addr #0

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

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

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 = { 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 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 = { 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, !45, i64 704}
!6 = !{!"_ZTSN7siscone8CsisconeE", !7, i64 0, !36, i64 448, !49, i64 680, !45, i64 704}
!7 = !{!"_ZTSN7siscone13Cstable_conesE", !8, i64 0, !14, i64 168, !9, i64 192, !13, i64 200, !12, i64 208, !12, i64 216, !26, i64 224, !9, i64 296, !9, i64 304, !13, i64 312, !13, i64 316, !26, i64 320, !28, i64 392, !32, i64 416, !12, i64 440}
!8 = !{!"_ZTSN7siscone9CvicinityE", !9, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !14, i64 64, !18, i64 88, !9, i64 112, !22, i64 120, !13, i64 144, !12, i64 152, !12, i64 160}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"double", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"_ZTSSt6vectorIN7siscone9CmomentumESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, 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", !9, i64 0, !9, i64 8, !9, i64 16}
!22 = !{!"_ZTSSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!26 = !{!"_ZTSN7siscone9CmomentumE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !13, i64 48, !13, i64 52, !27, i64 56}
!27 = !{!"_ZTSN7siscone10CreferenceE", !10, i64 0}
!28 = !{!"_ZTSSt6vectorIPN7siscone9CmomentumESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIPN7siscone9CmomentumESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN7siscone9CmomentumESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN7siscone9CmomentumESaIS2_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, 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", !9, i64 0, !9, i64 8, !9, i64 16}
!36 = !{!"_ZTSN7siscone12Csplit_mergeE", !13, i64 0, !14, i64 8, !37, i64 32, !13, i64 56, !14, i64 64, !14, i64 88, !13, i64 112, !12, i64 120, !41, i64 128, !9, i64 152, !13, i64 160, !45, i64 164, !46, i64 168, !12, i64 192, !12, i64 200, !48, i64 208, !12, i64 216, !45, i64 224}
!37 = !{!"_ZTSSt6vectorIdSaIdEE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!41 = !{!"_ZTSSt6vectorIN7siscone4CjetESaIS1_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseIN7siscone4CjetESaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIN7siscone4CjetESaIS1_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIN7siscone4CjetESaIS1_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!45 = !{!"bool", !10, i64 0}
!46 = !{!"_ZTSN7siscone25Csplit_merge_ptcomparisonE", !9, i64 0, !9, i64 8, !47, i64 16}
!47 = !{!"_ZTSN7siscone18Esplit_merge_scaleE", !10, i64 0}
!48 = !{!"_ZTSSt8auto_ptrISt8multisetIN7siscone4CjetENS1_25Csplit_merge_ptcomparisonESaIS2_EEE", !9, i64 0}
!49 = !{!"_ZTSSt6vectorIS_IN7siscone9CmomentumESaIS1_EESaIS3_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseISt6vectorIN7siscone9CmomentumESaIS2_EESaIS4_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN7siscone9CmomentumESaIS2_EESaIS4_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseISt6vectorIN7siscone9CmomentumESaIS2_EESaIS4_EE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!53 = !{i8 0, i8 2}
!54 = !{}
!55 = !{!36, !47, i64 184}
!56 = !{!7, !12, i64 216}
!57 = distinct !{!57, !58}
!58 = !{!"llvm.loop.mustprogress"}


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