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

; 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::Creference" = type { [3 x i32] }
%"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] }>

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %0, double noundef %1, double noundef %2, double noundef %3) #2 align 2 {
  %5 = alloca %"class.siscone::Creference", align 4
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca %"class.siscone::Creference", align 4
  %16 = alloca %"class.siscone::Creference", align 4
  %17 = alloca %"class.siscone::Creference", align 4
  %18 = alloca { i64, i32 }, align 8
  %19 = alloca %"class.siscone::Creference", align 4
  %20 = alloca { i64, i32 }, align 8
  %21 = alloca { i64, i32 }, align 8
  %22 = alloca %"class.siscone::Creference", align 4
  %23 = alloca { i64, i32 }, align 8
  %24 = alloca { i64, i32 }, align 8
  %25 = alloca %"class.siscone::Creference", align 4
  %26 = alloca { i64, i32 }, align 8
  %27 = alloca { i64, i32 }, align 8
  %28 = alloca { i64, i32 }, align 8
  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 double %3, ptr %9, align 8, !tbaa !9
  %29 = load ptr, ptr %6, align 8
  %30 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 4
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %4
  call void @_ZN7siscone10CreferenceC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  br label %183

34:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %35 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 6
  %36 = load i8, ptr %35, align 8, !tbaa !14, !range !15, !noundef !16
  %37 = trunc i8 %36 to i1
  br i1 %37, label %71, label %38

38:                                               ; preds = %34
  %39 = load double, ptr %7, align 8, !tbaa !9
  %40 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %41, i32 0, i32 4
  %43 = load double, ptr %42, align 8, !tbaa !17
  %44 = fsub double %39, %43
  store double %44, ptr %10, align 8, !tbaa !9
  %45 = load double, ptr %8, align 8, !tbaa !9
  %46 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %47, i32 0, i32 5
  %49 = load double, ptr %48, align 8, !tbaa !21
  %50 = fsub double %45, %49
  %51 = call double @llvm.fabs.f64(double %50)
  store double %51, ptr %11, align 8, !tbaa !9
  %52 = load double, ptr %11, align 8, !tbaa !9
  %53 = fcmp ogt double %52, 0x400921FB54442D18
  br i1 %53, label %54, label %57

54:                                               ; preds = %38
  %55 = load double, ptr %11, align 8, !tbaa !9
  %56 = fsub double %55, 0x401921FB54442D18
  store double %56, ptr %11, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %54, %38
  %58 = load double, ptr %10, align 8, !tbaa !9
  %59 = load double, ptr %10, align 8, !tbaa !9
  %60 = load double, ptr %11, align 8, !tbaa !9
  %61 = load double, ptr %11, align 8, !tbaa !9
  %62 = fmul double %60, %61
  %63 = call double @llvm.fmuladd.f64(double %58, double %59, double %62)
  %64 = load double, ptr %9, align 8, !tbaa !9
  %65 = fcmp olt double %63, %64
  br i1 %65, label %66, label %70

66:                                               ; preds = %57
  %67 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %68, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %69, i64 12, i1 false), !tbaa.struct !22
  store i32 1, ptr %12, align 4
  br label %182

70:                                               ; preds = %57
  call void @_ZN7siscone10CreferenceC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  store i32 1, ptr %12, align 4
  br label %182

71:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %72 = load double, ptr %7, align 8, !tbaa !9
  %73 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 0
  %74 = load double, ptr %73, align 8, !tbaa !24
  %75 = fsub double %72, %74
  %76 = call double @llvm.fabs.f64(double %75)
  store double %76, ptr %13, align 8, !tbaa !9
  %77 = load double, ptr %8, align 8, !tbaa !9
  %78 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 1
  %79 = load double, ptr %78, align 8, !tbaa !25
  %80 = fsub double %77, %79
  %81 = call double @llvm.fabs.f64(double %80)
  store double %81, ptr %14, align 8, !tbaa !9
  %82 = load double, ptr %14, align 8, !tbaa !9
  %83 = fcmp ogt double %82, 0x400921FB54442D18
  br i1 %83, label %84, label %87

84:                                               ; preds = %71
  %85 = load double, ptr %14, align 8, !tbaa !9
  %86 = fsub double 0x401921FB54442D18, %85
  store double %86, ptr %14, align 8, !tbaa !9
  br label %87

87:                                               ; preds = %84, %71
  %88 = load double, ptr %13, align 8, !tbaa !9
  %89 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 2
  %90 = load double, ptr %89, align 8, !tbaa !26
  %91 = fsub double %88, %90
  store double %91, ptr %10, align 8, !tbaa !9
  %92 = load double, ptr %10, align 8, !tbaa !9
  %93 = fcmp olt double %92, 0.000000e+00
  br i1 %93, label %94, label %95

94:                                               ; preds = %87
  store double 0.000000e+00, ptr %10, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %94, %87
  %96 = load double, ptr %14, align 8, !tbaa !9
  %97 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 3
  %98 = load double, ptr %97, align 8, !tbaa !27
  %99 = fsub double %96, %98
  store double %99, ptr %11, align 8, !tbaa !9
  %100 = load double, ptr %11, align 8, !tbaa !9
  %101 = fcmp olt double %100, 0.000000e+00
  br i1 %101, label %102, label %103

102:                                              ; preds = %95
  store double 0.000000e+00, ptr %11, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %102, %95
  %104 = load double, ptr %10, align 8, !tbaa !9
  %105 = load double, ptr %10, align 8, !tbaa !9
  %106 = load double, ptr %11, align 8, !tbaa !9
  %107 = load double, ptr %11, align 8, !tbaa !9
  %108 = fmul double %106, %107
  %109 = call double @llvm.fmuladd.f64(double %104, double %105, double %108)
  %110 = load double, ptr %9, align 8, !tbaa !9
  %111 = fcmp oge double %109, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %103
  call void @_ZN7siscone10CreferenceC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  store i32 1, ptr %12, align 4
  br label %181

113:                                              ; preds = %103
  %114 = load double, ptr %13, align 8, !tbaa !9
  %115 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 2
  %116 = load double, ptr %115, align 8, !tbaa !26
  %117 = fadd double %114, %116
  store double %117, ptr %10, align 8, !tbaa !9
  %118 = load double, ptr %14, align 8, !tbaa !9
  %119 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 3
  %120 = load double, ptr %119, align 8, !tbaa !27
  %121 = fadd double %118, %120
  store double %121, ptr %11, align 8, !tbaa !9
  %122 = load double, ptr %11, align 8, !tbaa !9
  %123 = fcmp ogt double %122, 0x400921FB54442D18
  br i1 %123, label %124, label %125

124:                                              ; preds = %113
  store double 0x400921FB54442D18, ptr %11, align 8, !tbaa !9
  br label %125

125:                                              ; preds = %124, %113
  %126 = load double, ptr %10, align 8, !tbaa !9
  %127 = load double, ptr %10, align 8, !tbaa !9
  %128 = load double, ptr %11, align 8, !tbaa !9
  %129 = load double, ptr %11, align 8, !tbaa !9
  %130 = fmul double %128, %129
  %131 = call double @llvm.fmuladd.f64(double %126, double %127, double %130)
  %132 = load double, ptr %9, align 8, !tbaa !9
  %133 = fcmp olt double %131, %132
  br i1 %133, label %134, label %138

134:                                              ; preds = %125
  %135 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !11
  %137 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %136, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %137, i64 12, i1 false), !tbaa.struct !22
  store i32 1, ptr %12, align 4
  br label %181

138:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #5
  %139 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 5
  %140 = getelementptr inbounds [2 x [2 x ptr]], ptr %139, i64 0, i64 0
  %141 = getelementptr inbounds [2 x ptr], ptr %140, i64 0, i64 0
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = load double, ptr %7, align 8, !tbaa !9
  %144 = load double, ptr %8, align 8, !tbaa !9
  %145 = load double, ptr %9, align 8, !tbaa !9
  %146 = call { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %142, double noundef %143, double noundef %144, double noundef %145)
  %147 = getelementptr inbounds %"class.siscone::Creference", ptr %17, i32 0, i32 0
  store { i64, i32 } %146, ptr %18, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %147, ptr align 8 %18, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #5
  %148 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 5
  %149 = getelementptr inbounds [2 x [2 x ptr]], ptr %148, i64 0, i64 0
  %150 = getelementptr inbounds [2 x ptr], ptr %149, i64 0, i64 1
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = load double, ptr %7, align 8, !tbaa !9
  %153 = load double, ptr %8, align 8, !tbaa !9
  %154 = load double, ptr %9, align 8, !tbaa !9
  %155 = call { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %151, double noundef %152, double noundef %153, double noundef %154)
  %156 = getelementptr inbounds %"class.siscone::Creference", ptr %19, i32 0, i32 0
  store { i64, i32 } %155, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %156, ptr align 8 %20, i64 12, i1 false)
  %157 = call { i64, i32 } @_ZN7siscone10CreferenceplERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %19)
  %158 = getelementptr inbounds %"class.siscone::Creference", ptr %16, i32 0, i32 0
  store { i64, i32 } %157, ptr %21, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %158, ptr align 8 %21, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #5
  %159 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 5
  %160 = getelementptr inbounds [2 x [2 x ptr]], ptr %159, i64 0, i64 1
  %161 = getelementptr inbounds [2 x ptr], ptr %160, i64 0, i64 0
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load double, ptr %7, align 8, !tbaa !9
  %164 = load double, ptr %8, align 8, !tbaa !9
  %165 = load double, ptr %9, align 8, !tbaa !9
  %166 = call { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %162, double noundef %163, double noundef %164, double noundef %165)
  %167 = getelementptr inbounds %"class.siscone::Creference", ptr %22, i32 0, i32 0
  store { i64, i32 } %166, ptr %23, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %167, ptr align 8 %23, i64 12, i1 false)
  %168 = call { i64, i32 } @_ZN7siscone10CreferenceplERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %22)
  %169 = getelementptr inbounds %"class.siscone::Creference", ptr %15, i32 0, i32 0
  store { i64, i32 } %168, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %169, ptr align 8 %24, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  %170 = getelementptr inbounds %"class.siscone::Cquadtree", ptr %29, i32 0, i32 5
  %171 = getelementptr inbounds [2 x [2 x ptr]], ptr %170, i64 0, i64 1
  %172 = getelementptr inbounds [2 x ptr], ptr %171, i64 0, i64 1
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = load double, ptr %7, align 8, !tbaa !9
  %175 = load double, ptr %8, align 8, !tbaa !9
  %176 = load double, ptr %9, align 8, !tbaa !9
  %177 = call { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %173, double noundef %174, double noundef %175, double noundef %176)
  %178 = getelementptr inbounds %"class.siscone::Creference", ptr %25, i32 0, i32 0
  store { i64, i32 } %177, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %178, ptr align 8 %26, i64 12, i1 false)
  %179 = call { i64, i32 } @_ZN7siscone10CreferenceplERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %25)
  %180 = getelementptr inbounds %"class.siscone::Creference", ptr %5, i32 0, i32 0
  store { i64, i32 } %179, ptr %27, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %180, ptr align 8 %27, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #5
  store i32 1, ptr %12, align 4
  br label %181

181:                                              ; preds = %138, %134, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %182

182:                                              ; preds = %181, %70, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %183

183:                                              ; preds = %182, %33
  %184 = getelementptr inbounds %"class.siscone::Creference", ptr %5, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 4 %184, i64 12, i1 false)
  %185 = load { i64, i32 }, ptr %28, align 8
  ret { i64, i32 } %185
}

declare void @_ZN7siscone10CreferenceC1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3

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

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

declare { i64, i32 } @_ZN7siscone10CreferenceplERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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, !6, i64 32}
!12 = !{!"_ZTSN7siscone9CquadtreeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !7, i64 40, !13, i64 72}
!13 = !{!"bool", !7, i64 0}
!14 = !{!12, !13, i64 72}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !10, i64 32}
!18 = !{!"_ZTSN7siscone9CmomentumE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !19, i64 48, !19, i64 52, !20, i64 56}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!21 = !{!18, !10, i64 40}
!22 = !{i64 0, i64 12, !23}
!23 = !{!7, !7, i64 0}
!24 = !{!12, !10, i64 0}
!25 = !{!12, !10, i64 8}
!26 = !{!12, !10, i64 16}
!27 = !{!12, !10, i64 24}


; 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::Creference" = type { [3 x i32] }

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

; 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) #1

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

