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

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

@_ZN11alglib_implL10rbfv1_mxnxE = external hidden global i64, align 8
@.str.765 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.766 = external hidden unnamed_addr constant [31 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) #2

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

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

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

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

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

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15rbfv1buildmodelEPNS_9ae_matrixES1_lllldddddlPNS_10rbfv1modelEPNS_11rbfv1reportEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %10, i64 noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) #3 {
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca i64, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca %"struct.alglib_impl::ae_frame", align 8
  %32 = alloca %"struct.alglib_impl::kdtree", align 8
  %33 = alloca %"struct.alglib_impl::kdtree", align 8
  %34 = alloca %"struct.alglib_impl::ae_vector", align 8
  %35 = alloca %"struct.alglib_impl::ae_vector", align 8
  %36 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %37 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %38 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %39 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %40 = alloca %"struct.alglib_impl::ae_vector", align 8
  %41 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %42 = alloca i64, align 8
  %43 = alloca double, align 8
  %44 = alloca %"struct.alglib_impl::ae_vector", align 8
  %45 = alloca %"struct.alglib_impl::ae_vector", align 8
  %46 = alloca i64, align 8
  %47 = alloca i64, align 8
  %48 = alloca i64, align 8
  %49 = alloca i64, align 8
  %50 = alloca %"struct.alglib_impl::ae_vector", align 8
  %51 = alloca %"struct.alglib_impl::ae_vector", align 8
  %52 = alloca i64, align 8
  %53 = alloca i8, align 1
  %54 = alloca i32, align 4
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store i64 %2, ptr %18, align 8, !tbaa !9
  store i64 %3, ptr %19, align 8, !tbaa !9
  store i64 %4, ptr %20, align 8, !tbaa !9
  store i64 %5, ptr %21, align 8, !tbaa !9
  store double %6, ptr %22, align 8, !tbaa !11
  store double %7, ptr %23, align 8, !tbaa !11
  store double %8, ptr %24, align 8, !tbaa !11
  store double %9, ptr %25, align 8, !tbaa !11
  store double %10, ptr %26, align 8, !tbaa !11
  store i64 %11, ptr %27, align 8, !tbaa !9
  store ptr %12, ptr %28, align 8, !tbaa !5
  store ptr %13, ptr %29, align 8, !tbaa !5
  store ptr %14, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 1000, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 1000, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %45) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %50) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %51) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #4
  %55 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %55, ptr noundef %31)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 1000, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 1000, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %35, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %38, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %39, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %40, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %41, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %50, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %51, i8 0, i64 64, i1 false)
  %56 = load ptr, ptr %29, align 8, !tbaa !5
  call void @_ZN11alglib_impl18_rbfv1report_clearEPv(ptr noundef %56)
  %57 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl12_kdtree_initEPvPNS_8ae_stateEb(ptr noundef %32, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl12_kdtree_initEPvPNS_8ae_stateEb(ptr noundef %33, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %34, i64 noundef 0, i64 noundef 3, ptr noundef %59, i1 noundef zeroext true)
  %60 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %35, i64 noundef 0, i64 noundef 3, ptr noundef %60, i1 noundef zeroext true)
  %61 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %36, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %61, i1 noundef zeroext true)
  %62 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %37, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %62, i1 noundef zeroext true)
  %63 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %38, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %63, i1 noundef zeroext true)
  %64 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %39, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %64, i1 noundef zeroext true)
  %65 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %40, i64 noundef 0, i64 noundef 3, ptr noundef %65, i1 noundef zeroext true)
  %66 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef %41, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %66, i1 noundef zeroext true)
  %67 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %44, i64 noundef 0, i64 noundef 2, ptr noundef %67, i1 noundef zeroext true)
  %68 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %45, i64 noundef 0, i64 noundef 2, ptr noundef %68, i1 noundef zeroext true)
  %69 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %50, i64 noundef 0, i64 noundef 3, ptr noundef %69, i1 noundef zeroext true)
  %70 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %51, i64 noundef 0, i64 noundef 3, ptr noundef %70, i1 noundef zeroext true)
  %71 = load ptr, ptr %28, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %71, i32 0, i32 1
  %73 = load i64, ptr %72, align 8, !tbaa !13
  %74 = icmp eq i64 %73, 2
  br i1 %74, label %80, label %75

75:                                               ; preds = %15
  %76 = load ptr, ptr %28, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !13
  %79 = icmp eq i64 %78, 3
  br label %80

80:                                               ; preds = %75, %15
  %81 = phi i1 [ true, %15 ], [ %79, %75 ]
  %82 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %81, ptr noundef @.str.765, ptr noundef %82)
  %83 = load i64, ptr %18, align 8, !tbaa !9
  %84 = icmp eq i64 %83, 0
  br i1 %84, label %85, label %151

85:                                               ; preds = %80
  %86 = load ptr, ptr %29, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %86, i32 0, i32 5
  store i64 1, ptr %87, align 8, !tbaa !21
  %88 = load ptr, ptr %29, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %88, i32 0, i32 3
  store i64 0, ptr %89, align 8, !tbaa !23
  %90 = load ptr, ptr %29, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %90, i32 0, i32 4
  store i64 0, ptr %91, align 8, !tbaa !24
  %92 = load ptr, ptr %29, align 8, !tbaa !5
  %93 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %92, i32 0, i32 0
  store i64 0, ptr %93, align 8, !tbaa !25
  %94 = load ptr, ptr %29, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %94, i32 0, i32 1
  store i64 0, ptr %95, align 8, !tbaa !26
  %96 = load ptr, ptr %28, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %96, i32 0, i32 5
  %98 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %99 = load ptr, ptr %28, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %99, i32 0, i32 4
  %101 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef %97, ptr noundef %44, i64 noundef 0, i64 noundef %98, i64 noundef 0, i64 noundef 2, ptr noundef %100, ptr noundef %101)
  %102 = load ptr, ptr %28, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %102, i32 0, i32 5
  %104 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %103, i64 noundef 0, i64 noundef 0, ptr noundef %104)
  %105 = load ptr, ptr %28, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %105, i32 0, i32 6
  %107 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %106, i64 noundef 0, i64 noundef 0, ptr noundef %107)
  %108 = load ptr, ptr %28, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %108, i32 0, i32 2
  store i64 0, ptr %109, align 8, !tbaa !27
  %110 = load ptr, ptr %28, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %110, i32 0, i32 7
  store double 0.000000e+00, ptr %111, align 8, !tbaa !28
  %112 = load ptr, ptr %28, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %112, i32 0, i32 8
  %114 = load ptr, ptr %28, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %114, i32 0, i32 0
  %116 = load i64, ptr %115, align 8, !tbaa !29
  %117 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %118 = add nsw i64 %117, 1
  %119 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %113, i64 noundef %116, i64 noundef %118, ptr noundef %119)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %146, %85
  %121 = load i64, ptr %46, align 8, !tbaa !9
  %122 = load ptr, ptr %28, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %122, i32 0, i32 0
  %124 = load i64, ptr %123, align 8, !tbaa !29
  %125 = sub nsw i64 %124, 1
  %126 = icmp sle i64 %121, %125
  br i1 %126, label %127, label %149

127:                                              ; preds = %120
  store i64 0, ptr %47, align 8, !tbaa !9
  br label %128

128:                                              ; preds = %142, %127
  %129 = load i64, ptr %47, align 8, !tbaa !9
  %130 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %131 = icmp sle i64 %129, %130
  br i1 %131, label %132, label %145

132:                                              ; preds = %128
  %133 = load ptr, ptr %28, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %133, i32 0, i32 8
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %134, i32 0, i32 6
  %136 = load ptr, ptr %135, align 8, !tbaa !30
  %137 = load i64, ptr %46, align 8, !tbaa !9
  %138 = getelementptr inbounds ptr, ptr %136, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load i64, ptr %47, align 8, !tbaa !9
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  store double 0.000000e+00, ptr %141, align 8, !tbaa !11
  br label %142

142:                                              ; preds = %132
  %143 = load i64, ptr %47, align 8, !tbaa !9
  %144 = add nsw i64 %143, 1
  store i64 %144, ptr %47, align 8, !tbaa !9
  br label %128, !llvm.loop !31

145:                                              ; preds = %128
  br label %146

146:                                              ; preds = %145
  %147 = load i64, ptr %46, align 8, !tbaa !9
  %148 = add nsw i64 %147, 1
  store i64 %148, ptr %46, align 8, !tbaa !9
  br label %120, !llvm.loop !33

149:                                              ; preds = %120
  %150 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %150)
  store i32 1, ptr %54, align 4
  br label %831

151:                                              ; preds = %80
  %152 = load ptr, ptr %29, align 8, !tbaa !5
  %153 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %152, i32 0, i32 2
  store i64 0, ptr %153, align 8, !tbaa !34
  %154 = load ptr, ptr %29, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %154, i32 0, i32 3
  store i64 0, ptr %155, align 8, !tbaa !23
  %156 = load ptr, ptr %29, align 8, !tbaa !5
  %157 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %156, i32 0, i32 4
  store i64 0, ptr %157, align 8, !tbaa !24
  %158 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %159 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %35, i64 noundef %158, ptr noundef %159)
  %160 = load i64, ptr %18, align 8, !tbaa !9
  %161 = load ptr, ptr %28, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %161, i32 0, i32 0
  %163 = load i64, ptr %162, align 8, !tbaa !29
  %164 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %39, i64 noundef %160, i64 noundef %163, ptr noundef %164)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %165

165:                                              ; preds = %199, %151
  %166 = load i64, ptr %46, align 8, !tbaa !9
  %167 = load i64, ptr %18, align 8, !tbaa !9
  %168 = sub nsw i64 %167, 1
  %169 = icmp sle i64 %166, %168
  br i1 %169, label %170, label %202

170:                                              ; preds = %165
  store i64 0, ptr %47, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %195, %170
  %172 = load i64, ptr %47, align 8, !tbaa !9
  %173 = load ptr, ptr %28, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %173, i32 0, i32 0
  %175 = load i64, ptr %174, align 8, !tbaa !29
  %176 = sub nsw i64 %175, 1
  %177 = icmp sle i64 %172, %176
  br i1 %177, label %178, label %198

178:                                              ; preds = %171
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %179, i32 0, i32 6
  %181 = load ptr, ptr %180, align 8, !tbaa !30
  %182 = load i64, ptr %46, align 8, !tbaa !9
  %183 = getelementptr inbounds ptr, ptr %181, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = load i64, ptr %47, align 8, !tbaa !9
  %186 = getelementptr inbounds double, ptr %184, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %39, i32 0, i32 6
  %189 = load ptr, ptr %188, align 8, !tbaa !30
  %190 = load i64, ptr %46, align 8, !tbaa !9
  %191 = getelementptr inbounds ptr, ptr %189, i64 %190
  %192 = load ptr, ptr %191, align 8, !tbaa !5
  %193 = load i64, ptr %47, align 8, !tbaa !9
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  store double %187, ptr %194, align 8, !tbaa !11
  br label %195

195:                                              ; preds = %178
  %196 = load i64, ptr %47, align 8, !tbaa !9
  %197 = add nsw i64 %196, 1
  store i64 %197, ptr %47, align 8, !tbaa !9
  br label %171, !llvm.loop !35

198:                                              ; preds = %171
  br label %199

199:                                              ; preds = %198
  %200 = load i64, ptr %46, align 8, !tbaa !9
  %201 = add nsw i64 %200, 1
  store i64 %201, ptr %46, align 8, !tbaa !9
  br label %165, !llvm.loop !36

202:                                              ; preds = %165
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  %204 = load i64, ptr %18, align 8, !tbaa !9
  %205 = load ptr, ptr %28, align 8, !tbaa !5
  %206 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %205, i32 0, i32 0
  %207 = load i64, ptr %206, align 8, !tbaa !29
  %208 = load i64, ptr %19, align 8, !tbaa !9
  %209 = load ptr, ptr %30, align 8, !tbaa !5
  %210 = call noundef zeroext i1 @_ZN11alglib_implL27rbfv1_rbfv1buildlinearmodelEPNS_9ae_matrixES1_lllS1_PNS_8ae_stateE(ptr noundef %203, ptr noundef %39, i64 noundef %204, i64 noundef %207, i64 noundef %208, ptr noundef %37, ptr noundef %209)
  br i1 %210, label %215, label %211

211:                                              ; preds = %202
  %212 = load ptr, ptr %29, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %212, i32 0, i32 5
  store i64 -5, ptr %213, align 8, !tbaa !21
  %214 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %214)
  store i32 1, ptr %54, align 4
  br label %831

215:                                              ; preds = %202
  %216 = load i64, ptr %20, align 8, !tbaa !9
  %217 = icmp eq i64 %216, 2
  br i1 %217, label %218, label %295

218:                                              ; preds = %215
  %219 = load i64, ptr %21, align 8, !tbaa !9
  %220 = icmp eq i64 %219, 0
  br i1 %220, label %221, label %295

221:                                              ; preds = %218
  %222 = load ptr, ptr %29, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %222, i32 0, i32 5
  store i64 1, ptr %223, align 8, !tbaa !21
  %224 = load ptr, ptr %29, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %224, i32 0, i32 3
  store i64 0, ptr %225, align 8, !tbaa !23
  %226 = load ptr, ptr %29, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %226, i32 0, i32 4
  store i64 0, ptr %227, align 8, !tbaa !24
  %228 = load ptr, ptr %29, align 8, !tbaa !5
  %229 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %228, i32 0, i32 0
  store i64 0, ptr %229, align 8, !tbaa !25
  %230 = load ptr, ptr %29, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %230, i32 0, i32 1
  store i64 0, ptr %231, align 8, !tbaa !26
  %232 = load ptr, ptr %28, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %232, i32 0, i32 5
  %234 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %235 = load ptr, ptr %28, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %235, i32 0, i32 4
  %237 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef %233, ptr noundef %44, i64 noundef 0, i64 noundef %234, i64 noundef 0, i64 noundef 2, ptr noundef %236, ptr noundef %237)
  %238 = load ptr, ptr %28, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %238, i32 0, i32 5
  %240 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %239, i64 noundef 0, i64 noundef 0, ptr noundef %240)
  %241 = load ptr, ptr %28, align 8, !tbaa !5
  %242 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %241, i32 0, i32 6
  %243 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %242, i64 noundef 0, i64 noundef 0, ptr noundef %243)
  %244 = load ptr, ptr %28, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %244, i32 0, i32 2
  store i64 0, ptr %245, align 8, !tbaa !27
  %246 = load ptr, ptr %28, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %246, i32 0, i32 7
  store double 0.000000e+00, ptr %247, align 8, !tbaa !28
  %248 = load ptr, ptr %28, align 8, !tbaa !5
  %249 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %248, i32 0, i32 8
  %250 = load ptr, ptr %28, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %250, i32 0, i32 0
  %252 = load i64, ptr %251, align 8, !tbaa !29
  %253 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %254 = add nsw i64 %253, 1
  %255 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %249, i64 noundef %252, i64 noundef %254, ptr noundef %255)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %256

256:                                              ; preds = %290, %221
  %257 = load i64, ptr %46, align 8, !tbaa !9
  %258 = load ptr, ptr %28, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %258, i32 0, i32 0
  %260 = load i64, ptr %259, align 8, !tbaa !29
  %261 = sub nsw i64 %260, 1
  %262 = icmp sle i64 %257, %261
  br i1 %262, label %263, label %293

263:                                              ; preds = %256
  store i64 0, ptr %47, align 8, !tbaa !9
  br label %264

264:                                              ; preds = %286, %263
  %265 = load i64, ptr %47, align 8, !tbaa !9
  %266 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %267 = icmp sle i64 %265, %266
  br i1 %267, label %268, label %289

268:                                              ; preds = %264
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %270 = load ptr, ptr %269, align 8, !tbaa !30
  %271 = load i64, ptr %46, align 8, !tbaa !9
  %272 = getelementptr inbounds ptr, ptr %270, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  %274 = load i64, ptr %47, align 8, !tbaa !9
  %275 = getelementptr inbounds double, ptr %273, i64 %274
  %276 = load double, ptr %275, align 8, !tbaa !11
  %277 = load ptr, ptr %28, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %277, i32 0, i32 8
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %278, i32 0, i32 6
  %280 = load ptr, ptr %279, align 8, !tbaa !30
  %281 = load i64, ptr %46, align 8, !tbaa !9
  %282 = getelementptr inbounds ptr, ptr %280, i64 %281
  %283 = load ptr, ptr %282, align 8, !tbaa !5
  %284 = load i64, ptr %47, align 8, !tbaa !9
  %285 = getelementptr inbounds double, ptr %283, i64 %284
  store double %276, ptr %285, align 8, !tbaa !11
  br label %286

286:                                              ; preds = %268
  %287 = load i64, ptr %47, align 8, !tbaa !9
  %288 = add nsw i64 %287, 1
  store i64 %288, ptr %47, align 8, !tbaa !9
  br label %264, !llvm.loop !37

289:                                              ; preds = %264
  br label %290

290:                                              ; preds = %289
  %291 = load i64, ptr %46, align 8, !tbaa !9
  %292 = add nsw i64 %291, 1
  store i64 %292, ptr %46, align 8, !tbaa !9
  br label %256, !llvm.loop !38

293:                                              ; preds = %256
  %294 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %294)
  store i32 1, ptr %54, align 4
  br label %831

295:                                              ; preds = %218, %215
  store i64 0, ptr %42, align 8, !tbaa !9
  store double 0.000000e+00, ptr %43, align 8, !tbaa !11
  store i64 0, ptr %52, align 8, !tbaa !9
  store i8 0, ptr %53, align 1, !tbaa !39
  %296 = load i64, ptr %20, align 8, !tbaa !9
  %297 = icmp eq i64 %296, 1
  br i1 %297, label %298, label %562

298:                                              ; preds = %295
  %299 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %299, ptr %42, align 8, !tbaa !9
  %300 = load i64, ptr %42, align 8, !tbaa !9
  %301 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %302 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %41, i64 noundef %300, i64 noundef %301, ptr noundef %302)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %303

303:                                              ; preds = %335, %298
  %304 = load i64, ptr %46, align 8, !tbaa !9
  %305 = load i64, ptr %42, align 8, !tbaa !9
  %306 = sub nsw i64 %305, 1
  %307 = icmp sle i64 %304, %306
  br i1 %307, label %308, label %338

308:                                              ; preds = %303
  store i64 0, ptr %47, align 8, !tbaa !9
  br label %309

309:                                              ; preds = %331, %308
  %310 = load i64, ptr %47, align 8, !tbaa !9
  %311 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %312 = sub nsw i64 %311, 1
  %313 = icmp sle i64 %310, %312
  br i1 %313, label %314, label %334

314:                                              ; preds = %309
  %315 = load ptr, ptr %16, align 8, !tbaa !5
  %316 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %315, i32 0, i32 6
  %317 = load ptr, ptr %316, align 8, !tbaa !30
  %318 = load i64, ptr %46, align 8, !tbaa !9
  %319 = getelementptr inbounds ptr, ptr %317, i64 %318
  %320 = load ptr, ptr %319, align 8, !tbaa !5
  %321 = load i64, ptr %47, align 8, !tbaa !9
  %322 = getelementptr inbounds double, ptr %320, i64 %321
  %323 = load double, ptr %322, align 8, !tbaa !11
  %324 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %41, i32 0, i32 6
  %325 = load ptr, ptr %324, align 8, !tbaa !30
  %326 = load i64, ptr %46, align 8, !tbaa !9
  %327 = getelementptr inbounds ptr, ptr %325, i64 %326
  %328 = load ptr, ptr %327, align 8, !tbaa !5
  %329 = load i64, ptr %47, align 8, !tbaa !9
  %330 = getelementptr inbounds double, ptr %328, i64 %329
  store double %323, ptr %330, align 8, !tbaa !11
  br label %331

331:                                              ; preds = %314
  %332 = load i64, ptr %47, align 8, !tbaa !9
  %333 = add nsw i64 %332, 1
  store i64 %333, ptr %47, align 8, !tbaa !9
  br label %309, !llvm.loop !40

334:                                              ; preds = %309
  br label %335

335:                                              ; preds = %334
  %336 = load i64, ptr %46, align 8, !tbaa !9
  %337 = add nsw i64 %336, 1
  store i64 %337, ptr %46, align 8, !tbaa !9
  br label %303, !llvm.loop !41

338:                                              ; preds = %303
  store double 0.000000e+00, ptr %43, align 8, !tbaa !11
  %339 = load i64, ptr %42, align 8, !tbaa !9
  %340 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %40, i64 noundef %339, ptr noundef %340)
  %341 = load i64, ptr %42, align 8, !tbaa !9
  %342 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %45, i64 noundef %341, ptr noundef %342)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %343

343:                                              ; preds = %354, %338
  %344 = load i64, ptr %46, align 8, !tbaa !9
  %345 = load i64, ptr %42, align 8, !tbaa !9
  %346 = sub nsw i64 %345, 1
  %347 = icmp sle i64 %344, %346
  br i1 %347, label %348, label %357

348:                                              ; preds = %343
  %349 = load i64, ptr %46, align 8, !tbaa !9
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %45, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !30
  %352 = load i64, ptr %46, align 8, !tbaa !9
  %353 = getelementptr inbounds i64, ptr %351, i64 %352
  store i64 %349, ptr %353, align 8, !tbaa !9
  br label %354

354:                                              ; preds = %348
  %355 = load i64, ptr %46, align 8, !tbaa !9
  %356 = add nsw i64 %355, 1
  store i64 %356, ptr %46, align 8, !tbaa !9
  br label %343, !llvm.loop !42

357:                                              ; preds = %343
  %358 = load i64, ptr %42, align 8, !tbaa !9
  %359 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %360 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef %41, ptr noundef %45, i64 noundef %358, i64 noundef %359, i64 noundef 0, i64 noundef 2, ptr noundef %33, ptr noundef %360)
  %361 = load i64, ptr %42, align 8, !tbaa !9
  %362 = icmp eq i64 %361, 0
  br i1 %362, label %363, label %364

363:                                              ; preds = %357
  store double 1.000000e+00, ptr %43, align 8, !tbaa !11
  br label %522

364:                                              ; preds = %357
  %365 = load i64, ptr %42, align 8, !tbaa !9
  %366 = icmp eq i64 %365, 1
  br i1 %366, label %367, label %376

367:                                              ; preds = %364
  %368 = load double, ptr %22, align 8, !tbaa !11
  %369 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %370 = load ptr, ptr %369, align 8, !tbaa !30
  %371 = getelementptr inbounds double, ptr %370, i64 0
  store double %368, ptr %371, align 8, !tbaa !11
  %372 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %373 = load ptr, ptr %372, align 8, !tbaa !30
  %374 = getelementptr inbounds double, ptr %373, i64 0
  %375 = load double, ptr %374, align 8, !tbaa !11
  store double %375, ptr %43, align 8, !tbaa !11
  br label %521

376:                                              ; preds = %364
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %377

377:                                              ; preds = %426, %376
  %378 = load i64, ptr %46, align 8, !tbaa !9
  %379 = load i64, ptr %42, align 8, !tbaa !9
  %380 = sub nsw i64 %379, 1
  %381 = icmp sle i64 %378, %380
  br i1 %381, label %382, label %429

382:                                              ; preds = %377
  store i64 0, ptr %47, align 8, !tbaa !9
  br label %383

383:                                              ; preds = %401, %382
  %384 = load i64, ptr %47, align 8, !tbaa !9
  %385 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %386 = sub nsw i64 %385, 1
  %387 = icmp sle i64 %384, %386
  br i1 %387, label %388, label %404

388:                                              ; preds = %383
  %389 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %41, i32 0, i32 6
  %390 = load ptr, ptr %389, align 8, !tbaa !30
  %391 = load i64, ptr %46, align 8, !tbaa !9
  %392 = getelementptr inbounds ptr, ptr %390, i64 %391
  %393 = load ptr, ptr %392, align 8, !tbaa !5
  %394 = load i64, ptr %47, align 8, !tbaa !9
  %395 = getelementptr inbounds double, ptr %393, i64 %394
  %396 = load double, ptr %395, align 8, !tbaa !11
  %397 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %35, i32 0, i32 4
  %398 = load ptr, ptr %397, align 8, !tbaa !30
  %399 = load i64, ptr %47, align 8, !tbaa !9
  %400 = getelementptr inbounds double, ptr %398, i64 %399
  store double %396, ptr %400, align 8, !tbaa !11
  br label %401

401:                                              ; preds = %388
  %402 = load i64, ptr %47, align 8, !tbaa !9
  %403 = add nsw i64 %402, 1
  store i64 %403, ptr %47, align 8, !tbaa !9
  br label %383, !llvm.loop !43

404:                                              ; preds = %383
  %405 = load ptr, ptr %30, align 8, !tbaa !5
  %406 = call noundef i64 @_ZN11alglib_impl14kdtreequeryknnEPNS_6kdtreeEPNS_9ae_vectorElbPNS_8ae_stateE(ptr noundef %33, ptr noundef %35, i64 noundef 1, i1 noundef zeroext false, ptr noundef %405)
  %407 = icmp sgt i64 %406, 0
  br i1 %407, label %408, label %420

408:                                              ; preds = %404
  %409 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl27kdtreequeryresultsdistancesEPNS_6kdtreeEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef %33, ptr noundef %34, ptr noundef %409)
  %410 = load double, ptr %22, align 8, !tbaa !11
  %411 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %412 = load ptr, ptr %411, align 8, !tbaa !30
  %413 = getelementptr inbounds double, ptr %412, i64 0
  %414 = load double, ptr %413, align 8, !tbaa !11
  %415 = fmul double %410, %414
  %416 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %417 = load ptr, ptr %416, align 8, !tbaa !30
  %418 = load i64, ptr %46, align 8, !tbaa !9
  %419 = getelementptr inbounds double, ptr %417, i64 %418
  store double %415, ptr %419, align 8, !tbaa !11
  br label %425

420:                                              ; preds = %404
  %421 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %422 = load ptr, ptr %421, align 8, !tbaa !30
  %423 = load i64, ptr %46, align 8, !tbaa !9
  %424 = getelementptr inbounds double, ptr %422, i64 %423
  store double 1.000000e+00, ptr %424, align 8, !tbaa !11
  br label %425

425:                                              ; preds = %420, %408
  br label %426

426:                                              ; preds = %425
  %427 = load i64, ptr %46, align 8, !tbaa !9
  %428 = add nsw i64 %427, 1
  store i64 %428, ptr %46, align 8, !tbaa !9
  br label %377, !llvm.loop !44

429:                                              ; preds = %377
  %430 = load i64, ptr %42, align 8, !tbaa !9
  %431 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %50, i64 noundef %430, ptr noundef %431)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %432

432:                                              ; preds = %447, %429
  %433 = load i64, ptr %46, align 8, !tbaa !9
  %434 = load i64, ptr %42, align 8, !tbaa !9
  %435 = sub nsw i64 %434, 1
  %436 = icmp sle i64 %433, %435
  br i1 %436, label %437, label %450

437:                                              ; preds = %432
  %438 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %439 = load ptr, ptr %438, align 8, !tbaa !30
  %440 = load i64, ptr %46, align 8, !tbaa !9
  %441 = getelementptr inbounds double, ptr %439, i64 %440
  %442 = load double, ptr %441, align 8, !tbaa !11
  %443 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %444 = load ptr, ptr %443, align 8, !tbaa !30
  %445 = load i64, ptr %46, align 8, !tbaa !9
  %446 = getelementptr inbounds double, ptr %444, i64 %445
  store double %442, ptr %446, align 8, !tbaa !11
  br label %447

447:                                              ; preds = %437
  %448 = load i64, ptr %46, align 8, !tbaa !9
  %449 = add nsw i64 %448, 1
  store i64 %449, ptr %46, align 8, !tbaa !9
  br label %432, !llvm.loop !45

450:                                              ; preds = %432
  %451 = load i64, ptr %42, align 8, !tbaa !9
  %452 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl11tagsortfastEPNS_9ae_vectorES1_lPNS_8ae_stateE(ptr noundef %50, ptr noundef %51, i64 noundef %451, ptr noundef %452)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %453

453:                                              ; preds = %478, %450
  %454 = load i64, ptr %46, align 8, !tbaa !9
  %455 = load i64, ptr %42, align 8, !tbaa !9
  %456 = sub nsw i64 %455, 1
  %457 = icmp sle i64 %454, %456
  br i1 %457, label %458, label %481

458:                                              ; preds = %453
  %459 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %460 = load ptr, ptr %459, align 8, !tbaa !30
  %461 = load i64, ptr %46, align 8, !tbaa !9
  %462 = getelementptr inbounds double, ptr %460, i64 %461
  %463 = load double, ptr %462, align 8, !tbaa !11
  %464 = load double, ptr %23, align 8, !tbaa !11
  %465 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %50, i32 0, i32 4
  %466 = load ptr, ptr %465, align 8, !tbaa !30
  %467 = load i64, ptr %42, align 8, !tbaa !9
  %468 = sdiv i64 %467, 2
  %469 = getelementptr inbounds double, ptr %466, i64 %468
  %470 = load double, ptr %469, align 8, !tbaa !11
  %471 = fmul double %464, %470
  %472 = load ptr, ptr %30, align 8, !tbaa !5
  %473 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %463, double noundef %471, ptr noundef %472)
  %474 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %475 = load ptr, ptr %474, align 8, !tbaa !30
  %476 = load i64, ptr %46, align 8, !tbaa !9
  %477 = getelementptr inbounds double, ptr %475, i64 %476
  store double %473, ptr %477, align 8, !tbaa !11
  br label %478

478:                                              ; preds = %458
  %479 = load i64, ptr %46, align 8, !tbaa !9
  %480 = add nsw i64 %479, 1
  store i64 %480, ptr %46, align 8, !tbaa !9
  br label %453, !llvm.loop !46

481:                                              ; preds = %453
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %482

482:                                              ; preds = %496, %481
  %483 = load i64, ptr %46, align 8, !tbaa !9
  %484 = load i64, ptr %42, align 8, !tbaa !9
  %485 = sub nsw i64 %484, 1
  %486 = icmp sle i64 %483, %485
  br i1 %486, label %487, label %499

487:                                              ; preds = %482
  %488 = load double, ptr %43, align 8, !tbaa !11
  %489 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %490 = load ptr, ptr %489, align 8, !tbaa !30
  %491 = load i64, ptr %46, align 8, !tbaa !9
  %492 = getelementptr inbounds double, ptr %490, i64 %491
  %493 = load double, ptr %492, align 8, !tbaa !11
  %494 = load ptr, ptr %30, align 8, !tbaa !5
  %495 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %488, double noundef %493, ptr noundef %494)
  store double %495, ptr %43, align 8, !tbaa !11
  br label %496

496:                                              ; preds = %487
  %497 = load i64, ptr %46, align 8, !tbaa !9
  %498 = add nsw i64 %497, 1
  store i64 %498, ptr %46, align 8, !tbaa !9
  br label %482, !llvm.loop !47

499:                                              ; preds = %482
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %500

500:                                              ; preds = %517, %499
  %501 = load i64, ptr %46, align 8, !tbaa !9
  %502 = load i64, ptr %42, align 8, !tbaa !9
  %503 = sub nsw i64 %502, 1
  %504 = icmp sle i64 %501, %503
  br i1 %504, label %505, label %520

505:                                              ; preds = %500
  %506 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %507 = load ptr, ptr %506, align 8, !tbaa !30
  %508 = load i64, ptr %46, align 8, !tbaa !9
  %509 = getelementptr inbounds double, ptr %507, i64 %508
  %510 = load double, ptr %509, align 8, !tbaa !11
  %511 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %510, double noundef 0.000000e+00)
  br i1 %511, label %512, label %516

512:                                              ; preds = %505
  %513 = load ptr, ptr %29, align 8, !tbaa !5
  %514 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %513, i32 0, i32 5
  store i64 -5, ptr %514, align 8, !tbaa !21
  %515 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %515)
  store i32 1, ptr %54, align 4
  br label %831

516:                                              ; preds = %505
  br label %517

517:                                              ; preds = %516
  %518 = load i64, ptr %46, align 8, !tbaa !9
  %519 = add nsw i64 %518, 1
  store i64 %519, ptr %46, align 8, !tbaa !9
  br label %500, !llvm.loop !48

520:                                              ; preds = %500
  br label %521

521:                                              ; preds = %520, %367
  br label %522

522:                                              ; preds = %521, %363
  %523 = load i64, ptr %18, align 8, !tbaa !9
  %524 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %44, i64 noundef %523, ptr noundef %524)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %525

525:                                              ; preds = %536, %522
  %526 = load i64, ptr %46, align 8, !tbaa !9
  %527 = load i64, ptr %18, align 8, !tbaa !9
  %528 = sub nsw i64 %527, 1
  %529 = icmp sle i64 %526, %528
  br i1 %529, label %530, label %539

530:                                              ; preds = %525
  %531 = load i64, ptr %46, align 8, !tbaa !9
  %532 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %533 = load ptr, ptr %532, align 8, !tbaa !30
  %534 = load i64, ptr %46, align 8, !tbaa !9
  %535 = getelementptr inbounds i64, ptr %533, i64 %534
  store i64 %531, ptr %535, align 8, !tbaa !9
  br label %536

536:                                              ; preds = %530
  %537 = load i64, ptr %46, align 8, !tbaa !9
  %538 = add nsw i64 %537, 1
  store i64 %538, ptr %46, align 8, !tbaa !9
  br label %525, !llvm.loop !49

539:                                              ; preds = %525
  %540 = load ptr, ptr %16, align 8, !tbaa !5
  %541 = load i64, ptr %18, align 8, !tbaa !9
  %542 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %543 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef %540, ptr noundef %44, i64 noundef %541, i64 noundef %542, i64 noundef 0, i64 noundef 2, ptr noundef %32, ptr noundef %543)
  %544 = load ptr, ptr %16, align 8, !tbaa !5
  %545 = load i64, ptr %18, align 8, !tbaa !9
  %546 = load i64, ptr %42, align 8, !tbaa !9
  %547 = load ptr, ptr %28, align 8, !tbaa !5
  %548 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %547, i32 0, i32 0
  %549 = load i64, ptr %548, align 8, !tbaa !29
  %550 = load double, ptr %25, align 8, !tbaa !11
  %551 = load double, ptr %26, align 8, !tbaa !11
  %552 = load i64, ptr %27, align 8, !tbaa !9
  %553 = load ptr, ptr %29, align 8, !tbaa !5
  %554 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %553, i32 0, i32 2
  %555 = load ptr, ptr %29, align 8, !tbaa !5
  %556 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %555, i32 0, i32 5
  %557 = load ptr, ptr %29, align 8, !tbaa !5
  %558 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %557, i32 0, i32 3
  %559 = load ptr, ptr %29, align 8, !tbaa !5
  %560 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %559, i32 0, i32 4
  %561 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_implL23rbfv1_buildrbfmodellsqrEPNS_9ae_matrixES1_S1_PNS_9ae_vectorElllPNS_6kdtreeES5_ddlPlS6_S1_S6_S6_S6_PNS_8ae_stateE(ptr noundef %544, ptr noundef %39, ptr noundef %41, ptr noundef %40, i64 noundef %545, i64 noundef %546, i64 noundef %549, ptr noundef %32, ptr noundef %33, double noundef %550, double noundef %551, i64 noundef %552, ptr noundef %554, ptr noundef %49, ptr noundef %38, ptr noundef %556, ptr noundef %558, ptr noundef %560, ptr noundef %561)
  store i64 1, ptr %52, align 8, !tbaa !9
  store i8 1, ptr %53, align 1, !tbaa !39
  br label %562

562:                                              ; preds = %539, %295
  %563 = load i64, ptr %20, align 8, !tbaa !9
  %564 = icmp eq i64 %563, 2
  br i1 %564, label %565, label %585

565:                                              ; preds = %562
  %566 = load double, ptr %22, align 8, !tbaa !11
  store double %566, ptr %43, align 8, !tbaa !11
  %567 = load ptr, ptr %16, align 8, !tbaa !5
  %568 = load double, ptr %22, align 8, !tbaa !11
  %569 = load i64, ptr %18, align 8, !tbaa !9
  %570 = load ptr, ptr %28, align 8, !tbaa !5
  %571 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %570, i32 0, i32 0
  %572 = load i64, ptr %571, align 8, !tbaa !29
  %573 = load i64, ptr %21, align 8, !tbaa !9
  %574 = load double, ptr %24, align 8, !tbaa !11
  %575 = load ptr, ptr %29, align 8, !tbaa !5
  %576 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %575, i32 0, i32 2
  %577 = load ptr, ptr %29, align 8, !tbaa !5
  %578 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %577, i32 0, i32 5
  %579 = load ptr, ptr %29, align 8, !tbaa !5
  %580 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %579, i32 0, i32 3
  %581 = load ptr, ptr %29, align 8, !tbaa !5
  %582 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %581, i32 0, i32 4
  %583 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_implL30rbfv1_buildrbfmlayersmodellsqrEPNS_9ae_matrixES1_S1_dPNS_9ae_vectorElPlllPNS_6kdtreeEddldS4_S1_S4_S4_S4_PNS_8ae_stateE(ptr noundef %567, ptr noundef %39, ptr noundef %41, double noundef %568, ptr noundef %40, i64 noundef %569, ptr noundef %42, i64 noundef %572, i64 noundef %573, ptr noundef %33, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 0x3EB0C6F7A0B5ED8D, i64 noundef 50, double noundef %574, ptr noundef %576, ptr noundef %38, ptr noundef %578, ptr noundef %580, ptr noundef %582, ptr noundef %583)
  %584 = load i64, ptr %21, align 8, !tbaa !9
  store i64 %584, ptr %52, align 8, !tbaa !9
  store i8 1, ptr %53, align 1, !tbaa !39
  br label %585

585:                                              ; preds = %565, %562
  %586 = load i8, ptr %53, align 1, !tbaa !39, !range !50, !noundef !51
  %587 = trunc i8 %586 to i1
  %588 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %587, ptr noundef @.str.766, ptr noundef %588)
  %589 = load ptr, ptr %29, align 8, !tbaa !5
  %590 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %589, i32 0, i32 5
  %591 = load i64, ptr %590, align 8, !tbaa !21
  %592 = icmp sle i64 %591, 0
  br i1 %592, label %593, label %595

593:                                              ; preds = %585
  %594 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %594)
  store i32 1, ptr %54, align 4
  br label %831

595:                                              ; preds = %585
  %596 = load i64, ptr %42, align 8, !tbaa !9
  %597 = load i64, ptr %52, align 8, !tbaa !9
  %598 = sdiv i64 %596, %597
  %599 = load ptr, ptr %28, align 8, !tbaa !5
  %600 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %599, i32 0, i32 2
  store i64 %598, ptr %600, align 8, !tbaa !27
  %601 = load double, ptr %43, align 8, !tbaa !11
  %602 = load ptr, ptr %28, align 8, !tbaa !5
  %603 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %602, i32 0, i32 7
  store double %601, ptr %603, align 8, !tbaa !28
  %604 = load i64, ptr %52, align 8, !tbaa !9
  %605 = load ptr, ptr %28, align 8, !tbaa !5
  %606 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %605, i32 0, i32 3
  store i64 %604, ptr %606, align 8, !tbaa !52
  %607 = load ptr, ptr %28, align 8, !tbaa !5
  %608 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %607, i32 0, i32 5
  %609 = load ptr, ptr %28, align 8, !tbaa !5
  %610 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %609, i32 0, i32 2
  %611 = load i64, ptr %610, align 8, !tbaa !27
  %612 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %613 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %608, i64 noundef %611, i64 noundef %612, ptr noundef %613)
  %614 = load ptr, ptr %28, align 8, !tbaa !5
  %615 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %614, i32 0, i32 6
  %616 = load ptr, ptr %28, align 8, !tbaa !5
  %617 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %616, i32 0, i32 2
  %618 = load i64, ptr %617, align 8, !tbaa !27
  %619 = load ptr, ptr %28, align 8, !tbaa !5
  %620 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %619, i32 0, i32 3
  %621 = load i64, ptr %620, align 8, !tbaa !52
  %622 = load ptr, ptr %28, align 8, !tbaa !5
  %623 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %622, i32 0, i32 0
  %624 = load i64, ptr %623, align 8, !tbaa !29
  %625 = mul nsw i64 %621, %624
  %626 = add nsw i64 1, %625
  %627 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %615, i64 noundef %618, i64 noundef %626, ptr noundef %627)
  %628 = load ptr, ptr %28, align 8, !tbaa !5
  %629 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %628, i32 0, i32 8
  %630 = load ptr, ptr %28, align 8, !tbaa !5
  %631 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %630, i32 0, i32 0
  %632 = load i64, ptr %631, align 8, !tbaa !29
  %633 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %634 = add nsw i64 %633, 1
  %635 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %629, i64 noundef %632, i64 noundef %634, ptr noundef %635)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %636

636:                                              ; preds = %671, %595
  %637 = load i64, ptr %46, align 8, !tbaa !9
  %638 = load ptr, ptr %28, align 8, !tbaa !5
  %639 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %638, i32 0, i32 2
  %640 = load i64, ptr %639, align 8, !tbaa !27
  %641 = sub nsw i64 %640, 1
  %642 = icmp sle i64 %637, %641
  br i1 %642, label %643, label %674

643:                                              ; preds = %636
  store i64 0, ptr %47, align 8, !tbaa !9
  br label %644

644:                                              ; preds = %667, %643
  %645 = load i64, ptr %47, align 8, !tbaa !9
  %646 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %647 = sub nsw i64 %646, 1
  %648 = icmp sle i64 %645, %647
  br i1 %648, label %649, label %670

649:                                              ; preds = %644
  %650 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %41, i32 0, i32 6
  %651 = load ptr, ptr %650, align 8, !tbaa !30
  %652 = load i64, ptr %46, align 8, !tbaa !9
  %653 = getelementptr inbounds ptr, ptr %651, i64 %652
  %654 = load ptr, ptr %653, align 8, !tbaa !5
  %655 = load i64, ptr %47, align 8, !tbaa !9
  %656 = getelementptr inbounds double, ptr %654, i64 %655
  %657 = load double, ptr %656, align 8, !tbaa !11
  %658 = load ptr, ptr %28, align 8, !tbaa !5
  %659 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %658, i32 0, i32 5
  %660 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %659, i32 0, i32 6
  %661 = load ptr, ptr %660, align 8, !tbaa !30
  %662 = load i64, ptr %46, align 8, !tbaa !9
  %663 = getelementptr inbounds ptr, ptr %661, i64 %662
  %664 = load ptr, ptr %663, align 8, !tbaa !5
  %665 = load i64, ptr %47, align 8, !tbaa !9
  %666 = getelementptr inbounds double, ptr %664, i64 %665
  store double %657, ptr %666, align 8, !tbaa !11
  br label %667

667:                                              ; preds = %649
  %668 = load i64, ptr %47, align 8, !tbaa !9
  %669 = add nsw i64 %668, 1
  store i64 %669, ptr %47, align 8, !tbaa !9
  br label %644, !llvm.loop !53

670:                                              ; preds = %644
  br label %671

671:                                              ; preds = %670
  %672 = load i64, ptr %46, align 8, !tbaa !9
  %673 = add nsw i64 %672, 1
  store i64 %673, ptr %46, align 8, !tbaa !9
  br label %636, !llvm.loop !54

674:                                              ; preds = %636
  %675 = load ptr, ptr %28, align 8, !tbaa !5
  %676 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %675, i32 0, i32 2
  %677 = load i64, ptr %676, align 8, !tbaa !27
  %678 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %44, i64 noundef %677, ptr noundef %678)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %679

679:                                              ; preds = %692, %674
  %680 = load i64, ptr %46, align 8, !tbaa !9
  %681 = load ptr, ptr %28, align 8, !tbaa !5
  %682 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %681, i32 0, i32 2
  %683 = load i64, ptr %682, align 8, !tbaa !27
  %684 = sub nsw i64 %683, 1
  %685 = icmp sle i64 %680, %684
  br i1 %685, label %686, label %695

686:                                              ; preds = %679
  %687 = load i64, ptr %46, align 8, !tbaa !9
  %688 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 4
  %689 = load ptr, ptr %688, align 8, !tbaa !30
  %690 = load i64, ptr %46, align 8, !tbaa !9
  %691 = getelementptr inbounds i64, ptr %689, i64 %690
  store i64 %687, ptr %691, align 8, !tbaa !9
  br label %692

692:                                              ; preds = %686
  %693 = load i64, ptr %46, align 8, !tbaa !9
  %694 = add nsw i64 %693, 1
  store i64 %694, ptr %46, align 8, !tbaa !9
  br label %679, !llvm.loop !55

695:                                              ; preds = %679
  %696 = load ptr, ptr %28, align 8, !tbaa !5
  %697 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %696, i32 0, i32 5
  %698 = load ptr, ptr %28, align 8, !tbaa !5
  %699 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %698, i32 0, i32 2
  %700 = load i64, ptr %699, align 8, !tbaa !27
  %701 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %702 = load ptr, ptr %28, align 8, !tbaa !5
  %703 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %702, i32 0, i32 4
  %704 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef %697, ptr noundef %44, i64 noundef %700, i64 noundef %701, i64 noundef 0, i64 noundef 2, ptr noundef %703, ptr noundef %704)
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %705

705:                                              ; preds = %778, %695
  %706 = load i64, ptr %46, align 8, !tbaa !9
  %707 = load ptr, ptr %28, align 8, !tbaa !5
  %708 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %707, i32 0, i32 2
  %709 = load i64, ptr %708, align 8, !tbaa !27
  %710 = sub nsw i64 %709, 1
  %711 = icmp sle i64 %706, %710
  br i1 %711, label %712, label %781

712:                                              ; preds = %705
  %713 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 4
  %714 = load ptr, ptr %713, align 8, !tbaa !30
  %715 = load i64, ptr %46, align 8, !tbaa !9
  %716 = getelementptr inbounds double, ptr %714, i64 %715
  %717 = load double, ptr %716, align 8, !tbaa !11
  %718 = load ptr, ptr %28, align 8, !tbaa !5
  %719 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %718, i32 0, i32 6
  %720 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %719, i32 0, i32 6
  %721 = load ptr, ptr %720, align 8, !tbaa !30
  %722 = load i64, ptr %46, align 8, !tbaa !9
  %723 = getelementptr inbounds ptr, ptr %721, i64 %722
  %724 = load ptr, ptr %723, align 8, !tbaa !5
  %725 = getelementptr inbounds double, ptr %724, i64 0
  store double %717, ptr %725, align 8, !tbaa !11
  store i64 0, ptr %48, align 8, !tbaa !9
  br label %726

726:                                              ; preds = %774, %712
  %727 = load i64, ptr %48, align 8, !tbaa !9
  %728 = load i64, ptr %52, align 8, !tbaa !9
  %729 = sub nsw i64 %728, 1
  %730 = icmp sle i64 %727, %729
  br i1 %730, label %731, label %777

731:                                              ; preds = %726
  store i64 0, ptr %47, align 8, !tbaa !9
  br label %732

732:                                              ; preds = %770, %731
  %733 = load i64, ptr %47, align 8, !tbaa !9
  %734 = load ptr, ptr %28, align 8, !tbaa !5
  %735 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %734, i32 0, i32 0
  %736 = load i64, ptr %735, align 8, !tbaa !29
  %737 = sub nsw i64 %736, 1
  %738 = icmp sle i64 %733, %737
  br i1 %738, label %739, label %773

739:                                              ; preds = %732
  %740 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %38, i32 0, i32 6
  %741 = load ptr, ptr %740, align 8, !tbaa !30
  %742 = load i64, ptr %48, align 8, !tbaa !9
  %743 = load ptr, ptr %28, align 8, !tbaa !5
  %744 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %743, i32 0, i32 2
  %745 = load i64, ptr %744, align 8, !tbaa !27
  %746 = mul nsw i64 %742, %745
  %747 = load i64, ptr %46, align 8, !tbaa !9
  %748 = add nsw i64 %746, %747
  %749 = getelementptr inbounds ptr, ptr %741, i64 %748
  %750 = load ptr, ptr %749, align 8, !tbaa !5
  %751 = load i64, ptr %47, align 8, !tbaa !9
  %752 = getelementptr inbounds double, ptr %750, i64 %751
  %753 = load double, ptr %752, align 8, !tbaa !11
  %754 = load ptr, ptr %28, align 8, !tbaa !5
  %755 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %754, i32 0, i32 6
  %756 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %755, i32 0, i32 6
  %757 = load ptr, ptr %756, align 8, !tbaa !30
  %758 = load i64, ptr %46, align 8, !tbaa !9
  %759 = getelementptr inbounds ptr, ptr %757, i64 %758
  %760 = load ptr, ptr %759, align 8, !tbaa !5
  %761 = load i64, ptr %48, align 8, !tbaa !9
  %762 = load ptr, ptr %28, align 8, !tbaa !5
  %763 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %762, i32 0, i32 0
  %764 = load i64, ptr %763, align 8, !tbaa !29
  %765 = mul nsw i64 %761, %764
  %766 = add nsw i64 1, %765
  %767 = load i64, ptr %47, align 8, !tbaa !9
  %768 = add nsw i64 %766, %767
  %769 = getelementptr inbounds double, ptr %760, i64 %768
  store double %753, ptr %769, align 8, !tbaa !11
  br label %770

770:                                              ; preds = %739
  %771 = load i64, ptr %47, align 8, !tbaa !9
  %772 = add nsw i64 %771, 1
  store i64 %772, ptr %47, align 8, !tbaa !9
  br label %732, !llvm.loop !56

773:                                              ; preds = %732
  br label %774

774:                                              ; preds = %773
  %775 = load i64, ptr %48, align 8, !tbaa !9
  %776 = add nsw i64 %775, 1
  store i64 %776, ptr %48, align 8, !tbaa !9
  br label %726, !llvm.loop !57

777:                                              ; preds = %726
  br label %778

778:                                              ; preds = %777
  %779 = load i64, ptr %46, align 8, !tbaa !9
  %780 = add nsw i64 %779, 1
  store i64 %780, ptr %46, align 8, !tbaa !9
  br label %705, !llvm.loop !58

781:                                              ; preds = %705
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %782

782:                                              ; preds = %816, %781
  %783 = load i64, ptr %46, align 8, !tbaa !9
  %784 = load ptr, ptr %28, align 8, !tbaa !5
  %785 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %784, i32 0, i32 0
  %786 = load i64, ptr %785, align 8, !tbaa !29
  %787 = sub nsw i64 %786, 1
  %788 = icmp sle i64 %783, %787
  br i1 %788, label %789, label %819

789:                                              ; preds = %782
  store i64 0, ptr %47, align 8, !tbaa !9
  br label %790

790:                                              ; preds = %812, %789
  %791 = load i64, ptr %47, align 8, !tbaa !9
  %792 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %793 = icmp sle i64 %791, %792
  br i1 %793, label %794, label %815

794:                                              ; preds = %790
  %795 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %37, i32 0, i32 6
  %796 = load ptr, ptr %795, align 8, !tbaa !30
  %797 = load i64, ptr %46, align 8, !tbaa !9
  %798 = getelementptr inbounds ptr, ptr %796, i64 %797
  %799 = load ptr, ptr %798, align 8, !tbaa !5
  %800 = load i64, ptr %47, align 8, !tbaa !9
  %801 = getelementptr inbounds double, ptr %799, i64 %800
  %802 = load double, ptr %801, align 8, !tbaa !11
  %803 = load ptr, ptr %28, align 8, !tbaa !5
  %804 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %803, i32 0, i32 8
  %805 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %804, i32 0, i32 6
  %806 = load ptr, ptr %805, align 8, !tbaa !30
  %807 = load i64, ptr %46, align 8, !tbaa !9
  %808 = getelementptr inbounds ptr, ptr %806, i64 %807
  %809 = load ptr, ptr %808, align 8, !tbaa !5
  %810 = load i64, ptr %47, align 8, !tbaa !9
  %811 = getelementptr inbounds double, ptr %809, i64 %810
  store double %802, ptr %811, align 8, !tbaa !11
  br label %812

812:                                              ; preds = %794
  %813 = load i64, ptr %47, align 8, !tbaa !9
  %814 = add nsw i64 %813, 1
  store i64 %814, ptr %47, align 8, !tbaa !9
  br label %790, !llvm.loop !59

815:                                              ; preds = %790
  br label %816

816:                                              ; preds = %815
  %817 = load i64, ptr %46, align 8, !tbaa !9
  %818 = add nsw i64 %817, 1
  store i64 %818, ptr %46, align 8, !tbaa !9
  br label %782, !llvm.loop !60

819:                                              ; preds = %782
  %820 = load ptr, ptr %29, align 8, !tbaa !5
  %821 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %820, i32 0, i32 5
  store i64 1, ptr %821, align 8, !tbaa !21
  %822 = load i64, ptr %18, align 8, !tbaa !9
  %823 = load ptr, ptr %29, align 8, !tbaa !5
  %824 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %823, i32 0, i32 0
  store i64 %822, ptr %824, align 8, !tbaa !25
  %825 = load ptr, ptr %28, align 8, !tbaa !5
  %826 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %825, i32 0, i32 2
  %827 = load i64, ptr %826, align 8, !tbaa !27
  %828 = load ptr, ptr %29, align 8, !tbaa !5
  %829 = getelementptr inbounds %"struct.alglib_impl::rbfv1report", ptr %828, i32 0, i32 1
  store i64 %827, ptr %829, align 8, !tbaa !26
  %830 = load ptr, ptr %30, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %830)
  store i32 0, ptr %54, align 4
  br label %831

831:                                              ; preds = %819, %593, %512, %293, %211, %149
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #4
  %832 = load i32, ptr %54, align 4
  switch i32 %832, label %834 [
    i32 0, label %833
    i32 1, label %833
  ]

833:                                              ; preds = %831, %831
  ret void

834:                                              ; preds = %831
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL27rbfv1_rbfv1buildlinearmodelEPNS_9ae_matrixES1_lllS1_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL30rbfv1_buildrbfmlayersmodellsqrEPNS_9ae_matrixES1_S1_dPNS_9ae_vectorElPlllPNS_6kdtreeEddldS4_S1_S4_S4_S4_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, double noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !15, i64 32, !16, i64 1032, !16, i64 1112, !12, i64 1192, !16, i64 1200, !19, i64 1280, !16, i64 1344, !19, i64 1424}
!15 = !{!"_ZTSN11alglib_impl6kdtreeE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !16, i64 32, !19, i64 112, !19, i64 176, !19, i64 240, !19, i64 304, !19, i64 368, !20, i64 432, !10, i64 992}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !17, i64 32, !18, i64 40, !7, i64 72}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !17, i64 16, !18, i64 24, !7, i64 56}
!20 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !19, i64 0, !19, i64 64, !19, i64 128, !10, i64 192, !12, i64 200, !17, i64 208, !12, i64 216, !10, i64 224, !19, i64 232, !19, i64 296, !19, i64 360, !19, i64 424, !19, i64 488, !12, i64 552}
!21 = !{!22, !10, i64 40}
!22 = !{!"_ZTSN11alglib_impl11rbfv1reportE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!23 = !{!22, !10, i64 24}
!24 = !{!22, !10, i64 32}
!25 = !{!22, !10, i64 0}
!26 = !{!22, !10, i64 8}
!27 = !{!14, !10, i64 16}
!28 = !{!14, !12, i64 1192}
!29 = !{!14, !10, i64 0}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = distinct !{!33, !32}
!34 = !{!22, !10, i64 16}
!35 = distinct !{!35, !32}
!36 = distinct !{!36, !32}
!37 = distinct !{!37, !32}
!38 = distinct !{!38, !32}
!39 = !{!17, !17, i64 0}
!40 = distinct !{!40, !32}
!41 = distinct !{!41, !32}
!42 = distinct !{!42, !32}
!43 = distinct !{!43, !32}
!44 = distinct !{!44, !32}
!45 = distinct !{!45, !32}
!46 = distinct !{!46, !32}
!47 = distinct !{!47, !32}
!48 = distinct !{!48, !32}
!49 = distinct !{!49, !32}
!50 = !{i8 0, i8 2}
!51 = !{}
!52 = !{!14, !10, i64 24}
!53 = distinct !{!53, !32}
!54 = distinct !{!54, !32}
!55 = distinct !{!55, !32}
!56 = distinct !{!56, !32}
!57 = distinct !{!57, !32}
!58 = distinct !{!58, !32}
!59 = distinct !{!59, !32}
!60 = distinct !{!60, !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::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::ae_matrix" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }
%"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 }

@_ZN11alglib_implL10rbfv1_mxnxE = external hidden local_unnamed_addr global i64, align 8
@.str.765 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.766 = external hidden unnamed_addr constant [31 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

declare void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, 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

declare noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef, double noundef) local_unnamed_addr #2

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

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

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

declare noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef, double 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_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

declare noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef, double noundef, ptr noundef) local_unnamed_addr #2

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

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl15rbfv1buildmodelEPNS_9ae_matrixES1_lllldddddlPNS_10rbfv1modelEPNS_11rbfv1reportEPNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %10, i64 noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14) local_unnamed_addr #3 {
  %16 = alloca %"struct.alglib_impl::ae_frame", align 8
  %17 = alloca %"struct.alglib_impl::kdtree", align 8
  %18 = alloca %"struct.alglib_impl::kdtree", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %22 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %23 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %24 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_matrix", align 8
  %27 = alloca i64, align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca i64, align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1000, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 1000, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %22) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %24) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %28) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %29) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %31) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %32) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %14, ptr noundef nonnull %16)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1000) %17, i8 0, i64 1000, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1000) %18, i8 0, i64 1000, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %21, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %22, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %23, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %24, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %26, i8 0, i64 80, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %29, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %32, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl18_rbfv1report_clearEPv(ptr noundef %13)
  call void @_ZN11alglib_impl12_kdtree_initEPvPNS_8ae_stateEb(ptr noundef nonnull %17, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl12_kdtree_initEPvPNS_8ae_stateEb(ptr noundef nonnull %18, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %22, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %23, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %24, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %25, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_matrix_initEPNS_9ae_matrixElllPNS_8ae_stateEb(ptr noundef nonnull %26, i64 noundef 0, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %28, i64 noundef 0, i64 noundef 2, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %29, i64 noundef 0, i64 noundef 2, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %31, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %32, i64 noundef 0, i64 noundef 3, ptr noundef %14, i1 noundef zeroext true)
  %33 = getelementptr inbounds i8, ptr %12, i64 8
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = and i64 %34, -2
  %spec.select = icmp eq i64 %35, 2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.765, ptr noundef %14)
  %36 = icmp eq i64 %2, 0
  br i1 %36, label %37, label %81

37:                                               ; preds = %15
  %38 = getelementptr inbounds i8, ptr %13, i64 40
  store i64 1, ptr %38, align 8, !tbaa !18
  %39 = getelementptr inbounds i8, ptr %13, i64 24
  %40 = getelementptr inbounds i8, ptr %12, i64 1032
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %39, i8 0, i64 16, i1 false)
  %41 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %42 = getelementptr inbounds i8, ptr %12, i64 32
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef nonnull %40, ptr noundef nonnull %28, i64 noundef 0, i64 noundef %41, i64 noundef 0, i64 noundef 2, ptr noundef nonnull %42, ptr noundef %14)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %40, i64 noundef 0, i64 noundef 0, ptr noundef %14)
  %43 = getelementptr inbounds i8, ptr %12, i64 1112
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %43, i64 noundef 0, i64 noundef 0, ptr noundef %14)
  %44 = getelementptr inbounds i8, ptr %12, i64 16
  store i64 0, ptr %44, align 8, !tbaa !21
  %45 = getelementptr inbounds i8, ptr %12, i64 1192
  store double 0.000000e+00, ptr %45, align 8, !tbaa !22
  %46 = getelementptr inbounds i8, ptr %12, i64 1200
  %47 = load i64, ptr %12, align 8, !tbaa !23
  %48 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %49 = add nsw i64 %48, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %46, i64 noundef %47, i64 noundef %49, ptr noundef %14)
  %50 = load i64, ptr %12, align 8, !tbaa !23
  %.not310.not420 = icmp sgt i64 %50, 0
  br i1 %.not310.not420, label %.preheader.lr.ph, label %._crit_edge422

.preheader.lr.ph:                                 ; preds = %37
  %51 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %.not311416 = icmp slt i64 %51, 0
  %52 = getelementptr inbounds i8, ptr %12, i64 1272
  br i1 %.not311416, label %._crit_edge422, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %53 = add nuw i64 %51, 1
  %xtraiter521 = and i64 %53, 3
  %54 = icmp ult i64 %51, 3
  %unroll_iter524 = and i64 %53, -4
  %lcmp.mod523.not = icmp eq i64 %xtraiter521, 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge419
  %.0274421 = phi i64 [ %80, %._crit_edge419 ], [ 0, %.preheader.preheader ]
  br i1 %54, label %._crit_edge419.unr-lcssa, label %.preheader.new

.preheader.new:                                   ; preds = %.preheader, %.preheader.new
  %.0272417 = phi i64 [ %74, %.preheader.new ], [ 0, %.preheader ]
  %niter525 = phi i64 [ %niter525.next.3, %.preheader.new ], [ 0, %.preheader ]
  %55 = load ptr, ptr %52, align 8, !tbaa !24
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.0274421
  %57 = load ptr, ptr %56, align 8, !tbaa !25
  %58 = getelementptr inbounds double, ptr %57, i64 %.0272417
  store double 0.000000e+00, ptr %58, align 8, !tbaa !26
  %59 = or disjoint i64 %.0272417, 1
  %60 = load ptr, ptr %52, align 8, !tbaa !24
  %61 = getelementptr inbounds ptr, ptr %60, i64 %.0274421
  %62 = load ptr, ptr %61, align 8, !tbaa !25
  %63 = getelementptr inbounds double, ptr %62, i64 %59
  store double 0.000000e+00, ptr %63, align 8, !tbaa !26
  %64 = or disjoint i64 %.0272417, 2
  %65 = load ptr, ptr %52, align 8, !tbaa !24
  %66 = getelementptr inbounds ptr, ptr %65, i64 %.0274421
  %67 = load ptr, ptr %66, align 8, !tbaa !25
  %68 = getelementptr inbounds double, ptr %67, i64 %64
  store double 0.000000e+00, ptr %68, align 8, !tbaa !26
  %69 = or disjoint i64 %.0272417, 3
  %70 = load ptr, ptr %52, align 8, !tbaa !24
  %71 = getelementptr inbounds ptr, ptr %70, i64 %.0274421
  %72 = load ptr, ptr %71, align 8, !tbaa !25
  %73 = getelementptr inbounds double, ptr %72, i64 %69
  store double 0.000000e+00, ptr %73, align 8, !tbaa !26
  %74 = add nuw i64 %.0272417, 4
  %niter525.next.3 = add i64 %niter525, 4
  %niter525.ncmp.3 = icmp eq i64 %niter525.next.3, %unroll_iter524
  br i1 %niter525.ncmp.3, label %._crit_edge419.unr-lcssa, label %.preheader.new, !llvm.loop !27

._crit_edge419.unr-lcssa:                         ; preds = %.preheader.new, %.preheader
  %.0272417.unr = phi i64 [ 0, %.preheader ], [ %74, %.preheader.new ]
  br i1 %lcmp.mod523.not, label %._crit_edge419, label %.epil.preheader520

.epil.preheader520:                               ; preds = %._crit_edge419.unr-lcssa, %.epil.preheader520
  %.0272417.epil = phi i64 [ %79, %.epil.preheader520 ], [ %.0272417.unr, %._crit_edge419.unr-lcssa ]
  %epil.iter522 = phi i64 [ %epil.iter522.next, %.epil.preheader520 ], [ 0, %._crit_edge419.unr-lcssa ]
  %75 = load ptr, ptr %52, align 8, !tbaa !24
  %76 = getelementptr inbounds ptr, ptr %75, i64 %.0274421
  %77 = load ptr, ptr %76, align 8, !tbaa !25
  %78 = getelementptr inbounds double, ptr %77, i64 %.0272417.epil
  store double 0.000000e+00, ptr %78, align 8, !tbaa !26
  %79 = add nuw i64 %.0272417.epil, 1
  %epil.iter522.next = add i64 %epil.iter522, 1
  %epil.iter522.cmp.not = icmp eq i64 %epil.iter522.next, %xtraiter521
  br i1 %epil.iter522.cmp.not, label %._crit_edge419, label %.epil.preheader520, !llvm.loop !29

._crit_edge419:                                   ; preds = %.epil.preheader520, %._crit_edge419.unr-lcssa
  %80 = add nuw nsw i64 %.0274421, 1
  %exitcond450.not = icmp eq i64 %80, %50
  br i1 %exitcond450.not, label %._crit_edge422, label %.preheader, !llvm.loop !31

81:                                               ; preds = %15
  %82 = getelementptr inbounds i8, ptr %13, i64 16
  %83 = getelementptr inbounds i8, ptr %13, i64 24
  %84 = getelementptr inbounds i8, ptr %13, i64 32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %82, i8 0, i64 24, i1 false)
  %85 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %20, i64 noundef %85, ptr noundef %14)
  %86 = load i64, ptr %12, align 8, !tbaa !23
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %24, i64 noundef %2, i64 noundef %86, ptr noundef %14)
  %.not.not331 = icmp sgt i64 %2, 0
  %.pre = load i64, ptr %12, align 8, !tbaa !23
  br i1 %.not.not331, label %.preheader322.lr.ph, label %._crit_edge333

.preheader322.lr.ph:                              ; preds = %81
  %.not309.not329 = icmp sgt i64 %.pre, 0
  %87 = getelementptr inbounds i8, ptr %1, i64 72
  %88 = getelementptr inbounds i8, ptr %24, i64 72
  br i1 %.not309.not329, label %.preheader322.us.preheader, label %._crit_edge333

.preheader322.us.preheader:                       ; preds = %.preheader322.lr.ph
  %xtraiter = and i64 %.pre, 1
  %89 = icmp eq i64 %.pre, 1
  %unroll_iter = and i64 %.pre, 9223372036854775806
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader322.us

.preheader322.us:                                 ; preds = %.preheader322.us.preheader, %._crit_edge.us
  %.1275332.us = phi i64 [ %119, %._crit_edge.us ], [ 0, %.preheader322.us.preheader ]
  br i1 %89, label %._crit_edge.us.unr-lcssa, label %.preheader322.us.new

.preheader322.us.new:                             ; preds = %.preheader322.us, %.preheader322.us.new
  %.1273330.us = phi i64 [ %109, %.preheader322.us.new ], [ 0, %.preheader322.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader322.us.new ], [ 0, %.preheader322.us ]
  %90 = load ptr, ptr %87, align 8, !tbaa !24
  %91 = getelementptr inbounds ptr, ptr %90, i64 %.1275332.us
  %92 = load ptr, ptr %91, align 8, !tbaa !25
  %93 = getelementptr inbounds double, ptr %92, i64 %.1273330.us
  %94 = load double, ptr %93, align 8, !tbaa !26
  %95 = load ptr, ptr %88, align 8, !tbaa !24
  %96 = getelementptr inbounds ptr, ptr %95, i64 %.1275332.us
  %97 = load ptr, ptr %96, align 8, !tbaa !25
  %98 = getelementptr inbounds double, ptr %97, i64 %.1273330.us
  store double %94, ptr %98, align 8, !tbaa !26
  %99 = or disjoint i64 %.1273330.us, 1
  %100 = load ptr, ptr %87, align 8, !tbaa !24
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.1275332.us
  %102 = load ptr, ptr %101, align 8, !tbaa !25
  %103 = getelementptr inbounds double, ptr %102, i64 %99
  %104 = load double, ptr %103, align 8, !tbaa !26
  %105 = load ptr, ptr %88, align 8, !tbaa !24
  %106 = getelementptr inbounds ptr, ptr %105, i64 %.1275332.us
  %107 = load ptr, ptr %106, align 8, !tbaa !25
  %108 = getelementptr inbounds double, ptr %107, i64 %99
  store double %104, ptr %108, align 8, !tbaa !26
  %109 = add nuw nsw i64 %.1273330.us, 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 %._crit_edge.us.unr-lcssa, label %.preheader322.us.new, !llvm.loop !32

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader322.us.new, %.preheader322.us
  %.1273330.us.unr = phi i64 [ 0, %.preheader322.us ], [ %109, %.preheader322.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %110 = load ptr, ptr %87, align 8, !tbaa !24
  %111 = getelementptr inbounds ptr, ptr %110, i64 %.1275332.us
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = getelementptr inbounds double, ptr %112, i64 %.1273330.us.unr
  %114 = load double, ptr %113, align 8, !tbaa !26
  %115 = load ptr, ptr %88, align 8, !tbaa !24
  %116 = getelementptr inbounds ptr, ptr %115, i64 %.1275332.us
  %117 = load ptr, ptr %116, align 8, !tbaa !25
  %118 = getelementptr inbounds double, ptr %117, i64 %.1273330.us.unr
  store double %114, ptr %118, align 8, !tbaa !26
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %119 = add nuw nsw i64 %.1275332.us, 1
  %exitcond434.not = icmp eq i64 %119, %2
  br i1 %exitcond434.not, label %._crit_edge333, label %.preheader322.us, !llvm.loop !33

._crit_edge333:                                   ; preds = %._crit_edge.us, %.preheader322.lr.ph, %81
  %120 = call noundef zeroext i1 @_ZN11alglib_implL27rbfv1_rbfv1buildlinearmodelEPNS_9ae_matrixES1_lllS1_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %24, i64 noundef %2, i64 noundef %.pre, i64 noundef %3, ptr noundef nonnull %22, ptr noundef %14)
  br i1 %120, label %121, label %._crit_edge422.sink.split

121:                                              ; preds = %._crit_edge333
  %122 = icmp eq i64 %4, 2
  %123 = icmp eq i64 %5, 0
  %or.cond = and i1 %122, %123
  br i1 %or.cond, label %124, label %173

124:                                              ; preds = %121
  %125 = getelementptr inbounds i8, ptr %13, i64 40
  store i64 1, ptr %125, align 8, !tbaa !18
  %126 = getelementptr inbounds i8, ptr %12, i64 1032
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %13, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %83, i8 0, i64 16, i1 false)
  %127 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %128 = getelementptr inbounds i8, ptr %12, i64 32
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef nonnull %126, ptr noundef nonnull %28, i64 noundef 0, i64 noundef %127, i64 noundef 0, i64 noundef 2, ptr noundef nonnull %128, ptr noundef %14)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %126, i64 noundef 0, i64 noundef 0, ptr noundef %14)
  %129 = getelementptr inbounds i8, ptr %12, i64 1112
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %129, i64 noundef 0, i64 noundef 0, ptr noundef %14)
  %130 = getelementptr inbounds i8, ptr %12, i64 16
  store i64 0, ptr %130, align 8, !tbaa !21
  %131 = getelementptr inbounds i8, ptr %12, i64 1192
  store double 0.000000e+00, ptr %131, align 8, !tbaa !22
  %132 = getelementptr inbounds i8, ptr %12, i64 1200
  %133 = load i64, ptr %12, align 8, !tbaa !23
  %134 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %135 = add nsw i64 %134, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %132, i64 noundef %133, i64 noundef %135, ptr noundef %14)
  %136 = load i64, ptr %12, align 8, !tbaa !23
  %.not307.not413 = icmp sgt i64 %136, 0
  br i1 %.not307.not413, label %.preheader312.lr.ph, label %._crit_edge422

.preheader312.lr.ph:                              ; preds = %124
  %137 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %.not308409 = icmp slt i64 %137, 0
  %138 = getelementptr inbounds i8, ptr %22, i64 72
  %139 = getelementptr inbounds i8, ptr %12, i64 1272
  br i1 %.not308409, label %._crit_edge422, label %.preheader312.preheader

.preheader312.preheader:                          ; preds = %.preheader312.lr.ph
  %140 = add nuw i64 %137, 1
  %141 = icmp eq i64 %137, 0
  %unroll_iter518 = and i64 %140, -2
  %142 = and i64 %137, 1
  %lcmp.mod517.not.not = icmp eq i64 %142, 0
  br label %.preheader312

.preheader312:                                    ; preds = %.preheader312.preheader, %._crit_edge412
  %.2276414 = phi i64 [ %172, %._crit_edge412 ], [ 0, %.preheader312.preheader ]
  br i1 %141, label %._crit_edge412.unr-lcssa, label %.preheader312.new

.preheader312.new:                                ; preds = %.preheader312, %.preheader312.new
  %.2410 = phi i64 [ %162, %.preheader312.new ], [ 0, %.preheader312 ]
  %niter519 = phi i64 [ %niter519.next.1, %.preheader312.new ], [ 0, %.preheader312 ]
  %143 = load ptr, ptr %138, align 8, !tbaa !24
  %144 = getelementptr inbounds ptr, ptr %143, i64 %.2276414
  %145 = load ptr, ptr %144, align 8, !tbaa !25
  %146 = getelementptr inbounds double, ptr %145, i64 %.2410
  %147 = load double, ptr %146, align 8, !tbaa !26
  %148 = load ptr, ptr %139, align 8, !tbaa !24
  %149 = getelementptr inbounds ptr, ptr %148, i64 %.2276414
  %150 = load ptr, ptr %149, align 8, !tbaa !25
  %151 = getelementptr inbounds double, ptr %150, i64 %.2410
  store double %147, ptr %151, align 8, !tbaa !26
  %152 = or disjoint i64 %.2410, 1
  %153 = load ptr, ptr %138, align 8, !tbaa !24
  %154 = getelementptr inbounds ptr, ptr %153, i64 %.2276414
  %155 = load ptr, ptr %154, align 8, !tbaa !25
  %156 = getelementptr inbounds double, ptr %155, i64 %152
  %157 = load double, ptr %156, align 8, !tbaa !26
  %158 = load ptr, ptr %139, align 8, !tbaa !24
  %159 = getelementptr inbounds ptr, ptr %158, i64 %.2276414
  %160 = load ptr, ptr %159, align 8, !tbaa !25
  %161 = getelementptr inbounds double, ptr %160, i64 %152
  store double %157, ptr %161, align 8, !tbaa !26
  %162 = add nuw i64 %.2410, 2
  %niter519.next.1 = add i64 %niter519, 2
  %niter519.ncmp.1 = icmp eq i64 %niter519.next.1, %unroll_iter518
  br i1 %niter519.ncmp.1, label %._crit_edge412.unr-lcssa, label %.preheader312.new, !llvm.loop !34

._crit_edge412.unr-lcssa:                         ; preds = %.preheader312.new, %.preheader312
  %.2410.unr = phi i64 [ 0, %.preheader312 ], [ %162, %.preheader312.new ]
  br i1 %lcmp.mod517.not.not, label %._crit_edge412.epilog-lcssa, label %._crit_edge412

._crit_edge412.epilog-lcssa:                      ; preds = %._crit_edge412.unr-lcssa
  %163 = load ptr, ptr %138, align 8, !tbaa !24
  %164 = getelementptr inbounds ptr, ptr %163, i64 %.2276414
  %165 = load ptr, ptr %164, align 8, !tbaa !25
  %166 = getelementptr inbounds double, ptr %165, i64 %.2410.unr
  %167 = load double, ptr %166, align 8, !tbaa !26
  %168 = load ptr, ptr %139, align 8, !tbaa !24
  %169 = getelementptr inbounds ptr, ptr %168, i64 %.2276414
  %170 = load ptr, ptr %169, align 8, !tbaa !25
  %171 = getelementptr inbounds double, ptr %170, i64 %.2410.unr
  store double %167, ptr %171, align 8, !tbaa !26
  br label %._crit_edge412

._crit_edge412:                                   ; preds = %._crit_edge412.unr-lcssa, %._crit_edge412.epilog-lcssa
  %172 = add nuw nsw i64 %.2276414, 1
  %exitcond448.not = icmp eq i64 %172, %136
  br i1 %exitcond448.not, label %._crit_edge422, label %.preheader312, !llvm.loop !35

173:                                              ; preds = %121
  store i64 0, ptr %27, align 8, !tbaa !20
  %174 = icmp eq i64 %4, 1
  br i1 %174, label %175, label %359

175:                                              ; preds = %173
  store i64 %2, ptr %27, align 8, !tbaa !20
  %176 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %26, i64 noundef %2, i64 noundef %176, ptr noundef %14)
  %177 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not290336 = icmp sgt i64 %177, 0
  br i1 %.not.not290336, label %.preheader321.lr.ph, label %._crit_edge338

.preheader321.lr.ph:                              ; preds = %175
  %178 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %.not306.not334 = icmp sgt i64 %178, 0
  %179 = getelementptr inbounds i8, ptr %0, i64 72
  %180 = getelementptr inbounds i8, ptr %26, i64 72
  br i1 %.not306.not334, label %.preheader321.us.preheader, label %._crit_edge338

.preheader321.us.preheader:                       ; preds = %.preheader321.lr.ph
  %xtraiter477 = and i64 %178, 1
  %181 = icmp eq i64 %178, 1
  %unroll_iter479 = and i64 %178, 9223372036854775806
  %lcmp.mod478.not = icmp eq i64 %xtraiter477, 0
  br label %.preheader321.us

.preheader321.us:                                 ; preds = %.preheader321.us.preheader, %._crit_edge.us339
  %.3277337.us = phi i64 [ %211, %._crit_edge.us339 ], [ 0, %.preheader321.us.preheader ]
  br i1 %181, label %._crit_edge.us339.unr-lcssa, label %.preheader321.us.new

.preheader321.us.new:                             ; preds = %.preheader321.us, %.preheader321.us.new
  %.3335.us = phi i64 [ %201, %.preheader321.us.new ], [ 0, %.preheader321.us ]
  %niter480 = phi i64 [ %niter480.next.1, %.preheader321.us.new ], [ 0, %.preheader321.us ]
  %182 = load ptr, ptr %179, align 8, !tbaa !24
  %183 = getelementptr inbounds ptr, ptr %182, i64 %.3277337.us
  %184 = load ptr, ptr %183, align 8, !tbaa !25
  %185 = getelementptr inbounds double, ptr %184, i64 %.3335.us
  %186 = load double, ptr %185, align 8, !tbaa !26
  %187 = load ptr, ptr %180, align 8, !tbaa !24
  %188 = getelementptr inbounds ptr, ptr %187, i64 %.3277337.us
  %189 = load ptr, ptr %188, align 8, !tbaa !25
  %190 = getelementptr inbounds double, ptr %189, i64 %.3335.us
  store double %186, ptr %190, align 8, !tbaa !26
  %191 = or disjoint i64 %.3335.us, 1
  %192 = load ptr, ptr %179, align 8, !tbaa !24
  %193 = getelementptr inbounds ptr, ptr %192, i64 %.3277337.us
  %194 = load ptr, ptr %193, align 8, !tbaa !25
  %195 = getelementptr inbounds double, ptr %194, i64 %191
  %196 = load double, ptr %195, align 8, !tbaa !26
  %197 = load ptr, ptr %180, align 8, !tbaa !24
  %198 = getelementptr inbounds ptr, ptr %197, i64 %.3277337.us
  %199 = load ptr, ptr %198, align 8, !tbaa !25
  %200 = getelementptr inbounds double, ptr %199, i64 %191
  store double %196, ptr %200, align 8, !tbaa !26
  %201 = add nuw nsw i64 %.3335.us, 2
  %niter480.next.1 = add i64 %niter480, 2
  %niter480.ncmp.1 = icmp eq i64 %niter480.next.1, %unroll_iter479
  br i1 %niter480.ncmp.1, label %._crit_edge.us339.unr-lcssa, label %.preheader321.us.new, !llvm.loop !36

._crit_edge.us339.unr-lcssa:                      ; preds = %.preheader321.us.new, %.preheader321.us
  %.3335.us.unr = phi i64 [ 0, %.preheader321.us ], [ %201, %.preheader321.us.new ]
  br i1 %lcmp.mod478.not, label %._crit_edge.us339, label %._crit_edge.us339.epilog-lcssa

._crit_edge.us339.epilog-lcssa:                   ; preds = %._crit_edge.us339.unr-lcssa
  %202 = load ptr, ptr %179, align 8, !tbaa !24
  %203 = getelementptr inbounds ptr, ptr %202, i64 %.3277337.us
  %204 = load ptr, ptr %203, align 8, !tbaa !25
  %205 = getelementptr inbounds double, ptr %204, i64 %.3335.us.unr
  %206 = load double, ptr %205, align 8, !tbaa !26
  %207 = load ptr, ptr %180, align 8, !tbaa !24
  %208 = getelementptr inbounds ptr, ptr %207, i64 %.3277337.us
  %209 = load ptr, ptr %208, align 8, !tbaa !25
  %210 = getelementptr inbounds double, ptr %209, i64 %.3335.us.unr
  store double %206, ptr %210, align 8, !tbaa !26
  br label %._crit_edge.us339

._crit_edge.us339:                                ; preds = %._crit_edge.us339.unr-lcssa, %._crit_edge.us339.epilog-lcssa
  %211 = add nuw nsw i64 %.3277337.us, 1
  %exitcond436.not = icmp eq i64 %211, %177
  br i1 %exitcond436.not, label %._crit_edge338, label %.preheader321.us, !llvm.loop !37

._crit_edge338:                                   ; preds = %._crit_edge.us339, %.preheader321.lr.ph, %175
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %25, i64 noundef %177, ptr noundef %14)
  %212 = load i64, ptr %27, align 8, !tbaa !20
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %29, i64 noundef %212, ptr noundef %14)
  %213 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not291340 = icmp sgt i64 %213, 0
  br i1 %.not.not291340, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %._crit_edge338
  %214 = getelementptr inbounds i8, ptr %29, i64 56
  br label %215

215:                                              ; preds = %.lr.ph, %215
  %.4278341 = phi i64 [ 0, %.lr.ph ], [ %218, %215 ]
  %216 = load ptr, ptr %214, align 8, !tbaa !24
  %217 = getelementptr inbounds i64, ptr %216, i64 %.4278341
  store i64 %.4278341, ptr %217, align 8, !tbaa !20
  %218 = add nuw nsw i64 %.4278341, 1
  %219 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not291 = icmp slt i64 %218, %219
  br i1 %.not.not291, label %215, label %._crit_edge, !llvm.loop !38

._crit_edge:                                      ; preds = %215, %._crit_edge338
  %.lcssa327 = phi i64 [ %213, %._crit_edge338 ], [ %219, %215 ]
  %220 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef nonnull %26, ptr noundef nonnull %29, i64 noundef %.lcssa327, i64 noundef %220, i64 noundef 0, i64 noundef 2, ptr noundef nonnull %18, ptr noundef %14)
  %221 = load i64, ptr %27, align 8, !tbaa !20
  switch i64 %221, label %.preheader320 [
    i64 0, label %.loopexit
    i64 1, label %226
  ]

.preheader320:                                    ; preds = %._crit_edge
  %.not.not292347 = icmp sgt i64 %221, 0
  br i1 %.not.not292347, label %.preheader319.lr.ph, label %._crit_edge349

.preheader319.lr.ph:                              ; preds = %.preheader320
  %222 = getelementptr inbounds i8, ptr %26, i64 72
  %223 = getelementptr inbounds i8, ptr %20, i64 56
  %224 = getelementptr inbounds i8, ptr %25, i64 56
  %225 = getelementptr inbounds i8, ptr %19, i64 56
  br label %.preheader319

226:                                              ; preds = %._crit_edge
  %227 = getelementptr inbounds i8, ptr %25, i64 56
  %228 = load ptr, ptr %227, align 8, !tbaa !24
  store double %6, ptr %228, align 8, !tbaa !26
  %229 = load ptr, ptr %227, align 8, !tbaa !24
  %230 = load double, ptr %229, align 8, !tbaa !26
  br label %.loopexit

.preheader319:                                    ; preds = %.preheader319.lr.ph, %262
  %.5279348 = phi i64 [ 0, %.preheader319.lr.ph ], [ %265, %262 ]
  %231 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %.not.not297343 = icmp sgt i64 %231, 0
  br i1 %.not.not297343, label %.lr.ph345.preheader, label %._crit_edge346

.lr.ph345.preheader:                              ; preds = %.preheader319
  %xtraiter481 = and i64 %231, 1
  %232 = icmp eq i64 %231, 1
  br i1 %232, label %._crit_edge346.loopexit.unr-lcssa, label %.lr.ph345.preheader.new

.lr.ph345.preheader.new:                          ; preds = %.lr.ph345.preheader
  %unroll_iter483 = and i64 %231, 9223372036854775806
  br label %.lr.ph345

.lr.ph345:                                        ; preds = %.lr.ph345, %.lr.ph345.preheader.new
  %.4344 = phi i64 [ 0, %.lr.ph345.preheader.new ], [ %248, %.lr.ph345 ]
  %niter484 = phi i64 [ 0, %.lr.ph345.preheader.new ], [ %niter484.next.1, %.lr.ph345 ]
  %233 = load ptr, ptr %222, align 8, !tbaa !24
  %234 = getelementptr inbounds ptr, ptr %233, i64 %.5279348
  %235 = load ptr, ptr %234, align 8, !tbaa !25
  %236 = getelementptr inbounds double, ptr %235, i64 %.4344
  %237 = load double, ptr %236, align 8, !tbaa !26
  %238 = load ptr, ptr %223, align 8, !tbaa !24
  %239 = getelementptr inbounds double, ptr %238, i64 %.4344
  store double %237, ptr %239, align 8, !tbaa !26
  %240 = or disjoint i64 %.4344, 1
  %241 = load ptr, ptr %222, align 8, !tbaa !24
  %242 = getelementptr inbounds ptr, ptr %241, i64 %.5279348
  %243 = load ptr, ptr %242, align 8, !tbaa !25
  %244 = getelementptr inbounds double, ptr %243, i64 %240
  %245 = load double, ptr %244, align 8, !tbaa !26
  %246 = load ptr, ptr %223, align 8, !tbaa !24
  %247 = getelementptr inbounds double, ptr %246, i64 %240
  store double %245, ptr %247, align 8, !tbaa !26
  %248 = add nuw nsw i64 %.4344, 2
  %niter484.next.1 = add i64 %niter484, 2
  %niter484.ncmp.1 = icmp eq i64 %niter484.next.1, %unroll_iter483
  br i1 %niter484.ncmp.1, label %._crit_edge346.loopexit.unr-lcssa, label %.lr.ph345, !llvm.loop !39

._crit_edge346.loopexit.unr-lcssa:                ; preds = %.lr.ph345, %.lr.ph345.preheader
  %.4344.unr = phi i64 [ 0, %.lr.ph345.preheader ], [ %248, %.lr.ph345 ]
  %lcmp.mod482.not = icmp eq i64 %xtraiter481, 0
  br i1 %lcmp.mod482.not, label %._crit_edge346, label %.lr.ph345.epil

.lr.ph345.epil:                                   ; preds = %._crit_edge346.loopexit.unr-lcssa
  %249 = load ptr, ptr %222, align 8, !tbaa !24
  %250 = getelementptr inbounds ptr, ptr %249, i64 %.5279348
  %251 = load ptr, ptr %250, align 8, !tbaa !25
  %252 = getelementptr inbounds double, ptr %251, i64 %.4344.unr
  %253 = load double, ptr %252, align 8, !tbaa !26
  %254 = load ptr, ptr %223, align 8, !tbaa !24
  %255 = getelementptr inbounds double, ptr %254, i64 %.4344.unr
  store double %253, ptr %255, align 8, !tbaa !26
  br label %._crit_edge346

._crit_edge346:                                   ; preds = %.lr.ph345.epil, %._crit_edge346.loopexit.unr-lcssa, %.preheader319
  %256 = call noundef i64 @_ZN11alglib_impl14kdtreequeryknnEPNS_6kdtreeEPNS_9ae_vectorElbPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %20, i64 noundef 1, i1 noundef zeroext false, ptr noundef %14)
  %257 = icmp sgt i64 %256, 0
  br i1 %257, label %258, label %262

258:                                              ; preds = %._crit_edge346
  call void @_ZN11alglib_impl27kdtreequeryresultsdistancesEPNS_6kdtreeEPNS_9ae_vectorEPNS_8ae_stateE(ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef %14)
  %259 = load ptr, ptr %225, align 8, !tbaa !24
  %260 = load double, ptr %259, align 8, !tbaa !26
  %261 = fmul double %260, %6
  br label %262

262:                                              ; preds = %._crit_edge346, %258
  %.sink = phi double [ %261, %258 ], [ 1.000000e+00, %._crit_edge346 ]
  %263 = load ptr, ptr %224, align 8, !tbaa !24
  %264 = getelementptr inbounds double, ptr %263, i64 %.5279348
  store double %.sink, ptr %264, align 8, !tbaa !26
  %265 = add nuw nsw i64 %.5279348, 1
  %266 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not292 = icmp slt i64 %265, %266
  br i1 %.not.not292, label %.preheader319, label %._crit_edge349, !llvm.loop !40

._crit_edge349:                                   ; preds = %262, %.preheader320
  %.lcssa326 = phi i64 [ %221, %.preheader320 ], [ %266, %262 ]
  call void @_ZN11alglib_impl23rvectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %31, i64 noundef %.lcssa326, ptr noundef %14)
  %267 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not293351 = icmp sgt i64 %267, 0
  br i1 %.not.not293351, label %.lr.ph354, label %._crit_edge355

.lr.ph354:                                        ; preds = %._crit_edge349
  %268 = getelementptr inbounds i8, ptr %25, i64 56
  %269 = getelementptr inbounds i8, ptr %31, i64 56
  %xtraiter486 = and i64 %267, 3
  %270 = icmp ult i64 %267, 4
  br i1 %270, label %._crit_edge355.loopexit.unr-lcssa, label %.lr.ph354.new

.lr.ph354.new:                                    ; preds = %.lr.ph354
  %unroll_iter488 = and i64 %267, 9223372036854775804
  br label %271

271:                                              ; preds = %271, %.lr.ph354.new
  %.6280352 = phi i64 [ 0, %.lr.ph354.new ], [ %295, %271 ]
  %niter489 = phi i64 [ 0, %.lr.ph354.new ], [ %niter489.next.3, %271 ]
  %272 = load ptr, ptr %268, align 8, !tbaa !24
  %273 = getelementptr inbounds double, ptr %272, i64 %.6280352
  %274 = load double, ptr %273, align 8, !tbaa !26
  %275 = load ptr, ptr %269, align 8, !tbaa !24
  %276 = getelementptr inbounds double, ptr %275, i64 %.6280352
  store double %274, ptr %276, align 8, !tbaa !26
  %277 = or disjoint i64 %.6280352, 1
  %278 = load ptr, ptr %268, align 8, !tbaa !24
  %279 = getelementptr inbounds double, ptr %278, i64 %277
  %280 = load double, ptr %279, align 8, !tbaa !26
  %281 = load ptr, ptr %269, align 8, !tbaa !24
  %282 = getelementptr inbounds double, ptr %281, i64 %277
  store double %280, ptr %282, align 8, !tbaa !26
  %283 = or disjoint i64 %.6280352, 2
  %284 = load ptr, ptr %268, align 8, !tbaa !24
  %285 = getelementptr inbounds double, ptr %284, i64 %283
  %286 = load double, ptr %285, align 8, !tbaa !26
  %287 = load ptr, ptr %269, align 8, !tbaa !24
  %288 = getelementptr inbounds double, ptr %287, i64 %283
  store double %286, ptr %288, align 8, !tbaa !26
  %289 = or disjoint i64 %.6280352, 3
  %290 = load ptr, ptr %268, align 8, !tbaa !24
  %291 = getelementptr inbounds double, ptr %290, i64 %289
  %292 = load double, ptr %291, align 8, !tbaa !26
  %293 = load ptr, ptr %269, align 8, !tbaa !24
  %294 = getelementptr inbounds double, ptr %293, i64 %289
  store double %292, ptr %294, align 8, !tbaa !26
  %295 = add nuw nsw i64 %.6280352, 4
  %niter489.next.3 = add i64 %niter489, 4
  %niter489.ncmp.3 = icmp eq i64 %niter489.next.3, %unroll_iter488
  br i1 %niter489.ncmp.3, label %._crit_edge355.loopexit.unr-lcssa, label %271, !llvm.loop !41

._crit_edge355.loopexit.unr-lcssa:                ; preds = %271, %.lr.ph354
  %.6280352.unr = phi i64 [ 0, %.lr.ph354 ], [ %295, %271 ]
  %lcmp.mod487.not = icmp eq i64 %xtraiter486, 0
  br i1 %lcmp.mod487.not, label %._crit_edge355, label %.epil.preheader485

.epil.preheader485:                               ; preds = %._crit_edge355.loopexit.unr-lcssa, %.epil.preheader485
  %.6280352.epil = phi i64 [ %301, %.epil.preheader485 ], [ %.6280352.unr, %._crit_edge355.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader485 ], [ 0, %._crit_edge355.loopexit.unr-lcssa ]
  %296 = load ptr, ptr %268, align 8, !tbaa !24
  %297 = getelementptr inbounds double, ptr %296, i64 %.6280352.epil
  %298 = load double, ptr %297, align 8, !tbaa !26
  %299 = load ptr, ptr %269, align 8, !tbaa !24
  %300 = getelementptr inbounds double, ptr %299, i64 %.6280352.epil
  store double %298, ptr %300, align 8, !tbaa !26
  %301 = add nuw nsw i64 %.6280352.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter486
  br i1 %epil.iter.cmp.not, label %._crit_edge355, label %.epil.preheader485, !llvm.loop !42

._crit_edge355:                                   ; preds = %._crit_edge355.loopexit.unr-lcssa, %.epil.preheader485, %._crit_edge349
  call void @_ZN11alglib_impl11tagsortfastEPNS_9ae_vectorES1_lPNS_8ae_stateE(ptr noundef nonnull %31, ptr noundef nonnull %32, i64 noundef %267, ptr noundef %14)
  %302 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not294357 = icmp sgt i64 %302, 0
  br i1 %.not.not294357, label %.lr.ph360, label %.loopexit

.lr.ph360:                                        ; preds = %._crit_edge355
  %303 = getelementptr inbounds i8, ptr %25, i64 56
  %304 = getelementptr inbounds i8, ptr %31, i64 56
  br label %306

.preheader318:                                    ; preds = %306
  %.not.not295361 = icmp sgt i64 %320, 0
  br i1 %.not.not295361, label %.lr.ph364, label %.loopexit

.lr.ph364:                                        ; preds = %.preheader318
  %305 = getelementptr inbounds i8, ptr %25, i64 56
  br label %322

306:                                              ; preds = %.lr.ph360, %306
  %307 = phi i64 [ %302, %.lr.ph360 ], [ %320, %306 ]
  %.7281358 = phi i64 [ 0, %.lr.ph360 ], [ %319, %306 ]
  %308 = load ptr, ptr %303, align 8, !tbaa !24
  %309 = getelementptr inbounds double, ptr %308, i64 %.7281358
  %310 = load double, ptr %309, align 8, !tbaa !26
  %311 = load ptr, ptr %304, align 8, !tbaa !24
  %312 = sdiv i64 %307, 2
  %313 = getelementptr inbounds double, ptr %311, i64 %312
  %314 = load double, ptr %313, align 8, !tbaa !26
  %315 = fmul double %314, %7
  %316 = call noundef double @_ZN11alglib_impl10ae_minrealEddPNS_8ae_stateE(double noundef %310, double noundef %315, ptr noundef %14)
  %317 = load ptr, ptr %303, align 8, !tbaa !24
  %318 = getelementptr inbounds double, ptr %317, i64 %.7281358
  store double %316, ptr %318, align 8, !tbaa !26
  %319 = add nuw nsw i64 %.7281358, 1
  %320 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not294 = icmp slt i64 %319, %320
  br i1 %.not.not294, label %306, label %.preheader318, !llvm.loop !43

.preheader317:                                    ; preds = %322
  %.not.not296366 = icmp sgt i64 %328, 0
  br i1 %.not.not296366, label %.lr.ph368, label %.loopexit

.lr.ph368:                                        ; preds = %.preheader317
  %321 = getelementptr inbounds i8, ptr %25, i64 56
  br label %332

322:                                              ; preds = %.lr.ph364, %322
  %.8363 = phi i64 [ 0, %.lr.ph364 ], [ %327, %322 ]
  %.0282362 = phi double [ 0.000000e+00, %.lr.ph364 ], [ %326, %322 ]
  %323 = load ptr, ptr %305, align 8, !tbaa !24
  %324 = getelementptr inbounds double, ptr %323, i64 %.8363
  %325 = load double, ptr %324, align 8, !tbaa !26
  %326 = call noundef double @_ZN11alglib_impl10ae_maxrealEddPNS_8ae_stateE(double noundef %.0282362, double noundef %325, ptr noundef %14)
  %327 = add nuw nsw i64 %.8363, 1
  %328 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not295 = icmp slt i64 %327, %328
  br i1 %.not.not295, label %322, label %.preheader317, !llvm.loop !44

329:                                              ; preds = %332
  %330 = add nuw nsw i64 %.9367, 1
  %331 = load i64, ptr %27, align 8, !tbaa !20
  %.not.not296 = icmp slt i64 %330, %331
  br i1 %.not.not296, label %332, label %.loopexit, !llvm.loop !45

332:                                              ; preds = %.lr.ph368, %329
  %.9367 = phi i64 [ 0, %.lr.ph368 ], [ %330, %329 ]
  %333 = load ptr, ptr %321, align 8, !tbaa !24
  %334 = getelementptr inbounds double, ptr %333, i64 %.9367
  %335 = load double, ptr %334, align 8, !tbaa !26
  %336 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %335, double noundef 0.000000e+00)
  br i1 %336, label %._crit_edge422.sink.split, label %329

.loopexit:                                        ; preds = %329, %._crit_edge355, %.preheader318, %.preheader317, %._crit_edge, %226
  %.1283 = phi double [ %230, %226 ], [ 1.000000e+00, %._crit_edge ], [ %326, %.preheader317 ], [ 0.000000e+00, %.preheader318 ], [ 0.000000e+00, %._crit_edge355 ], [ %326, %329 ]
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %28, i64 noundef %2, ptr noundef %14)
  br i1 %.not.not331, label %.lr.ph372, label %._crit_edge373

.lr.ph372:                                        ; preds = %.loopexit
  %337 = getelementptr inbounds i8, ptr %28, i64 56
  %xtraiter491 = and i64 %2, 3
  %338 = icmp ult i64 %2, 4
  br i1 %338, label %._crit_edge373.loopexit.unr-lcssa, label %.lr.ph372.new

.lr.ph372.new:                                    ; preds = %.lr.ph372
  %unroll_iter494 = and i64 %2, 9223372036854775804
  br label %339

339:                                              ; preds = %339, %.lr.ph372.new
  %.10370 = phi i64 [ 0, %.lr.ph372.new ], [ %351, %339 ]
  %niter495 = phi i64 [ 0, %.lr.ph372.new ], [ %niter495.next.3, %339 ]
  %340 = load ptr, ptr %337, align 8, !tbaa !24
  %341 = getelementptr inbounds i64, ptr %340, i64 %.10370
  store i64 %.10370, ptr %341, align 8, !tbaa !20
  %342 = or disjoint i64 %.10370, 1
  %343 = load ptr, ptr %337, align 8, !tbaa !24
  %344 = getelementptr inbounds i64, ptr %343, i64 %342
  store i64 %342, ptr %344, align 8, !tbaa !20
  %345 = or disjoint i64 %.10370, 2
  %346 = load ptr, ptr %337, align 8, !tbaa !24
  %347 = getelementptr inbounds i64, ptr %346, i64 %345
  store i64 %345, ptr %347, align 8, !tbaa !20
  %348 = or disjoint i64 %.10370, 3
  %349 = load ptr, ptr %337, align 8, !tbaa !24
  %350 = getelementptr inbounds i64, ptr %349, i64 %348
  store i64 %348, ptr %350, align 8, !tbaa !20
  %351 = add nuw nsw i64 %.10370, 4
  %niter495.next.3 = add i64 %niter495, 4
  %niter495.ncmp.3 = icmp eq i64 %niter495.next.3, %unroll_iter494
  br i1 %niter495.ncmp.3, label %._crit_edge373.loopexit.unr-lcssa, label %339, !llvm.loop !46

._crit_edge373.loopexit.unr-lcssa:                ; preds = %339, %.lr.ph372
  %.10370.unr = phi i64 [ 0, %.lr.ph372 ], [ %351, %339 ]
  %lcmp.mod493.not = icmp eq i64 %xtraiter491, 0
  br i1 %lcmp.mod493.not, label %._crit_edge373, label %.epil.preheader490

.epil.preheader490:                               ; preds = %._crit_edge373.loopexit.unr-lcssa, %.epil.preheader490
  %.10370.epil = phi i64 [ %354, %.epil.preheader490 ], [ %.10370.unr, %._crit_edge373.loopexit.unr-lcssa ]
  %epil.iter492 = phi i64 [ %epil.iter492.next, %.epil.preheader490 ], [ 0, %._crit_edge373.loopexit.unr-lcssa ]
  %352 = load ptr, ptr %337, align 8, !tbaa !24
  %353 = getelementptr inbounds i64, ptr %352, i64 %.10370.epil
  store i64 %.10370.epil, ptr %353, align 8, !tbaa !20
  %354 = add nuw nsw i64 %.10370.epil, 1
  %epil.iter492.next = add i64 %epil.iter492, 1
  %epil.iter492.cmp.not = icmp eq i64 %epil.iter492.next, %xtraiter491
  br i1 %epil.iter492.cmp.not, label %._crit_edge373, label %.epil.preheader490, !llvm.loop !47

._crit_edge373:                                   ; preds = %._crit_edge373.loopexit.unr-lcssa, %.epil.preheader490, %.loopexit
  %355 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %28, i64 noundef %2, i64 noundef %355, i64 noundef 0, i64 noundef 2, ptr noundef nonnull %17, ptr noundef %14)
  %356 = load i64, ptr %27, align 8, !tbaa !20
  %357 = load i64, ptr %12, align 8, !tbaa !23
  %358 = getelementptr inbounds i8, ptr %13, i64 40
  call void @_ZN11alglib_implL23rbfv1_buildrbfmodellsqrEPNS_9ae_matrixES1_S1_PNS_9ae_vectorElllPNS_6kdtreeES5_ddlPlS6_S1_S6_S6_S6_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %24, ptr noundef nonnull %26, ptr noundef nonnull %25, i64 noundef %2, i64 noundef %356, i64 noundef %357, ptr noundef nonnull %17, ptr noundef nonnull %18, double noundef %9, double noundef %10, i64 noundef %11, ptr noundef nonnull %82, ptr noundef nonnull %30, ptr noundef nonnull %23, ptr noundef nonnull %358, ptr noundef nonnull %83, ptr noundef nonnull %84, ptr noundef %14)
  br label %359

359:                                              ; preds = %._crit_edge373, %173
  %.2284 = phi double [ %.1283, %._crit_edge373 ], [ 0.000000e+00, %173 ]
  %.0269 = phi i64 [ 1, %._crit_edge373 ], [ 0, %173 ]
  br i1 %122, label %360, label %363

360:                                              ; preds = %359
  %361 = load i64, ptr %12, align 8, !tbaa !23
  %362 = getelementptr inbounds i8, ptr %13, i64 40
  call void @_ZN11alglib_implL30rbfv1_buildrbfmlayersmodellsqrEPNS_9ae_matrixES1_S1_dPNS_9ae_vectorElPlllPNS_6kdtreeEddldS4_S1_S4_S4_S4_PNS_8ae_stateE(ptr noundef %0, ptr noundef nonnull %24, ptr noundef nonnull %26, double noundef %6, ptr noundef nonnull %25, i64 noundef %2, ptr noundef nonnull %27, i64 noundef %361, i64 noundef %5, ptr noundef nonnull %18, double noundef 0x3EB0C6F7A0B5ED8D, double noundef 0x3EB0C6F7A0B5ED8D, i64 noundef 50, double noundef %8, ptr noundef nonnull %82, ptr noundef nonnull %23, ptr noundef nonnull %362, ptr noundef nonnull %83, ptr noundef nonnull %84, ptr noundef %14)
  br label %363

363:                                              ; preds = %360, %359
  %.3285 = phi double [ %6, %360 ], [ %.2284, %359 ]
  %.1270 = phi i64 [ %5, %360 ], [ %.0269, %359 ]
  %.1 = phi i1 [ true, %360 ], [ %174, %359 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %.1, ptr noundef nonnull @.str.766, ptr noundef %14)
  %364 = getelementptr inbounds i8, ptr %13, i64 40
  %365 = load i64, ptr %364, align 8, !tbaa !18
  %366 = icmp slt i64 %365, 1
  br i1 %366, label %._crit_edge422, label %367

367:                                              ; preds = %363
  %368 = load i64, ptr %27, align 8, !tbaa !20
  %369 = sdiv i64 %368, %.1270
  %370 = getelementptr inbounds i8, ptr %12, i64 16
  store i64 %369, ptr %370, align 8, !tbaa !21
  %371 = getelementptr inbounds i8, ptr %12, i64 1192
  store double %.3285, ptr %371, align 8, !tbaa !22
  %372 = getelementptr inbounds i8, ptr %12, i64 24
  store i64 %.1270, ptr %372, align 8, !tbaa !48
  %373 = getelementptr inbounds i8, ptr %12, i64 1032
  %374 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %373, i64 noundef %369, i64 noundef %374, ptr noundef %14)
  %375 = getelementptr inbounds i8, ptr %12, i64 1112
  %376 = load i64, ptr %370, align 8, !tbaa !21
  %377 = load i64, ptr %372, align 8, !tbaa !48
  %378 = load i64, ptr %12, align 8, !tbaa !23
  %379 = mul nsw i64 %378, %377
  %380 = add nsw i64 %379, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %375, i64 noundef %376, i64 noundef %380, ptr noundef %14)
  %381 = getelementptr inbounds i8, ptr %12, i64 1200
  %382 = load i64, ptr %12, align 8, !tbaa !23
  %383 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %384 = add nsw i64 %383, 1
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef nonnull %381, i64 noundef %382, i64 noundef %384, ptr noundef %14)
  %385 = load i64, ptr %370, align 8, !tbaa !21
  %.not.not299378 = icmp sgt i64 %385, 0
  br i1 %.not.not299378, label %.preheader316.lr.ph, label %._crit_edge380

.preheader316.lr.ph:                              ; preds = %367
  %386 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %.not305.not374 = icmp sgt i64 %386, 0
  %387 = getelementptr inbounds i8, ptr %26, i64 72
  %388 = getelementptr inbounds i8, ptr %12, i64 1104
  br i1 %.not305.not374, label %.preheader316.us.preheader, label %._crit_edge380

.preheader316.us.preheader:                       ; preds = %.preheader316.lr.ph
  %xtraiter497 = and i64 %386, 1
  %389 = icmp eq i64 %386, 1
  %unroll_iter500 = and i64 %386, 9223372036854775806
  %lcmp.mod499.not = icmp eq i64 %xtraiter497, 0
  br label %.preheader316.us

.preheader316.us:                                 ; preds = %.preheader316.us.preheader, %._crit_edge377.us
  %.11379.us = phi i64 [ %419, %._crit_edge377.us ], [ 0, %.preheader316.us.preheader ]
  br i1 %389, label %._crit_edge377.us.unr-lcssa, label %.preheader316.us.new

.preheader316.us.new:                             ; preds = %.preheader316.us, %.preheader316.us.new
  %.5375.us = phi i64 [ %409, %.preheader316.us.new ], [ 0, %.preheader316.us ]
  %niter501 = phi i64 [ %niter501.next.1, %.preheader316.us.new ], [ 0, %.preheader316.us ]
  %390 = load ptr, ptr %387, align 8, !tbaa !24
  %391 = getelementptr inbounds ptr, ptr %390, i64 %.11379.us
  %392 = load ptr, ptr %391, align 8, !tbaa !25
  %393 = getelementptr inbounds double, ptr %392, i64 %.5375.us
  %394 = load double, ptr %393, align 8, !tbaa !26
  %395 = load ptr, ptr %388, align 8, !tbaa !24
  %396 = getelementptr inbounds ptr, ptr %395, i64 %.11379.us
  %397 = load ptr, ptr %396, align 8, !tbaa !25
  %398 = getelementptr inbounds double, ptr %397, i64 %.5375.us
  store double %394, ptr %398, align 8, !tbaa !26
  %399 = or disjoint i64 %.5375.us, 1
  %400 = load ptr, ptr %387, align 8, !tbaa !24
  %401 = getelementptr inbounds ptr, ptr %400, i64 %.11379.us
  %402 = load ptr, ptr %401, align 8, !tbaa !25
  %403 = getelementptr inbounds double, ptr %402, i64 %399
  %404 = load double, ptr %403, align 8, !tbaa !26
  %405 = load ptr, ptr %388, align 8, !tbaa !24
  %406 = getelementptr inbounds ptr, ptr %405, i64 %.11379.us
  %407 = load ptr, ptr %406, align 8, !tbaa !25
  %408 = getelementptr inbounds double, ptr %407, i64 %399
  store double %404, ptr %408, align 8, !tbaa !26
  %409 = add nuw nsw i64 %.5375.us, 2
  %niter501.next.1 = add i64 %niter501, 2
  %niter501.ncmp.1 = icmp eq i64 %niter501.next.1, %unroll_iter500
  br i1 %niter501.ncmp.1, label %._crit_edge377.us.unr-lcssa, label %.preheader316.us.new, !llvm.loop !49

._crit_edge377.us.unr-lcssa:                      ; preds = %.preheader316.us.new, %.preheader316.us
  %.5375.us.unr = phi i64 [ 0, %.preheader316.us ], [ %409, %.preheader316.us.new ]
  br i1 %lcmp.mod499.not, label %._crit_edge377.us, label %._crit_edge377.us.epilog-lcssa

._crit_edge377.us.epilog-lcssa:                   ; preds = %._crit_edge377.us.unr-lcssa
  %410 = load ptr, ptr %387, align 8, !tbaa !24
  %411 = getelementptr inbounds ptr, ptr %410, i64 %.11379.us
  %412 = load ptr, ptr %411, align 8, !tbaa !25
  %413 = getelementptr inbounds double, ptr %412, i64 %.5375.us.unr
  %414 = load double, ptr %413, align 8, !tbaa !26
  %415 = load ptr, ptr %388, align 8, !tbaa !24
  %416 = getelementptr inbounds ptr, ptr %415, i64 %.11379.us
  %417 = load ptr, ptr %416, align 8, !tbaa !25
  %418 = getelementptr inbounds double, ptr %417, i64 %.5375.us.unr
  store double %414, ptr %418, align 8, !tbaa !26
  br label %._crit_edge377.us

._crit_edge377.us:                                ; preds = %._crit_edge377.us.unr-lcssa, %._crit_edge377.us.epilog-lcssa
  %419 = add nuw nsw i64 %.11379.us, 1
  %exitcond441.not = icmp eq i64 %419, %385
  br i1 %exitcond441.not, label %._crit_edge380, label %.preheader316.us, !llvm.loop !50

._crit_edge380:                                   ; preds = %._crit_edge377.us, %.preheader316.lr.ph, %367
  call void @_ZN11alglib_impl23ivectorsetlengthatleastEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %28, i64 noundef %385, ptr noundef %14)
  %420 = load i64, ptr %370, align 8, !tbaa !21
  %.not.not300383 = icmp sgt i64 %420, 0
  br i1 %.not.not300383, label %.lr.ph386, label %._crit_edge387

.lr.ph386:                                        ; preds = %._crit_edge380
  %421 = getelementptr inbounds i8, ptr %28, i64 56
  br label %422

422:                                              ; preds = %.lr.ph386, %422
  %.12384 = phi i64 [ 0, %.lr.ph386 ], [ %425, %422 ]
  %423 = load ptr, ptr %421, align 8, !tbaa !24
  %424 = getelementptr inbounds i64, ptr %423, i64 %.12384
  store i64 %.12384, ptr %424, align 8, !tbaa !20
  %425 = add nuw nsw i64 %.12384, 1
  %426 = load i64, ptr %370, align 8, !tbaa !21
  %.not.not300 = icmp slt i64 %425, %426
  br i1 %.not.not300, label %422, label %._crit_edge387, !llvm.loop !51

._crit_edge387:                                   ; preds = %422, %._crit_edge380
  %.lcssa323 = phi i64 [ %420, %._crit_edge380 ], [ %426, %422 ]
  %427 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %428 = getelementptr inbounds i8, ptr %12, i64 32
  call void @_ZN11alglib_impl17kdtreebuildtaggedEPNS_9ae_matrixEPNS_9ae_vectorEllllPNS_6kdtreeEPNS_8ae_stateE(ptr noundef nonnull %373, ptr noundef nonnull %28, i64 noundef %.lcssa323, i64 noundef %427, i64 noundef 0, i64 noundef 2, ptr noundef nonnull %428, ptr noundef %14)
  %429 = load i64, ptr %370, align 8, !tbaa !21
  %.not.not301396 = icmp sgt i64 %429, 0
  br i1 %.not.not301396, label %.lr.ph400, label %.preheader314

.lr.ph400:                                        ; preds = %._crit_edge387
  %430 = getelementptr inbounds i8, ptr %25, i64 56
  %431 = getelementptr inbounds i8, ptr %12, i64 1184
  %.not303.not393 = icmp sgt i64 %.1270, 0
  %432 = getelementptr inbounds i8, ptr %23, i64 72
  br label %440

.preheader314:                                    ; preds = %._crit_edge395, %._crit_edge387
  %433 = load i64, ptr %12, align 8, !tbaa !23
  %.not.not302406 = icmp sgt i64 %433, 0
  br i1 %.not.not302406, label %.preheader313.lr.ph, label %._crit_edge408

.preheader313.lr.ph:                              ; preds = %.preheader314
  %434 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !20
  %.not402 = icmp slt i64 %434, 0
  %435 = getelementptr inbounds i8, ptr %22, i64 72
  %436 = getelementptr inbounds i8, ptr %12, i64 1272
  br i1 %.not402, label %._crit_edge408, label %.preheader313.preheader

.preheader313.preheader:                          ; preds = %.preheader313.lr.ph
  %437 = add nuw i64 %434, 1
  %438 = icmp eq i64 %434, 0
  %unroll_iter512 = and i64 %437, -2
  %439 = and i64 %434, 1
  %lcmp.mod511.not.not = icmp eq i64 %439, 0
  br label %.preheader313

440:                                              ; preds = %.lr.ph400, %._crit_edge395
  %.13397 = phi i64 [ 0, %.lr.ph400 ], [ %490, %._crit_edge395 ]
  %441 = load ptr, ptr %430, align 8, !tbaa !24
  %442 = getelementptr inbounds double, ptr %441, i64 %.13397
  %443 = load double, ptr %442, align 8, !tbaa !26
  %444 = load ptr, ptr %431, align 8, !tbaa !24
  %445 = getelementptr inbounds ptr, ptr %444, i64 %.13397
  %446 = load ptr, ptr %445, align 8, !tbaa !25
  store double %443, ptr %446, align 8, !tbaa !26
  br i1 %.not303.not393, label %.preheader315.lr.ph, label %._crit_edge395

.preheader315.lr.ph:                              ; preds = %440
  %447 = load i64, ptr %12, align 8, !tbaa !23
  %.not304.not389 = icmp sgt i64 %447, 0
  br i1 %.not304.not389, label %.preheader315.us.preheader, label %._crit_edge395

.preheader315.us.preheader:                       ; preds = %.preheader315.lr.ph
  %xtraiter503 = and i64 %447, 1
  %448 = icmp eq i64 %447, 1
  %unroll_iter506 = and i64 %447, 9223372036854775806
  %lcmp.mod505.not = icmp eq i64 %xtraiter503, 0
  br label %.preheader315.us

.preheader315.us:                                 ; preds = %.preheader315.us.preheader, %._crit_edge392.us
  %.0271394.us = phi i64 [ %489, %._crit_edge392.us ], [ 0, %.preheader315.us.preheader ]
  %449 = mul nuw nsw i64 %.0271394.us, %429
  %450 = mul nuw nsw i64 %447, %.0271394.us
  br i1 %448, label %._crit_edge392.us.unr-lcssa, label %.preheader315.us.new

.preheader315.us.new:                             ; preds = %.preheader315.us, %.preheader315.us.new
  %.6390.us = phi i64 [ %476, %.preheader315.us.new ], [ 0, %.preheader315.us ]
  %niter507 = phi i64 [ %niter507.next.1, %.preheader315.us.new ], [ 0, %.preheader315.us ]
  %451 = load ptr, ptr %432, align 8, !tbaa !24
  %452 = getelementptr ptr, ptr %451, i64 %449
  %453 = getelementptr ptr, ptr %452, i64 %.13397
  %454 = load ptr, ptr %453, align 8, !tbaa !25
  %455 = getelementptr inbounds double, ptr %454, i64 %.6390.us
  %456 = load double, ptr %455, align 8, !tbaa !26
  %457 = load ptr, ptr %431, align 8, !tbaa !24
  %458 = getelementptr inbounds ptr, ptr %457, i64 %.13397
  %459 = load ptr, ptr %458, align 8, !tbaa !25
  %460 = getelementptr double, ptr %459, i64 %450
  %461 = getelementptr i8, ptr %460, i64 8
  %462 = getelementptr double, ptr %461, i64 %.6390.us
  store double %456, ptr %462, align 8, !tbaa !26
  %463 = or disjoint i64 %.6390.us, 1
  %464 = load ptr, ptr %432, align 8, !tbaa !24
  %465 = getelementptr ptr, ptr %464, i64 %449
  %466 = getelementptr ptr, ptr %465, i64 %.13397
  %467 = load ptr, ptr %466, align 8, !tbaa !25
  %468 = getelementptr inbounds double, ptr %467, i64 %463
  %469 = load double, ptr %468, align 8, !tbaa !26
  %470 = load ptr, ptr %431, align 8, !tbaa !24
  %471 = getelementptr inbounds ptr, ptr %470, i64 %.13397
  %472 = load ptr, ptr %471, align 8, !tbaa !25
  %473 = getelementptr double, ptr %472, i64 %450
  %474 = getelementptr i8, ptr %473, i64 8
  %475 = getelementptr double, ptr %474, i64 %463
  store double %469, ptr %475, align 8, !tbaa !26
  %476 = add nuw nsw i64 %.6390.us, 2
  %niter507.next.1 = add i64 %niter507, 2
  %niter507.ncmp.1 = icmp eq i64 %niter507.next.1, %unroll_iter506
  br i1 %niter507.ncmp.1, label %._crit_edge392.us.unr-lcssa, label %.preheader315.us.new, !llvm.loop !52

._crit_edge392.us.unr-lcssa:                      ; preds = %.preheader315.us.new, %.preheader315.us
  %.6390.us.unr = phi i64 [ 0, %.preheader315.us ], [ %476, %.preheader315.us.new ]
  br i1 %lcmp.mod505.not, label %._crit_edge392.us, label %._crit_edge392.us.epilog-lcssa

._crit_edge392.us.epilog-lcssa:                   ; preds = %._crit_edge392.us.unr-lcssa
  %477 = load ptr, ptr %432, align 8, !tbaa !24
  %478 = getelementptr ptr, ptr %477, i64 %449
  %479 = getelementptr ptr, ptr %478, i64 %.13397
  %480 = load ptr, ptr %479, align 8, !tbaa !25
  %481 = getelementptr inbounds double, ptr %480, i64 %.6390.us.unr
  %482 = load double, ptr %481, align 8, !tbaa !26
  %483 = load ptr, ptr %431, align 8, !tbaa !24
  %484 = getelementptr inbounds ptr, ptr %483, i64 %.13397
  %485 = load ptr, ptr %484, align 8, !tbaa !25
  %486 = getelementptr double, ptr %485, i64 %450
  %487 = getelementptr i8, ptr %486, i64 8
  %488 = getelementptr double, ptr %487, i64 %.6390.us.unr
  store double %482, ptr %488, align 8, !tbaa !26
  br label %._crit_edge392.us

._crit_edge392.us:                                ; preds = %._crit_edge392.us.unr-lcssa, %._crit_edge392.us.epilog-lcssa
  %489 = add nuw nsw i64 %.0271394.us, 1
  %exitcond443.not = icmp eq i64 %489, %.1270
  br i1 %exitcond443.not, label %._crit_edge395, label %.preheader315.us, !llvm.loop !53

._crit_edge395:                                   ; preds = %._crit_edge392.us, %.preheader315.lr.ph, %440
  %490 = add nuw nsw i64 %.13397, 1
  %exitcond444.not = icmp eq i64 %490, %429
  br i1 %exitcond444.not, label %.preheader314, label %440, !llvm.loop !54

.preheader313:                                    ; preds = %.preheader313.preheader, %._crit_edge405
  %.14407 = phi i64 [ %520, %._crit_edge405 ], [ 0, %.preheader313.preheader ]
  br i1 %438, label %._crit_edge405.unr-lcssa, label %.preheader313.new

.preheader313.new:                                ; preds = %.preheader313, %.preheader313.new
  %.7403 = phi i64 [ %510, %.preheader313.new ], [ 0, %.preheader313 ]
  %niter513 = phi i64 [ %niter513.next.1, %.preheader313.new ], [ 0, %.preheader313 ]
  %491 = load ptr, ptr %435, align 8, !tbaa !24
  %492 = getelementptr inbounds ptr, ptr %491, i64 %.14407
  %493 = load ptr, ptr %492, align 8, !tbaa !25
  %494 = getelementptr inbounds double, ptr %493, i64 %.7403
  %495 = load double, ptr %494, align 8, !tbaa !26
  %496 = load ptr, ptr %436, align 8, !tbaa !24
  %497 = getelementptr inbounds ptr, ptr %496, i64 %.14407
  %498 = load ptr, ptr %497, align 8, !tbaa !25
  %499 = getelementptr inbounds double, ptr %498, i64 %.7403
  store double %495, ptr %499, align 8, !tbaa !26
  %500 = or disjoint i64 %.7403, 1
  %501 = load ptr, ptr %435, align 8, !tbaa !24
  %502 = getelementptr inbounds ptr, ptr %501, i64 %.14407
  %503 = load ptr, ptr %502, align 8, !tbaa !25
  %504 = getelementptr inbounds double, ptr %503, i64 %500
  %505 = load double, ptr %504, align 8, !tbaa !26
  %506 = load ptr, ptr %436, align 8, !tbaa !24
  %507 = getelementptr inbounds ptr, ptr %506, i64 %.14407
  %508 = load ptr, ptr %507, align 8, !tbaa !25
  %509 = getelementptr inbounds double, ptr %508, i64 %500
  store double %505, ptr %509, align 8, !tbaa !26
  %510 = add nuw i64 %.7403, 2
  %niter513.next.1 = add i64 %niter513, 2
  %niter513.ncmp.1 = icmp eq i64 %niter513.next.1, %unroll_iter512
  br i1 %niter513.ncmp.1, label %._crit_edge405.unr-lcssa, label %.preheader313.new, !llvm.loop !55

._crit_edge405.unr-lcssa:                         ; preds = %.preheader313.new, %.preheader313
  %.7403.unr = phi i64 [ 0, %.preheader313 ], [ %510, %.preheader313.new ]
  br i1 %lcmp.mod511.not.not, label %._crit_edge405.epilog-lcssa, label %._crit_edge405

._crit_edge405.epilog-lcssa:                      ; preds = %._crit_edge405.unr-lcssa
  %511 = load ptr, ptr %435, align 8, !tbaa !24
  %512 = getelementptr inbounds ptr, ptr %511, i64 %.14407
  %513 = load ptr, ptr %512, align 8, !tbaa !25
  %514 = getelementptr inbounds double, ptr %513, i64 %.7403.unr
  %515 = load double, ptr %514, align 8, !tbaa !26
  %516 = load ptr, ptr %436, align 8, !tbaa !24
  %517 = getelementptr inbounds ptr, ptr %516, i64 %.14407
  %518 = load ptr, ptr %517, align 8, !tbaa !25
  %519 = getelementptr inbounds double, ptr %518, i64 %.7403.unr
  store double %515, ptr %519, align 8, !tbaa !26
  br label %._crit_edge405

._crit_edge405:                                   ; preds = %._crit_edge405.unr-lcssa, %._crit_edge405.epilog-lcssa
  %520 = add nuw nsw i64 %.14407, 1
  %exitcond446.not = icmp eq i64 %520, %433
  br i1 %exitcond446.not, label %._crit_edge408, label %.preheader313, !llvm.loop !56

._crit_edge408:                                   ; preds = %._crit_edge405, %.preheader313.lr.ph, %.preheader314
  store i64 1, ptr %364, align 8, !tbaa !18
  store i64 %2, ptr %13, align 8, !tbaa !57
  br label %._crit_edge422.sink.split

._crit_edge422.sink.split:                        ; preds = %332, %._crit_edge333, %._crit_edge408
  %.sink463 = phi i64 [ 8, %._crit_edge408 ], [ 40, %._crit_edge333 ], [ 40, %332 ]
  %.sink461 = phi i64 [ %429, %._crit_edge408 ], [ -5, %._crit_edge333 ], [ -5, %332 ]
  %521 = getelementptr inbounds i8, ptr %13, i64 %.sink463
  store i64 %.sink461, ptr %521, align 8, !tbaa !20
  br label %._crit_edge422

._crit_edge422:                                   ; preds = %._crit_edge412, %._crit_edge419, %._crit_edge422.sink.split, %363, %124, %.preheader312.lr.ph, %37, %.preheader.lr.ph
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %14)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %32) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %30) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %29) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 1000, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN11alglib_implL27rbfv1_rbfv1buildlinearmodelEPNS_9ae_matrixES1_lllS1_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN11alglib_implL30rbfv1_buildrbfmlayersmodellsqrEPNS_9ae_matrixES1_S1_dPNS_9ae_vectorElPlllPNS_6kdtreeEddldS4_S1_S4_S4_S4_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, double noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 noundef, ptr noundef, double noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, 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 = { 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 8}
!6 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 1032, !11, i64 1112, !17, i64 1192, !11, i64 1200, !15, i64 1280, !11, i64 1344, !15, i64 1424}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN11alglib_impl6kdtreeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !15, i64 112, !15, i64 176, !15, i64 240, !15, i64 304, !15, i64 368, !16, i64 432, !7, i64 992}
!11 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !12, i64 32, !13, i64 40, !8, i64 72}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTSN11alglib_impl9ae_vectorE", !7, i64 0, !7, i64 8, !12, i64 16, !13, i64 24, !8, i64 56}
!16 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !15, i64 0, !15, i64 64, !15, i64 128, !7, i64 192, !17, i64 200, !12, i64 208, !17, i64 216, !7, i64 224, !15, i64 232, !15, i64 296, !15, i64 360, !15, i64 424, !15, i64 488, !17, i64 552}
!17 = !{!"double", !8, i64 0}
!18 = !{!19, !7, i64 40}
!19 = !{!"_ZTSN11alglib_impl11rbfv1reportE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!20 = !{!7, !7, i64 0}
!21 = !{!6, !7, i64 16}
!22 = !{!6, !17, i64 1192}
!23 = !{!6, !7, i64 0}
!24 = !{!8, !8, i64 0}
!25 = !{!14, !14, i64 0}
!26 = !{!17, !17, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.unroll.disable"}
!31 = distinct !{!31, !28}
!32 = distinct !{!32, !28}
!33 = distinct !{!33, !28}
!34 = distinct !{!34, !28}
!35 = distinct !{!35, !28}
!36 = distinct !{!36, !28}
!37 = distinct !{!37, !28}
!38 = distinct !{!38, !28}
!39 = distinct !{!39, !28}
!40 = distinct !{!40, !28}
!41 = distinct !{!41, !28}
!42 = distinct !{!42, !30}
!43 = distinct !{!43, !28}
!44 = distinct !{!44, !28}
!45 = distinct !{!45, !28}
!46 = distinct !{!46, !28}
!47 = distinct !{!47, !30}
!48 = !{!6, !7, i64 24}
!49 = distinct !{!49, !28}
!50 = distinct !{!50, !28}
!51 = distinct !{!51, !28}
!52 = distinct !{!52, !28}
!53 = distinct !{!53, !28}
!54 = distinct !{!54, !28}
!55 = distinct !{!55, !28}
!56 = distinct !{!56, !28}
!57 = !{!19, !7, i64 0}


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