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

@.str.682 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.683 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.684 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.685 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.686 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.687 = external hidden unnamed_addr constant [50 x i8], align 1
@_ZN11alglib_implL10rbfv1_mxnxE = external hidden global i64, align 8
@_ZN11alglib_implL18rbfv1_rbffarradiusE = external hidden global double, align 8

; 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 noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_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

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(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_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #2

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(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 noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) #2

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

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

77:                                               ; preds = %101, %7
  %78 = load i64, ptr %29, align 8, !tbaa !9
  %79 = load i64, ptr %10, align 8, !tbaa !9
  %80 = sub nsw i64 %79, 1
  %81 = icmp sle i64 %78, %80
  br i1 %81, label %82, label %104

82:                                               ; preds = %77
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %97, %82
  %84 = load i64, ptr %30, align 8, !tbaa !9
  %85 = load i64, ptr %12, align 8, !tbaa !9
  %86 = sub nsw i64 %85, 1
  %87 = icmp sle i64 %84, %86
  br i1 %87, label %88, label %100

88:                                               ; preds = %83
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %89, i32 0, i32 6
  %91 = load ptr, ptr %90, align 8, !tbaa !15
  %92 = load i64, ptr %29, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %91, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = load i64, ptr %30, align 8, !tbaa !9
  %96 = getelementptr inbounds double, ptr %94, i64 %95
  store double 0.000000e+00, ptr %96, align 8, !tbaa !16
  br label %97

97:                                               ; preds = %88
  %98 = load i64, ptr %30, align 8, !tbaa !9
  %99 = add nsw i64 %98, 1
  store i64 %99, ptr %30, align 8, !tbaa !9
  br label %83, !llvm.loop !18

100:                                              ; preds = %83
  br label %101

101:                                              ; preds = %100
  %102 = load i64, ptr %29, align 8, !tbaa !9
  %103 = add nsw i64 %102, 1
  store i64 %103, ptr %29, align 8, !tbaa !9
  br label %77, !llvm.loop !20

104:                                              ; preds = %77
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %105, i32 0, i32 0
  %107 = load i64, ptr %106, align 8, !tbaa !21
  %108 = icmp ne i64 %107, 1
  br i1 %108, label %119, label %109

109:                                              ; preds = %104
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %110, i32 0, i32 1
  %112 = load i64, ptr %111, align 8, !tbaa !26
  %113 = icmp ne i64 %112, 2
  br i1 %113, label %119, label %114

114:                                              ; preds = %109
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %115, i32 0, i32 2
  %117 = load i64, ptr %116, align 8, !tbaa !27
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %119, label %121

119:                                              ; preds = %114, %109, %104
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %120)
  store i32 1, ptr %37, align 4
  br label %460

121:                                              ; preds = %114
  %122 = load i64, ptr %10, align 8, !tbaa !9
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %122, ptr noundef %123)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %124

124:                                              ; preds = %140, %121
  %125 = load i64, ptr %29, align 8, !tbaa !9
  %126 = load i64, ptr %10, align 8, !tbaa !9
  %127 = sub nsw i64 %126, 1
  %128 = icmp sle i64 %125, %127
  br i1 %128, label %129, label %143

129:                                              ; preds = %124
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !15
  %133 = load i64, ptr %29, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !16
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !15
  %138 = load i64, ptr %29, align 8, !tbaa !9
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  store double %135, ptr %139, align 8, !tbaa !16
  br label %140

140:                                              ; preds = %129
  %141 = load i64, ptr %29, align 8, !tbaa !9
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %29, align 8, !tbaa !9
  br label %124, !llvm.loop !28

143:                                              ; preds = %124
  %144 = load i64, ptr %10, align 8, !tbaa !9
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7tagsortEPNS_9ae_vectorElS1_S1_PNS_8ae_stateE(ptr noundef %16, i64 noundef %144, ptr noundef %18, ptr noundef %20, ptr noundef %145)
  %146 = load i64, ptr %12, align 8, !tbaa !9
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %146, ptr noundef %147)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %164, %143
  %149 = load i64, ptr %29, align 8, !tbaa !9
  %150 = load i64, ptr %12, align 8, !tbaa !9
  %151 = sub nsw i64 %150, 1
  %152 = icmp sle i64 %149, %151
  br i1 %152, label %153, label %167

153:                                              ; preds = %148
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %154, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !15
  %157 = load i64, ptr %29, align 8, !tbaa !9
  %158 = getelementptr inbounds double, ptr %156, i64 %157
  %159 = load double, ptr %158, align 8, !tbaa !16
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !15
  %162 = load i64, ptr %29, align 8, !tbaa !9
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  store double %159, ptr %163, align 8, !tbaa !16
  br label %164

164:                                              ; preds = %153
  %165 = load i64, ptr %29, align 8, !tbaa !9
  %166 = add nsw i64 %165, 1
  store i64 %166, ptr %29, align 8, !tbaa !9
  br label %148, !llvm.loop !29

167:                                              ; preds = %148
  %168 = load i64, ptr %12, align 8, !tbaa !9
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7tagsortEPNS_9ae_vectorElS1_S1_PNS_8ae_stateE(ptr noundef %17, i64 noundef %168, ptr noundef %19, ptr noundef %20, ptr noundef %169)
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %170

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

177:                                              ; preds = %170
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %178, i32 0, i32 6
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %179, i32 0, i32 6
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = load i64, ptr %29, align 8, !tbaa !9
  %183 = getelementptr inbounds ptr, ptr %181, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = getelementptr inbounds double, ptr %184, i64 0
  %186 = load double, ptr %185, align 8, !tbaa !16
  store double %186, ptr %28, align 8, !tbaa !16
  store i64 0, ptr %32, align 8, !tbaa !9
  br label %187

187:                                              ; preds = %374, %177
  %188 = load i64, ptr %32, align 8, !tbaa !9
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %189, i32 0, i32 3
  %191 = load i64, ptr %190, align 8, !tbaa !30
  %192 = sub nsw i64 %191, 1
  %193 = icmp sle i64 %188, %192
  br i1 %193, label %194, label %377

194:                                              ; preds = %187
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %195, i32 0, i32 6
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %196, i32 0, i32 6
  %198 = load ptr, ptr %197, align 8, !tbaa !15
  %199 = load i64, ptr %29, align 8, !tbaa !9
  %200 = getelementptr inbounds ptr, ptr %198, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = load i64, ptr %32, align 8, !tbaa !9
  %203 = add nsw i64 1, %202
  %204 = getelementptr inbounds double, ptr %201, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !16
  store double %205, ptr %27, align 8, !tbaa !16
  %206 = load double, ptr %28, align 8, !tbaa !16
  %207 = load double, ptr @_ZN11alglib_implL18rbfv1_rbffarradiusE, align 8, !tbaa !16
  %208 = fmul double %206, %207
  store double %208, ptr %21, align 8, !tbaa !16
  %209 = load i64, ptr %10, align 8, !tbaa !9
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %210, i32 0, i32 5
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %211, i32 0, i32 6
  %213 = load ptr, ptr %212, align 8, !tbaa !15
  %214 = load i64, ptr %29, align 8, !tbaa !9
  %215 = getelementptr inbounds ptr, ptr %213, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 0
  %218 = load double, ptr %217, align 8, !tbaa !16
  %219 = load double, ptr %21, align 8, !tbaa !16
  %220 = fsub double %218, %219
  %221 = load ptr, ptr %14, align 8, !tbaa !5
  %222 = call noundef i64 @_ZN11alglib_impl10lowerboundEPNS_9ae_vectorEldPNS_8ae_stateE(ptr noundef %16, i64 noundef %209, double noundef %220, ptr noundef %221)
  store i64 %222, ptr %33, align 8, !tbaa !9
  %223 = load i64, ptr %10, align 8, !tbaa !9
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %224, i32 0, i32 5
  %226 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %225, i32 0, i32 6
  %227 = load ptr, ptr %226, align 8, !tbaa !15
  %228 = load i64, ptr %29, align 8, !tbaa !9
  %229 = getelementptr inbounds ptr, ptr %227, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = getelementptr inbounds double, ptr %230, i64 0
  %232 = load double, ptr %231, align 8, !tbaa !16
  %233 = load double, ptr %21, align 8, !tbaa !16
  %234 = fadd double %232, %233
  %235 = load ptr, ptr %14, align 8, !tbaa !5
  %236 = call noundef i64 @_ZN11alglib_impl10upperboundEPNS_9ae_vectorEldPNS_8ae_stateE(ptr noundef %16, i64 noundef %223, double noundef %234, ptr noundef %235)
  store i64 %236, ptr %34, align 8, !tbaa !9
  %237 = load i64, ptr %12, align 8, !tbaa !9
  %238 = load ptr, ptr %8, align 8, !tbaa !5
  %239 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %238, i32 0, i32 5
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %239, i32 0, i32 6
  %241 = load ptr, ptr %240, align 8, !tbaa !15
  %242 = load i64, ptr %29, align 8, !tbaa !9
  %243 = getelementptr inbounds ptr, ptr %241, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  %245 = getelementptr inbounds double, ptr %244, i64 1
  %246 = load double, ptr %245, align 8, !tbaa !16
  %247 = load double, ptr %21, align 8, !tbaa !16
  %248 = fsub double %246, %247
  %249 = load ptr, ptr %14, align 8, !tbaa !5
  %250 = call noundef i64 @_ZN11alglib_impl10lowerboundEPNS_9ae_vectorEldPNS_8ae_stateE(ptr noundef %17, i64 noundef %237, double noundef %248, ptr noundef %249)
  store i64 %250, ptr %35, align 8, !tbaa !9
  %251 = load i64, ptr %12, align 8, !tbaa !9
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %252, i32 0, i32 5
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %253, i32 0, i32 6
  %255 = load ptr, ptr %254, align 8, !tbaa !15
  %256 = load i64, ptr %29, align 8, !tbaa !9
  %257 = getelementptr inbounds ptr, ptr %255, i64 %256
  %258 = load ptr, ptr %257, align 8, !tbaa !5
  %259 = getelementptr inbounds double, ptr %258, i64 1
  %260 = load double, ptr %259, align 8, !tbaa !16
  %261 = load double, ptr %21, align 8, !tbaa !16
  %262 = fadd double %260, %261
  %263 = load ptr, ptr %14, align 8, !tbaa !5
  %264 = call noundef i64 @_ZN11alglib_impl10upperboundEPNS_9ae_vectorEldPNS_8ae_stateE(ptr noundef %17, i64 noundef %251, double noundef %262, ptr noundef %263)
  store i64 %264, ptr %36, align 8, !tbaa !9
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  %266 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %265, i32 0, i32 5
  %267 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %266, i32 0, i32 6
  %268 = load ptr, ptr %267, align 8, !tbaa !15
  %269 = load i64, ptr %29, align 8, !tbaa !9
  %270 = getelementptr inbounds ptr, ptr %268, i64 %269
  %271 = load ptr, ptr %270, align 8, !tbaa !5
  %272 = getelementptr inbounds double, ptr %271, i64 0
  %273 = load double, ptr %272, align 8, !tbaa !16
  store double %273, ptr %25, align 8, !tbaa !16
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  %275 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %274, i32 0, i32 5
  %276 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %275, i32 0, i32 6
  %277 = load ptr, ptr %276, align 8, !tbaa !15
  %278 = load i64, ptr %29, align 8, !tbaa !9
  %279 = getelementptr inbounds ptr, ptr %277, i64 %278
  %280 = load ptr, ptr %279, align 8, !tbaa !5
  %281 = getelementptr inbounds double, ptr %280, i64 1
  %282 = load double, ptr %281, align 8, !tbaa !16
  store double %282, ptr %26, align 8, !tbaa !16
  %283 = load i64, ptr %33, align 8, !tbaa !9
  store i64 %283, ptr %30, align 8, !tbaa !9
  br label %284

284:                                              ; preds = %368, %194
  %285 = load i64, ptr %30, align 8, !tbaa !9
  %286 = load i64, ptr %34, align 8, !tbaa !9
  %287 = sub nsw i64 %286, 1
  %288 = icmp sle i64 %285, %287
  br i1 %288, label %289, label %371

289:                                              ; preds = %284
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %291 = load ptr, ptr %290, align 8, !tbaa !15
  %292 = load i64, ptr %30, align 8, !tbaa !9
  %293 = getelementptr inbounds double, ptr %291, i64 %292
  %294 = load double, ptr %293, align 8, !tbaa !16
  store double %294, ptr %24, align 8, !tbaa !16
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %18, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !15
  %297 = load i64, ptr %30, align 8, !tbaa !9
  %298 = getelementptr inbounds i64, ptr %296, i64 %297
  %299 = load i64, ptr %298, align 8, !tbaa !9
  store i64 %299, ptr %23, align 8, !tbaa !9
  %300 = load i64, ptr %35, align 8, !tbaa !9
  store i64 %300, ptr %31, align 8, !tbaa !9
  br label %301

301:                                              ; preds = %364, %289
  %302 = load i64, ptr %31, align 8, !tbaa !9
  %303 = load i64, ptr %36, align 8, !tbaa !9
  %304 = sub nsw i64 %303, 1
  %305 = icmp sle i64 %302, %304
  br i1 %305, label %306, label %367

306:                                              ; preds = %301
  %307 = load double, ptr %24, align 8, !tbaa !16
  %308 = load double, ptr %25, align 8, !tbaa !16
  %309 = fsub double %307, %308
  %310 = load ptr, ptr %14, align 8, !tbaa !5
  %311 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %309, ptr noundef %310)
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !15
  %314 = load i64, ptr %31, align 8, !tbaa !9
  %315 = getelementptr inbounds double, ptr %313, i64 %314
  %316 = load double, ptr %315, align 8, !tbaa !16
  %317 = load double, ptr %26, align 8, !tbaa !16
  %318 = fsub double %316, %317
  %319 = load ptr, ptr %14, align 8, !tbaa !5
  %320 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %318, ptr noundef %319)
  %321 = fadd double %311, %320
  store double %321, ptr %22, align 8, !tbaa !16
  %322 = load double, ptr %22, align 8, !tbaa !16
  %323 = load double, ptr %21, align 8, !tbaa !16
  %324 = load double, ptr %21, align 8, !tbaa !16
  %325 = fmul double %323, %324
  %326 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %322, double noundef %325)
  br i1 %326, label %327, label %363

327:                                              ; preds = %306
  %328 = load ptr, ptr %13, align 8, !tbaa !5
  %329 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %328, i32 0, i32 6
  %330 = load ptr, ptr %329, align 8, !tbaa !15
  %331 = load i64, ptr %23, align 8, !tbaa !9
  %332 = getelementptr inbounds ptr, ptr %330, i64 %331
  %333 = load ptr, ptr %332, align 8, !tbaa !5
  %334 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %335 = load ptr, ptr %334, align 8, !tbaa !15
  %336 = load i64, ptr %31, align 8, !tbaa !9
  %337 = getelementptr inbounds i64, ptr %335, i64 %336
  %338 = load i64, ptr %337, align 8, !tbaa !9
  %339 = getelementptr inbounds double, ptr %333, i64 %338
  %340 = load double, ptr %339, align 8, !tbaa !16
  %341 = load double, ptr %22, align 8, !tbaa !16
  %342 = fneg double %341
  %343 = load double, ptr %28, align 8, !tbaa !16
  %344 = load ptr, ptr %14, align 8, !tbaa !5
  %345 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %343, ptr noundef %344)
  %346 = fdiv double %342, %345
  %347 = load ptr, ptr %14, align 8, !tbaa !5
  %348 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %346, ptr noundef %347)
  %349 = load double, ptr %27, align 8, !tbaa !16
  %350 = call double @llvm.fmuladd.f64(double %348, double %349, double %340)
  %351 = load ptr, ptr %13, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %351, i32 0, i32 6
  %353 = load ptr, ptr %352, align 8, !tbaa !15
  %354 = load i64, ptr %23, align 8, !tbaa !9
  %355 = getelementptr inbounds ptr, ptr %353, i64 %354
  %356 = load ptr, ptr %355, align 8, !tbaa !5
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %19, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !15
  %359 = load i64, ptr %31, align 8, !tbaa !9
  %360 = getelementptr inbounds i64, ptr %358, i64 %359
  %361 = load i64, ptr %360, align 8, !tbaa !9
  %362 = getelementptr inbounds double, ptr %356, i64 %361
  store double %350, ptr %362, align 8, !tbaa !16
  br label %363

363:                                              ; preds = %327, %306
  br label %364

364:                                              ; preds = %363
  %365 = load i64, ptr %31, align 8, !tbaa !9
  %366 = add nsw i64 %365, 1
  store i64 %366, ptr %31, align 8, !tbaa !9
  br label %301, !llvm.loop !31

367:                                              ; preds = %301
  br label %368

368:                                              ; preds = %367
  %369 = load i64, ptr %30, align 8, !tbaa !9
  %370 = add nsw i64 %369, 1
  store i64 %370, ptr %30, align 8, !tbaa !9
  br label %284, !llvm.loop !32

371:                                              ; preds = %284
  %372 = load double, ptr %28, align 8, !tbaa !16
  %373 = fmul double 5.000000e-01, %372
  store double %373, ptr %28, align 8, !tbaa !16
  br label %374

374:                                              ; preds = %371
  %375 = load i64, ptr %32, align 8, !tbaa !9
  %376 = add nsw i64 %375, 1
  store i64 %376, ptr %32, align 8, !tbaa !9
  br label %187, !llvm.loop !33

377:                                              ; preds = %187
  br label %378

378:                                              ; preds = %377
  %379 = load i64, ptr %29, align 8, !tbaa !9
  %380 = add nsw i64 %379, 1
  store i64 %380, ptr %29, align 8, !tbaa !9
  br label %170, !llvm.loop !34

381:                                              ; preds = %170
  store i64 0, ptr %29, align 8, !tbaa !9
  br label %382

382:                                              ; preds = %455, %381
  %383 = load i64, ptr %29, align 8, !tbaa !9
  %384 = load i64, ptr %10, align 8, !tbaa !9
  %385 = sub nsw i64 %384, 1
  %386 = icmp sle i64 %383, %385
  br i1 %386, label %387, label %458

387:                                              ; preds = %382
  store i64 0, ptr %30, align 8, !tbaa !9
  br label %388

388:                                              ; preds = %451, %387
  %389 = load i64, ptr %30, align 8, !tbaa !9
  %390 = load i64, ptr %12, align 8, !tbaa !9
  %391 = sub nsw i64 %390, 1
  %392 = icmp sle i64 %389, %391
  br i1 %392, label %393, label %454

393:                                              ; preds = %388
  %394 = load ptr, ptr %13, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %394, i32 0, i32 6
  %396 = load ptr, ptr %395, align 8, !tbaa !15
  %397 = load i64, ptr %29, align 8, !tbaa !9
  %398 = getelementptr inbounds ptr, ptr %396, i64 %397
  %399 = load ptr, ptr %398, align 8, !tbaa !5
  %400 = load i64, ptr %30, align 8, !tbaa !9
  %401 = getelementptr inbounds double, ptr %399, i64 %400
  %402 = load double, ptr %401, align 8, !tbaa !16
  %403 = load ptr, ptr %8, align 8, !tbaa !5
  %404 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %403, i32 0, i32 8
  %405 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %404, i32 0, i32 6
  %406 = load ptr, ptr %405, align 8, !tbaa !15
  %407 = getelementptr inbounds ptr, ptr %406, i64 0
  %408 = load ptr, ptr %407, align 8, !tbaa !5
  %409 = getelementptr inbounds double, ptr %408, i64 0
  %410 = load double, ptr %409, align 8, !tbaa !16
  %411 = load ptr, ptr %9, align 8, !tbaa !5
  %412 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %411, i32 0, i32 4
  %413 = load ptr, ptr %412, align 8, !tbaa !15
  %414 = load i64, ptr %29, align 8, !tbaa !9
  %415 = getelementptr inbounds double, ptr %413, i64 %414
  %416 = load double, ptr %415, align 8, !tbaa !16
  %417 = call double @llvm.fmuladd.f64(double %410, double %416, double %402)
  %418 = load ptr, ptr %8, align 8, !tbaa !5
  %419 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %418, i32 0, i32 8
  %420 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %419, i32 0, i32 6
  %421 = load ptr, ptr %420, align 8, !tbaa !15
  %422 = getelementptr inbounds ptr, ptr %421, i64 0
  %423 = load ptr, ptr %422, align 8, !tbaa !5
  %424 = getelementptr inbounds double, ptr %423, i64 1
  %425 = load double, ptr %424, align 8, !tbaa !16
  %426 = load ptr, ptr %11, align 8, !tbaa !5
  %427 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %426, i32 0, i32 4
  %428 = load ptr, ptr %427, align 8, !tbaa !15
  %429 = load i64, ptr %30, align 8, !tbaa !9
  %430 = getelementptr inbounds double, ptr %428, i64 %429
  %431 = load double, ptr %430, align 8, !tbaa !16
  %432 = call double @llvm.fmuladd.f64(double %425, double %431, double %417)
  %433 = load ptr, ptr %8, align 8, !tbaa !5
  %434 = getelementptr inbounds %"struct.alglib_impl::rbfv1model", ptr %433, i32 0, i32 8
  %435 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %434, i32 0, i32 6
  %436 = load ptr, ptr %435, align 8, !tbaa !15
  %437 = getelementptr inbounds ptr, ptr %436, i64 0
  %438 = load ptr, ptr %437, align 8, !tbaa !5
  %439 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8, !tbaa !9
  %440 = getelementptr inbounds double, ptr %438, i64 %439
  %441 = load double, ptr %440, align 8, !tbaa !16
  %442 = fadd double %432, %441
  %443 = load ptr, ptr %13, align 8, !tbaa !5
  %444 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %443, i32 0, i32 6
  %445 = load ptr, ptr %444, align 8, !tbaa !15
  %446 = load i64, ptr %29, align 8, !tbaa !9
  %447 = getelementptr inbounds ptr, ptr %445, i64 %446
  %448 = load ptr, ptr %447, align 8, !tbaa !5
  %449 = load i64, ptr %30, align 8, !tbaa !9
  %450 = getelementptr inbounds double, ptr %448, i64 %449
  store double %442, ptr %450, align 8, !tbaa !16
  br label %451

451:                                              ; preds = %393
  %452 = load i64, ptr %30, align 8, !tbaa !9
  %453 = add nsw i64 %452, 1
  store i64 %453, ptr %30, align 8, !tbaa !9
  br label %388, !llvm.loop !35

454:                                              ; preds = %388
  br label %455

455:                                              ; preds = %454
  %456 = load i64, ptr %29, align 8, !tbaa !9
  %457 = add nsw i64 %456, 1
  store i64 %457, ptr %29, align 8, !tbaa !9
  br label %382, !llvm.loop !36

458:                                              ; preds = %382
  %459 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %459)
  store i32 0, ptr %37, align 4
  br label %460

460:                                              ; preds = %458, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %461 = load i32, ptr %37, align 4
  switch i32 %461, label %463 [
    i32 0, label %462
    i32 1, label %462
  ]

462:                                              ; preds = %460, %460
  ret void

463:                                              ; preds = %460
  unreachable
}

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


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

@.str.682 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.683 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.684 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.685 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.686 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.687 = external hidden unnamed_addr constant [50 x i8], align 1
@_ZN11alglib_implL10rbfv1_mxnxE = external hidden local_unnamed_addr global i64, align 8
@_ZN11alglib_implL18rbfv1_rbffarradiusE = external hidden local_unnamed_addr global double, align 8

; 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 noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_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

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(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_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #2

declare noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(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 noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14rbfv1gridcalc2EPNS_10rbfv1modelEPNS_9ae_vectorElS3_lPNS_9ae_matrixEPNS_8ae_stateE(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #4 {
  %8 = alloca %"struct.alglib_impl::ae_frame", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %6, ptr noundef nonnull %8)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 2, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 2, ptr noundef %6, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 2, ptr noundef %6, i1 noundef zeroext true)
  %14 = icmp sgt i64 %2, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.682, ptr noundef %6)
  %15 = icmp sgt i64 %4, 0
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.683, ptr noundef %6)
  %16 = load i64, ptr %1, align 8, !tbaa !5
  %17 = icmp sge i64 %16, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.684, ptr noundef %6)
  %18 = load i64, ptr %3, align 8, !tbaa !5
  %19 = icmp sge i64 %18, %4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.685, ptr noundef %6)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %1, i64 noundef %2, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.686, ptr noundef %6)
  %21 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %4, ptr noundef %6)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.687, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %2, i64 noundef %4, ptr noundef %6)
  br i1 %14, label %.preheader167.lr.ph, label %._crit_edge172

.preheader167.lr.ph:                              ; preds = %7
  %22 = getelementptr inbounds i8, ptr %5, i64 72
  br i1 %15, label %.preheader167.us.preheader, label %._crit_edge172

.preheader167.us.preheader:                       ; preds = %.preheader167.lr.ph
  %xtraiter = and i64 %4, 3
  %23 = icmp ult i64 %4, 4
  %unroll_iter = and i64 %4, 9223372036854775804
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader167.us

.preheader167.us:                                 ; preds = %.preheader167.us.preheader, %._crit_edge.us
  %.0148171.us = phi i64 [ %49, %._crit_edge.us ], [ 0, %.preheader167.us.preheader ]
  br i1 %23, label %._crit_edge.us.unr-lcssa, label %.preheader167.us.new

.preheader167.us.new:                             ; preds = %.preheader167.us, %.preheader167.us.new
  %.0149169.us = phi i64 [ %43, %.preheader167.us.new ], [ 0, %.preheader167.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader167.us.new ], [ 0, %.preheader167.us ]
  %24 = load ptr, ptr %22, align 8, !tbaa !13
  %25 = getelementptr inbounds ptr, ptr %24, i64 %.0148171.us
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = getelementptr inbounds double, ptr %26, i64 %.0149169.us
  store double 0.000000e+00, ptr %27, align 8, !tbaa !15
  %28 = or disjoint i64 %.0149169.us, 1
  %29 = load ptr, ptr %22, align 8, !tbaa !13
  %30 = getelementptr inbounds ptr, ptr %29, i64 %.0148171.us
  %31 = load ptr, ptr %30, align 8, !tbaa !14
  %32 = getelementptr inbounds double, ptr %31, i64 %28
  store double 0.000000e+00, ptr %32, align 8, !tbaa !15
  %33 = or disjoint i64 %.0149169.us, 2
  %34 = load ptr, ptr %22, align 8, !tbaa !13
  %35 = getelementptr inbounds ptr, ptr %34, i64 %.0148171.us
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds double, ptr %36, i64 %33
  store double 0.000000e+00, ptr %37, align 8, !tbaa !15
  %38 = or disjoint i64 %.0149169.us, 3
  %39 = load ptr, ptr %22, align 8, !tbaa !13
  %40 = getelementptr inbounds ptr, ptr %39, i64 %.0148171.us
  %41 = load ptr, ptr %40, align 8, !tbaa !14
  %42 = getelementptr inbounds double, ptr %41, i64 %38
  store double 0.000000e+00, ptr %42, align 8, !tbaa !15
  %43 = add nuw nsw i64 %.0149169.us, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader167.us.new, !llvm.loop !17

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader167.us.new, %.preheader167.us
  %.0149169.us.unr = phi i64 [ 0, %.preheader167.us ], [ %43, %.preheader167.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %.0149169.us.epil = phi i64 [ %48, %.epil.preheader ], [ %.0149169.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %44 = load ptr, ptr %22, align 8, !tbaa !13
  %45 = getelementptr inbounds ptr, ptr %44, i64 %.0148171.us
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = getelementptr inbounds double, ptr %46, i64 %.0149169.us.epil
  store double 0.000000e+00, ptr %47, align 8, !tbaa !15
  %48 = add nuw nsw i64 %.0149169.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !19

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %49 = add nuw nsw i64 %.0148171.us, 1
  %exitcond212.not = icmp eq i64 %49, %2
  br i1 %exitcond212.not, label %._crit_edge172, label %.preheader167.us, !llvm.loop !21

._crit_edge172:                                   ; preds = %._crit_edge.us, %.preheader167.lr.ph, %7
  %50 = load i64, ptr %0, align 8, !tbaa !22
  %.not = icmp eq i64 %50, 1
  br i1 %.not, label %51, label %._crit_edge207

51:                                               ; preds = %._crit_edge172
  %52 = getelementptr inbounds i8, ptr %0, i64 8
  %53 = load i64, ptr %52, align 8, !tbaa !27
  %.not156 = icmp eq i64 %53, 2
  br i1 %.not156, label %54, label %._crit_edge207

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %0, i64 16
  %56 = load i64, ptr %55, align 8, !tbaa !28
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %._crit_edge207, label %58

58:                                               ; preds = %54
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, ptr noundef %6)
  br i1 %14, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %58
  %59 = getelementptr inbounds i8, ptr %1, i64 56
  %60 = getelementptr inbounds i8, ptr %9, i64 56
  %xtraiter220 = and i64 %2, 3
  %61 = icmp ult i64 %2, 4
  br i1 %61, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter223 = and i64 %2, 9223372036854775804
  br label %62

62:                                               ; preds = %62, %.lr.ph.new
  %.1174 = phi i64 [ 0, %.lr.ph.new ], [ %86, %62 ]
  %niter224 = phi i64 [ 0, %.lr.ph.new ], [ %niter224.next.3, %62 ]
  %63 = load ptr, ptr %59, align 8, !tbaa !13
  %64 = getelementptr inbounds double, ptr %63, i64 %.1174
  %65 = load double, ptr %64, align 8, !tbaa !15
  %66 = load ptr, ptr %60, align 8, !tbaa !13
  %67 = getelementptr inbounds double, ptr %66, i64 %.1174
  store double %65, ptr %67, align 8, !tbaa !15
  %68 = or disjoint i64 %.1174, 1
  %69 = load ptr, ptr %59, align 8, !tbaa !13
  %70 = getelementptr inbounds double, ptr %69, i64 %68
  %71 = load double, ptr %70, align 8, !tbaa !15
  %72 = load ptr, ptr %60, align 8, !tbaa !13
  %73 = getelementptr inbounds double, ptr %72, i64 %68
  store double %71, ptr %73, align 8, !tbaa !15
  %74 = or disjoint i64 %.1174, 2
  %75 = load ptr, ptr %59, align 8, !tbaa !13
  %76 = getelementptr inbounds double, ptr %75, i64 %74
  %77 = load double, ptr %76, align 8, !tbaa !15
  %78 = load ptr, ptr %60, align 8, !tbaa !13
  %79 = getelementptr inbounds double, ptr %78, i64 %74
  store double %77, ptr %79, align 8, !tbaa !15
  %80 = or disjoint i64 %.1174, 3
  %81 = load ptr, ptr %59, align 8, !tbaa !13
  %82 = getelementptr inbounds double, ptr %81, i64 %80
  %83 = load double, ptr %82, align 8, !tbaa !15
  %84 = load ptr, ptr %60, align 8, !tbaa !13
  %85 = getelementptr inbounds double, ptr %84, i64 %80
  store double %83, ptr %85, align 8, !tbaa !15
  %86 = add nuw nsw i64 %.1174, 4
  %niter224.next.3 = add i64 %niter224, 4
  %niter224.ncmp.3 = icmp eq i64 %niter224.next.3, %unroll_iter223
  br i1 %niter224.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %62, !llvm.loop !29

._crit_edge.loopexit.unr-lcssa:                   ; preds = %62, %.lr.ph
  %.1174.unr = phi i64 [ 0, %.lr.ph ], [ %86, %62 ]
  %lcmp.mod222.not = icmp eq i64 %xtraiter220, 0
  br i1 %lcmp.mod222.not, label %._crit_edge, label %.epil.preheader219

.epil.preheader219:                               ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader219
  %.1174.epil = phi i64 [ %92, %.epil.preheader219 ], [ %.1174.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter221 = phi i64 [ %epil.iter221.next, %.epil.preheader219 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %87 = load ptr, ptr %59, align 8, !tbaa !13
  %88 = getelementptr inbounds double, ptr %87, i64 %.1174.epil
  %89 = load double, ptr %88, align 8, !tbaa !15
  %90 = load ptr, ptr %60, align 8, !tbaa !13
  %91 = getelementptr inbounds double, ptr %90, i64 %.1174.epil
  store double %89, ptr %91, align 8, !tbaa !15
  %92 = add nuw nsw i64 %.1174.epil, 1
  %epil.iter221.next = add i64 %epil.iter221, 1
  %epil.iter221.cmp.not = icmp eq i64 %epil.iter221.next, %xtraiter220
  br i1 %epil.iter221.cmp.not, label %._crit_edge, label %.epil.preheader219, !llvm.loop !30

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader219, %58
  call void @_ZN11alglib_impl7tagsortEPNS_9ae_vectorElS1_S1_PNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, ptr noundef nonnull %11, ptr noundef nonnull %13, ptr noundef %6)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %4, ptr noundef %6)
  br i1 %15, label %.lr.ph178, label %._crit_edge179

.lr.ph178:                                        ; preds = %._crit_edge
  %93 = getelementptr inbounds i8, ptr %3, i64 56
  %94 = getelementptr inbounds i8, ptr %10, i64 56
  %xtraiter226 = and i64 %4, 3
  %95 = icmp ult i64 %4, 4
  br i1 %95, label %._crit_edge179.loopexit.unr-lcssa, label %.lr.ph178.new

.lr.ph178.new:                                    ; preds = %.lr.ph178
  %unroll_iter229 = and i64 %4, 9223372036854775804
  br label %96

96:                                               ; preds = %96, %.lr.ph178.new
  %.2176 = phi i64 [ 0, %.lr.ph178.new ], [ %120, %96 ]
  %niter230 = phi i64 [ 0, %.lr.ph178.new ], [ %niter230.next.3, %96 ]
  %97 = load ptr, ptr %93, align 8, !tbaa !13
  %98 = getelementptr inbounds double, ptr %97, i64 %.2176
  %99 = load double, ptr %98, align 8, !tbaa !15
  %100 = load ptr, ptr %94, align 8, !tbaa !13
  %101 = getelementptr inbounds double, ptr %100, i64 %.2176
  store double %99, ptr %101, align 8, !tbaa !15
  %102 = or disjoint i64 %.2176, 1
  %103 = load ptr, ptr %93, align 8, !tbaa !13
  %104 = getelementptr inbounds double, ptr %103, i64 %102
  %105 = load double, ptr %104, align 8, !tbaa !15
  %106 = load ptr, ptr %94, align 8, !tbaa !13
  %107 = getelementptr inbounds double, ptr %106, i64 %102
  store double %105, ptr %107, align 8, !tbaa !15
  %108 = or disjoint i64 %.2176, 2
  %109 = load ptr, ptr %93, align 8, !tbaa !13
  %110 = getelementptr inbounds double, ptr %109, i64 %108
  %111 = load double, ptr %110, align 8, !tbaa !15
  %112 = load ptr, ptr %94, align 8, !tbaa !13
  %113 = getelementptr inbounds double, ptr %112, i64 %108
  store double %111, ptr %113, align 8, !tbaa !15
  %114 = or disjoint i64 %.2176, 3
  %115 = load ptr, ptr %93, align 8, !tbaa !13
  %116 = getelementptr inbounds double, ptr %115, i64 %114
  %117 = load double, ptr %116, align 8, !tbaa !15
  %118 = load ptr, ptr %94, align 8, !tbaa !13
  %119 = getelementptr inbounds double, ptr %118, i64 %114
  store double %117, ptr %119, align 8, !tbaa !15
  %120 = add nuw nsw i64 %.2176, 4
  %niter230.next.3 = add i64 %niter230, 4
  %niter230.ncmp.3 = icmp eq i64 %niter230.next.3, %unroll_iter229
  br i1 %niter230.ncmp.3, label %._crit_edge179.loopexit.unr-lcssa, label %96, !llvm.loop !31

._crit_edge179.loopexit.unr-lcssa:                ; preds = %96, %.lr.ph178
  %.2176.unr = phi i64 [ 0, %.lr.ph178 ], [ %120, %96 ]
  %lcmp.mod228.not = icmp eq i64 %xtraiter226, 0
  br i1 %lcmp.mod228.not, label %._crit_edge179, label %.epil.preheader225

.epil.preheader225:                               ; preds = %._crit_edge179.loopexit.unr-lcssa, %.epil.preheader225
  %.2176.epil = phi i64 [ %126, %.epil.preheader225 ], [ %.2176.unr, %._crit_edge179.loopexit.unr-lcssa ]
  %epil.iter227 = phi i64 [ %epil.iter227.next, %.epil.preheader225 ], [ 0, %._crit_edge179.loopexit.unr-lcssa ]
  %121 = load ptr, ptr %93, align 8, !tbaa !13
  %122 = getelementptr inbounds double, ptr %121, i64 %.2176.epil
  %123 = load double, ptr %122, align 8, !tbaa !15
  %124 = load ptr, ptr %94, align 8, !tbaa !13
  %125 = getelementptr inbounds double, ptr %124, i64 %.2176.epil
  store double %123, ptr %125, align 8, !tbaa !15
  %126 = add nuw nsw i64 %.2176.epil, 1
  %epil.iter227.next = add i64 %epil.iter227, 1
  %epil.iter227.cmp.not = icmp eq i64 %epil.iter227.next, %xtraiter226
  br i1 %epil.iter227.cmp.not, label %._crit_edge179, label %.epil.preheader225, !llvm.loop !32

._crit_edge179:                                   ; preds = %._crit_edge179.loopexit.unr-lcssa, %.epil.preheader225, %._crit_edge
  call void @_ZN11alglib_impl7tagsortEPNS_9ae_vectorElS1_S1_PNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %4, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef %6)
  %127 = load i64, ptr %55, align 8, !tbaa !28
  %.not159.not197 = icmp sgt i64 %127, 0
  br i1 %.not159.not197, label %.lr.ph200, label %.preheader166

.lr.ph200:                                        ; preds = %._crit_edge179
  %128 = getelementptr inbounds i8, ptr %0, i64 1184
  %129 = getelementptr inbounds i8, ptr %0, i64 24
  %130 = getelementptr inbounds i8, ptr %0, i64 1104
  %131 = getelementptr inbounds i8, ptr %9, i64 56
  %132 = getelementptr inbounds i8, ptr %11, i64 56
  %133 = getelementptr inbounds i8, ptr %10, i64 56
  %134 = getelementptr inbounds i8, ptr %5, i64 72
  %135 = getelementptr inbounds i8, ptr %12, i64 56
  %136 = load i64, ptr %129, align 8, !tbaa !33
  %137 = icmp sgt i64 %136, 0
  br i1 %137, label %.lr.ph200.split, label %.preheader166

.preheader166:                                    ; preds = %._crit_edge196, %.lr.ph200, %._crit_edge179
  br i1 %14, label %.preheader.lr.ph, label %._crit_edge207

.preheader.lr.ph:                                 ; preds = %.preheader166
  %138 = getelementptr inbounds i8, ptr %5, i64 72
  %139 = getelementptr inbounds i8, ptr %0, i64 1272
  %140 = getelementptr inbounds i8, ptr %1, i64 56
  %141 = getelementptr inbounds i8, ptr %3, i64 56
  %142 = load i64, ptr @_ZN11alglib_implL10rbfv1_mxnxE, align 8
  br i1 %15, label %.preheader.us, label %._crit_edge207

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge204.us
  %.4206.us = phi i64 [ %166, %._crit_edge204.us ], [ 0, %.preheader.lr.ph ]
  br label %143

143:                                              ; preds = %.preheader.us, %143
  %.2151202.us = phi i64 [ 0, %.preheader.us ], [ %165, %143 ]
  %144 = load ptr, ptr %138, align 8, !tbaa !13
  %145 = getelementptr inbounds ptr, ptr %144, i64 %.4206.us
  %146 = load ptr, ptr %145, align 8, !tbaa !14
  %147 = getelementptr inbounds double, ptr %146, i64 %.2151202.us
  %148 = load double, ptr %147, align 8, !tbaa !15
  %149 = load ptr, ptr %139, align 8, !tbaa !13
  %150 = load ptr, ptr %149, align 8, !tbaa !14
  %151 = load double, ptr %150, align 8, !tbaa !15
  %152 = load ptr, ptr %140, align 8, !tbaa !13
  %153 = getelementptr inbounds double, ptr %152, i64 %.4206.us
  %154 = load double, ptr %153, align 8, !tbaa !15
  %155 = call double @llvm.fmuladd.f64(double %151, double %154, double %148)
  %156 = getelementptr inbounds i8, ptr %150, i64 8
  %157 = load double, ptr %156, align 8, !tbaa !15
  %158 = load ptr, ptr %141, align 8, !tbaa !13
  %159 = getelementptr inbounds double, ptr %158, i64 %.2151202.us
  %160 = load double, ptr %159, align 8, !tbaa !15
  %161 = call double @llvm.fmuladd.f64(double %157, double %160, double %155)
  %162 = getelementptr inbounds double, ptr %150, i64 %142
  %163 = load double, ptr %162, align 8, !tbaa !15
  %164 = fadd double %161, %163
  store double %164, ptr %147, align 8, !tbaa !15
  %165 = add nuw nsw i64 %.2151202.us, 1
  %exitcond217.not = icmp eq i64 %165, %4
  br i1 %exitcond217.not, label %._crit_edge204.us, label %143, !llvm.loop !34

._crit_edge204.us:                                ; preds = %143
  %166 = add nuw nsw i64 %.4206.us, 1
  %exitcond218.not = icmp eq i64 %166, %2
  br i1 %exitcond218.not, label %._crit_edge207, label %.preheader.us, !llvm.loop !35

.lr.ph200.split:                                  ; preds = %.lr.ph200, %._crit_edge196
  %167 = phi i64 [ %256, %._crit_edge196 ], [ %127, %.lr.ph200 ]
  %168 = phi i64 [ %257, %._crit_edge196 ], [ %136, %.lr.ph200 ]
  %.3198 = phi i64 [ %258, %._crit_edge196 ], [ 0, %.lr.ph200 ]
  %.not162.not190 = icmp sgt i64 %168, 0
  br i1 %.not162.not190, label %.lr.ph195.preheader, label %._crit_edge196

.lr.ph195.preheader:                              ; preds = %.lr.ph200.split
  %169 = load ptr, ptr %128, align 8, !tbaa !13
  %170 = getelementptr inbounds ptr, ptr %169, i64 %.3198
  %171 = load ptr, ptr %170, align 8, !tbaa !14
  %172 = load double, ptr %171, align 8, !tbaa !15
  br label %.lr.ph195

.lr.ph195:                                        ; preds = %.lr.ph195.preheader, %._crit_edge189
  %.0192 = phi double [ %254, %._crit_edge189 ], [ %172, %.lr.ph195.preheader ]
  %.0153191 = phi i64 [ %176, %._crit_edge189 ], [ 0, %.lr.ph195.preheader ]
  %173 = load ptr, ptr %128, align 8, !tbaa !13
  %174 = getelementptr inbounds ptr, ptr %173, i64 %.3198
  %175 = load ptr, ptr %174, align 8, !tbaa !14
  %176 = add nuw nsw i64 %.0153191, 1
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !15
  %179 = load double, ptr @_ZN11alglib_implL18rbfv1_rbffarradiusE, align 8, !tbaa !15
  %180 = fmul double %.0192, %179
  %181 = load ptr, ptr %130, align 8, !tbaa !13
  %182 = getelementptr inbounds ptr, ptr %181, i64 %.3198
  %183 = load ptr, ptr %182, align 8, !tbaa !14
  %184 = load double, ptr %183, align 8, !tbaa !15
  %185 = fsub double %184, %180
  %186 = call noundef i64 @_ZN11alglib_impl10lowerboundEPNS_9ae_vectorEldPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, double noundef %185, ptr noundef %6)
  %187 = load ptr, ptr %130, align 8, !tbaa !13
  %188 = getelementptr inbounds ptr, ptr %187, i64 %.3198
  %189 = load ptr, ptr %188, align 8, !tbaa !14
  %190 = load double, ptr %189, align 8, !tbaa !15
  %191 = fadd double %180, %190
  %192 = call noundef i64 @_ZN11alglib_impl10upperboundEPNS_9ae_vectorEldPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, double noundef %191, ptr noundef %6)
  %193 = load ptr, ptr %130, align 8, !tbaa !13
  %194 = getelementptr inbounds ptr, ptr %193, i64 %.3198
  %195 = load ptr, ptr %194, align 8, !tbaa !14
  %196 = getelementptr inbounds i8, ptr %195, i64 8
  %197 = load double, ptr %196, align 8, !tbaa !15
  %198 = fsub double %197, %180
  %199 = call noundef i64 @_ZN11alglib_impl10lowerboundEPNS_9ae_vectorEldPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %4, double noundef %198, ptr noundef %6)
  %200 = load ptr, ptr %130, align 8, !tbaa !13
  %201 = getelementptr inbounds ptr, ptr %200, i64 %.3198
  %202 = load ptr, ptr %201, align 8, !tbaa !14
  %203 = getelementptr inbounds i8, ptr %202, i64 8
  %204 = load double, ptr %203, align 8, !tbaa !15
  %205 = fadd double %180, %204
  %206 = call noundef i64 @_ZN11alglib_impl10upperboundEPNS_9ae_vectorEldPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %4, double noundef %205, ptr noundef %6)
  %207 = load ptr, ptr %130, align 8, !tbaa !13
  %208 = getelementptr inbounds ptr, ptr %207, i64 %.3198
  %209 = load ptr, ptr %208, align 8, !tbaa !14
  %210 = load double, ptr %209, align 8, !tbaa !15
  %211 = getelementptr inbounds i8, ptr %209, i64 8
  %212 = load double, ptr %211, align 8, !tbaa !15
  %.not163.not185 = icmp slt i64 %186, %192
  br i1 %.not163.not185, label %.lr.ph188, label %._crit_edge189

.lr.ph188:                                        ; preds = %.lr.ph195
  %.not164.not180 = icmp slt i64 %199, %206
  %213 = fmul double %180, %180
  br i1 %.not164.not180, label %.lr.ph183.us, label %._crit_edge189

.lr.ph183.us:                                     ; preds = %.lr.ph188, %._crit_edge184.us
  %.1150186.us = phi i64 [ %253, %._crit_edge184.us ], [ %186, %.lr.ph188 ]
  %214 = load ptr, ptr %131, align 8, !tbaa !13
  %215 = getelementptr inbounds double, ptr %214, i64 %.1150186.us
  %216 = load double, ptr %215, align 8, !tbaa !15
  %217 = load ptr, ptr %132, align 8, !tbaa !13
  %218 = getelementptr inbounds i64, ptr %217, i64 %.1150186.us
  %219 = load i64, ptr %218, align 8, !tbaa !36
  %220 = fsub double %216, %210
  br label %221

221:                                              ; preds = %.lr.ph183.us, %251
  %.0152181.us = phi i64 [ %199, %.lr.ph183.us ], [ %252, %251 ]
  %222 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %220, ptr noundef %6)
  %223 = load ptr, ptr %133, align 8, !tbaa !13
  %224 = getelementptr inbounds double, ptr %223, i64 %.0152181.us
  %225 = load double, ptr %224, align 8, !tbaa !15
  %226 = fsub double %225, %212
  %227 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %226, ptr noundef %6)
  %228 = fadd double %222, %227
  %229 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %228, double noundef %213)
  br i1 %229, label %230, label %251

230:                                              ; preds = %221
  %231 = load ptr, ptr %134, align 8, !tbaa !13
  %232 = getelementptr inbounds ptr, ptr %231, i64 %219
  %233 = load ptr, ptr %232, align 8, !tbaa !14
  %234 = load ptr, ptr %135, align 8, !tbaa !13
  %235 = getelementptr inbounds i64, ptr %234, i64 %.0152181.us
  %236 = load i64, ptr %235, align 8, !tbaa !36
  %237 = getelementptr inbounds double, ptr %233, i64 %236
  %238 = load double, ptr %237, align 8, !tbaa !15
  %239 = fneg double %228
  %240 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %.0192, ptr noundef %6)
  %241 = fdiv double %239, %240
  %242 = call noundef double @_ZN11alglib_impl6ae_expEdPNS_8ae_stateE(double noundef %241, ptr noundef %6)
  %243 = call double @llvm.fmuladd.f64(double %242, double %178, double %238)
  %244 = load ptr, ptr %134, align 8, !tbaa !13
  %245 = getelementptr inbounds ptr, ptr %244, i64 %219
  %246 = load ptr, ptr %245, align 8, !tbaa !14
  %247 = load ptr, ptr %135, align 8, !tbaa !13
  %248 = getelementptr inbounds i64, ptr %247, i64 %.0152181.us
  %249 = load i64, ptr %248, align 8, !tbaa !36
  %250 = getelementptr inbounds double, ptr %246, i64 %249
  store double %243, ptr %250, align 8, !tbaa !15
  br label %251

251:                                              ; preds = %230, %221
  %252 = add i64 %.0152181.us, 1
  %exitcond215.not = icmp eq i64 %252, %206
  br i1 %exitcond215.not, label %._crit_edge184.us, label %221, !llvm.loop !37

._crit_edge184.us:                                ; preds = %251
  %253 = add i64 %.1150186.us, 1
  %exitcond216.not = icmp eq i64 %253, %192
  br i1 %exitcond216.not, label %._crit_edge189, label %.lr.ph183.us, !llvm.loop !38

._crit_edge189:                                   ; preds = %._crit_edge184.us, %.lr.ph188, %.lr.ph195
  %254 = fmul double %.0192, 5.000000e-01
  %255 = load i64, ptr %129, align 8, !tbaa !33
  %.not162.not = icmp slt i64 %176, %255
  br i1 %.not162.not, label %.lr.ph195, label %._crit_edge196.loopexit, !llvm.loop !39

._crit_edge196.loopexit:                          ; preds = %._crit_edge189
  %.pre = load i64, ptr %55, align 8, !tbaa !28
  br label %._crit_edge196

._crit_edge196:                                   ; preds = %._crit_edge196.loopexit, %.lr.ph200.split
  %256 = phi i64 [ %.pre, %._crit_edge196.loopexit ], [ %167, %.lr.ph200.split ]
  %257 = phi i64 [ %255, %._crit_edge196.loopexit ], [ %168, %.lr.ph200.split ]
  %258 = add nuw nsw i64 %.3198, 1
  %.not159.not = icmp slt i64 %258, %256
  br i1 %.not159.not, label %.lr.ph200.split, label %.preheader166, !llvm.loop !40

._crit_edge207:                                   ; preds = %._crit_edge204.us, %.preheader166, %.preheader.lr.ph, %._crit_edge172, %51, %54
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %6)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #5
  ret void
}

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

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


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