; LLVM IR from QiaoLiuHit/LSOTB-TIR :: vlfeat-0.9.19/vl (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"

%struct._VlKDForestNeighbor = type { double, i64 }

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

declare ptr @vl_calloc(i64 noundef, i64 noundef) #1

; Function Attrs: noreturn nounwind
declare void @abort() #2

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @vl_kdforest_new_searcher(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @vl_kdforestsearcher_delete(ptr noundef) #3

declare void @vl_free(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @vl_kdforestsearcher_query(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i64 @vl_kdforest_query_with_array(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = call i32 @vl_kdforest_get_data_type(ptr noundef %22)
  store i32 %23, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call i64 @vl_kdforest_get_data_dimension(ptr noundef %24)
  store i64 %25, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 0, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = call ptr @vl_kdforest_new_searcher(ptr noundef %26)
  store ptr %27, ptr %18, align 8, !tbaa !5
  %28 = load i64, ptr %9, align 8, !tbaa !9
  %29 = call ptr @vl_calloc(i64 noundef 16, i64 noundef %28)
  store ptr %29, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %30

30:                                               ; preds = %141, %6
  %31 = load i64, ptr %16, align 8, !tbaa !9
  %32 = load i64, ptr %10, align 8, !tbaa !9
  %33 = trunc i64 %32 to i32
  %34 = sext i32 %33 to i64
  %35 = icmp slt i64 %31, %34
  br i1 %35, label %36, label %144

36:                                               ; preds = %30
  %37 = load i32, ptr %14, align 4, !tbaa !11
  switch i32 %37, label %139 [
    i32 1, label %38
    i32 2, label %89
  ]

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  %40 = load ptr, ptr %19, align 8, !tbaa !5
  %41 = load i64, ptr %9, align 8, !tbaa !9
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = load i64, ptr %16, align 8, !tbaa !9
  %44 = load i64, ptr %15, align 8, !tbaa !9
  %45 = mul i64 %43, %44
  %46 = getelementptr inbounds float, ptr %42, i64 %45
  %47 = call i64 @vl_kdforestsearcher_query(ptr noundef %39, ptr noundef %40, i64 noundef %41, ptr noundef %46)
  %48 = load i64, ptr %17, align 8, !tbaa !9
  %49 = add i64 %48, %47
  store i64 %49, ptr %17, align 8, !tbaa !9
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %50

50:                                               ; preds = %85, %38
  %51 = load i64, ptr %20, align 8, !tbaa !9
  %52 = load i64, ptr %9, align 8, !tbaa !9
  %53 = icmp ult i64 %51, %52
  br i1 %53, label %54, label %88

54:                                               ; preds = %50
  %55 = load ptr, ptr %19, align 8, !tbaa !5
  %56 = load i64, ptr %20, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %55, i64 %56
  %58 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !13
  %60 = trunc i64 %59 to i32
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = load i64, ptr %16, align 8, !tbaa !9
  %63 = load i64, ptr %9, align 8, !tbaa !9
  %64 = mul i64 %62, %63
  %65 = load i64, ptr %20, align 8, !tbaa !9
  %66 = add i64 %64, %65
  %67 = getelementptr inbounds i32, ptr %61, i64 %66
  store i32 %60, ptr %67, align 4, !tbaa !11
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %84

70:                                               ; preds = %54
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = load i64, ptr %20, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %71, i64 %72
  %74 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %73, i32 0, i32 0
  %75 = load double, ptr %74, align 8, !tbaa !16
  %76 = fptrunc double %75 to float
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = load i64, ptr %16, align 8, !tbaa !9
  %79 = load i64, ptr %9, align 8, !tbaa !9
  %80 = mul i64 %78, %79
  %81 = getelementptr inbounds float, ptr %77, i64 %80
  %82 = load i64, ptr %20, align 8, !tbaa !9
  %83 = getelementptr inbounds float, ptr %81, i64 %82
  store float %76, ptr %83, align 4, !tbaa !17
  br label %84

84:                                               ; preds = %70, %54
  br label %85

85:                                               ; preds = %84
  %86 = load i64, ptr %20, align 8, !tbaa !9
  %87 = add i64 %86, 1
  store i64 %87, ptr %20, align 8, !tbaa !9
  br label %50, !llvm.loop !19

88:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %140

89:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  %92 = load i64, ptr %9, align 8, !tbaa !9
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = load i64, ptr %16, align 8, !tbaa !9
  %95 = load i64, ptr %15, align 8, !tbaa !9
  %96 = mul i64 %94, %95
  %97 = getelementptr inbounds double, ptr %93, i64 %96
  %98 = call i64 @vl_kdforestsearcher_query(ptr noundef %90, ptr noundef %91, i64 noundef %92, ptr noundef %97)
  %99 = load i64, ptr %17, align 8, !tbaa !9
  %100 = add i64 %99, %98
  store i64 %100, ptr %17, align 8, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %135, %89
  %102 = load i64, ptr %21, align 8, !tbaa !9
  %103 = load i64, ptr %9, align 8, !tbaa !9
  %104 = icmp ult i64 %102, %103
  br i1 %104, label %105, label %138

105:                                              ; preds = %101
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  %107 = load i64, ptr %21, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %106, i64 %107
  %109 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %108, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !13
  %111 = trunc i64 %110 to i32
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = load i64, ptr %16, align 8, !tbaa !9
  %114 = load i64, ptr %9, align 8, !tbaa !9
  %115 = mul i64 %113, %114
  %116 = load i64, ptr %21, align 8, !tbaa !9
  %117 = add i64 %115, %116
  %118 = getelementptr inbounds i32, ptr %112, i64 %117
  store i32 %111, ptr %118, align 4, !tbaa !11
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %134

121:                                              ; preds = %105
  %122 = load ptr, ptr %19, align 8, !tbaa !5
  %123 = load i64, ptr %21, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %122, i64 %123
  %125 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %124, i32 0, i32 0
  %126 = load double, ptr %125, align 8, !tbaa !16
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = load i64, ptr %16, align 8, !tbaa !9
  %129 = load i64, ptr %9, align 8, !tbaa !9
  %130 = mul i64 %128, %129
  %131 = getelementptr inbounds double, ptr %127, i64 %130
  %132 = load i64, ptr %21, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  store double %126, ptr %133, align 8, !tbaa !21
  br label %134

134:                                              ; preds = %121, %105
  br label %135

135:                                              ; preds = %134
  %136 = load i64, ptr %21, align 8, !tbaa !9
  %137 = add i64 %136, 1
  store i64 %137, ptr %21, align 8, !tbaa !9
  br label %101, !llvm.loop !22

138:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %140

139:                                              ; preds = %36
  call void @abort() #5
  unreachable

140:                                              ; preds = %138, %88
  br label %141

141:                                              ; preds = %140
  %142 = load i64, ptr %16, align 8, !tbaa !9
  %143 = add nsw i64 %142, 1
  store i64 %143, ptr %16, align 8, !tbaa !9
  br label %30, !llvm.loop !23

144:                                              ; preds = %30
  %145 = load i64, ptr %17, align 8, !tbaa !9
  %146 = load i64, ptr %13, align 8, !tbaa !9
  %147 = add i64 %146, %145
  store i64 %147, ptr %13, align 8, !tbaa !9
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  call void @vl_kdforestsearcher_delete(ptr noundef %148)
  %149 = load ptr, ptr %19, align 8, !tbaa !5
  call void @vl_free(ptr noundef %149)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %150 = load i64, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret i64 %150
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @vl_kdforest_get_data_type(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i64 @vl_kdforest_get_data_dimension(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 = { nounwind }
attributes #5 = { noreturn 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_VlKDForestNeighbor", !15, i64 0, !10, i64 8}
!15 = !{!"double", !7, i64 0}
!16 = !{!14, !15, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!15, !15, i64 0}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


; 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"

%struct._VlKDForestNeighbor = type { double, i64 }

declare ptr @vl_calloc(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @vl_kdforest_new_searcher(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @vl_kdforestsearcher_delete(ptr noundef) local_unnamed_addr #2

declare void @vl_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @vl_kdforestsearcher_query(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i64 @vl_kdforest_query_with_array(ptr noundef %0, ptr nocapture noundef writeonly %1, i64 noundef %2, i64 noundef %3, ptr noundef writeonly %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = tail call i32 @vl_kdforest_get_data_type(ptr noundef %0)
  %8 = tail call i64 @vl_kdforest_get_data_dimension(ptr noundef %0)
  %9 = tail call ptr @vl_kdforest_new_searcher(ptr noundef %0)
  %10 = tail call ptr @vl_calloc(i64 noundef 16, i64 noundef %2) #3
  %sext = shl i64 %3, 32
  %11 = ashr exact i64 %sext, 32
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph76, label %._crit_edge

.lr.ph76:                                         ; preds = %6
  %.not91 = icmp eq i64 %2, 0
  %.not = icmp eq ptr %4, null
  %invariant.gep = getelementptr i8, ptr %10, i64 8
  %.off = add i32 %7, -1
  %switch = icmp ult i32 %.off, 2
  br i1 %switch, label %.lr.ph76.split, label %155

.lr.ph76.split:                                   ; preds = %.lr.ph76
  %cond = icmp eq i32 %7, 1
  br i1 %cond, label %.lr.ph76.split.split.us, label %.lr.ph76.split.split

.lr.ph76.split.split.us:                          ; preds = %.lr.ph76.split
  br i1 %.not91, label %.loopexit.us, label %.lr.ph76.split.split.us.split.us

.lr.ph76.split.split.us.split.us:                 ; preds = %.lr.ph76.split.split.us
  br i1 %.not, label %.lr.ph70.us.us.us.preheader, label %.lr.ph70.us.us.preheader

.lr.ph70.us.us.preheader:                         ; preds = %.lr.ph76.split.split.us.split.us
  %min.iters.check124 = icmp ult i64 %2, 4
  %n.vec127 = and i64 %2, -4
  %cmp.n138 = icmp eq i64 %n.vec127, %2
  br label %.lr.ph70.us.us

.lr.ph70.us.us.us.preheader:                      ; preds = %.lr.ph76.split.split.us.split.us
  %xtraiter147 = and i64 %2, 3
  %13 = icmp ult i64 %2, 4
  %unroll_iter150 = and i64 %2, -4
  %lcmp.mod149.not = icmp eq i64 %xtraiter147, 0
  br label %.lr.ph70.us.us.us

.lr.ph70.us.us.us:                                ; preds = %.lr.ph70.us.us.us.preheader, %..loopexit_crit_edge.split.us.us.us.us
  %.05974.us.us.us = phi i64 [ %39, %..loopexit_crit_edge.split.us.us.us.us ], [ 0, %.lr.ph70.us.us.us.preheader ]
  %.06073.us.us.us = phi i64 [ %.1.us.us.us, %..loopexit_crit_edge.split.us.us.us.us ], [ 0, %.lr.ph70.us.us.us.preheader ]
  %14 = mul i64 %.05974.us.us.us, %8
  %15 = getelementptr inbounds float, ptr %5, i64 %14
  %16 = tail call i64 @vl_kdforestsearcher_query(ptr noundef %9, ptr noundef %10, i64 noundef %2, ptr noundef %15)
  %17 = mul i64 %.05974.us.us.us, %2
  %18 = getelementptr i32, ptr %1, i64 %17
  br i1 %13, label %..loopexit_crit_edge.split.us.us.us.us.unr-lcssa, label %.lr.ph70.us.us.us.new

.lr.ph70.us.us.us.new:                            ; preds = %.lr.ph70.us.us.us, %.lr.ph70.us.us.us.new
  %.05869.us.us.us.us = phi i64 [ %34, %.lr.ph70.us.us.us.new ], [ 0, %.lr.ph70.us.us.us ]
  %niter151 = phi i64 [ %niter151.next.3, %.lr.ph70.us.us.us.new ], [ 0, %.lr.ph70.us.us.us ]
  %gep72.us.us.us = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %.05869.us.us.us.us
  %19 = load i64, ptr %gep72.us.us.us, align 8, !tbaa !5
  %20 = trunc i64 %19 to i32
  %21 = getelementptr i32, ptr %18, i64 %.05869.us.us.us.us
  store i32 %20, ptr %21, align 4, !tbaa !11
  %22 = or disjoint i64 %.05869.us.us.us.us, 1
  %gep72.us.us.us.1 = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %22
  %23 = load i64, ptr %gep72.us.us.us.1, align 8, !tbaa !5
  %24 = trunc i64 %23 to i32
  %25 = getelementptr i32, ptr %18, i64 %22
  store i32 %24, ptr %25, align 4, !tbaa !11
  %26 = or disjoint i64 %.05869.us.us.us.us, 2
  %gep72.us.us.us.2 = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %26
  %27 = load i64, ptr %gep72.us.us.us.2, align 8, !tbaa !5
  %28 = trunc i64 %27 to i32
  %29 = getelementptr i32, ptr %18, i64 %26
  store i32 %28, ptr %29, align 4, !tbaa !11
  %30 = or disjoint i64 %.05869.us.us.us.us, 3
  %gep72.us.us.us.3 = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %30
  %31 = load i64, ptr %gep72.us.us.us.3, align 8, !tbaa !5
  %32 = trunc i64 %31 to i32
  %33 = getelementptr i32, ptr %18, i64 %30
  store i32 %32, ptr %33, align 4, !tbaa !11
  %34 = add nuw i64 %.05869.us.us.us.us, 4
  %niter151.next.3 = add i64 %niter151, 4
  %niter151.ncmp.3 = icmp eq i64 %niter151.next.3, %unroll_iter150
  br i1 %niter151.ncmp.3, label %..loopexit_crit_edge.split.us.us.us.us.unr-lcssa, label %.lr.ph70.us.us.us.new, !llvm.loop !13

..loopexit_crit_edge.split.us.us.us.us.unr-lcssa: ; preds = %.lr.ph70.us.us.us.new, %.lr.ph70.us.us.us
  %.05869.us.us.us.us.unr = phi i64 [ 0, %.lr.ph70.us.us.us ], [ %34, %.lr.ph70.us.us.us.new ]
  br i1 %lcmp.mod149.not, label %..loopexit_crit_edge.split.us.us.us.us, label %.epil.preheader146

.epil.preheader146:                               ; preds = %..loopexit_crit_edge.split.us.us.us.us.unr-lcssa, %.epil.preheader146
  %.05869.us.us.us.us.epil = phi i64 [ %38, %.epil.preheader146 ], [ %.05869.us.us.us.us.unr, %..loopexit_crit_edge.split.us.us.us.us.unr-lcssa ]
  %epil.iter148 = phi i64 [ %epil.iter148.next, %.epil.preheader146 ], [ 0, %..loopexit_crit_edge.split.us.us.us.us.unr-lcssa ]
  %gep72.us.us.us.epil = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %.05869.us.us.us.us.epil
  %35 = load i64, ptr %gep72.us.us.us.epil, align 8, !tbaa !5
  %36 = trunc i64 %35 to i32
  %37 = getelementptr i32, ptr %18, i64 %.05869.us.us.us.us.epil
  store i32 %36, ptr %37, align 4, !tbaa !11
  %38 = add nuw i64 %.05869.us.us.us.us.epil, 1
  %epil.iter148.next = add i64 %epil.iter148, 1
  %epil.iter148.cmp.not = icmp eq i64 %epil.iter148.next, %xtraiter147
  br i1 %epil.iter148.cmp.not, label %..loopexit_crit_edge.split.us.us.us.us, label %.epil.preheader146, !llvm.loop !15

..loopexit_crit_edge.split.us.us.us.us:           ; preds = %.epil.preheader146, %..loopexit_crit_edge.split.us.us.us.us.unr-lcssa
  %.1.us.us.us = add i64 %16, %.06073.us.us.us
  %39 = add nuw nsw i64 %.05974.us.us.us, 1
  %exitcond105.not = icmp eq i64 %39, %11
  br i1 %exitcond105.not, label %._crit_edge, label %.lr.ph70.us.us.us, !llvm.loop !17

.lr.ph70.us.us:                                   ; preds = %.lr.ph70.us.us.preheader, %..loopexit_crit_edge.split.us78.us
  %.05974.us.us = phi i64 [ %71, %..loopexit_crit_edge.split.us78.us ], [ 0, %.lr.ph70.us.us.preheader ]
  %.06073.us.us = phi i64 [ %.1.us.us, %..loopexit_crit_edge.split.us78.us ], [ 0, %.lr.ph70.us.us.preheader ]
  %40 = mul i64 %.05974.us.us, %8
  %41 = getelementptr inbounds float, ptr %5, i64 %40
  %42 = tail call i64 @vl_kdforestsearcher_query(ptr noundef %9, ptr noundef %10, i64 noundef %2, ptr noundef %41)
  %43 = mul i64 %.05974.us.us, %2
  %44 = getelementptr i32, ptr %1, i64 %43
  %45 = getelementptr inbounds float, ptr %4, i64 %43
  br i1 %min.iters.check124, label %scalar.ph123.preheader, label %vector.body129

vector.body129:                                   ; preds = %.lr.ph70.us.us, %vector.body129
  %index130 = phi i64 [ %index.next137, %vector.body129 ], [ 0, %.lr.ph70.us.us ]
  %46 = or disjoint i64 %index130, 2
  %47 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %10, i64 %index130
  %48 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %10, i64 %46
  %wide.vec131 = load <4 x i64>, ptr %47, align 8, !tbaa !18
  %wide.vec132 = load <4 x i64>, ptr %48, align 8, !tbaa !18
  %49 = bitcast <4 x i64> %wide.vec131 to <4 x double>
  %50 = shufflevector <4 x double> %49, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %51 = bitcast <4 x i64> %wide.vec132 to <4 x double>
  %52 = shufflevector <4 x double> %51, <4 x double> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec135 = shufflevector <4 x i64> %wide.vec131, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec136 = shufflevector <4 x i64> %wide.vec132, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %53 = trunc <2 x i64> %strided.vec135 to <2 x i32>
  %54 = trunc <2 x i64> %strided.vec136 to <2 x i32>
  %55 = getelementptr i32, ptr %44, i64 %index130
  %56 = getelementptr i8, ptr %55, i64 8
  store <2 x i32> %53, ptr %55, align 4, !tbaa !11
  store <2 x i32> %54, ptr %56, align 4, !tbaa !11
  %57 = fptrunc <2 x double> %50 to <2 x float>
  %58 = fptrunc <2 x double> %52 to <2 x float>
  %59 = getelementptr inbounds float, ptr %45, i64 %index130
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  store <2 x float> %57, ptr %59, align 4, !tbaa !19
  store <2 x float> %58, ptr %60, align 4, !tbaa !19
  %index.next137 = add nuw i64 %index130, 4
  %61 = icmp eq i64 %index.next137, %n.vec127
  br i1 %61, label %middle.block122, label %vector.body129, !llvm.loop !21

middle.block122:                                  ; preds = %vector.body129
  br i1 %cmp.n138, label %..loopexit_crit_edge.split.us78.us, label %scalar.ph123.preheader

scalar.ph123.preheader:                           ; preds = %middle.block122, %.lr.ph70.us.us
  %.05869.us77.us.ph = phi i64 [ 0, %.lr.ph70.us.us ], [ %n.vec127, %middle.block122 ]
  br label %scalar.ph123

scalar.ph123:                                     ; preds = %scalar.ph123.preheader, %scalar.ph123
  %.05869.us77.us = phi i64 [ %70, %scalar.ph123 ], [ %.05869.us77.us.ph, %scalar.ph123.preheader ]
  %62 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %10, i64 %.05869.us77.us
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = trunc i64 %64 to i32
  %66 = getelementptr i32, ptr %44, i64 %.05869.us77.us
  store i32 %65, ptr %66, align 4, !tbaa !11
  %67 = load double, ptr %62, align 8, !tbaa !24
  %68 = fptrunc double %67 to float
  %69 = getelementptr inbounds float, ptr %45, i64 %.05869.us77.us
  store float %68, ptr %69, align 4, !tbaa !19
  %70 = add nuw i64 %.05869.us77.us, 1
  %exitcond102.not = icmp eq i64 %70, %2
  br i1 %exitcond102.not, label %..loopexit_crit_edge.split.us78.us, label %scalar.ph123, !llvm.loop !25

..loopexit_crit_edge.split.us78.us:               ; preds = %scalar.ph123, %middle.block122
  %.1.us.us = add i64 %42, %.06073.us.us
  %71 = add nuw nsw i64 %.05974.us.us, 1
  %exitcond103.not = icmp eq i64 %71, %11
  br i1 %exitcond103.not, label %._crit_edge, label %.lr.ph70.us.us, !llvm.loop !17

.loopexit.us:                                     ; preds = %.lr.ph76.split.split.us, %.loopexit.us
  %.05974.us = phi i64 [ %75, %.loopexit.us ], [ 0, %.lr.ph76.split.split.us ]
  %.06073.us = phi i64 [ %.1.us, %.loopexit.us ], [ 0, %.lr.ph76.split.split.us ]
  %72 = mul i64 %.05974.us, %8
  %73 = getelementptr inbounds float, ptr %5, i64 %72
  %74 = tail call i64 @vl_kdforestsearcher_query(ptr noundef %9, ptr noundef %10, i64 noundef 0, ptr noundef %73)
  %.1.us = add i64 %74, %.06073.us
  %75 = add nuw nsw i64 %.05974.us, 1
  %exitcond106.not = icmp eq i64 %75, %11
  br i1 %exitcond106.not, label %._crit_edge, label %.loopexit.us, !llvm.loop !17

.lr.ph76.split.split:                             ; preds = %.lr.ph76.split
  br i1 %.not91, label %.loopexit66, label %.lr.ph76.split.split.split.us

.lr.ph76.split.split.split.us:                    ; preds = %.lr.ph76.split.split
  br i1 %.not, label %.lr.ph.us.us.preheader, label %.lr.ph.us.preheader

.lr.ph.us.us.preheader:                           ; preds = %.lr.ph76.split.split.split.us
  %xtraiter144 = and i64 %2, 3
  %76 = icmp ult i64 %2, 4
  %unroll_iter = and i64 %2, -4
  %lcmp.mod145.not = icmp eq i64 %xtraiter144, 0
  br label %.lr.ph.us.us

.lr.ph.us.preheader:                              ; preds = %.lr.ph76.split.split.split.us
  %77 = mul i64 %11, %2
  %78 = shl i64 %77, 3
  %scevgep = getelementptr i8, ptr %4, i64 %78
  %79 = shl i64 %2, 4
  %80 = getelementptr i8, ptr %10, i64 %79
  %scevgep117 = getelementptr i8, ptr %80, i64 -8
  %min.iters.check = icmp ult i64 %2, 4
  %bound0 = icmp ugt ptr %scevgep117, %4
  %bound1 = icmp ult ptr %10, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %.mask = and i64 %2, 1152921504606846976
  %stride.check = icmp ne i64 %.mask, 0
  %81 = or i1 %found.conflict, %stride.check
  %n.vec = and i64 %2, -1152921504606846980
  %cmp.n = icmp eq i64 %n.vec, %2
  %xtraiter = and i64 %2, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %82 = add i64 %2, -1
  br label %.lr.ph.us

.lr.ph.us.us:                                     ; preds = %.lr.ph.us.us.preheader, %..loopexit66_crit_edge.split.us.us.us
  %.05974.us80.us = phi i64 [ %108, %..loopexit66_crit_edge.split.us.us.us ], [ 0, %.lr.ph.us.us.preheader ]
  %.06073.us81.us = phi i64 [ %.1.us83.us, %..loopexit66_crit_edge.split.us.us.us ], [ 0, %.lr.ph.us.us.preheader ]
  %83 = mul i64 %.05974.us80.us, %8
  %84 = getelementptr inbounds double, ptr %5, i64 %83
  %85 = tail call i64 @vl_kdforestsearcher_query(ptr noundef %9, ptr noundef %10, i64 noundef %2, ptr noundef %84)
  %86 = mul i64 %.05974.us80.us, %2
  %87 = getelementptr i32, ptr %1, i64 %86
  br i1 %76, label %..loopexit66_crit_edge.split.us.us.us.unr-lcssa, label %.lr.ph.us.us.new

.lr.ph.us.us.new:                                 ; preds = %.lr.ph.us.us, %.lr.ph.us.us.new
  %.068.us.us.us = phi i64 [ %103, %.lr.ph.us.us.new ], [ 0, %.lr.ph.us.us ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph.us.us.new ], [ 0, %.lr.ph.us.us ]
  %gep.us.us = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %.068.us.us.us
  %88 = load i64, ptr %gep.us.us, align 8, !tbaa !5
  %89 = trunc i64 %88 to i32
  %90 = getelementptr i32, ptr %87, i64 %.068.us.us.us
  store i32 %89, ptr %90, align 4, !tbaa !11
  %91 = or disjoint i64 %.068.us.us.us, 1
  %gep.us.us.1 = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %91
  %92 = load i64, ptr %gep.us.us.1, align 8, !tbaa !5
  %93 = trunc i64 %92 to i32
  %94 = getelementptr i32, ptr %87, i64 %91
  store i32 %93, ptr %94, align 4, !tbaa !11
  %95 = or disjoint i64 %.068.us.us.us, 2
  %gep.us.us.2 = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %95
  %96 = load i64, ptr %gep.us.us.2, align 8, !tbaa !5
  %97 = trunc i64 %96 to i32
  %98 = getelementptr i32, ptr %87, i64 %95
  store i32 %97, ptr %98, align 4, !tbaa !11
  %99 = or disjoint i64 %.068.us.us.us, 3
  %gep.us.us.3 = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %99
  %100 = load i64, ptr %gep.us.us.3, align 8, !tbaa !5
  %101 = trunc i64 %100 to i32
  %102 = getelementptr i32, ptr %87, i64 %99
  store i32 %101, ptr %102, align 4, !tbaa !11
  %103 = add nuw i64 %.068.us.us.us, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %..loopexit66_crit_edge.split.us.us.us.unr-lcssa, label %.lr.ph.us.us.new, !llvm.loop !26

..loopexit66_crit_edge.split.us.us.us.unr-lcssa:  ; preds = %.lr.ph.us.us.new, %.lr.ph.us.us
  %.068.us.us.us.unr = phi i64 [ 0, %.lr.ph.us.us ], [ %103, %.lr.ph.us.us.new ]
  br i1 %lcmp.mod145.not, label %..loopexit66_crit_edge.split.us.us.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %..loopexit66_crit_edge.split.us.us.us.unr-lcssa, %.epil.preheader
  %.068.us.us.us.epil = phi i64 [ %107, %.epil.preheader ], [ %.068.us.us.us.unr, %..loopexit66_crit_edge.split.us.us.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %..loopexit66_crit_edge.split.us.us.us.unr-lcssa ]
  %gep.us.us.epil = getelementptr %struct._VlKDForestNeighbor, ptr %invariant.gep, i64 %.068.us.us.us.epil
  %104 = load i64, ptr %gep.us.us.epil, align 8, !tbaa !5
  %105 = trunc i64 %104 to i32
  %106 = getelementptr i32, ptr %87, i64 %.068.us.us.us.epil
  store i32 %105, ptr %106, align 4, !tbaa !11
  %107 = add nuw i64 %.068.us.us.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter144
  br i1 %epil.iter.cmp.not, label %..loopexit66_crit_edge.split.us.us.us, label %.epil.preheader, !llvm.loop !27

..loopexit66_crit_edge.split.us.us.us:            ; preds = %.epil.preheader, %..loopexit66_crit_edge.split.us.us.us.unr-lcssa
  %.1.us83.us = add i64 %85, %.06073.us81.us
  %108 = add nuw nsw i64 %.05974.us80.us, 1
  %exitcond100.not = icmp eq i64 %108, %11
  br i1 %exitcond100.not, label %._crit_edge, label %.lr.ph.us.us, !llvm.loop !17

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %..loopexit66_crit_edge.split.us84
  %.05974.us80 = phi i64 [ %150, %..loopexit66_crit_edge.split.us84 ], [ 0, %.lr.ph.us.preheader ]
  %.06073.us81 = phi i64 [ %.1.us83, %..loopexit66_crit_edge.split.us84 ], [ 0, %.lr.ph.us.preheader ]
  %109 = mul i64 %.05974.us80, %8
  %110 = getelementptr inbounds double, ptr %5, i64 %109
  %111 = tail call i64 @vl_kdforestsearcher_query(ptr noundef %9, ptr noundef %10, i64 noundef %2, ptr noundef %110)
  %112 = mul i64 %.05974.us80, %2
  %113 = getelementptr i32, ptr %1, i64 %112
  %114 = getelementptr inbounds double, ptr %4, i64 %112
  %brmerge = select i1 %min.iters.check, i1 true, i1 %81
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.lr.ph.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.us ]
  %115 = or disjoint i64 %index, 2
  %116 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %10, i64 %index
  %117 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %10, i64 %115
  %wide.vec = load <4 x i64>, ptr %116, align 8, !tbaa !18
  %wide.vec118 = load <4 x i64>, ptr %117, align 8, !tbaa !18
  %strided.vec = shufflevector <4 x i64> %wide.vec, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec119 = shufflevector <4 x i64> %wide.vec118, <4 x i64> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec120 = shufflevector <4 x i64> %wide.vec, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %strided.vec121 = shufflevector <4 x i64> %wide.vec118, <4 x i64> poison, <2 x i32> <i32 1, i32 3>
  %118 = trunc <2 x i64> %strided.vec120 to <2 x i32>
  %119 = trunc <2 x i64> %strided.vec121 to <2 x i32>
  %120 = getelementptr i32, ptr %113, i64 %index
  %121 = getelementptr i8, ptr %120, i64 8
  store <2 x i32> %118, ptr %120, align 4, !tbaa !11
  store <2 x i32> %119, ptr %121, align 4, !tbaa !11
  %122 = getelementptr inbounds double, ptr %114, i64 %index
  %123 = getelementptr inbounds i8, ptr %122, i64 16
  store <2 x i64> %strided.vec, ptr %122, align 8, !tbaa !28, !alias.scope !29, !noalias !32
  store <2 x i64> %strided.vec119, ptr %123, align 8, !tbaa !28, !alias.scope !29, !noalias !32
  %index.next = add nuw i64 %index, 4
  %124 = icmp eq i64 %index.next, %n.vec
  br i1 %124, label %middle.block, label %vector.body, !llvm.loop !34

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..loopexit66_crit_edge.split.us84, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %.lr.ph.us, %middle.block
  %.068.us82.ph = phi i64 [ 0, %.lr.ph.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %125 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %10, i64 %.068.us82.ph
  %126 = getelementptr inbounds i8, ptr %125, i64 8
  %127 = load i64, ptr %126, align 8, !tbaa !5
  %128 = trunc i64 %127 to i32
  %129 = getelementptr i32, ptr %113, i64 %.068.us82.ph
  store i32 %128, ptr %129, align 4, !tbaa !11
  %130 = load double, ptr %125, align 8, !tbaa !24
  %131 = getelementptr inbounds double, ptr %114, i64 %.068.us82.ph
  store double %130, ptr %131, align 8, !tbaa !28
  %132 = or disjoint i64 %.068.us82.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.068.us82.unr = phi i64 [ %.068.us82.ph, %scalar.ph.preheader ], [ %132, %scalar.ph.prol ]
  %133 = icmp eq i64 %.068.us82.ph, %82
  br i1 %133, label %..loopexit66_crit_edge.split.us84, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.068.us82 = phi i64 [ %149, %scalar.ph ], [ %.068.us82.unr, %scalar.ph.prol.loopexit ]
  %134 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %10, i64 %.068.us82
  %135 = getelementptr inbounds i8, ptr %134, i64 8
  %136 = load i64, ptr %135, align 8, !tbaa !5
  %137 = trunc i64 %136 to i32
  %138 = getelementptr i32, ptr %113, i64 %.068.us82
  store i32 %137, ptr %138, align 4, !tbaa !11
  %139 = load double, ptr %134, align 8, !tbaa !24
  %140 = getelementptr inbounds double, ptr %114, i64 %.068.us82
  store double %139, ptr %140, align 8, !tbaa !28
  %141 = add nuw i64 %.068.us82, 1
  %142 = getelementptr inbounds %struct._VlKDForestNeighbor, ptr %10, i64 %141
  %143 = getelementptr inbounds i8, ptr %142, i64 8
  %144 = load i64, ptr %143, align 8, !tbaa !5
  %145 = trunc i64 %144 to i32
  %146 = getelementptr i32, ptr %113, i64 %141
  store i32 %145, ptr %146, align 4, !tbaa !11
  %147 = load double, ptr %142, align 8, !tbaa !24
  %148 = getelementptr inbounds double, ptr %114, i64 %141
  store double %147, ptr %148, align 8, !tbaa !28
  %149 = add nuw i64 %.068.us82, 2
  %exitcond.not.1 = icmp eq i64 %149, %2
  br i1 %exitcond.not.1, label %..loopexit66_crit_edge.split.us84, label %scalar.ph, !llvm.loop !35

..loopexit66_crit_edge.split.us84:                ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %.1.us83 = add i64 %111, %.06073.us81
  %150 = add nuw nsw i64 %.05974.us80, 1
  %exitcond98.not = icmp eq i64 %150, %11
  br i1 %exitcond98.not, label %._crit_edge, label %.lr.ph.us, !llvm.loop !17

.loopexit66:                                      ; preds = %.lr.ph76.split.split, %.loopexit66
  %.05974 = phi i64 [ %154, %.loopexit66 ], [ 0, %.lr.ph76.split.split ]
  %.06073 = phi i64 [ %.1, %.loopexit66 ], [ 0, %.lr.ph76.split.split ]
  %151 = mul i64 %.05974, %8
  %152 = getelementptr inbounds double, ptr %5, i64 %151
  %153 = tail call i64 @vl_kdforestsearcher_query(ptr noundef %9, ptr noundef %10, i64 noundef 0, ptr noundef %152)
  %.1 = add i64 %153, %.06073
  %154 = add nuw nsw i64 %.05974, 1
  %exitcond101.not = icmp eq i64 %154, %11
  br i1 %exitcond101.not, label %._crit_edge, label %.loopexit66, !llvm.loop !17

155:                                              ; preds = %.lr.ph76
  tail call void @abort() #4
  unreachable

._crit_edge:                                      ; preds = %..loopexit66_crit_edge.split.us84, %..loopexit66_crit_edge.split.us.us.us, %.loopexit66, %..loopexit_crit_edge.split.us78.us, %..loopexit_crit_edge.split.us.us.us.us, %.loopexit.us, %6
  %.060.lcssa = phi i64 [ 0, %6 ], [ %.1.us, %.loopexit.us ], [ %.1.us.us.us, %..loopexit_crit_edge.split.us.us.us.us ], [ %.1.us.us, %..loopexit_crit_edge.split.us78.us ], [ %.1, %.loopexit66 ], [ %.1.us83.us, %..loopexit66_crit_edge.split.us.us.us ], [ %.1.us83, %..loopexit66_crit_edge.split.us84 ]
  tail call void @vl_kdforestsearcher_delete(ptr noundef %9)
  tail call void @vl_free(ptr noundef %10) #3
  ret i64 %.060.lcssa
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @vl_kdforest_get_data_type(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @vl_kdforest_get_data_dimension(ptr noundef) local_unnamed_addr #2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn 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 #2 = { 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 #3 = { nounwind }
attributes #4 = { noreturn 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 8}
!6 = !{!"_VlKDForestNeighbor", !7, i64 0, !10, i64 8}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !14}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !8, i64 0}
!21 = distinct !{!21, !14, !22, !23}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = !{!6, !7, i64 0}
!25 = distinct !{!25, !14, !23, !22}
!26 = distinct !{!26, !14}
!27 = distinct !{!27, !16}
!28 = !{!7, !7, i64 0}
!29 = !{!30}
!30 = distinct !{!30, !31}
!31 = distinct !{!31, !"LVerDomain"}
!32 = !{!33}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !14, !22, !23}
!35 = distinct !{!35, !14, !22}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass