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

; 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::Ceta_phi_range" = type { i32, i32 }
%"class.siscone::Csplit_merge" = type <{ i32, [4 x i8], %"class.std::vector.3", %"class.std::vector.8", i32, [4 x i8], %"class.std::vector.3", %"class.std::vector.3", i32, [4 x i8], double, %"class.std::vector.13", ptr, i32, i8, [3 x i8], %"class.siscone::Csplit_merge_ptcomparison", double, double, %"class.std::auto_ptr", double, i8, [7 x i8] }>
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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.siscone::Cmomentum" = type <{ double, double, double, double, double, double, i32, i32, %"class.siscone::Creference", [4 x i8] }>
%"class.siscone::Creference" = type { [3 x i32] }

@_ZN7siscone14Ceta_phi_range7eta_minE = external global double, align 8
@_ZN7siscone14Ceta_phi_range7eta_maxE = external global double, align 8

declare void @_ZN7siscone14Ceta_phi_rangeC1Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7siscone12Csplit_merge10init_pleftEv(ptr noundef nonnull align 8 dereferenceable(225) %0) #5 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca %"class.siscone::Ceta_phi_range", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store double 0.000000e+00, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store double 0.000000e+00, ptr %6, align 8, !tbaa !11
  %9 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 6
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %80, %1
  %11 = load i32, ptr %3, align 4, !tbaa !9
  %12 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 0
  %13 = load i32, ptr %12, align 8, !tbaa !13
  %14 = icmp slt i32 %11, %13
  br i1 %14, label %15, label %83

15:                                               ; preds = %10
  %16 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 2
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %18) #6
  %20 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %19, i32 0, i32 8
  call void @_ZN7siscone10Creference9randomizeEv(ptr noundef nonnull align 4 dereferenceable(12) %20)
  %21 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 2
  %22 = load i32, ptr %3, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %24 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %23) #6
  %25 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %24, i32 0, i32 2
  %26 = load double, ptr %25, align 8, !tbaa !31
  %27 = call double @llvm.fabs.f64(double %26)
  %28 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 2
  %29 = load i32, ptr %3, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %30) #6
  %32 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %31, i32 0, i32 3
  %33 = load double, ptr %32, align 8, !tbaa !34
  %34 = fcmp olt double %27, %33
  br i1 %34, label %35, label %73

35:                                               ; preds = %15
  %36 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 6
  %37 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 2
  %38 = load i32, ptr %3, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %39) #6
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(68) %40)
  %41 = load i32, ptr %3, align 4, !tbaa !9
  %42 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 6
  %43 = load i32, ptr %4, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %44) #6
  %46 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %45, i32 0, i32 6
  store i32 %41, ptr %46, align 8, !tbaa !35
  %47 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 6
  %48 = load i32, ptr %4, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %49) #6
  %51 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %50, i32 0, i32 7
  store i32 1, ptr %51, align 4, !tbaa !36
  %52 = load i32, ptr %4, align 4, !tbaa !9
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %4, align 4, !tbaa !9
  %54 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 2
  %55 = load i32, ptr %3, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %56) #6
  %58 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %57, i32 0, i32 7
  store i32 0, ptr %58, align 4, !tbaa !36
  %59 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 2
  %60 = load i32, ptr %3, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %59, i64 noundef %61) #6
  %63 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %62, i32 0, i32 4
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %63)
  %65 = load double, ptr %64, align 8, !tbaa !11
  store double %65, ptr %5, align 8, !tbaa !11
  %66 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 2
  %67 = load i32, ptr %3, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %68) #6
  %70 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %69, i32 0, i32 4
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %70)
  %72 = load double, ptr %71, align 8, !tbaa !11
  store double %72, ptr %6, align 8, !tbaa !11
  br label %79

73:                                               ; preds = %15
  %74 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 2
  %75 = load i32, ptr %3, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %76) #6
  %78 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %77, i32 0, i32 7
  store i32 -1, ptr %78, align 4, !tbaa !36
  br label %79

79:                                               ; preds = %73, %35
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %3, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %3, align 4, !tbaa !9
  br label %10, !llvm.loop !37

83:                                               ; preds = %10
  %84 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 6
  %85 = call noundef i64 @_ZNKSt6vectorIN7siscone9CmomentumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #6
  %86 = trunc i64 %85 to i32
  %87 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 4
  store i32 %86, ptr %87, align 8, !tbaa !39
  %88 = getelementptr inbounds %"class.siscone::Csplit_merge", ptr %8, i32 0, i32 8
  store i32 0, ptr %88, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @_ZN7siscone14Ceta_phi_rangeC1Ev(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %89 = load double, ptr %5, align 8, !tbaa !11
  %90 = fsub double %89, 1.000000e-02
  store double %90, ptr @_ZN7siscone14Ceta_phi_range7eta_minE, align 8, !tbaa !11
  %91 = load double, ptr %6, align 8, !tbaa !11
  %92 = fadd double %91, 1.000000e-02
  store double %92, ptr @_ZN7siscone14Ceta_phi_range7eta_maxE, align 8, !tbaa !11
  %93 = call noundef i32 @_ZN7siscone12Csplit_merge31merge_collinear_and_remove_softEv(ptr noundef nonnull align 8 dereferenceable(225) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret i32 0
}

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

declare void @_ZN7siscone10Creference9randomizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(68)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7siscone12Csplit_merge31merge_collinear_and_remove_softEv(ptr noundef nonnull align 8 dereferenceable(225)) #5 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN7siscone12Csplit_mergeE", !10, i64 0, !15, i64 8, !19, i64 32, !10, i64 56, !15, i64 64, !15, i64 88, !10, i64 112, !12, i64 120, !23, i64 128, !6, i64 152, !10, i64 160, !27, i64 164, !28, i64 168, !12, i64 192, !12, i64 200, !30, i64 208, !12, i64 216, !27, i64 224}
!15 = !{!"_ZTSSt6vectorIN7siscone9CmomentumESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSSt6vectorIN7siscone4CjetESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN7siscone4CjetESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN7siscone4CjetESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN7siscone4CjetESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSN7siscone25Csplit_merge_ptcomparisonE", !6, i64 0, !6, i64 8, !29, i64 16}
!29 = !{!"_ZTSN7siscone18Esplit_merge_scaleE", !7, i64 0}
!30 = !{!"_ZTSSt8auto_ptrISt8multisetIN7siscone4CjetENS1_25Csplit_merge_ptcomparisonESaIS2_EEE", !6, i64 0}
!31 = !{!32, !12, i64 16}
!32 = !{!"_ZTSN7siscone9CmomentumE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !10, i64 48, !10, i64 52, !33, i64 56}
!33 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!34 = !{!32, !12, i64 24}
!35 = !{!32, !10, i64 48}
!36 = !{!32, !10, i64 52}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!14, !10, i64 56}
!40 = !{!14, !10, i64 112}


; 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::Ceta_phi_range" = type { i32, i32 }

@_ZN7siscone14Ceta_phi_range7eta_minE = external local_unnamed_addr global double, align 8
@_ZN7siscone14Ceta_phi_range7eta_maxE = external local_unnamed_addr global double, align 8

declare void @_ZN7siscone14Ceta_phi_rangeC1Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7siscone12Csplit_merge10init_pleftEv(ptr noundef nonnull align 8 dereferenceable(225) %0) local_unnamed_addr #5 align 2 {
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca %"class.siscone::Ceta_phi_range", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store double 0.000000e+00, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store double 0.000000e+00, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %6 = load i32, ptr %0, align 8, !tbaa !9
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  br label %9

9:                                                ; preds = %.lr.ph, %41
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %41 ]
  %.016 = phi i32 [ 0, %.lr.ph ], [ %.1, %41 ]
  %10 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
  %11 = getelementptr inbounds i8, ptr %10, i64 56
  call void @_ZN7siscone10Creference9randomizeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %12 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = load double, ptr %13, align 8, !tbaa !29
  %15 = call double @llvm.fabs.f64(double %14)
  %16 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
  %17 = getelementptr inbounds i8, ptr %16, i64 24
  %18 = load double, ptr %17, align 8, !tbaa !32
  %19 = fcmp olt double %15, %18
  %20 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
  br i1 %19, label %21, label %39

21:                                               ; preds = %9
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(68) %20)
  %22 = sext i32 %.016 to i64
  %23 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %22) #6
  %24 = getelementptr inbounds i8, ptr %23, i64 48
  %25 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %25, ptr %24, align 8, !tbaa !33
  %26 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %22) #6
  %27 = getelementptr inbounds i8, ptr %26, i64 52
  store i32 1, ptr %27, align 4, !tbaa !34
  %28 = add nsw i32 %.016, 1
  %29 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
  %30 = getelementptr inbounds i8, ptr %29, i64 52
  store i32 0, ptr %30, align 4, !tbaa !34
  %31 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
  %32 = getelementptr inbounds i8, ptr %31, i64 32
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %34 = load double, ptr %33, align 8, !tbaa !5
  store double %34, ptr %2, align 8, !tbaa !5
  %35 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %indvars.iv) #6
  %36 = getelementptr inbounds i8, ptr %35, i64 32
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %38 = load double, ptr %37, align 8, !tbaa !5
  store double %38, ptr %3, align 8, !tbaa !5
  br label %41

39:                                               ; preds = %9
  %40 = getelementptr inbounds i8, ptr %20, i64 52
  store i32 -1, ptr %40, align 4, !tbaa !34
  br label %41

41:                                               ; preds = %21, %39
  %.1 = phi i32 [ %28, %21 ], [ %.016, %39 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = load i32, ptr %0, align 8, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next, %43
  br i1 %44, label %9, label %._crit_edge, !llvm.loop !35

._crit_edge:                                      ; preds = %41, %1
  %45 = call noundef i64 @_ZNKSt6vectorIN7siscone9CmomentumESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %46 = trunc i64 %45 to i32
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %46, ptr %47, align 8, !tbaa !37
  %48 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 0, ptr %48, align 8, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN7siscone14Ceta_phi_rangeC1Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %49 = load double, ptr %2, align 8, !tbaa !5
  %50 = fadd double %49, -1.000000e-02
  store double %50, ptr @_ZN7siscone14Ceta_phi_range7eta_minE, align 8, !tbaa !5
  %51 = load double, ptr %3, align 8, !tbaa !5
  %52 = fadd double %51, 1.000000e-02
  store double %52, ptr @_ZN7siscone14Ceta_phi_range7eta_maxE, align 8, !tbaa !5
  %53 = call noundef i32 @_ZN7siscone12Csplit_merge31merge_collinear_and_remove_softEv(ptr noundef nonnull align 8 dereferenceable(225) %0)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret i32 0
}

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

declare void @_ZN7siscone10Creference9randomizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7siscone12Csplit_merge31merge_collinear_and_remove_softEv(ptr noundef nonnull align 8 dereferenceable(225)) local_unnamed_addr #5 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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 #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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN7siscone12Csplit_mergeE", !11, i64 0, !12, i64 8, !17, i64 32, !11, i64 56, !12, i64 64, !12, i64 88, !11, i64 112, !6, i64 120, !21, i64 128, !16, i64 152, !11, i64 160, !25, i64 164, !26, i64 168, !6, i64 192, !6, i64 200, !28, i64 208, !6, i64 216, !25, i64 224}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIN7siscone9CmomentumESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!"_ZTSSt6vectorIN7siscone4CjetESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN7siscone4CjetESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN7siscone4CjetESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN7siscone4CjetESaIS1_EE17_Vector_impl_dataE", !16, i64 0, !16, i64 8, !16, i64 16}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSN7siscone25Csplit_merge_ptcomparisonE", !16, i64 0, !16, i64 8, !27, i64 16}
!27 = !{!"_ZTSN7siscone18Esplit_merge_scaleE", !7, i64 0}
!28 = !{!"_ZTSSt8auto_ptrISt8multisetIN7siscone4CjetENS1_25Csplit_merge_ptcomparisonESaIS2_EEE", !16, i64 0}
!29 = !{!30, !6, i64 16}
!30 = !{!"_ZTSN7siscone9CmomentumE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !31, i64 56}
!31 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!32 = !{!30, !6, i64 24}
!33 = !{!30, !11, i64 48}
!34 = !{!30, !11, i64 52}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!10, !11, i64 56}
!38 = !{!10, !11, i64 112}


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