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

; 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::Cquadtree" = type <{ double, double, double, double, ptr, [2 x [2 x ptr]], i8, [7 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] }

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7siscone9Cquadtree3addEPNS_9CmomentumE(ptr noundef nonnull align 8 dereferenceable(73) %0, ptr noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  %11 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 4
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %17

14:                                               ; preds = %2
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 4
  store ptr %15, ptr %16, align 8, !tbaa !9
  store i32 0, ptr %3, align 4
  br label %158

17:                                               ; preds = %2
  %18 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 6
  %19 = load i8, ptr %18, align 8, !tbaa !13, !range !14, !noundef !15
  %20 = trunc i8 %19 to i1
  br i1 %20, label %133, label %21

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %22 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 2
  %23 = load double, ptr %22, align 8, !tbaa !16
  %24 = fmul double 5.000000e-01, %23
  store double %24, ptr %6, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %25 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 3
  %26 = load double, ptr %25, align 8, !tbaa !18
  %27 = fmul double 5.000000e-01, %26
  store double %27, ptr %7, align 8, !tbaa !17
  %28 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #7
  %29 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 0
  %30 = load double, ptr %29, align 8, !tbaa !19
  %31 = load double, ptr %6, align 8, !tbaa !17
  %32 = fsub double %30, %31
  %33 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 1
  %34 = load double, ptr %33, align 8, !tbaa !20
  %35 = load double, ptr %7, align 8, !tbaa !17
  %36 = fsub double %34, %35
  %37 = load double, ptr %6, align 8, !tbaa !17
  %38 = load double, ptr %7, align 8, !tbaa !17
  invoke void @_ZN7siscone9CquadtreeC1Edddd(ptr noundef nonnull align 8 dereferenceable(73) %28, double noundef %32, double noundef %36, double noundef %37, double noundef %38)
          to label %39 unwind label %116

39:                                               ; preds = %21
  %40 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 5
  %41 = getelementptr inbounds [2 x [2 x ptr]], ptr %40, i64 0, i64 0
  %42 = getelementptr inbounds [2 x ptr], ptr %41, i64 0, i64 0
  store ptr %28, ptr %42, align 8, !tbaa !5
  %43 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #7
  %44 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 0
  %45 = load double, ptr %44, align 8, !tbaa !19
  %46 = load double, ptr %6, align 8, !tbaa !17
  %47 = fsub double %45, %46
  %48 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 1
  %49 = load double, ptr %48, align 8, !tbaa !20
  %50 = load double, ptr %7, align 8, !tbaa !17
  %51 = fadd double %49, %50
  %52 = load double, ptr %6, align 8, !tbaa !17
  %53 = load double, ptr %7, align 8, !tbaa !17
  invoke void @_ZN7siscone9CquadtreeC1Edddd(ptr noundef nonnull align 8 dereferenceable(73) %43, double noundef %47, double noundef %51, double noundef %52, double noundef %53)
          to label %54 unwind label %120

54:                                               ; preds = %39
  %55 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 5
  %56 = getelementptr inbounds [2 x [2 x ptr]], ptr %55, i64 0, i64 0
  %57 = getelementptr inbounds [2 x ptr], ptr %56, i64 0, i64 1
  store ptr %43, ptr %57, align 8, !tbaa !5
  %58 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #7
  %59 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 0
  %60 = load double, ptr %59, align 8, !tbaa !19
  %61 = load double, ptr %6, align 8, !tbaa !17
  %62 = fadd double %60, %61
  %63 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 1
  %64 = load double, ptr %63, align 8, !tbaa !20
  %65 = load double, ptr %7, align 8, !tbaa !17
  %66 = fsub double %64, %65
  %67 = load double, ptr %6, align 8, !tbaa !17
  %68 = load double, ptr %7, align 8, !tbaa !17
  invoke void @_ZN7siscone9CquadtreeC1Edddd(ptr noundef nonnull align 8 dereferenceable(73) %58, double noundef %62, double noundef %66, double noundef %67, double noundef %68)
          to label %69 unwind label %124

69:                                               ; preds = %54
  %70 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 5
  %71 = getelementptr inbounds [2 x [2 x ptr]], ptr %70, i64 0, i64 1
  %72 = getelementptr inbounds [2 x ptr], ptr %71, i64 0, i64 0
  store ptr %58, ptr %72, align 8, !tbaa !5
  %73 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #7
  %74 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 0
  %75 = load double, ptr %74, align 8, !tbaa !19
  %76 = load double, ptr %6, align 8, !tbaa !17
  %77 = fadd double %75, %76
  %78 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 1
  %79 = load double, ptr %78, align 8, !tbaa !20
  %80 = load double, ptr %7, align 8, !tbaa !17
  %81 = fadd double %79, %80
  %82 = load double, ptr %6, align 8, !tbaa !17
  %83 = load double, ptr %7, align 8, !tbaa !17
  invoke void @_ZN7siscone9CquadtreeC1Edddd(ptr noundef nonnull align 8 dereferenceable(73) %73, double noundef %77, double noundef %81, double noundef %82, double noundef %83)
          to label %84 unwind label %128

84:                                               ; preds = %69
  %85 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 5
  %86 = getelementptr inbounds [2 x [2 x ptr]], ptr %85, i64 0, i64 1
  %87 = getelementptr inbounds [2 x ptr], ptr %86, i64 0, i64 1
  store ptr %73, ptr %87, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 6
  store i8 1, ptr %88, align 8, !tbaa !13
  %89 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 5
  %90 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !9
  %92 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %91, i32 0, i32 4
  %93 = load double, ptr %92, align 8, !tbaa !21
  %94 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 0
  %95 = load double, ptr %94, align 8, !tbaa !19
  %96 = fcmp ogt double %93, %95
  %97 = zext i1 %96 to i64
  %98 = getelementptr inbounds [2 x [2 x ptr]], ptr %89, i64 0, i64 %97
  %99 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  %101 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %100, i32 0, i32 5
  %102 = load double, ptr %101, align 8, !tbaa !25
  %103 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 1
  %104 = load double, ptr %103, align 8, !tbaa !20
  %105 = fcmp ogt double %102, %104
  %106 = zext i1 %105 to i64
  %107 = getelementptr inbounds [2 x ptr], ptr %98, i64 0, i64 %106
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %109 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = call noundef i32 @_ZN7siscone9Cquadtree3addEPNS_9CmomentumE(ptr noundef nonnull align 8 dereferenceable(73) %108, ptr noundef %110)
  %112 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 72) #7
  %113 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %112, ptr align 8 %114, i64 72, i1 false), !tbaa.struct !26
  %115 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 4
  store ptr %112, ptr %115, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %133

116:                                              ; preds = %21
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %8, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %28, i64 noundef 80) #8
  br label %132

120:                                              ; preds = %39
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %8, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %43, i64 noundef 80) #8
  br label %132

124:                                              ; preds = %54
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %8, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %58, i64 noundef 80) #8
  br label %132

128:                                              ; preds = %69
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %8, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %73, i64 noundef 80) #8
  br label %132

132:                                              ; preds = %128, %124, %120, %116
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %160

133:                                              ; preds = %84, %17
  %134 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 5
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %135, i32 0, i32 4
  %137 = load double, ptr %136, align 8, !tbaa !21
  %138 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 0
  %139 = load double, ptr %138, align 8, !tbaa !19
  %140 = fcmp ogt double %137, %139
  %141 = zext i1 %140 to i64
  %142 = getelementptr inbounds [2 x [2 x ptr]], ptr %134, i64 0, i64 %141
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %143, i32 0, i32 5
  %145 = load double, ptr %144, align 8, !tbaa !25
  %146 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 1
  %147 = load double, ptr %146, align 8, !tbaa !20
  %148 = fcmp ogt double %145, %147
  %149 = zext i1 %148 to i64
  %150 = getelementptr inbounds [2 x ptr], ptr %142, i64 0, i64 %149
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = call noundef i32 @_ZN7siscone9Cquadtree3addEPNS_9CmomentumE(ptr noundef nonnull align 8 dereferenceable(73) %151, ptr noundef %152)
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %10, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %156, ptr noundef nonnull align 8 dereferenceable(68) %154)
  store i32 0, ptr %3, align 4
  br label %158

158:                                              ; preds = %133, %14
  %159 = load i32, ptr %3, align 4
  ret i32 %159

160:                                              ; preds = %132
  %161 = load ptr, ptr %8, align 8
  %162 = load i32, ptr %9, align 4
  %163 = insertvalue { ptr, i32 } poison, ptr %161, 0
  %164 = insertvalue { ptr, i32 } %163, i32 %162, 1
  resume { ptr, i32 } %164
}

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

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

declare void @_ZN7siscone9CquadtreeC1Edddd(ptr, double, double, double, double)

attributes #0 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"_ZTSN7siscone9CquadtreeE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !7, i64 40, !12, i64 72}
!11 = !{!"double", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!10, !12, i64 72}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!10, !11, i64 16}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !11, i64 24}
!19 = !{!10, !11, i64 0}
!20 = !{!10, !11, i64 8}
!21 = !{!22, !11, i64 32}
!22 = !{!"_ZTSN7siscone9CmomentumE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !23, i64 48, !23, i64 52, !24, i64 56}
!23 = !{!"int", !7, i64 0}
!24 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!25 = !{!22, !11, i64 40}
!26 = !{i64 0, i64 8, !17, i64 8, i64 8, !17, i64 16, i64 8, !17, i64 24, i64 8, !17, i64 32, i64 8, !17, i64 40, i64 8, !17, i64 48, i64 4, !27, i64 52, i64 4, !27, i64 56, i64 12, !28}
!27 = !{!23, !23, i64 0}
!28 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7siscone9Cquadtree3addEPNS_9CmomentumE(ptr nocapture noundef nonnull align 8 dereferenceable(73) %0, ptr noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 32
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = icmp eq ptr %4, null
  br i1 %5, label %common.ret, label %6

common.ret:                                       ; preds = %2
  store ptr %1, ptr %3, align 8, !tbaa !5
  br label %common.ret27

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = load i8, ptr %7, align 8, !tbaa !12, !range !13, !noundef !14
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %71, label %10

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load double, ptr %11, align 8, !tbaa !15
  %13 = fmul double %12, 5.000000e-01
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load double, ptr %14, align 8, !tbaa !16
  %16 = fmul double %15, 5.000000e-01
  %17 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #5
  %18 = load double, ptr %0, align 8, !tbaa !17
  %19 = fsub double %18, %13
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = load double, ptr %20, align 8, !tbaa !18
  %22 = fsub double %21, %16
  invoke void @_ZN7siscone9CquadtreeC1Edddd(ptr noundef nonnull align 8 dereferenceable(73) %17, double noundef %19, double noundef %22, double noundef %13, double noundef %16)
          to label %23 unwind label %62

23:                                               ; preds = %10
  %24 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %17, ptr %24, align 8, !tbaa !19
  %25 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #5
  %26 = load double, ptr %0, align 8, !tbaa !17
  %27 = fsub double %26, %13
  %28 = load double, ptr %20, align 8, !tbaa !18
  %29 = fadd double %16, %28
  invoke void @_ZN7siscone9CquadtreeC1Edddd(ptr noundef nonnull align 8 dereferenceable(73) %25, double noundef %27, double noundef %29, double noundef %13, double noundef %16)
          to label %30 unwind label %64

30:                                               ; preds = %23
  %31 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %25, ptr %31, align 8, !tbaa !19
  %32 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #5
  %33 = load double, ptr %0, align 8, !tbaa !17
  %34 = fadd double %13, %33
  %35 = load double, ptr %20, align 8, !tbaa !18
  %36 = fsub double %35, %16
  invoke void @_ZN7siscone9CquadtreeC1Edddd(ptr noundef nonnull align 8 dereferenceable(73) %32, double noundef %34, double noundef %36, double noundef %13, double noundef %16)
          to label %37 unwind label %66

37:                                               ; preds = %30
  %38 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %32, ptr %38, align 8, !tbaa !19
  %39 = tail call noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #5
  %40 = load double, ptr %0, align 8, !tbaa !17
  %41 = fadd double %13, %40
  %42 = load double, ptr %20, align 8, !tbaa !18
  %43 = fadd double %16, %42
  invoke void @_ZN7siscone9CquadtreeC1Edddd(ptr noundef nonnull align 8 dereferenceable(73) %39, double noundef %41, double noundef %43, double noundef %13, double noundef %16)
          to label %44 unwind label %68

44:                                               ; preds = %37
  %45 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %39, ptr %45, align 8, !tbaa !19
  store i8 1, ptr %7, align 8, !tbaa !12
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 32
  %48 = load double, ptr %47, align 8, !tbaa !20
  %49 = load double, ptr %0, align 8, !tbaa !17
  %50 = fcmp ogt double %48, %49
  %51 = zext i1 %50 to i64
  %52 = getelementptr inbounds i8, ptr %46, i64 40
  %53 = load double, ptr %52, align 8, !tbaa !24
  %54 = load double, ptr %20, align 8, !tbaa !18
  %55 = fcmp ogt double %53, %54
  %56 = zext i1 %55 to i64
  %57 = getelementptr inbounds [2 x [2 x ptr]], ptr %24, i64 0, i64 %51, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  %59 = tail call noundef i32 @_ZN7siscone9Cquadtree3addEPNS_9CmomentumE(ptr noundef nonnull align 8 dereferenceable(73) %58, ptr noundef %46)
  %60 = tail call noalias noundef nonnull dereferenceable(72) ptr @_Znwm(i64 noundef 72) #5
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(72) %60, ptr noundef nonnull align 8 dereferenceable(72) %61, i64 72, i1 false), !tbaa.struct !25
  store ptr %60, ptr %3, align 8, !tbaa !5
  br label %71

62:                                               ; preds = %10
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %70

64:                                               ; preds = %23
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %70

66:                                               ; preds = %30
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %70

68:                                               ; preds = %37
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %70

70:                                               ; preds = %68, %66, %64, %62
  %.sink = phi ptr [ %39, %68 ], [ %32, %66 ], [ %25, %64 ], [ %17, %62 ]
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ], [ %65, %64 ], [ %63, %62 ]
  tail call void @_ZdlPvm(ptr noundef nonnull %.sink, i64 noundef 80) #6
  resume { ptr, i32 } %.pn

common.ret27:                                     ; preds = %71, %common.ret
  %common.ret27.op = phi i32 [ 0, %common.ret ], [ 0, %71 ]
  ret i32 %common.ret27.op

71:                                               ; preds = %44, %6
  %72 = getelementptr inbounds i8, ptr %0, i64 40
  %73 = getelementptr inbounds i8, ptr %1, i64 32
  %74 = load double, ptr %73, align 8, !tbaa !20
  %75 = load double, ptr %0, align 8, !tbaa !17
  %76 = fcmp ogt double %74, %75
  %77 = zext i1 %76 to i64
  %78 = getelementptr inbounds i8, ptr %1, i64 40
  %79 = load double, ptr %78, align 8, !tbaa !24
  %80 = getelementptr inbounds i8, ptr %0, i64 8
  %81 = load double, ptr %80, align 8, !tbaa !18
  %82 = fcmp ogt double %79, %81
  %83 = zext i1 %82 to i64
  %84 = getelementptr inbounds [2 x [2 x ptr]], ptr %72, i64 0, i64 %77, i64 %83
  %85 = load ptr, ptr %84, align 8, !tbaa !19
  %86 = tail call noundef i32 @_ZN7siscone9Cquadtree3addEPNS_9CmomentumE(ptr noundef nonnull align 8 dereferenceable(73) %85, ptr noundef %1)
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = tail call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %87, ptr noundef nonnull align 8 dereferenceable(68) %1)
  br label %common.ret27
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

declare void @_ZN7siscone9CquadtreeC1Edddd(ptr, double, double, double, double) local_unnamed_addr

attributes #0 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { builtin allocsize(0) }
attributes #6 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 32}
!6 = !{!"_ZTSN7siscone9CquadtreeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !8, i64 40, !11, i64 72}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!6, !11, i64 72}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!6, !7, i64 16}
!16 = !{!6, !7, i64 24}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !7, i64 8}
!19 = !{!10, !10, i64 0}
!20 = !{!21, !7, i64 32}
!21 = !{!"_ZTSN7siscone9CmomentumE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !22, i64 48, !22, i64 52, !23, i64 56}
!22 = !{!"int", !8, i64 0}
!23 = !{!"_ZTSN7siscone10CreferenceE", !8, i64 0}
!24 = !{!21, !7, i64 40}
!25 = !{i64 0, i64 8, !26, i64 8, i64 8, !26, i64 16, i64 8, !26, i64 24, i64 8, !26, i64 32, i64 8, !26, i64 40, i64 8, !26, i64 48, i64 4, !27, i64 52, i64 4, !27, i64 56, i64 12, !28}
!26 = !{!7, !7, i64 0}
!27 = !{!22, !22, i64 0}
!28 = !{!8, !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass