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

; 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::Cjet" = type <{ %"class.siscone::Cmomentum", double, i32, [4 x i8], %"class.std::vector", double, %"class.siscone::Ceta_phi_range", i32, [4 x i8] }>
%"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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone::Ceta_phi_range" = type { i32, i32 }
%"class.siscone::Cjet_area" = type { %"class.siscone::Cjet.base", double, double }
%"class.siscone::Cjet.base" = type <{ %"class.siscone::Cmomentum", double, i32, [4 x i8], %"class.std::vector", double, %"class.siscone::Ceta_phi_range", i32 }>

declare void @_ZN7siscone4CjetC2Ev(ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7siscone9Cjet_areaC2ERNS_4CjetE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(132) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  call void @_ZN7siscone4CjetC2Ev(ptr noundef nonnull align 8 dereferenceable(132) %7)
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds %"class.siscone::Cjet", ptr %8, i32 0, i32 0
  %10 = getelementptr inbounds %"class.siscone::Cjet", ptr %7, i32 0, i32 0
  %11 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %10, ptr noundef nonnull align 8 dereferenceable(68) %9)
          to label %12 unwind label %36

12:                                               ; preds = %2
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %"class.siscone::Cjet", ptr %13, i32 0, i32 2
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.siscone::Cjet", ptr %7, i32 0, i32 2
  store i32 %15, ptr %16, align 8, !tbaa !9
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.siscone::Cjet", ptr %17, i32 0, i32 4
  %19 = getelementptr inbounds %"class.siscone::Cjet", ptr %7, i32 0, i32 4
  %20 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %21 unwind label %36

21:                                               ; preds = %12
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.siscone::Cjet", ptr %22, i32 0, i32 7
  %24 = load i32, ptr %23, align 8, !tbaa !20
  %25 = getelementptr inbounds %"class.siscone::Cjet", ptr %7, i32 0, i32 7
  store i32 %24, ptr %25, align 8, !tbaa !20
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.siscone::Cjet", ptr %26, i32 0, i32 1
  %28 = load double, ptr %27, align 8, !tbaa !21
  %29 = getelementptr inbounds %"class.siscone::Cjet", ptr %7, i32 0, i32 1
  store double %28, ptr %29, align 8, !tbaa !21
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.siscone::Cjet", ptr %30, i32 0, i32 5
  %32 = load double, ptr %31, align 8, !tbaa !22
  %33 = getelementptr inbounds %"class.siscone::Cjet", ptr %7, i32 0, i32 5
  store double %32, ptr %33, align 8, !tbaa !22
  %34 = getelementptr inbounds %"class.siscone::Cjet_area", ptr %7, i32 0, i32 1
  store double 0.000000e+00, ptr %34, align 8, !tbaa !23
  %35 = getelementptr inbounds %"class.siscone::Cjet_area", ptr %7, i32 0, i32 2
  store double 0.000000e+00, ptr %35, align 8, !tbaa !25
  ret void

36:                                               ; preds = %12, %2
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  call void @_ZN7siscone4CjetD2Ev(ptr noundef nonnull align 8 dereferenceable(132) %7) #3
  br label %40

40:                                               ; preds = %36
  %41 = load ptr, ptr %5, align 8
  %42 = load i32, ptr %6, align 4
  %43 = insertvalue { ptr, i32 } poison, ptr %41, 0
  %44 = insertvalue { ptr, i32 } %43, i32 %42, 1
  resume { ptr, i32 } %44
}

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 i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN7siscone4CjetD2Ev(ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #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 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !13, i64 80}
!10 = !{!"_ZTSN7siscone4CjetE", !11, i64 0, !12, i64 72, !13, i64 80, !15, i64 88, !12, i64 112, !19, i64 120, !13, i64 128}
!11 = !{!"_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, !14, i64 56}
!12 = !{!"double", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSN7siscone14Ceta_phi_rangeE", !13, i64 0, !13, i64 4}
!20 = !{!10, !13, i64 128}
!21 = !{!10, !12, i64 72}
!22 = !{!10, !12, i64 112}
!23 = !{!24, !12, i64 136}
!24 = !{!"_ZTSN7siscone9Cjet_areaE", !10, i64 0, !12, i64 136, !12, i64 144}
!25 = !{!24, !12, i64 144}


; 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 void @_ZN7siscone4CjetC2Ev(ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7siscone9Cjet_areaC2ERNS_4CjetE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull align 8 dereferenceable(132) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN7siscone4CjetC2Ev(ptr noundef nonnull align 8 dereferenceable(132) %0)
  %3 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 8 dereferenceable(68) %1)
          to label %4 unwind label %22

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %1, i64 80
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %6, ptr %7, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 88
  %9 = getelementptr inbounds i8, ptr %0, i64 88
  %10 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %11 unwind label %22

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %1, i64 128
  %13 = load i32, ptr %12, align 8, !tbaa !19
  %14 = getelementptr inbounds i8, ptr %0, i64 128
  store i32 %13, ptr %14, align 8, !tbaa !19
  %15 = getelementptr inbounds i8, ptr %1, i64 72
  %16 = load double, ptr %15, align 8, !tbaa !20
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  store double %16, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %1, i64 112
  %19 = load double, ptr %18, align 8, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %0, i64 112
  store double %19, ptr %20, align 8, !tbaa !21
  %21 = getelementptr inbounds i8, ptr %0, i64 136
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %21, i8 0, i64 16, i1 false)
  ret void

22:                                               ; preds = %4, %2
  %23 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN7siscone4CjetD2Ev(ptr noundef nonnull align 8 dereferenceable(132) %0) #4
  resume { ptr, i32 } %23
}

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 i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN7siscone4CjetD2Ev(ptr noundef nonnull align 8 dereferenceable(132)) unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !11, i64 80}
!6 = !{!"_ZTSN7siscone4CjetE", !7, i64 0, !8, i64 72, !11, i64 80, !13, i64 88, !8, i64 112, !18, i64 120, !11, i64 128}
!7 = !{!"_ZTSN7siscone9CmomentumE", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !11, i64 48, !11, i64 52, !12, i64 56}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSN7siscone10CreferenceE", !9, i64 0}
!13 = !{!"_ZTSSt6vectorIiSaIiEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !9, i64 0}
!18 = !{!"_ZTSN7siscone14Ceta_phi_rangeE", !11, i64 0, !11, i64 4}
!19 = !{!6, !11, i64 128}
!20 = !{!6, !8, i64 72}
!21 = !{!6, !8, i64 112}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass