; LLVM IR from PuYuuu/CppRobotics :: utils/src (KDTree)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%"struct.std::pair" = type { %"class.std::vector", i64 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<std::vector<double>, unsigned long>, std::allocator<std::pair<std::vector<double>, unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::vector<double>, unsigned long>, std::allocator<std::pair<std::vector<double>, unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::vector<double>, unsigned long>, std::allocator<std::pair<std::vector<double>, unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::vector<double>, unsigned long>, std::allocator<std::pair<std::vector<double>, unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.KDNode = type { i64, %"class.std::vector", %"class.std::shared_ptr", %"class.std::shared_ptr" }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrI6KDNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI6KDNodeEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6KDNodecvbEv(ptr noundef nonnull align 8 dereferenceable(64)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6KDNodecvSt6vectorIdSaIdEEEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(64)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6KDNodecvSt4pairISt6vectorIdSaIdEEmEEv(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(64)) #1 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairISt6vectorIdSaIdEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z5dist2RKSt6vectorIdSaIdEES3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6KDTree13neighborhood_ERKSt10shared_ptrI6KDNodeERKSt6vectorIdSaIdEERKdRKm(ptr dead_on_unwind noalias writable sret(%"class.std::vector.5") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca i1, align 1
  %24 = alloca %"class.std::vector.5", align 8
  %25 = alloca %"class.std::vector.5", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %"class.std::shared_ptr", align 8
  %28 = alloca %"class.std::shared_ptr", align 8
  %29 = alloca %"class.std::vector.5", align 8
  %30 = alloca i64, align 8
  %31 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %34 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %36 = alloca %"class.std::vector.5", align 8
  %37 = alloca i64, align 8
  %38 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %39 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %40 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %42 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %7, align 8
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %43 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %44) #6
  %46 = call noundef zeroext i1 @_ZN6KDNodecvbEv(ptr noundef nonnull align 8 dereferenceable(64) %45)
  br i1 %46, label %48, label %47

47:                                               ; preds = %6
  call void @llvm.memset.p0.i64(ptr align 8 %0, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store i32 1, ptr %16, align 4
  br label %200

48:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  %50 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %49) #6
  store i64 %50, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = load double, ptr %51, align 8, !tbaa !11
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = load double, ptr %53, align 8, !tbaa !11
  %55 = fmul double %52, %54
  store double %55, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %56) #6
  call void @_ZN6KDNodecvSt6vectorIdSaIdEEEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %19, ptr noundef nonnull align 8 dereferenceable(64) %57)
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = invoke noundef double @_Z5dist2RKSt6vectorIdSaIdEES3_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %58)
          to label %60 unwind label %86

60:                                               ; preds = %48
  store double %59, ptr %13, align 8, !tbaa !11
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %61) #6
  call void @_ZN6KDNodecvSt6vectorIdSaIdEEEv(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %22, ptr noundef nonnull align 8 dereferenceable(64) %62)
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = load i64, ptr %63, align 8, !tbaa !9
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %64)
          to label %66 unwind label %90

66:                                               ; preds = %60
  %67 = load double, ptr %65, align 8, !tbaa !11
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %70)
          to label %72 unwind label %90

72:                                               ; preds = %66
  %73 = load double, ptr %71, align 8, !tbaa !11
  %74 = fsub double %67, %73
  store double %74, ptr %14, align 8, !tbaa !11
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  %75 = load double, ptr %14, align 8, !tbaa !11
  %76 = load double, ptr %14, align 8, !tbaa !11
  %77 = fmul double %75, %76
  store double %77, ptr %15, align 8, !tbaa !11
  store i1 false, ptr %23, align 1
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %78 = load double, ptr %13, align 8, !tbaa !11
  %79 = load double, ptr %18, align 8, !tbaa !11
  %80 = fcmp ole double %78, %79
  br i1 %80, label %81, label %103

81:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %82) #6
  invoke void @_ZN6KDNodecvSt4pairISt6vectorIdSaIdEEmEEv(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %26, ptr noundef nonnull align 8 dereferenceable(64) %83)
          to label %84 unwind label %94

84:                                               ; preds = %81
  invoke void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %85 unwind label %98

85:                                               ; preds = %84
  call void @_ZNSt4pairISt6vectorIdSaIdEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  br label %103

86:                                               ; preds = %48
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %20, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %21, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  br label %199

90:                                               ; preds = %66, %60
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %20, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %21, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %199

94:                                               ; preds = %81
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %20, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %21, align 4
  br label %102

98:                                               ; preds = %84
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %20, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %21, align 4
  call void @_ZNSt4pairISt6vectorIdSaIdEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %102

102:                                              ; preds = %98, %94
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  br label %196

103:                                              ; preds = %85, %72
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  call void @_ZNSt10shared_ptrI6KDNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  call void @_ZNSt10shared_ptrI6KDNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  %104 = load double, ptr %14, align 8, !tbaa !11
  %105 = fcmp ogt double %104, 0.000000e+00
  br i1 %105, label %106, label %115

106:                                              ; preds = %103
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %107) #6
  %109 = getelementptr inbounds %class.KDNode, ptr %108, i32 0, i32 2
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI6KDNodeEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %109) #6
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %111) #6
  %113 = getelementptr inbounds %class.KDNode, ptr %112, i32 0, i32 3
  %114 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI6KDNodeEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %113) #6
  br label %124

115:                                              ; preds = %103
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %116) #6
  %118 = getelementptr inbounds %class.KDNode, ptr %117, i32 0, i32 3
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI6KDNodeEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %118) #6
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %120) #6
  %122 = getelementptr inbounds %class.KDNode, ptr %121, i32 0, i32 2
  %123 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI6KDNodeEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %122) #6
  br label %124

124:                                              ; preds = %115, %106
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #6
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = load i64, ptr %127, align 8, !tbaa !9
  %129 = add i64 %128, 1
  %130 = load i64, ptr %17, align 8, !tbaa !9
  %131 = urem i64 %129, %130
  store i64 %131, ptr %30, align 8, !tbaa !9
  invoke void @_ZN6KDTree13neighborhood_ERKSt10shared_ptrI6KDNodeERKSt6vectorIdSaIdEERKdRKm(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8 %29, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %132 unwind label %177

132:                                              ; preds = %124
  %133 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %134 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairISt6vectorIdSaIdEEmES2_IS5_SaIS5_EEEC2IPS5_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  %136 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %137 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  store ptr %136, ptr %137, align 8
  %138 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %31, i32 0, i32 0
  %141 = load ptr, ptr %140, align 8
  %142 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %33, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8
  %144 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %34, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8
  %146 = invoke ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE6insertIN9__gnu_cxx17__normal_iteratorIPS3_S5_EEvEESA_NS8_IPKS3_S5_EET_SE_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %141, ptr %143, ptr %145)
          to label %147 unwind label %181

147:                                              ; preds = %132
  %148 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %35, i32 0, i32 0
  store ptr %146, ptr %148, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  %149 = load double, ptr %15, align 8, !tbaa !11
  %150 = load double, ptr %18, align 8, !tbaa !11
  %151 = fcmp olt double %149, %150
  br i1 %151, label %152, label %193

152:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #6
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = load i64, ptr %155, align 8, !tbaa !9
  %157 = add i64 %156, 1
  %158 = load i64, ptr %17, align 8, !tbaa !9
  %159 = urem i64 %157, %158
  store i64 %159, ptr %37, align 8, !tbaa !9
  invoke void @_ZN6KDTree13neighborhood_ERKSt10shared_ptrI6KDNodeERKSt6vectorIdSaIdEERKdRKm(ptr dead_on_unwind writable sret(%"class.std::vector.5") align 8 %36, ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(24) %153, ptr noundef nonnull align 8 dereferenceable(8) %154, ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %160 unwind label %185

160:                                              ; preds = %152
  %161 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %162 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  %163 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %39, i32 0, i32 0
  store ptr %162, ptr %163, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairISt6vectorIdSaIdEEmES2_IS5_SaIS5_EEEC2IPS5_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %39) #6
  %164 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %165 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  store ptr %164, ptr %165, align 8
  %166 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %167 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.10", ptr %38, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %40, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8
  %172 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %41, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8
  %174 = invoke ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE6insertIN9__gnu_cxx17__normal_iteratorIPS3_S5_EEvEESA_NS8_IPKS3_S5_EET_SE_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %169, ptr %171, ptr %173)
          to label %175 unwind label %189

175:                                              ; preds = %160
  %176 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %42, i32 0, i32 0
  store ptr %174, ptr %176, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %193

177:                                              ; preds = %124
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %20, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #6
  br label %195

181:                                              ; preds = %132
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %20, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %195

185:                                              ; preds = %152
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %20, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #6
  br label %195

189:                                              ; preds = %160
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %20, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %195

193:                                              ; preds = %175, %147
  store i1 true, ptr %23, align 1
  store i32 1, ptr %16, align 4
  call void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  %194 = load i1, ptr %23, align 1
  br i1 %194, label %198, label %197

195:                                              ; preds = %189, %185, %181, %177
  call void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %196

196:                                              ; preds = %195, %102
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %199

197:                                              ; preds = %193
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %198

198:                                              ; preds = %197, %193
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %200

199:                                              ; preds = %196, %90, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %201

200:                                              ; preds = %198, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  ret void

201:                                              ; preds = %199
  %202 = load ptr, ptr %20, align 8
  %203 = load i32, ptr %21, align 4
  %204 = insertvalue { ptr, i32 } poison, ptr %202, 0
  %205 = insertvalue { ptr, i32 } %204, i32 %203, 1
  resume { ptr, i32 } %205
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairISt6vectorIdSaIdEEmES2_IS5_SaIS5_EEEC2IPS5_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

attributes #0 = { 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 #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 = { 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 = { inlinehint 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !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"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }
%"struct.std::pair" = type { %"class.std::vector", i64 }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<std::pair<std::vector<double>, unsigned long>, std::allocator<std::pair<std::vector<double>, unsigned long>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::vector<double>, unsigned long>, std::allocator<std::pair<std::vector<double>, unsigned long>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::vector<double>, unsigned long>, std::allocator<std::pair<std::vector<double>, unsigned long>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::vector<double>, unsigned long>, std::allocator<std::pair<std::vector<double>, unsigned long>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.10" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt10shared_ptrI6KDNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI6KDNodeEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6KDNodecvbEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6KDNodecvSt6vectorIdSaIdEEEv(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6KDNodecvSt4pairISt6vectorIdSaIdEEmEEv(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairISt6vectorIdSaIdEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_Z5dist2RKSt6vectorIdSaIdEES3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6KDTree13neighborhood_ERKSt10shared_ptrI6KDNodeERKSt6vectorIdSaIdEERKdRKm(ptr dead_on_unwind noalias writable sret(%"class.std::vector.5") align 8 %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::vector.5", align 8
  %10 = alloca %"class.std::vector.5", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"class.std::shared_ptr", align 8
  %13 = alloca %"class.std::shared_ptr", align 8
  %14 = alloca %"class.std::vector.5", align 8
  %15 = alloca i64, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.std::vector.5", align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.10", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %23 = tail call noundef zeroext i1 @_ZN6KDNodecvbEv(ptr noundef nonnull align 8 dereferenceable(64) %22)
  br i1 %23, label %25, label %24

24:                                               ; preds = %6
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, i8 0, i64 24, i1 false)
  tail call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %101

25:                                               ; preds = %6
  %26 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %27 = load double, ptr %4, align 8, !tbaa !5
  %28 = fmul double %27, %27
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %29 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @_ZN6KDNodecvSt6vectorIdSaIdEEEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(64) %29)
  %30 = invoke noundef double @_Z5dist2RKSt6vectorIdSaIdEES3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %31 unwind label %48

31:                                               ; preds = %25
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  %32 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  call void @_ZN6KDNodecvSt6vectorIdSaIdEEEv(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(64) %32)
  %33 = load i64, ptr %5, align 8, !tbaa !9
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %33)
          to label %35 unwind label %50

35:                                               ; preds = %31
  %36 = load double, ptr %34, align 8, !tbaa !5
  %37 = load i64, ptr %5, align 8, !tbaa !9
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEE2atEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %37)
          to label %39 unwind label %50

39:                                               ; preds = %35
  %40 = load double, ptr %38, align 8, !tbaa !5
  %41 = fsub double %36, %40
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  %42 = fmul double %41, %41
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %43 = fcmp ugt double %30, %28
  br i1 %43, label %57, label %44

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #6
  %45 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  invoke void @_ZN6KDNodecvSt4pairISt6vectorIdSaIdEEmEEv(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %11, ptr noundef nonnull align 8 dereferenceable(64) %45)
          to label %46 unwind label %52

46:                                               ; preds = %44
  invoke void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %47 unwind label %54

47:                                               ; preds = %46
  call void @_ZNSt4pairISt6vectorIdSaIdEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %57

48:                                               ; preds = %25
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %100

50:                                               ; preds = %35, %31
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %100

52:                                               ; preds = %44
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %56

54:                                               ; preds = %46
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairISt6vectorIdSaIdEEmED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %56

56:                                               ; preds = %54, %52
  %.pn = phi { ptr, i32 } [ %55, %54 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #6
  br label %99

57:                                               ; preds = %47, %39
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt10shared_ptrI6KDNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @_ZNSt10shared_ptrI6KDNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  %58 = fcmp ogt double %41, 0.000000e+00
  %59 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %. = select i1 %58, i64 32, i64 48
  %.50 = select i1 %58, i64 48, i64 32
  %60 = getelementptr inbounds i8, ptr %59, i64 %.
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI6KDNodeEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %60) #6
  %62 = call noundef ptr @_ZNKSt19__shared_ptr_accessI6KDNodeLN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %2) #6
  %63 = getelementptr inbounds i8, ptr %62, i64 %.50
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrI6KDNodeEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %63) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %65 = load i64, ptr %5, align 8, !tbaa !9
  %66 = add i64 %65, 1
  %67 = urem i64 %66, %26
  store i64 %67, ptr %15, align 8, !tbaa !9
  invoke void @_ZN6KDTree13neighborhood_ERKSt10shared_ptrI6KDNodeERKSt6vectorIdSaIdEERKdRKm(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.5") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %68 unwind label %89

68:                                               ; preds = %57
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %70 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %70, ptr %17, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairISt6vectorIdSaIdEEmES2_IS5_SaIS5_EEEC2IPS5_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %71 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %72 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %73 = load ptr, ptr %16, align 8
  %74 = invoke ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE6insertIN9__gnu_cxx17__normal_iteratorIPS3_S5_EEvEESA_NS8_IPKS3_S5_EET_SE_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %73, ptr %71, ptr %72)
          to label %75 unwind label %91

75:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %76 = fcmp olt double %42, %28
  br i1 %76, label %77, label %97

77:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %78 = load i64, ptr %5, align 8, !tbaa !9
  %79 = add i64 %78, 1
  %80 = urem i64 %79, %26
  store i64 %80, ptr %19, align 8, !tbaa !9
  invoke void @_ZN6KDTree13neighborhood_ERKSt10shared_ptrI6KDNodeERKSt6vectorIdSaIdEERKdRKm(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.5") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %81 unwind label %93

81:                                               ; preds = %77
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #6
  %83 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %83, ptr %21, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairISt6vectorIdSaIdEEmES2_IS5_SaIS5_EEEC2IPS5_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  %84 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %85 = call ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %86 = load ptr, ptr %20, align 8
  %87 = invoke ptr @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EE6insertIN9__gnu_cxx17__normal_iteratorIPS3_S5_EEvEESA_NS8_IPKS3_S5_EET_SE_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr %86, ptr %84, ptr %85)
          to label %88 unwind label %95

88:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %97

89:                                               ; preds = %57
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #6
  br label %98

91:                                               ; preds = %68
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  br label %98

93:                                               ; preds = %77
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  br label %98

95:                                               ; preds = %81
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #6
  br label %98

97:                                               ; preds = %88, %75
  call void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %101

98:                                               ; preds = %95, %93, %91, %89
  %.pn43 = phi { ptr, i32 } [ %96, %95 ], [ %94, %93 ], [ %92, %91 ], [ %90, %89 ]
  call void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  call void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  br label %99

99:                                               ; preds = %98, %56
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %98 ], [ %.pn, %56 ]
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorISt4pairIS_IdSaIdEEmESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  br label %100

100:                                              ; preds = %99, %50, %48
  %.pn43.pn.pn = phi { ptr, i32 } [ %.pn43.pn, %99 ], [ %51, %50 ], [ %49, %48 ]
  resume { ptr, i32 } %.pn43.pn.pn

101:                                              ; preds = %97, %24
  ret void
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPKSt4pairISt6vectorIdSaIdEEmES2_IS5_SaIS5_EEEC2IPS5_vEERKNS0_IT_S9_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt12__shared_ptrI6KDNodeLN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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, !10, i64 0}
!10 = !{!"long", !7, i64 0}


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