; Function Attrs: mustprogress uwtable
define dso_local { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr nocapture noundef nonnull readonly align 8 dereferenceable(73) %0, double noundef %1, double noundef %2, double noundef %3) local_unnamed_addr #2 align 2 {
  %5 = alloca %"class.siscone::Creference", align 8
  %6 = alloca %"class.siscone::Creference", align 8
  %7 = alloca %"class.siscone::Creference", align 8
  %8 = alloca %"class.siscone::Creference", align 8
  %9 = alloca %"class.siscone::Creference", align 8
  %10 = alloca %"class.siscone::Creference", align 8
  %11 = alloca %"class.siscone::Creference", align 8
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %4
  call void @_ZN7siscone10CreferenceC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  br label %83

16:                                               ; preds = %4
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  %18 = load i8, ptr %17, align 8, !tbaa !12, !range !13, !noundef !14
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %36, label %20

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %13, i64 32
  %22 = load double, ptr %21, align 8, !tbaa !15
  %23 = fsub double %1, %22
  %24 = getelementptr inbounds i8, ptr %13, i64 40
  %25 = load double, ptr %24, align 8, !tbaa !19
  %26 = fsub double %2, %25
  %27 = tail call double @llvm.fabs.f64(double %26)
  %28 = fcmp ogt double %27, 0x400921FB54442D18
  %29 = fadd double %27, 0xC01921FB54442D18
  %.069 = select i1 %28, double %29, double %27
  %30 = fmul double %.069, %.069
  %31 = tail call double @llvm.fmuladd.f64(double %23, double %23, double %30)
  %32 = fcmp olt double %31, %3
  br i1 %32, label %33, label %35

33:                                               ; preds = %20
  %34 = getelementptr inbounds i8, ptr %13, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %34, i64 12, i1 false), !tbaa.struct !20
  br label %83

35:                                               ; preds = %20
  call void @_ZN7siscone10CreferenceC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  br label %83

36:                                               ; preds = %16
  %37 = load double, ptr %0, align 8, !tbaa !22
  %38 = fsub double %1, %37
  %39 = tail call double @llvm.fabs.f64(double %38)
  %40 = getelementptr inbounds i8, ptr %0, i64 8
  %41 = load double, ptr %40, align 8, !tbaa !23
  %42 = fsub double %2, %41
  %43 = tail call double @llvm.fabs.f64(double %42)
  %44 = fcmp ogt double %43, 0x400921FB54442D18
  %45 = fsub double 0x401921FB54442D18, %43
  %.070 = select i1 %44, double %45, double %43
  %46 = getelementptr inbounds i8, ptr %0, i64 16
  %47 = load double, ptr %46, align 8, !tbaa !24
  %48 = fsub double %39, %47
  %49 = fcmp olt double %48, 0.000000e+00
  %.0 = select i1 %49, double 0.000000e+00, double %48
  %50 = getelementptr inbounds i8, ptr %0, i64 24
  %51 = load double, ptr %50, align 8, !tbaa !25
  %52 = fsub double %.070, %51
  %53 = fcmp olt double %52, 0.000000e+00
  %.1 = select i1 %53, double 0.000000e+00, double %52
  %54 = fmul double %.1, %.1
  %55 = tail call double @llvm.fmuladd.f64(double %.0, double %.0, double %54)
  %56 = fcmp ult double %55, %3
  br i1 %56, label %58, label %57

57:                                               ; preds = %36
  call void @_ZN7siscone10CreferenceC1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  br label %83

58:                                               ; preds = %36
  %59 = fadd double %39, %47
  %60 = fadd double %51, %.070
  %61 = fcmp ogt double %60, 0x400921FB54442D18
  %.2 = select i1 %61, double 0x400921FB54442D18, double %60
  %62 = fmul double %.2, %.2
  %63 = tail call double @llvm.fmuladd.f64(double %59, double %59, double %62)
  %64 = fcmp olt double %63, %3
  br i1 %64, label %65, label %67

65:                                               ; preds = %58
  %66 = getelementptr inbounds i8, ptr %13, i64 56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %66, i64 12, i1 false), !tbaa.struct !20
  br label %83

67:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  %68 = getelementptr inbounds i8, ptr %0, i64 40
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = tail call { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %69, double noundef %1, double noundef %2, double noundef %3)
  %.fca.0.extract23 = extractvalue { i64, i32 } %70, 0
  %.fca.1.extract24 = extractvalue { i64, i32 } %70, 1
  store i64 %.fca.0.extract23, ptr %8, align 8
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %.fca.1.extract24, ptr %.sroa.226.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  %71 = getelementptr inbounds i8, ptr %0, i64 48
  %72 = load ptr, ptr %71, align 8, !tbaa !26
  %73 = tail call { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %72, double noundef %1, double noundef %2, double noundef %3)
  %.fca.0.extract19 = extractvalue { i64, i32 } %73, 0
  %.fca.1.extract20 = extractvalue { i64, i32 } %73, 1
  store i64 %.fca.0.extract19, ptr %9, align 8
  %.sroa.222.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 8
  store i32 %.fca.1.extract20, ptr %.sroa.222.0..sroa_idx, align 8
  %74 = call { i64, i32 } @_ZN7siscone10CreferenceplERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %9)
  %.fca.0.extract15 = extractvalue { i64, i32 } %74, 0
  %.fca.1.extract16 = extractvalue { i64, i32 } %74, 1
  store i64 %.fca.0.extract15, ptr %7, align 8
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i32 %.fca.1.extract16, ptr %.sroa.218.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #5
  %75 = getelementptr inbounds i8, ptr %0, i64 56
  %76 = load ptr, ptr %75, align 8, !tbaa !26
  %77 = call { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %76, double noundef %1, double noundef %2, double noundef %3)
  %.fca.0.extract11 = extractvalue { i64, i32 } %77, 0
  %.fca.1.extract12 = extractvalue { i64, i32 } %77, 1
  store i64 %.fca.0.extract11, ptr %10, align 8
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %10, i64 8
  store i32 %.fca.1.extract12, ptr %.sroa.214.0..sroa_idx, align 8
  %78 = call { i64, i32 } @_ZN7siscone10CreferenceplERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %.fca.0.extract7 = extractvalue { i64, i32 } %78, 0
  %.fca.1.extract8 = extractvalue { i64, i32 } %78, 1
  store i64 %.fca.0.extract7, ptr %6, align 8
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  store i32 %.fca.1.extract8, ptr %.sroa.210.0..sroa_idx, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  %79 = getelementptr inbounds i8, ptr %0, i64 64
  %80 = load ptr, ptr %79, align 8, !tbaa !26
  %81 = call { i64, i32 } @_ZN7siscone9Cquadtree16circle_intersectEddd(ptr noundef nonnull align 8 dereferenceable(73) %80, double noundef %1, double noundef %2, double noundef %3)
  %.fca.0.extract3 = extractvalue { i64, i32 } %81, 0
  %.fca.1.extract4 = extractvalue { i64, i32 } %81, 1
  store i64 %.fca.0.extract3, ptr %11, align 8
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  store i32 %.fca.1.extract4, ptr %.sroa.26.0..sroa_idx, align 8
  %82 = call { i64, i32 } @_ZN7siscone10CreferenceplERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %.fca.0.extract = extractvalue { i64, i32 } %82, 0
  %.fca.1.extract = extractvalue { i64, i32 } %82, 1
  store i64 %.fca.0.extract, ptr %5, align 8
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %.fca.1.extract, ptr %.sroa.22.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  br label %83

83:                                               ; preds = %33, %35, %67, %65, %57, %15
  %.sroa.0.0.copyload = load i64, ptr %5, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  %.sroa.2.0.copyload = load i32, ptr %.sroa.2.0..sroa_idx, align 8
  %.fca.0.insert = insertvalue { i64, i32 } poison, i64 %.sroa.0.0.copyload, 0
  %.fca.1.insert = insertvalue { i64, i32 } %.fca.0.insert, i32 %.sroa.2.0.copyload, 1
  ret { i64, i32 } %.fca.1.insert
}

declare void @_ZN7siscone10CreferenceC1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3

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

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

declare { i64, i32 } @_ZN7siscone10CreferenceplERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!16, !7, i64 32}
!16 = !{!"_ZTSN7siscone9CmomentumE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !17, i64 48, !17, i64 52, !18, i64 56}
!17 = !{!"int", !8, i64 0}
!18 = !{!"_ZTSN7siscone10CreferenceE", !8, i64 0}
!19 = !{!16, !7, i64 40}
!20 = !{i64 0, i64 12, !21}
!21 = !{!8, !8, i64 0}
!22 = !{!6, !7, i64 0}
!23 = !{!6, !7, i64 8}
!24 = !{!6, !7, i64 16}
!25 = !{!6, !7, i64 24}
!26 = !{!10, !10, i64 0}


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