; LLVM IR from venumb/ZSPACE :: cpp/depends/alglib/cpp/src (dataanalysis)

; 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.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::knnbuffer" = type { %"struct.alglib_impl::kdtreerequestbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::kdtreerequestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i8, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::knnmodel" = type { i64, i64, i64, double, i8, i8, %"struct.alglib_impl::kdtree", %"struct.alglib_impl::knnbuffer" }
%"struct.alglib_impl::kdtree" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::kdtreerequestbuffer", i64 }
%"struct.alglib_impl::knnreport" = type { double, double, double, double, double }

@.str.465 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.466 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.467 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.468 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.469 = external hidden unnamed_addr constant [61 x i8], align 1

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

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

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_knnbuffer_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15knncreatebufferEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12knnallerrorsEPNS_8knnmodelEPNS_9ae_matrixElPNS_9knnreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::knnbuffer", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca %"struct.alglib_impl::ae_vector", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 832, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %22, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 832, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 64, i1 false)
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl16_knnreport_clearEPv(ptr noundef %23)
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15_knnbuffer_initEPvPNS_8ae_stateEb(ptr noundef %12, ptr noundef %24, i1 noundef zeroext true)
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %13, i64 noundef 0, i64 noundef 3, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 3, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.alglib_impl::knnmodel", ptr %27, i32 0, i32 0
  %29 = load i64, ptr %28, align 8, !tbaa !11
  store i64 %29, ptr %15, align 8, !tbaa !9
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::knnmodel", ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !21
  store i64 %32, ptr %16, align 8, !tbaa !9
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.alglib_impl::knnmodel", ptr %33, i32 0, i32 4
  %35 = load i8, ptr %34, align 8, !tbaa !22, !range !23, !noundef !24
  %36 = trunc i8 %35 to i1
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %18, align 1, !tbaa !25
  %38 = load i8, ptr %18, align 1, !tbaa !25, !range !23, !noundef !24
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %41

40:                                               ; preds = %5
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %43

41:                                               ; preds = %5
  %42 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %42, ptr %17, align 8, !tbaa !9
  br label %43

43:                                               ; preds = %41, %40
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = icmp sge i64 %44, 0
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef @.str.465, ptr noundef %46)
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %47, i32 0, i32 0
  %49 = load i64, ptr %48, align 8, !tbaa !26
  %50 = load i64, ptr %8, align 8, !tbaa !9
  %51 = icmp sge i64 %49, %50
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef @.str.466, ptr noundef %52)
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %53, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !27
  %56 = load i64, ptr %15, align 8, !tbaa !9
  %57 = load i64, ptr %17, align 8, !tbaa !9
  %58 = add nsw i64 %56, %57
  %59 = icmp sge i64 %55, %58
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %59, ptr noundef @.str.467, ptr noundef %60)
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load i64, ptr %8, align 8, !tbaa !9
  %63 = load i64, ptr %15, align 8, !tbaa !9
  %64 = load i64, ptr %17, align 8, !tbaa !9
  %65 = add nsw i64 %63, %64
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %61, i64 noundef %62, i64 noundef %65, ptr noundef %66)
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %67, ptr noundef @.str.468, ptr noundef %68)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL15knn_clearreportEPNS_9knnreportEPNS_8ae_stateE(ptr noundef %69, ptr noundef %70)
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::knnmodel", ptr %71, i32 0, i32 5
  %73 = load i8, ptr %72, align 1, !tbaa !28, !range !23, !noundef !24
  %74 = trunc i8 %73 to i1
  br i1 %74, label %78, label %75

75:                                               ; preds = %43
  %76 = load i64, ptr %8, align 8, !tbaa !9
  %77 = icmp eq i64 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %75, %43
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %79)
  store i32 1, ptr %21, align 4
  br label %224

80:                                               ; preds = %75
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15knncreatebufferEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef %81, ptr noundef %12, ptr noundef %82)
  %83 = load i8, ptr %18, align 1, !tbaa !25, !range !23, !noundef !24
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %88

85:                                               ; preds = %80
  %86 = load i64, ptr %16, align 8, !tbaa !9
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13dserrallocateElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %86, ptr noundef %14, ptr noundef %87)
  br label %92

88:                                               ; preds = %80
  %89 = load i64, ptr %16, align 8, !tbaa !9
  %90 = sub nsw i64 0, %89
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13dserrallocateElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %90, ptr noundef %14, ptr noundef %91)
  br label %92

92:                                               ; preds = %88, %85
  %93 = load i64, ptr %17, align 8, !tbaa !9
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %93, ptr noundef %94)
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %184, %92
  %96 = load i64, ptr %19, align 8, !tbaa !9
  %97 = load i64, ptr %8, align 8, !tbaa !9
  %98 = sub nsw i64 %97, 1
  %99 = icmp sle i64 %96, %98
  br i1 %99, label %100, label %187

100:                                              ; preds = %95
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %101

101:                                              ; preds = %121, %100
  %102 = load i64, ptr %20, align 8, !tbaa !9
  %103 = load i64, ptr %15, align 8, !tbaa !9
  %104 = sub nsw i64 %103, 1
  %105 = icmp sle i64 %102, %104
  br i1 %105, label %106, label %124

106:                                              ; preds = %101
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %107, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !29
  %110 = load i64, ptr %19, align 8, !tbaa !9
  %111 = getelementptr inbounds ptr, ptr %109, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %20, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !30
  %116 = getelementptr inbounds %"struct.alglib_impl::knnbuffer", ptr %12, i32 0, i32 1
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !29
  %119 = load i64, ptr %20, align 8, !tbaa !9
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  store double %115, ptr %120, align 8, !tbaa !30
  br label %121

121:                                              ; preds = %106
  %122 = load i64, ptr %20, align 8, !tbaa !9
  %123 = add nsw i64 %122, 1
  store i64 %123, ptr %20, align 8, !tbaa !9
  br label %101, !llvm.loop !31

124:                                              ; preds = %101
  %125 = load i8, ptr %18, align 1, !tbaa !25, !range !23, !noundef !24
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %153

127:                                              ; preds = %124
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !29
  %131 = load i64, ptr %19, align 8, !tbaa !9
  %132 = getelementptr inbounds ptr, ptr %130, i64 %131
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = load i64, ptr %15, align 8, !tbaa !9
  %135 = getelementptr inbounds double, ptr %133, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !30
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %136, ptr noundef %137)
  store i64 %138, ptr %20, align 8, !tbaa !9
  %139 = load i64, ptr %20, align 8, !tbaa !9
  %140 = icmp sge i64 %139, 0
  br i1 %140, label %141, label %145

141:                                              ; preds = %127
  %142 = load i64, ptr %20, align 8, !tbaa !9
  %143 = load i64, ptr %16, align 8, !tbaa !9
  %144 = icmp slt i64 %142, %143
  br label %145

145:                                              ; preds = %141, %127
  %146 = phi i1 [ false, %127 ], [ %144, %141 ]
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %146, ptr noundef @.str.469, ptr noundef %147)
  %148 = load i64, ptr %20, align 8, !tbaa !9
  %149 = sitofp i64 %148 to double
  %150 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %151 = load ptr, ptr %150, align 8, !tbaa !29
  %152 = getelementptr inbounds double, ptr %151, i64 0
  store double %149, ptr %152, align 8, !tbaa !30
  br label %179

153:                                              ; preds = %124
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %154

154:                                              ; preds = %175, %153
  %155 = load i64, ptr %20, align 8, !tbaa !9
  %156 = load i64, ptr %16, align 8, !tbaa !9
  %157 = sub nsw i64 %156, 1
  %158 = icmp sle i64 %155, %157
  br i1 %158, label %159, label %178

159:                                              ; preds = %154
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %160, i32 0, i32 6
  %162 = load ptr, ptr %161, align 8, !tbaa !29
  %163 = load i64, ptr %19, align 8, !tbaa !9
  %164 = getelementptr inbounds ptr, ptr %162, i64 %163
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = load i64, ptr %15, align 8, !tbaa !9
  %167 = load i64, ptr %20, align 8, !tbaa !9
  %168 = add nsw i64 %166, %167
  %169 = getelementptr inbounds double, ptr %165, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !30
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !29
  %173 = load i64, ptr %20, align 8, !tbaa !9
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  store double %170, ptr %174, align 8, !tbaa !30
  br label %175

175:                                              ; preds = %159
  %176 = load i64, ptr %20, align 8, !tbaa !9
  %177 = add nsw i64 %176, 1
  store i64 %177, ptr %20, align 8, !tbaa !9
  br label %154, !llvm.loop !33

178:                                              ; preds = %154
  br label %179

179:                                              ; preds = %178, %145
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL19knn_processinternalEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef %180, ptr noundef %12, ptr noundef %181)
  %182 = getelementptr inbounds %"struct.alglib_impl::knnbuffer", ptr %12, i32 0, i32 2
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef %14, ptr noundef %182, ptr noundef %13, ptr noundef %183)
  br label %184

184:                                              ; preds = %179
  %185 = load i64, ptr %19, align 8, !tbaa !9
  %186 = add nsw i64 %185, 1
  store i64 %186, ptr %19, align 8, !tbaa !9
  br label %95, !llvm.loop !34

187:                                              ; preds = %95
  %188 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl11dserrfinishEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %14, ptr noundef %188)
  %189 = load i8, ptr %18, align 1, !tbaa !25, !range !23, !noundef !24
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %204

191:                                              ; preds = %187
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !29
  %194 = getelementptr inbounds double, ptr %193, i64 0
  %195 = load double, ptr %194, align 8, !tbaa !30
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::knnreport", ptr %196, i32 0, i32 0
  store double %195, ptr %197, align 8, !tbaa !35
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !29
  %200 = getelementptr inbounds double, ptr %199, i64 1
  %201 = load double, ptr %200, align 8, !tbaa !30
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::knnreport", ptr %202, i32 0, i32 1
  store double %201, ptr %203, align 8, !tbaa !37
  br label %204

204:                                              ; preds = %191, %187
  %205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !29
  %207 = getelementptr inbounds double, ptr %206, i64 2
  %208 = load double, ptr %207, align 8, !tbaa !30
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::knnreport", ptr %209, i32 0, i32 2
  store double %208, ptr %210, align 8, !tbaa !38
  %211 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %212 = load ptr, ptr %211, align 8, !tbaa !29
  %213 = getelementptr inbounds double, ptr %212, i64 3
  %214 = load double, ptr %213, align 8, !tbaa !30
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::knnreport", ptr %215, i32 0, i32 3
  store double %214, ptr %216, align 8, !tbaa !39
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !29
  %219 = getelementptr inbounds double, ptr %218, i64 4
  %220 = load double, ptr %219, align 8, !tbaa !30
  %221 = load ptr, ptr %9, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::knnreport", ptr %221, i32 0, i32 4
  store double %220, ptr %222, align 8, !tbaa !40
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %223)
  store i32 0, ptr %21, align 4
  br label %224

224:                                              ; preds = %204, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 832, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  %225 = load i32, ptr %21, align 4
  switch i32 %225, label %227 [
    i32 0, label %226
    i32 1, label %226
  ]

226:                                              ; preds = %224, %224
  ret void

227:                                              ; preds = %224
  unreachable
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl13dserrallocateElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11dserrfinishEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16_knnreport_clearEPv(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL15knn_clearreportEPNS_9knnreportEPNS_8ae_stateE(ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL19knn_processinternalEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl8knnmodelE", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !14, i64 32, !14, i64 33, !15, i64 40, !20, i64 1040}
!13 = !{!"double", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTSN11alglib_impl6kdtreeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !16, i64 32, !18, i64 112, !18, i64 176, !18, i64 240, !18, i64 304, !18, i64 368, !19, i64 432, !10, i64 992}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !14, i64 32, !17, i64 40, !7, i64 72}
!17 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !14, i64 16, !17, i64 24, !7, i64 56}
!19 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !18, i64 0, !18, i64 64, !18, i64 128, !10, i64 192, !13, i64 200, !14, i64 208, !13, i64 216, !10, i64 224, !18, i64 232, !18, i64 296, !18, i64 360, !18, i64 424, !18, i64 488, !13, i64 552}
!20 = !{!"_ZTSN11alglib_impl9knnbufferE", !19, i64 0, !18, i64 560, !18, i64 624, !18, i64 688, !16, i64 752}
!21 = !{!12, !10, i64 8}
!22 = !{!12, !14, i64 32}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!14, !14, i64 0}
!26 = !{!16, !10, i64 0}
!27 = !{!16, !10, i64 8}
!28 = !{!12, !14, i64 33}
!29 = !{!7, !7, i64 0}
!30 = !{!13, !13, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = distinct !{!34, !32}
!35 = !{!36, !13, i64 0}
!36 = !{!"_ZTSN11alglib_impl9knnreportE", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!37 = !{!36, !13, i64 8}
!38 = !{!36, !13, i64 16}
!39 = !{!36, !13, i64 24}
!40 = !{!36, !13, i64 32}


; 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.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::knnbuffer" = type { %"struct.alglib_impl::kdtreerequestbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }
%"struct.alglib_impl::kdtreerequestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i8, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.465 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.466 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.467 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.468 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.469 = external hidden unnamed_addr constant [61 x i8], align 1

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

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

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

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15_knnbuffer_initEPvPNS_8ae_stateEb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15knncreatebufferEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12knnallerrorsEPNS_8knnmodelEPNS_9ae_matrixElPNS_9knnreportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::knnbuffer", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 832, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(832) %7, i8 0, i64 832, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl16_knnreport_clearEPv(ptr noundef %3)
  call void @_ZN11alglib_impl15_knnbuffer_initEPvPNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %8, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  %10 = load i64, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !19
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  %14 = load i8, ptr %13, align 8, !tbaa !20, !range !21, !noundef !22
  %15 = trunc nuw i8 %14 to i1
  %. = select i1 %15, i64 1, i64 %12
  %16 = icmp sgt i64 %2, -1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.465, ptr noundef %4)
  %17 = load i64, ptr %1, align 8, !tbaa !23
  %18 = icmp sge i64 %17, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.466, ptr noundef %4)
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load i64, ptr %19, align 8, !tbaa !24
  %21 = add nsw i64 %., %10
  %22 = icmp sge i64 %20, %21
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.467, ptr noundef %4)
  %23 = call noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, i64 noundef %21, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef nonnull @.str.468, ptr noundef %4)
  call void @_ZN11alglib_implL15knn_clearreportEPNS_9knnreportEPNS_8ae_stateE(ptr noundef %3, ptr noundef %4)
  %24 = getelementptr inbounds i8, ptr %0, i64 33
  %25 = load i8, ptr %24, align 1, !tbaa !25, !range !21, !noundef !22
  %26 = trunc nuw i8 %25 to i1
  %27 = icmp eq i64 %2, 0
  %or.cond = or i1 %27, %26
  br i1 %or.cond, label %192, label %28

28:                                               ; preds = %5
  call void @_ZN11alglib_impl15knncreatebufferEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef %4)
  %29 = sub nsw i64 0, %12
  %.sink = select i1 %15, i64 %12, i64 %29
  call void @_ZN11alglib_impl13dserrallocateElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.sink, ptr noundef nonnull %9, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %., ptr noundef %4)
  %.not.not89 = icmp sgt i64 %2, 0
  br i1 %.not.not89, label %.preheader83.lr.ph, label %._crit_edge91

.preheader83.lr.ph:                               ; preds = %28
  %.not.not8184 = icmp sgt i64 %10, 0
  %30 = getelementptr inbounds i8, ptr %1, i64 72
  %31 = getelementptr inbounds i8, ptr %7, i64 616
  %.not.not8286 = icmp sgt i64 %12, 0
  %32 = getelementptr inbounds i8, ptr %8, i64 56
  %33 = getelementptr inbounds i8, ptr %7, i64 624
  br i1 %15, label %.preheader83.us.preheader, label %.preheader83.lr.ph.split

.preheader83.us.preheader:                        ; preds = %.preheader83.lr.ph
  %xtraiter146 = and i64 %10, 1
  %34 = icmp eq i64 %10, 1
  %unroll_iter148 = and i64 %10, 9223372036854775806
  %lcmp.mod147.not = icmp eq i64 %xtraiter146, 0
  br label %.preheader83.us

.preheader83.us:                                  ; preds = %.preheader83.us.preheader, %._crit_edge.us
  %.07890.us = phi i64 [ %53, %._crit_edge.us ], [ 0, %.preheader83.us.preheader ]
  br i1 %.not.not8184, label %.lr.ph.us.preheader, label %._crit_edge.us

.lr.ph.us.preheader:                              ; preds = %.preheader83.us
  br i1 %34, label %._crit_edge.us.loopexit.unr-lcssa, label %.lr.ph.us

._crit_edge.us.loopexit.unr-lcssa:                ; preds = %.lr.ph.us, %.lr.ph.us.preheader
  %.085.us.unr = phi i64 [ 0, %.lr.ph.us.preheader ], [ %69, %.lr.ph.us ]
  br i1 %lcmp.mod147.not, label %._crit_edge.us, label %.lr.ph.us.epil

.lr.ph.us.epil:                                   ; preds = %._crit_edge.us.loopexit.unr-lcssa
  %35 = load ptr, ptr %30, align 8, !tbaa !26
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.07890.us
  %37 = load ptr, ptr %36, align 8, !tbaa !27
  %38 = getelementptr inbounds double, ptr %37, i64 %.085.us.unr
  %39 = load double, ptr %38, align 8, !tbaa !28
  %40 = load ptr, ptr %31, align 8, !tbaa !26
  %41 = getelementptr inbounds double, ptr %40, i64 %.085.us.unr
  store double %39, ptr %41, align 8, !tbaa !28
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %.lr.ph.us.epil, %._crit_edge.us.loopexit.unr-lcssa, %.preheader83.us
  %42 = load ptr, ptr %30, align 8, !tbaa !26
  %43 = getelementptr inbounds ptr, ptr %42, i64 %.07890.us
  %44 = load ptr, ptr %43, align 8, !tbaa !27
  %45 = getelementptr inbounds double, ptr %44, i64 %10
  %46 = load double, ptr %45, align 8, !tbaa !28
  %47 = call noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef %46, ptr noundef %4)
  %48 = icmp sgt i64 %47, -1
  %49 = icmp slt i64 %47, %12
  %50 = select i1 %48, i1 %49, i1 false
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %50, ptr noundef nonnull @.str.469, ptr noundef %4)
  %51 = sitofp i64 %47 to double
  %52 = load ptr, ptr %32, align 8, !tbaa !26
  store double %51, ptr %52, align 8, !tbaa !28
  call void @_ZN11alglib_implL19knn_processinternalEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef %4)
  call void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %33, ptr noundef nonnull %8, ptr noundef %4)
  %53 = add nuw nsw i64 %.07890.us, 1
  %exitcond119.not = icmp eq i64 %53, %2
  br i1 %exitcond119.not, label %._crit_edge91, label %.preheader83.us, !llvm.loop !29

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %.085.us = phi i64 [ %69, %.lr.ph.us ], [ 0, %.lr.ph.us.preheader ]
  %niter149 = phi i64 [ %niter149.next.1, %.lr.ph.us ], [ 0, %.lr.ph.us.preheader ]
  %54 = load ptr, ptr %30, align 8, !tbaa !26
  %55 = getelementptr inbounds ptr, ptr %54, i64 %.07890.us
  %56 = load ptr, ptr %55, align 8, !tbaa !27
  %57 = getelementptr inbounds double, ptr %56, i64 %.085.us
  %58 = load double, ptr %57, align 8, !tbaa !28
  %59 = load ptr, ptr %31, align 8, !tbaa !26
  %60 = getelementptr inbounds double, ptr %59, i64 %.085.us
  store double %58, ptr %60, align 8, !tbaa !28
  %61 = or disjoint i64 %.085.us, 1
  %62 = load ptr, ptr %30, align 8, !tbaa !26
  %63 = getelementptr inbounds ptr, ptr %62, i64 %.07890.us
  %64 = load ptr, ptr %63, align 8, !tbaa !27
  %65 = getelementptr inbounds double, ptr %64, i64 %61
  %66 = load double, ptr %65, align 8, !tbaa !28
  %67 = load ptr, ptr %31, align 8, !tbaa !26
  %68 = getelementptr inbounds double, ptr %67, i64 %61
  store double %66, ptr %68, align 8, !tbaa !28
  %69 = add nuw nsw i64 %.085.us, 2
  %niter149.next.1 = add i64 %niter149, 2
  %niter149.ncmp.1 = icmp eq i64 %niter149.next.1, %unroll_iter148
  br i1 %niter149.ncmp.1, label %._crit_edge.us.loopexit.unr-lcssa, label %.lr.ph.us, !llvm.loop !31

.preheader83.lr.ph.split:                         ; preds = %.preheader83.lr.ph
  br i1 %.not.not8184, label %.preheader83.lr.ph.split.split.us, label %.preheader83.lr.ph.split.split

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

.preheader83.us92.preheader:                      ; preds = %.preheader83.lr.ph.split.split.us
  %xtraiter133 = and i64 %10, 1
  %70 = icmp eq i64 %10, 1
  %unroll_iter135 = and i64 %10, 9223372036854775806
  %lcmp.mod134.not = icmp eq i64 %xtraiter133, 0
  br label %.preheader83.us92

.preheader83.us92.us.preheader:                   ; preds = %.preheader83.lr.ph.split.split.us
  %xtraiter138 = and i64 %10, 1
  %71 = icmp eq i64 %10, 1
  %unroll_iter140 = and i64 %10, 9223372036854775806
  %lcmp.mod139.not = icmp eq i64 %xtraiter138, 0
  %xtraiter142 = and i64 %12, 1
  %72 = icmp eq i64 %12, 1
  %unroll_iter144 = and i64 %12, 9223372036854775806
  %lcmp.mod143.not = icmp eq i64 %xtraiter142, 0
  br label %.preheader83.us92.us

.preheader83.us92.us:                             ; preds = %.preheader83.us92.us.preheader, %..loopexit_crit_edge.us.us
  %.07890.us93.us = phi i64 [ %122, %..loopexit_crit_edge.us.us ], [ 0, %.preheader83.us92.us.preheader ]
  br i1 %71, label %._crit_edge.us98.us.preheader.unr-lcssa, label %.preheader83.us92.us.new

._crit_edge.us98.us:                              ; preds = %._crit_edge.us98.us.preheader, %._crit_edge.us98.us
  %.187.us.us = phi i64 [ %90, %._crit_edge.us98.us ], [ 0, %._crit_edge.us98.us.preheader ]
  %niter145 = phi i64 [ %niter145.next.1, %._crit_edge.us98.us ], [ 0, %._crit_edge.us98.us.preheader ]
  %73 = load ptr, ptr %30, align 8, !tbaa !26
  %74 = getelementptr inbounds ptr, ptr %73, i64 %.07890.us93.us
  %75 = load ptr, ptr %74, align 8, !tbaa !27
  %76 = getelementptr double, ptr %75, i64 %10
  %77 = getelementptr double, ptr %76, i64 %.187.us.us
  %78 = load double, ptr %77, align 8, !tbaa !28
  %79 = load ptr, ptr %32, align 8, !tbaa !26
  %80 = getelementptr inbounds double, ptr %79, i64 %.187.us.us
  store double %78, ptr %80, align 8, !tbaa !28
  %81 = or disjoint i64 %.187.us.us, 1
  %82 = load ptr, ptr %30, align 8, !tbaa !26
  %83 = getelementptr inbounds ptr, ptr %82, i64 %.07890.us93.us
  %84 = load ptr, ptr %83, align 8, !tbaa !27
  %85 = getelementptr double, ptr %84, i64 %10
  %86 = getelementptr double, ptr %85, i64 %81
  %87 = load double, ptr %86, align 8, !tbaa !28
  %88 = load ptr, ptr %32, align 8, !tbaa !26
  %89 = getelementptr inbounds double, ptr %88, i64 %81
  store double %87, ptr %89, align 8, !tbaa !28
  %90 = add nuw nsw i64 %.187.us.us, 2
  %niter145.next.1 = add i64 %niter145, 2
  %niter145.ncmp.1 = icmp eq i64 %niter145.next.1, %unroll_iter144
  br i1 %niter145.ncmp.1, label %..loopexit_crit_edge.us.us.unr-lcssa, label %._crit_edge.us98.us, !llvm.loop !32

.preheader83.us92.us.new:                         ; preds = %.preheader83.us92.us, %.preheader83.us92.us.new
  %.085.us94.us = phi i64 [ %106, %.preheader83.us92.us.new ], [ 0, %.preheader83.us92.us ]
  %niter141 = phi i64 [ %niter141.next.1, %.preheader83.us92.us.new ], [ 0, %.preheader83.us92.us ]
  %91 = load ptr, ptr %30, align 8, !tbaa !26
  %92 = getelementptr inbounds ptr, ptr %91, i64 %.07890.us93.us
  %93 = load ptr, ptr %92, align 8, !tbaa !27
  %94 = getelementptr inbounds double, ptr %93, i64 %.085.us94.us
  %95 = load double, ptr %94, align 8, !tbaa !28
  %96 = load ptr, ptr %31, align 8, !tbaa !26
  %97 = getelementptr inbounds double, ptr %96, i64 %.085.us94.us
  store double %95, ptr %97, align 8, !tbaa !28
  %98 = or disjoint i64 %.085.us94.us, 1
  %99 = load ptr, ptr %30, align 8, !tbaa !26
  %100 = getelementptr inbounds ptr, ptr %99, i64 %.07890.us93.us
  %101 = load ptr, ptr %100, align 8, !tbaa !27
  %102 = getelementptr inbounds double, ptr %101, i64 %98
  %103 = load double, ptr %102, align 8, !tbaa !28
  %104 = load ptr, ptr %31, align 8, !tbaa !26
  %105 = getelementptr inbounds double, ptr %104, i64 %98
  store double %103, ptr %105, align 8, !tbaa !28
  %106 = add nuw nsw i64 %.085.us94.us, 2
  %niter141.next.1 = add i64 %niter141, 2
  %niter141.ncmp.1 = icmp eq i64 %niter141.next.1, %unroll_iter140
  br i1 %niter141.ncmp.1, label %._crit_edge.us98.us.preheader.unr-lcssa, label %.preheader83.us92.us.new, !llvm.loop !31

._crit_edge.us98.us.preheader.unr-lcssa:          ; preds = %.preheader83.us92.us.new, %.preheader83.us92.us
  %.085.us94.us.unr = phi i64 [ 0, %.preheader83.us92.us ], [ %106, %.preheader83.us92.us.new ]
  br i1 %lcmp.mod139.not, label %._crit_edge.us98.us.preheader, label %._crit_edge.us98.us.preheader.epilog-lcssa

._crit_edge.us98.us.preheader.epilog-lcssa:       ; preds = %._crit_edge.us98.us.preheader.unr-lcssa
  %107 = load ptr, ptr %30, align 8, !tbaa !26
  %108 = getelementptr inbounds ptr, ptr %107, i64 %.07890.us93.us
  %109 = load ptr, ptr %108, align 8, !tbaa !27
  %110 = getelementptr inbounds double, ptr %109, i64 %.085.us94.us.unr
  %111 = load double, ptr %110, align 8, !tbaa !28
  %112 = load ptr, ptr %31, align 8, !tbaa !26
  %113 = getelementptr inbounds double, ptr %112, i64 %.085.us94.us.unr
  store double %111, ptr %113, align 8, !tbaa !28
  br label %._crit_edge.us98.us.preheader

._crit_edge.us98.us.preheader:                    ; preds = %._crit_edge.us98.us.preheader.unr-lcssa, %._crit_edge.us98.us.preheader.epilog-lcssa
  br i1 %72, label %..loopexit_crit_edge.us.us.unr-lcssa, label %._crit_edge.us98.us

..loopexit_crit_edge.us.us.unr-lcssa:             ; preds = %._crit_edge.us98.us, %._crit_edge.us98.us.preheader
  %.187.us.us.unr = phi i64 [ 0, %._crit_edge.us98.us.preheader ], [ %90, %._crit_edge.us98.us ]
  br i1 %lcmp.mod143.not, label %..loopexit_crit_edge.us.us, label %._crit_edge.us98.us.epil

._crit_edge.us98.us.epil:                         ; preds = %..loopexit_crit_edge.us.us.unr-lcssa
  %114 = load ptr, ptr %30, align 8, !tbaa !26
  %115 = getelementptr inbounds ptr, ptr %114, i64 %.07890.us93.us
  %116 = load ptr, ptr %115, align 8, !tbaa !27
  %117 = getelementptr double, ptr %116, i64 %10
  %118 = getelementptr double, ptr %117, i64 %.187.us.us.unr
  %119 = load double, ptr %118, align 8, !tbaa !28
  %120 = load ptr, ptr %32, align 8, !tbaa !26
  %121 = getelementptr inbounds double, ptr %120, i64 %.187.us.us.unr
  store double %119, ptr %121, align 8, !tbaa !28
  br label %..loopexit_crit_edge.us.us

..loopexit_crit_edge.us.us:                       ; preds = %..loopexit_crit_edge.us.us.unr-lcssa, %._crit_edge.us98.us.epil
  call void @_ZN11alglib_implL19knn_processinternalEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef %4)
  call void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %33, ptr noundef nonnull %8, ptr noundef %4)
  %122 = add nuw nsw i64 %.07890.us93.us, 1
  %exitcond117.not = icmp eq i64 %122, %2
  br i1 %exitcond117.not, label %._crit_edge91, label %.preheader83.us92.us, !llvm.loop !29

.preheader83.us92:                                ; preds = %.preheader83.us92.preheader, %._crit_edge.us98
  %.07890.us93 = phi i64 [ %146, %._crit_edge.us98 ], [ 0, %.preheader83.us92.preheader ]
  br i1 %70, label %._crit_edge.us98.unr-lcssa, label %.preheader83.us92.new

.preheader83.us92.new:                            ; preds = %.preheader83.us92, %.preheader83.us92.new
  %.085.us94 = phi i64 [ %138, %.preheader83.us92.new ], [ 0, %.preheader83.us92 ]
  %niter136 = phi i64 [ %niter136.next.1, %.preheader83.us92.new ], [ 0, %.preheader83.us92 ]
  %123 = load ptr, ptr %30, align 8, !tbaa !26
  %124 = getelementptr inbounds ptr, ptr %123, i64 %.07890.us93
  %125 = load ptr, ptr %124, align 8, !tbaa !27
  %126 = getelementptr inbounds double, ptr %125, i64 %.085.us94
  %127 = load double, ptr %126, align 8, !tbaa !28
  %128 = load ptr, ptr %31, align 8, !tbaa !26
  %129 = getelementptr inbounds double, ptr %128, i64 %.085.us94
  store double %127, ptr %129, align 8, !tbaa !28
  %130 = or disjoint i64 %.085.us94, 1
  %131 = load ptr, ptr %30, align 8, !tbaa !26
  %132 = getelementptr inbounds ptr, ptr %131, i64 %.07890.us93
  %133 = load ptr, ptr %132, align 8, !tbaa !27
  %134 = getelementptr inbounds double, ptr %133, i64 %130
  %135 = load double, ptr %134, align 8, !tbaa !28
  %136 = load ptr, ptr %31, align 8, !tbaa !26
  %137 = getelementptr inbounds double, ptr %136, i64 %130
  store double %135, ptr %137, align 8, !tbaa !28
  %138 = add nuw nsw i64 %.085.us94, 2
  %niter136.next.1 = add i64 %niter136, 2
  %niter136.ncmp.1 = icmp eq i64 %niter136.next.1, %unroll_iter135
  br i1 %niter136.ncmp.1, label %._crit_edge.us98.unr-lcssa, label %.preheader83.us92.new, !llvm.loop !31

._crit_edge.us98.unr-lcssa:                       ; preds = %.preheader83.us92.new, %.preheader83.us92
  %.085.us94.unr = phi i64 [ 0, %.preheader83.us92 ], [ %138, %.preheader83.us92.new ]
  br i1 %lcmp.mod134.not, label %._crit_edge.us98, label %._crit_edge.us98.epilog-lcssa

._crit_edge.us98.epilog-lcssa:                    ; preds = %._crit_edge.us98.unr-lcssa
  %139 = load ptr, ptr %30, align 8, !tbaa !26
  %140 = getelementptr inbounds ptr, ptr %139, i64 %.07890.us93
  %141 = load ptr, ptr %140, align 8, !tbaa !27
  %142 = getelementptr inbounds double, ptr %141, i64 %.085.us94.unr
  %143 = load double, ptr %142, align 8, !tbaa !28
  %144 = load ptr, ptr %31, align 8, !tbaa !26
  %145 = getelementptr inbounds double, ptr %144, i64 %.085.us94.unr
  store double %143, ptr %145, align 8, !tbaa !28
  br label %._crit_edge.us98

._crit_edge.us98:                                 ; preds = %._crit_edge.us98.unr-lcssa, %._crit_edge.us98.epilog-lcssa
  call void @_ZN11alglib_implL19knn_processinternalEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef %4)
  call void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %33, ptr noundef nonnull %8, ptr noundef %4)
  %146 = add nuw nsw i64 %.07890.us93, 1
  %exitcond114.not = icmp eq i64 %146, %2
  br i1 %exitcond114.not, label %._crit_edge91, label %.preheader83.us92, !llvm.loop !29

.preheader83.lr.ph.split.split:                   ; preds = %.preheader83.lr.ph.split
  br i1 %.not.not8286, label %.preheader83.us99.preheader, label %.preheader83

.preheader83.us99.preheader:                      ; preds = %.preheader83.lr.ph.split.split
  %xtraiter = and i64 %12, 1
  %147 = icmp eq i64 %12, 1
  %unroll_iter = and i64 %12, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader83.us99

.preheader83.us99:                                ; preds = %.preheader83.us99.preheader, %..loopexit_crit_edge.us106
  %.07890.us100 = phi i64 [ %174, %..loopexit_crit_edge.us106 ], [ 0, %.preheader83.us99.preheader ]
  br i1 %147, label %..loopexit_crit_edge.us106.unr-lcssa, label %.preheader83.us99.new

.preheader83.us99.new:                            ; preds = %.preheader83.us99, %.preheader83.us99.new
  %.187.us101 = phi i64 [ %165, %.preheader83.us99.new ], [ 0, %.preheader83.us99 ]
  %niter = phi i64 [ %niter.next.1, %.preheader83.us99.new ], [ 0, %.preheader83.us99 ]
  %148 = load ptr, ptr %30, align 8, !tbaa !26
  %149 = getelementptr inbounds ptr, ptr %148, i64 %.07890.us100
  %150 = load ptr, ptr %149, align 8, !tbaa !27
  %151 = getelementptr double, ptr %150, i64 %10
  %152 = getelementptr double, ptr %151, i64 %.187.us101
  %153 = load double, ptr %152, align 8, !tbaa !28
  %154 = load ptr, ptr %32, align 8, !tbaa !26
  %155 = getelementptr inbounds double, ptr %154, i64 %.187.us101
  store double %153, ptr %155, align 8, !tbaa !28
  %156 = or disjoint i64 %.187.us101, 1
  %157 = load ptr, ptr %30, align 8, !tbaa !26
  %158 = getelementptr inbounds ptr, ptr %157, i64 %.07890.us100
  %159 = load ptr, ptr %158, align 8, !tbaa !27
  %160 = getelementptr double, ptr %159, i64 %10
  %161 = getelementptr double, ptr %160, i64 %156
  %162 = load double, ptr %161, align 8, !tbaa !28
  %163 = load ptr, ptr %32, align 8, !tbaa !26
  %164 = getelementptr inbounds double, ptr %163, i64 %156
  store double %162, ptr %164, align 8, !tbaa !28
  %165 = add nuw nsw i64 %.187.us101, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %..loopexit_crit_edge.us106.unr-lcssa, label %.preheader83.us99.new, !llvm.loop !32

..loopexit_crit_edge.us106.unr-lcssa:             ; preds = %.preheader83.us99.new, %.preheader83.us99
  %.187.us101.unr = phi i64 [ 0, %.preheader83.us99 ], [ %165, %.preheader83.us99.new ]
  br i1 %lcmp.mod.not, label %..loopexit_crit_edge.us106, label %..loopexit_crit_edge.us106.epilog-lcssa

..loopexit_crit_edge.us106.epilog-lcssa:          ; preds = %..loopexit_crit_edge.us106.unr-lcssa
  %166 = load ptr, ptr %30, align 8, !tbaa !26
  %167 = getelementptr inbounds ptr, ptr %166, i64 %.07890.us100
  %168 = load ptr, ptr %167, align 8, !tbaa !27
  %169 = getelementptr double, ptr %168, i64 %10
  %170 = getelementptr double, ptr %169, i64 %.187.us101.unr
  %171 = load double, ptr %170, align 8, !tbaa !28
  %172 = load ptr, ptr %32, align 8, !tbaa !26
  %173 = getelementptr inbounds double, ptr %172, i64 %.187.us101.unr
  store double %171, ptr %173, align 8, !tbaa !28
  br label %..loopexit_crit_edge.us106

..loopexit_crit_edge.us106:                       ; preds = %..loopexit_crit_edge.us106.unr-lcssa, %..loopexit_crit_edge.us106.epilog-lcssa
  call void @_ZN11alglib_implL19knn_processinternalEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef %4)
  call void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %33, ptr noundef nonnull %8, ptr noundef %4)
  %174 = add nuw nsw i64 %.07890.us100, 1
  %exitcond112.not = icmp eq i64 %174, %2
  br i1 %exitcond112.not, label %._crit_edge91, label %.preheader83.us99, !llvm.loop !29

.preheader83:                                     ; preds = %.preheader83.lr.ph.split.split, %.preheader83
  %.07890 = phi i64 [ %175, %.preheader83 ], [ 0, %.preheader83.lr.ph.split.split ]
  call void @_ZN11alglib_implL19knn_processinternalEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %7, ptr noundef %4)
  call void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef nonnull %33, ptr noundef nonnull %8, ptr noundef %4)
  %175 = add nuw nsw i64 %.07890, 1
  %exitcond.not = icmp eq i64 %175, %2
  br i1 %exitcond.not, label %._crit_edge91, label %.preheader83, !llvm.loop !29

._crit_edge91:                                    ; preds = %.preheader83, %..loopexit_crit_edge.us106, %._crit_edge.us98, %..loopexit_crit_edge.us.us, %._crit_edge.us, %28
  call void @_ZN11alglib_impl11dserrfinishEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %9, ptr noundef %4)
  %176 = getelementptr inbounds i8, ptr %9, i64 56
  %177 = load ptr, ptr %176, align 8, !tbaa !26
  br i1 %15, label %178, label %._crit_edge91._crit_edge

178:                                              ; preds = %._crit_edge91
  %179 = load double, ptr %177, align 8, !tbaa !28
  store double %179, ptr %3, align 8, !tbaa !33
  %180 = getelementptr inbounds i8, ptr %177, i64 8
  %181 = load double, ptr %180, align 8, !tbaa !28
  %182 = getelementptr inbounds i8, ptr %3, i64 8
  store double %181, ptr %182, align 8, !tbaa !35
  br label %._crit_edge91._crit_edge

._crit_edge91._crit_edge:                         ; preds = %._crit_edge91, %178
  %183 = getelementptr inbounds i8, ptr %177, i64 16
  %184 = load double, ptr %183, align 8, !tbaa !28
  %185 = getelementptr inbounds i8, ptr %3, i64 16
  store double %184, ptr %185, align 8, !tbaa !36
  %186 = getelementptr inbounds i8, ptr %177, i64 24
  %187 = load double, ptr %186, align 8, !tbaa !28
  %188 = getelementptr inbounds i8, ptr %3, i64 24
  store double %187, ptr %188, align 8, !tbaa !37
  %189 = getelementptr inbounds i8, ptr %177, i64 32
  %190 = load double, ptr %189, align 8, !tbaa !28
  %191 = getelementptr inbounds i8, ptr %3, i64 32
  store double %190, ptr %191, align 8, !tbaa !38
  br label %192

192:                                              ; preds = %5, %._crit_edge91._crit_edge
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 832, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret void
}

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl13dserrallocateElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15dserraccumulateEPNS_9ae_vectorES1_S1_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef i64 @_ZN11alglib_impl8ae_roundEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl11dserrfinishEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN11alglib_impl20apservisfinitematrixEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef, i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl16_knnreport_clearEPv(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN11alglib_implL15knn_clearreportEPNS_9knnreportEPNS_8ae_stateE(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL19knn_processinternalEPNS_8knnmodelEPNS_9knnbufferEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN11alglib_impl8knnmodelE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 32, !11, i64 33, !12, i64 40, !18, i64 1040}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"_ZTSN11alglib_impl6kdtreeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !13, i64 32, !16, i64 112, !16, i64 176, !16, i64 240, !16, i64 304, !16, i64 368, !17, i64 432, !7, i64 992}
!13 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !14, i64 40, !8, i64 72}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !11, i64 16, !14, i64 24, !8, i64 56}
!17 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !16, i64 0, !16, i64 64, !16, i64 128, !7, i64 192, !10, i64 200, !11, i64 208, !10, i64 216, !7, i64 224, !16, i64 232, !16, i64 296, !16, i64 360, !16, i64 424, !16, i64 488, !10, i64 552}
!18 = !{!"_ZTSN11alglib_impl9knnbufferE", !17, i64 0, !16, i64 560, !16, i64 624, !16, i64 688, !13, i64 752}
!19 = !{!6, !7, i64 8}
!20 = !{!6, !11, i64 32}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!13, !7, i64 0}
!24 = !{!13, !7, i64 8}
!25 = !{!6, !11, i64 33}
!26 = !{!8, !8, i64 0}
!27 = !{!15, !15, i64 0}
!28 = !{!10, !10, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = !{!34, !10, i64 0}
!34 = !{!"_ZTSN11alglib_impl9knnreportE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!35 = !{!34, !10, i64 8}
!36 = !{!34, !10, i64 16}
!37 = !{!34, !10, i64 24}
!38 = !{!34, !10, i64 32}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass