; LLVM IR from Dimandragon/non-parametric-dsp :: 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_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%union.anon.0 = type { ptr }
%"struct.alglib_impl::rbfv2model" = type { i64, i64, i64, 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", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", double, i64, double, i64, %"struct.alglib_impl::rbfv2calcbuffer" }
%"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::rbfv2calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.708 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.709 = external hidden unnamed_addr constant [46 x i8], align 1

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) #1

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) #1

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #1

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN11alglib_impl14rbfv2farradiusElPNS_8ae_stateE(i64 noundef, ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14rbfv2tsdiffbufEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPKNS_9ae_vectorEPS5_S8_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %22, i32 0, i32 0
  %24 = load i64, ptr %23, align 8, !tbaa !9
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %25, i32 0, i32 1
  %27 = load i64, ptr %26, align 8, !tbaa !14
  %28 = icmp sge i64 %24, %27
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %28, ptr noundef @.str.708, ptr noundef %29)
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !14
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %30, i64 noundef %33, ptr noundef %34)
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.709, ptr noundef %36)
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %37, i32 0, i32 1
  %39 = load i64, ptr %38, align 8, !tbaa !14
  store i64 %39, ptr %19, align 8, !tbaa !19
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %40, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !20
  store i64 %42, ptr %20, align 8, !tbaa !19
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %43, i32 0, i32 0
  %45 = load i64, ptr %44, align 8, !tbaa !9
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !20
  %49 = icmp slt i64 %45, %48
  br i1 %49, label %50, label %56

50:                                               ; preds = %6
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %52, i32 0, i32 0
  %54 = load i64, ptr %53, align 8, !tbaa !20
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %51, i64 noundef %54, ptr noundef %55)
  br label %56

56:                                               ; preds = %50, %6
  %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 !9
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !20
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %63, i32 0, i32 1
  %65 = load i64, ptr %64, align 8, !tbaa !14
  %66 = mul nsw i64 %62, %65
  %67 = icmp slt i64 %59, %66
  br i1 %67, label %68, label %78

68:                                               ; preds = %56
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %70, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !20
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %73, i32 0, i32 1
  %75 = load i64, ptr %74, align 8, !tbaa !14
  %76 = mul nsw i64 %72, %75
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %69, i64 noundef %76, ptr noundef %77)
  br label %78

78:                                               ; preds = %68, %56
  store i64 0, ptr %13, align 8, !tbaa !19
  br label %79

79:                                               ; preds = %157, %78
  %80 = load i64, ptr %13, align 8, !tbaa !19
  %81 = load i64, ptr %20, align 8, !tbaa !19
  %82 = sub nsw i64 %81, 1
  %83 = icmp sle i64 %80, %82
  br i1 %83, label %84, label %160

84:                                               ; preds = %79
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %85, i32 0, i32 12
  %87 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %86, i32 0, i32 6
  %88 = load ptr, ptr %87, align 8, !tbaa !21
  %89 = load i64, ptr %13, align 8, !tbaa !19
  %90 = getelementptr inbounds ptr, ptr %88, i64 %89
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = load i64, ptr %19, align 8, !tbaa !19
  %93 = getelementptr inbounds double, ptr %91, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !22
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %95, i32 0, i32 4
  %97 = load ptr, ptr %96, align 8, !tbaa !21
  %98 = load i64, ptr %13, align 8, !tbaa !19
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  store double %94, ptr %99, align 8, !tbaa !22
  store i64 0, ptr %14, align 8, !tbaa !19
  br label %100

100:                                              ; preds = %153, %84
  %101 = load i64, ptr %14, align 8, !tbaa !19
  %102 = load i64, ptr %19, align 8, !tbaa !19
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %156

105:                                              ; preds = %100
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %106, i32 0, i32 4
  %108 = load ptr, ptr %107, align 8, !tbaa !21
  %109 = load i64, ptr %13, align 8, !tbaa !19
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !22
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %112, i32 0, i32 12
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %113, i32 0, i32 6
  %115 = load ptr, ptr %114, align 8, !tbaa !21
  %116 = load i64, ptr %13, align 8, !tbaa !19
  %117 = getelementptr inbounds ptr, ptr %115, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load i64, ptr %14, align 8, !tbaa !19
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !22
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !21
  %125 = load i64, ptr %14, align 8, !tbaa !19
  %126 = getelementptr inbounds double, ptr %124, i64 %125
  %127 = load double, ptr %126, align 8, !tbaa !22
  %128 = call double @llvm.fmuladd.f64(double %121, double %127, double %111)
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 4
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %132 = load i64, ptr %13, align 8, !tbaa !19
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  store double %128, ptr %133, align 8, !tbaa !22
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %134, i32 0, i32 12
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %135, i32 0, i32 6
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  %138 = load i64, ptr %13, align 8, !tbaa !19
  %139 = getelementptr inbounds ptr, ptr %137, i64 %138
  %140 = load ptr, ptr %139, align 8, !tbaa !5
  %141 = load i64, ptr %14, align 8, !tbaa !19
  %142 = getelementptr inbounds double, ptr %140, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !22
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !21
  %147 = load i64, ptr %13, align 8, !tbaa !19
  %148 = load i64, ptr %19, align 8, !tbaa !19
  %149 = mul nsw i64 %147, %148
  %150 = load i64, ptr %14, align 8, !tbaa !19
  %151 = add nsw i64 %149, %150
  %152 = getelementptr inbounds double, ptr %146, i64 %151
  store double %143, ptr %152, align 8, !tbaa !22
  br label %153

153:                                              ; preds = %105
  %154 = load i64, ptr %14, align 8, !tbaa !19
  %155 = add nsw i64 %154, 1
  store i64 %155, ptr %14, align 8, !tbaa !19
  br label %100, !llvm.loop !23

156:                                              ; preds = %100
  br label %157

157:                                              ; preds = %156
  %158 = load i64, ptr %13, align 8, !tbaa !19
  %159 = add nsw i64 %158, 1
  store i64 %159, ptr %13, align 8, !tbaa !19
  br label %79, !llvm.loop !25

160:                                              ; preds = %79
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %161, i32 0, i32 3
  %163 = load i64, ptr %162, align 8, !tbaa !26
  %164 = icmp eq i64 %163, 0
  br i1 %164, label %165, label %166

165:                                              ; preds = %160
  store i32 1, ptr %21, align 4
  br label %462

166:                                              ; preds = %160
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL24rbfv2_allocatecalcbufferEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_8ae_stateE(ptr noundef %167, ptr noundef %168, ptr noundef %169)
  store i64 0, ptr %14, align 8, !tbaa !19
  br label %170

170:                                              ; preds = %196, %166
  %171 = load i64, ptr %14, align 8, !tbaa !19
  %172 = load i64, ptr %19, align 8, !tbaa !19
  %173 = sub nsw i64 %172, 1
  %174 = icmp sle i64 %171, %173
  br i1 %174, label %175, label %199

175:                                              ; preds = %170
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %176, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !21
  %179 = load i64, ptr %14, align 8, !tbaa !19
  %180 = getelementptr inbounds double, ptr %178, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !22
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %182, i32 0, i32 5
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %183, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !21
  %186 = load i64, ptr %14, align 8, !tbaa !19
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !22
  %189 = fdiv double %181, %188
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %191, i32 0, i32 4
  %193 = load ptr, ptr %192, align 8, !tbaa !21
  %194 = load i64, ptr %14, align 8, !tbaa !19
  %195 = getelementptr inbounds double, ptr %193, i64 %194
  store double %189, ptr %195, align 8, !tbaa !22
  br label %196

196:                                              ; preds = %175
  %197 = load i64, ptr %14, align 8, !tbaa !19
  %198 = add nsw i64 %197, 1
  store i64 %198, ptr %14, align 8, !tbaa !19
  br label %170, !llvm.loop !27

199:                                              ; preds = %170
  store i64 0, ptr %13, align 8, !tbaa !19
  br label %200

200:                                              ; preds = %243, %199
  %201 = load i64, ptr %13, align 8, !tbaa !19
  %202 = load i64, ptr %20, align 8, !tbaa !19
  %203 = sub nsw i64 %202, 1
  %204 = icmp sle i64 %201, %203
  br i1 %204, label %205, label %246

205:                                              ; preds = %200
  store i64 0, ptr %14, align 8, !tbaa !19
  br label %206

206:                                              ; preds = %239, %205
  %207 = load i64, ptr %14, align 8, !tbaa !19
  %208 = load i64, ptr %19, align 8, !tbaa !19
  %209 = sub nsw i64 %208, 1
  %210 = icmp sle i64 %207, %209
  br i1 %210, label %211, label %242

211:                                              ; preds = %206
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !21
  %215 = load i64, ptr %13, align 8, !tbaa !19
  %216 = load i64, ptr %19, align 8, !tbaa !19
  %217 = mul nsw i64 %215, %216
  %218 = load i64, ptr %14, align 8, !tbaa !19
  %219 = add nsw i64 %217, %218
  %220 = getelementptr inbounds double, ptr %214, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !22
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %222, i32 0, i32 5
  %224 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %223, i32 0, i32 4
  %225 = load ptr, ptr %224, align 8, !tbaa !21
  %226 = load i64, ptr %14, align 8, !tbaa !19
  %227 = getelementptr inbounds double, ptr %225, i64 %226
  %228 = load double, ptr %227, align 8, !tbaa !22
  %229 = fmul double %221, %228
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %230, i32 0, i32 4
  %232 = load ptr, ptr %231, align 8, !tbaa !21
  %233 = load i64, ptr %13, align 8, !tbaa !19
  %234 = load i64, ptr %19, align 8, !tbaa !19
  %235 = mul nsw i64 %233, %234
  %236 = load i64, ptr %14, align 8, !tbaa !19
  %237 = add nsw i64 %235, %236
  %238 = getelementptr inbounds double, ptr %232, i64 %237
  store double %229, ptr %238, align 8, !tbaa !22
  br label %239

239:                                              ; preds = %211
  %240 = load i64, ptr %14, align 8, !tbaa !19
  %241 = add nsw i64 %240, 1
  store i64 %241, ptr %14, align 8, !tbaa !19
  br label %206, !llvm.loop !28

242:                                              ; preds = %206
  br label %243

243:                                              ; preds = %242
  %244 = load i64, ptr %13, align 8, !tbaa !19
  %245 = add nsw i64 %244, 1
  store i64 %245, ptr %13, align 8, !tbaa !19
  br label %200, !llvm.loop !29

246:                                              ; preds = %200
  store i64 0, ptr %15, align 8, !tbaa !19
  br label %247

247:                                              ; preds = %411, %246
  %248 = load i64, ptr %15, align 8, !tbaa !19
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %249, i32 0, i32 3
  %251 = load i64, ptr %250, align 8, !tbaa !26
  %252 = sub nsw i64 %251, 1
  %253 = icmp sle i64 %248, %252
  br i1 %253, label %254, label %414

254:                                              ; preds = %247
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %255, i32 0, i32 3
  store double 0.000000e+00, ptr %256, align 8, !tbaa !30
  store i64 0, ptr %14, align 8, !tbaa !19
  br label %257

257:                                              ; preds = %370, %254
  %258 = load i64, ptr %14, align 8, !tbaa !19
  %259 = load i64, ptr %19, align 8, !tbaa !19
  %260 = sub nsw i64 %259, 1
  %261 = icmp sle i64 %258, %260
  br i1 %261, label %262, label %373

262:                                              ; preds = %257
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %263, i32 0, i32 9
  %265 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %264, i32 0, i32 4
  %266 = load ptr, ptr %265, align 8, !tbaa !21
  %267 = load i64, ptr %14, align 8, !tbaa !19
  %268 = getelementptr inbounds double, ptr %266, i64 %267
  %269 = load double, ptr %268, align 8, !tbaa !22
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %270, i32 0, i32 1
  %272 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %271, i32 0, i32 4
  %273 = load ptr, ptr %272, align 8, !tbaa !21
  %274 = load i64, ptr %14, align 8, !tbaa !19
  %275 = getelementptr inbounds double, ptr %273, i64 %274
  store double %269, ptr %275, align 8, !tbaa !22
  %276 = load ptr, ptr %7, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %276, i32 0, i32 10
  %278 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %277, i32 0, i32 4
  %279 = load ptr, ptr %278, align 8, !tbaa !21
  %280 = load i64, ptr %14, align 8, !tbaa !19
  %281 = getelementptr inbounds double, ptr %279, i64 %280
  %282 = load double, ptr %281, align 8, !tbaa !22
  %283 = load ptr, ptr %8, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %283, i32 0, i32 2
  %285 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %284, i32 0, i32 4
  %286 = load ptr, ptr %285, align 8, !tbaa !21
  %287 = load i64, ptr %14, align 8, !tbaa !19
  %288 = getelementptr inbounds double, ptr %286, i64 %287
  store double %282, ptr %288, align 8, !tbaa !22
  %289 = load ptr, ptr %8, align 8, !tbaa !5
  %290 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %289, i32 0, i32 0
  %291 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %290, i32 0, i32 4
  %292 = load ptr, ptr %291, align 8, !tbaa !21
  %293 = load i64, ptr %14, align 8, !tbaa !19
  %294 = getelementptr inbounds double, ptr %292, i64 %293
  %295 = load double, ptr %294, align 8, !tbaa !22
  %296 = load ptr, ptr %8, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %296, i32 0, i32 1
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %297, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !21
  %300 = load i64, ptr %14, align 8, !tbaa !19
  %301 = getelementptr inbounds double, ptr %299, i64 %300
  %302 = load double, ptr %301, align 8, !tbaa !22
  %303 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %295, double noundef %302)
  br i1 %303, label %304, label %328

304:                                              ; preds = %262
  %305 = load ptr, ptr %8, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %305, i32 0, i32 3
  %307 = load double, ptr %306, align 8, !tbaa !30
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %308, i32 0, i32 1
  %310 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %309, i32 0, i32 4
  %311 = load ptr, ptr %310, align 8, !tbaa !21
  %312 = load i64, ptr %14, align 8, !tbaa !19
  %313 = getelementptr inbounds double, ptr %311, i64 %312
  %314 = load double, ptr %313, align 8, !tbaa !22
  %315 = load ptr, ptr %8, align 8, !tbaa !5
  %316 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %315, i32 0, i32 0
  %317 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %316, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !21
  %319 = load i64, ptr %14, align 8, !tbaa !19
  %320 = getelementptr inbounds double, ptr %318, i64 %319
  %321 = load double, ptr %320, align 8, !tbaa !22
  %322 = fsub double %314, %321
  %323 = load ptr, ptr %12, align 8, !tbaa !5
  %324 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %322, ptr noundef %323)
  %325 = fadd double %307, %324
  %326 = load ptr, ptr %8, align 8, !tbaa !5
  %327 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %326, i32 0, i32 3
  store double %325, ptr %327, align 8, !tbaa !30
  br label %369

328:                                              ; preds = %262
  %329 = load ptr, ptr %8, align 8, !tbaa !5
  %330 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %329, i32 0, i32 0
  %331 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %330, i32 0, i32 4
  %332 = load ptr, ptr %331, align 8, !tbaa !21
  %333 = load i64, ptr %14, align 8, !tbaa !19
  %334 = getelementptr inbounds double, ptr %332, i64 %333
  %335 = load double, ptr %334, align 8, !tbaa !22
  %336 = load ptr, ptr %8, align 8, !tbaa !5
  %337 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %336, i32 0, i32 2
  %338 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %337, i32 0, i32 4
  %339 = load ptr, ptr %338, align 8, !tbaa !21
  %340 = load i64, ptr %14, align 8, !tbaa !19
  %341 = getelementptr inbounds double, ptr %339, i64 %340
  %342 = load double, ptr %341, align 8, !tbaa !22
  %343 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %335, double noundef %342)
  br i1 %343, label %344, label %368

344:                                              ; preds = %328
  %345 = load ptr, ptr %8, align 8, !tbaa !5
  %346 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %345, i32 0, i32 3
  %347 = load double, ptr %346, align 8, !tbaa !30
  %348 = load ptr, ptr %8, align 8, !tbaa !5
  %349 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %348, i32 0, i32 0
  %350 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %349, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !21
  %352 = load i64, ptr %14, align 8, !tbaa !19
  %353 = getelementptr inbounds double, ptr %351, i64 %352
  %354 = load double, ptr %353, align 8, !tbaa !22
  %355 = load ptr, ptr %8, align 8, !tbaa !5
  %356 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %355, i32 0, i32 2
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %356, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !21
  %359 = load i64, ptr %14, align 8, !tbaa !19
  %360 = getelementptr inbounds double, ptr %358, i64 %359
  %361 = load double, ptr %360, align 8, !tbaa !22
  %362 = fsub double %354, %361
  %363 = load ptr, ptr %12, align 8, !tbaa !5
  %364 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %362, ptr noundef %363)
  %365 = fadd double %347, %364
  %366 = load ptr, ptr %8, align 8, !tbaa !5
  %367 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %366, i32 0, i32 3
  store double %365, ptr %367, align 8, !tbaa !30
  br label %368

368:                                              ; preds = %344, %328
  br label %369

369:                                              ; preds = %368, %304
  br label %370

370:                                              ; preds = %369
  %371 = load i64, ptr %14, align 8, !tbaa !19
  %372 = add nsw i64 %371, 1
  store i64 %372, ptr %14, align 8, !tbaa !19
  br label %257, !llvm.loop !31

373:                                              ; preds = %257
  %374 = load ptr, ptr %7, align 8, !tbaa !5
  %375 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %374, i32 0, i32 4
  %376 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %375, i32 0, i32 4
  %377 = load ptr, ptr %376, align 8, !tbaa !21
  %378 = load i64, ptr %15, align 8, !tbaa !19
  %379 = getelementptr inbounds double, ptr %377, i64 %378
  %380 = load double, ptr %379, align 8, !tbaa !22
  store double %380, ptr %16, align 8, !tbaa !22
  %381 = load double, ptr %16, align 8, !tbaa !22
  %382 = load double, ptr %16, align 8, !tbaa !22
  %383 = fmul double %381, %382
  %384 = fdiv double 1.000000e+00, %383
  store double %384, ptr %18, align 8, !tbaa !22
  %385 = load double, ptr %16, align 8, !tbaa !22
  %386 = load ptr, ptr %7, align 8, !tbaa !5
  %387 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %386, i32 0, i32 2
  %388 = load i64, ptr %387, align 8, !tbaa !32
  %389 = load ptr, ptr %12, align 8, !tbaa !5
  %390 = call noundef double @_ZN11alglib_impl14rbfv2farradiusElPNS_8ae_stateE(i64 noundef %388, ptr noundef %389)
  %391 = fmul double %385, %390
  %392 = load ptr, ptr %12, align 8, !tbaa !5
  %393 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %391, ptr noundef %392)
  store double %393, ptr %17, align 8, !tbaa !22
  %394 = load ptr, ptr %7, align 8, !tbaa !5
  %395 = load ptr, ptr %8, align 8, !tbaa !5
  %396 = load ptr, ptr %7, align 8, !tbaa !5
  %397 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %396, i32 0, i32 6
  %398 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %397, i32 0, i32 4
  %399 = load ptr, ptr %398, align 8, !tbaa !21
  %400 = load i64, ptr %15, align 8, !tbaa !19
  %401 = getelementptr inbounds i64, ptr %399, i64 %400
  %402 = load i64, ptr %401, align 8, !tbaa !19
  %403 = load double, ptr %18, align 8, !tbaa !22
  %404 = load double, ptr %17, align 8, !tbaa !22
  %405 = load ptr, ptr %8, align 8, !tbaa !5
  %406 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %405, i32 0, i32 0
  %407 = load ptr, ptr %10, align 8, !tbaa !5
  %408 = load ptr, ptr %11, align 8, !tbaa !5
  %409 = load ptr, ptr %11, align 8, !tbaa !5
  %410 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL20rbfv2_partialcalcrecEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferElddPKNS_9ae_vectorEPS5_S8_S8_lPNS_8ae_stateE(ptr noundef %394, ptr noundef %395, i64 noundef %402, double noundef %403, double noundef %404, ptr noundef %406, ptr noundef %407, ptr noundef %408, ptr noundef %409, i64 noundef 1, ptr noundef %410)
  br label %411

411:                                              ; preds = %373
  %412 = load i64, ptr %15, align 8, !tbaa !19
  %413 = add nsw i64 %412, 1
  store i64 %413, ptr %15, align 8, !tbaa !19
  br label %247, !llvm.loop !33

414:                                              ; preds = %247
  store i64 0, ptr %13, align 8, !tbaa !19
  br label %415

415:                                              ; preds = %458, %414
  %416 = load i64, ptr %13, align 8, !tbaa !19
  %417 = load i64, ptr %20, align 8, !tbaa !19
  %418 = sub nsw i64 %417, 1
  %419 = icmp sle i64 %416, %418
  br i1 %419, label %420, label %461

420:                                              ; preds = %415
  store i64 0, ptr %14, align 8, !tbaa !19
  br label %421

421:                                              ; preds = %454, %420
  %422 = load i64, ptr %14, align 8, !tbaa !19
  %423 = load i64, ptr %19, align 8, !tbaa !19
  %424 = sub nsw i64 %423, 1
  %425 = icmp sle i64 %422, %424
  br i1 %425, label %426, label %457

426:                                              ; preds = %421
  %427 = load ptr, ptr %11, align 8, !tbaa !5
  %428 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %427, i32 0, i32 4
  %429 = load ptr, ptr %428, align 8, !tbaa !21
  %430 = load i64, ptr %13, align 8, !tbaa !19
  %431 = load i64, ptr %19, align 8, !tbaa !19
  %432 = mul nsw i64 %430, %431
  %433 = load i64, ptr %14, align 8, !tbaa !19
  %434 = add nsw i64 %432, %433
  %435 = getelementptr inbounds double, ptr %429, i64 %434
  %436 = load double, ptr %435, align 8, !tbaa !22
  %437 = load ptr, ptr %7, align 8, !tbaa !5
  %438 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %437, i32 0, i32 5
  %439 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %438, i32 0, i32 4
  %440 = load ptr, ptr %439, align 8, !tbaa !21
  %441 = load i64, ptr %14, align 8, !tbaa !19
  %442 = getelementptr inbounds double, ptr %440, i64 %441
  %443 = load double, ptr %442, align 8, !tbaa !22
  %444 = fdiv double %436, %443
  %445 = load ptr, ptr %11, align 8, !tbaa !5
  %446 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %445, i32 0, i32 4
  %447 = load ptr, ptr %446, align 8, !tbaa !21
  %448 = load i64, ptr %13, align 8, !tbaa !19
  %449 = load i64, ptr %19, align 8, !tbaa !19
  %450 = mul nsw i64 %448, %449
  %451 = load i64, ptr %14, align 8, !tbaa !19
  %452 = add nsw i64 %450, %451
  %453 = getelementptr inbounds double, ptr %447, i64 %452
  store double %444, ptr %453, align 8, !tbaa !22
  br label %454

454:                                              ; preds = %426
  %455 = load i64, ptr %14, align 8, !tbaa !19
  %456 = add nsw i64 %455, 1
  store i64 %456, ptr %14, align 8, !tbaa !19
  br label %421, !llvm.loop !34

457:                                              ; preds = %421
  br label %458

458:                                              ; preds = %457
  %459 = load i64, ptr %13, align 8, !tbaa !19
  %460 = add nsw i64 %459, 1
  store i64 %460, ptr %13, align 8, !tbaa !19
  br label %415, !llvm.loop !35

461:                                              ; preds = %415
  store i32 0, ptr %21, align 4
  br label %462

462:                                              ; preds = %461, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  %463 = load i32, ptr %21, align 4
  switch i32 %463, label %465 [
    i32 0, label %464
    i32 1, label %464
  ]

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

465:                                              ; preds = %462
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN11alglib_impl9ae_vectorE", !11, i64 0, !11, i64 8, !12, i64 16, !13, i64 24, !7, i64 56}
!11 = !{!"long", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!14 = !{!15, !11, i64 8}
!15 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !10, i64 32, !10, i64 96, !10, i64 160, !10, i64 224, !10, i64 288, !10, i64 352, !10, i64 416, !10, i64 480, !16, i64 544, !17, i64 624, !11, i64 632, !17, i64 640, !11, i64 648, !18, i64 656}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !10, i64 0, !10, i64 64, !10, i64 128, !17, i64 192, !10, i64 200, !10, i64 264}
!19 = !{!11, !11, i64 0}
!20 = !{!15, !11, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!17, !17, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!15, !11, i64 24}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}
!30 = !{!18, !17, i64 192}
!31 = distinct !{!31, !24}
!32 = !{!15, !11, i64 16}
!33 = distinct !{!33, !24}
!34 = distinct !{!34, !24}
!35 = distinct !{!35, !24}


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

@.str.708 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.709 = external hidden unnamed_addr constant [46 x i8], align 1

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

declare noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef, double noundef) local_unnamed_addr #0

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

declare noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #0

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #0

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN11alglib_impl14rbfv2farradiusElPNS_8ae_stateE(i64 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl14rbfv2tsdiffbufEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPKNS_9ae_vectorEPS5_S8_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #2 {
  %7 = load i64, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i64, ptr %8, align 8, !tbaa !13
  %10 = icmp sge i64 %7, %9
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.708, ptr noundef %5)
  %11 = load i64, ptr %8, align 8, !tbaa !13
  %12 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %11, ptr noundef %5)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.709, ptr noundef %5)
  %13 = load i64, ptr %8, align 8, !tbaa !13
  %14 = load i64, ptr %0, align 8, !tbaa !18
  %15 = load i64, ptr %3, align 8, !tbaa !5
  %16 = icmp slt i64 %15, %14
  br i1 %16, label %17, label %18

17:                                               ; preds = %6
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %14, ptr noundef %5)
  %.pre = load i64, ptr %0, align 8, !tbaa !18
  %.pre206 = load i64, ptr %8, align 8, !tbaa !13
  br label %18

18:                                               ; preds = %17, %6
  %19 = phi i64 [ %.pre206, %17 ], [ %13, %6 ]
  %20 = phi i64 [ %.pre, %17 ], [ %14, %6 ]
  %21 = load i64, ptr %4, align 8, !tbaa !5
  %22 = mul nsw i64 %19, %20
  %23 = icmp slt i64 %21, %22
  br i1 %23, label %24, label %25

24:                                               ; preds = %18
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %22, ptr noundef %5)
  br label %25

25:                                               ; preds = %24, %18
  %.not.not170 = icmp sgt i64 %14, 0
  br i1 %.not.not170, label %.lr.ph173, label %._crit_edge174

.lr.ph173:                                        ; preds = %25
  %26 = getelementptr inbounds i8, ptr %0, i64 616
  %27 = getelementptr inbounds i8, ptr %3, i64 56
  %.not.not163168 = icmp sgt i64 %13, 0
  %28 = getelementptr inbounds i8, ptr %2, i64 56
  %29 = getelementptr inbounds i8, ptr %4, i64 56
  br i1 %.not.not163168, label %.lr.ph.us, label %.lr.ph173.split.preheader

.lr.ph173.split.preheader:                        ; preds = %.lr.ph173
  %xtraiter = and i64 %14, 1
  %30 = icmp eq i64 %14, 1
  br i1 %30, label %._crit_edge174.loopexit217.unr-lcssa, label %.lr.ph173.split.preheader.new

.lr.ph173.split.preheader.new:                    ; preds = %.lr.ph173.split.preheader
  %unroll_iter = and i64 %14, 9223372036854775806
  br label %.lr.ph173.split

.lr.ph.us:                                        ; preds = %.lr.ph173, %._crit_edge.us
  %.0171.us = phi i64 [ %61, %._crit_edge.us ], [ 0, %.lr.ph173 ]
  %31 = load ptr, ptr %26, align 8, !tbaa !19
  %32 = getelementptr inbounds ptr, ptr %31, i64 %.0171.us
  %33 = load ptr, ptr %32, align 8, !tbaa !20
  %34 = getelementptr inbounds double, ptr %33, i64 %13
  %35 = load double, ptr %34, align 8, !tbaa !21
  %36 = load ptr, ptr %27, align 8, !tbaa !19
  %37 = getelementptr inbounds double, ptr %36, i64 %.0171.us
  store double %35, ptr %37, align 8, !tbaa !21
  %38 = mul nuw nsw i64 %.0171.us, %13
  br label %39

39:                                               ; preds = %.lr.ph.us, %39
  %.0148169.us = phi i64 [ 0, %.lr.ph.us ], [ %60, %39 ]
  %40 = load ptr, ptr %27, align 8, !tbaa !19
  %41 = getelementptr inbounds double, ptr %40, i64 %.0171.us
  %42 = load double, ptr %41, align 8, !tbaa !21
  %43 = load ptr, ptr %26, align 8, !tbaa !19
  %44 = getelementptr inbounds ptr, ptr %43, i64 %.0171.us
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  %46 = getelementptr inbounds double, ptr %45, i64 %.0148169.us
  %47 = load double, ptr %46, align 8, !tbaa !21
  %48 = load ptr, ptr %28, align 8, !tbaa !19
  %49 = getelementptr inbounds double, ptr %48, i64 %.0148169.us
  %50 = load double, ptr %49, align 8, !tbaa !21
  %51 = tail call double @llvm.fmuladd.f64(double %47, double %50, double %42)
  store double %51, ptr %41, align 8, !tbaa !21
  %52 = load ptr, ptr %26, align 8, !tbaa !19
  %53 = getelementptr inbounds ptr, ptr %52, i64 %.0171.us
  %54 = load ptr, ptr %53, align 8, !tbaa !20
  %55 = getelementptr inbounds double, ptr %54, i64 %.0148169.us
  %56 = load double, ptr %55, align 8, !tbaa !21
  %57 = load ptr, ptr %29, align 8, !tbaa !19
  %58 = getelementptr double, ptr %57, i64 %38
  %59 = getelementptr double, ptr %58, i64 %.0148169.us
  store double %56, ptr %59, align 8, !tbaa !21
  %60 = add nuw nsw i64 %.0148169.us, 1
  %exitcond198.not = icmp eq i64 %60, %13
  br i1 %exitcond198.not, label %._crit_edge.us, label %39, !llvm.loop !22

._crit_edge.us:                                   ; preds = %39
  %61 = add nuw nsw i64 %.0171.us, 1
  %exitcond199.not = icmp eq i64 %61, %14
  br i1 %exitcond199.not, label %._crit_edge174, label %.lr.ph.us, !llvm.loop !24

.lr.ph173.split:                                  ; preds = %.lr.ph173.split, %.lr.ph173.split.preheader.new
  %.0171 = phi i64 [ 0, %.lr.ph173.split.preheader.new ], [ %77, %.lr.ph173.split ]
  %niter = phi i64 [ 0, %.lr.ph173.split.preheader.new ], [ %niter.next.1, %.lr.ph173.split ]
  %62 = load ptr, ptr %26, align 8, !tbaa !19
  %63 = getelementptr inbounds ptr, ptr %62, i64 %.0171
  %64 = load ptr, ptr %63, align 8, !tbaa !20
  %65 = getelementptr inbounds double, ptr %64, i64 %13
  %66 = load double, ptr %65, align 8, !tbaa !21
  %67 = load ptr, ptr %27, align 8, !tbaa !19
  %68 = getelementptr inbounds double, ptr %67, i64 %.0171
  store double %66, ptr %68, align 8, !tbaa !21
  %69 = or disjoint i64 %.0171, 1
  %70 = load ptr, ptr %26, align 8, !tbaa !19
  %71 = getelementptr inbounds ptr, ptr %70, i64 %69
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = getelementptr inbounds double, ptr %72, i64 %13
  %74 = load double, ptr %73, align 8, !tbaa !21
  %75 = load ptr, ptr %27, align 8, !tbaa !19
  %76 = getelementptr inbounds double, ptr %75, i64 %69
  store double %74, ptr %76, align 8, !tbaa !21
  %77 = add nuw nsw i64 %.0171, 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_edge174.loopexit217.unr-lcssa, label %.lr.ph173.split, !llvm.loop !24

._crit_edge174.loopexit217.unr-lcssa:             ; preds = %.lr.ph173.split, %.lr.ph173.split.preheader
  %.0171.unr = phi i64 [ 0, %.lr.ph173.split.preheader ], [ %77, %.lr.ph173.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge174, label %.lr.ph173.split.epil

.lr.ph173.split.epil:                             ; preds = %._crit_edge174.loopexit217.unr-lcssa
  %78 = load ptr, ptr %26, align 8, !tbaa !19
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.0171.unr
  %80 = load ptr, ptr %79, align 8, !tbaa !20
  %81 = getelementptr inbounds double, ptr %80, i64 %13
  %82 = load double, ptr %81, align 8, !tbaa !21
  %83 = load ptr, ptr %27, align 8, !tbaa !19
  %84 = getelementptr inbounds double, ptr %83, i64 %.0171.unr
  store double %82, ptr %84, align 8, !tbaa !21
  br label %._crit_edge174

._crit_edge174:                                   ; preds = %.lr.ph173.split.epil, %._crit_edge174.loopexit217.unr-lcssa, %._crit_edge.us, %25
  %85 = getelementptr inbounds i8, ptr %0, i64 24
  %86 = load i64, ptr %85, align 8, !tbaa !25
  %87 = icmp eq i64 %86, 0
  br i1 %87, label %.loopexit, label %88

88:                                               ; preds = %._crit_edge174
  tail call void @_ZN11alglib_implL24rbfv2_allocatecalcbufferEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %5)
  %.not.not156175 = icmp sgt i64 %13, 0
  br i1 %.not.not156175, label %.lr.ph, label %.preheader165

.lr.ph:                                           ; preds = %88
  %89 = getelementptr inbounds i8, ptr %2, i64 56
  %90 = getelementptr inbounds i8, ptr %0, i64 152
  %91 = getelementptr inbounds i8, ptr %1, i64 56
  %92 = add nsw i64 %13, -1
  %xtraiter218 = and i64 %13, 1
  %93 = icmp eq i64 %92, 0
  br i1 %93, label %.preheader167.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter220 = and i64 %13, 9223372036854775806
  br label %134

.preheader167.unr-lcssa:                          ; preds = %134, %.lr.ph
  %.1149176.unr = phi i64 [ 0, %.lr.ph ], [ %154, %134 ]
  %lcmp.mod219.not = icmp eq i64 %xtraiter218, 0
  br i1 %lcmp.mod219.not, label %.preheader167, label %.preheader167.epilog-lcssa

.preheader167.epilog-lcssa:                       ; preds = %.preheader167.unr-lcssa
  %94 = load ptr, ptr %89, align 8, !tbaa !19
  %95 = getelementptr inbounds double, ptr %94, i64 %.1149176.unr
  %96 = load double, ptr %95, align 8, !tbaa !21
  %97 = load ptr, ptr %90, align 8, !tbaa !19
  %98 = getelementptr inbounds double, ptr %97, i64 %.1149176.unr
  %99 = load double, ptr %98, align 8, !tbaa !21
  %100 = fdiv double %96, %99
  %101 = load ptr, ptr %91, align 8, !tbaa !19
  %102 = getelementptr inbounds double, ptr %101, i64 %.1149176.unr
  store double %100, ptr %102, align 8, !tbaa !21
  br label %.preheader167

.preheader167:                                    ; preds = %.preheader167.unr-lcssa, %.preheader167.epilog-lcssa
  br i1 %.not.not170, label %.preheader166.lr.ph, label %.preheader165

.preheader166.lr.ph:                              ; preds = %.preheader167
  %103 = getelementptr inbounds i8, ptr %4, i64 56
  %104 = getelementptr inbounds i8, ptr %0, i64 152
  br i1 %.not.not156175, label %.preheader166.us.preheader, label %.preheader165

.preheader166.us.preheader:                       ; preds = %.preheader166.lr.ph
  %xtraiter223 = and i64 %13, 1
  %105 = icmp eq i64 %92, 0
  %unroll_iter225 = and i64 %13, 9223372036854775806
  %lcmp.mod224.not = icmp eq i64 %xtraiter223, 0
  br label %.preheader166.us

.preheader166.us:                                 ; preds = %.preheader166.us.preheader, %._crit_edge.us182
  %.1181.us = phi i64 [ %133, %._crit_edge.us182 ], [ 0, %.preheader166.us.preheader ]
  %106 = mul nuw nsw i64 %.1181.us, %13
  br i1 %105, label %._crit_edge.us182.unr-lcssa, label %.preheader166.us.new

.preheader166.us.new:                             ; preds = %.preheader166.us, %.preheader166.us.new
  %.2150178.us = phi i64 [ %124, %.preheader166.us.new ], [ 0, %.preheader166.us ]
  %niter226 = phi i64 [ %niter226.next.1, %.preheader166.us.new ], [ 0, %.preheader166.us ]
  %107 = load ptr, ptr %103, align 8, !tbaa !19
  %108 = getelementptr double, ptr %107, i64 %106
  %109 = getelementptr double, ptr %108, i64 %.2150178.us
  %110 = load double, ptr %109, align 8, !tbaa !21
  %111 = load ptr, ptr %104, align 8, !tbaa !19
  %112 = getelementptr inbounds double, ptr %111, i64 %.2150178.us
  %113 = load double, ptr %112, align 8, !tbaa !21
  %114 = fmul double %110, %113
  store double %114, ptr %109, align 8, !tbaa !21
  %115 = or disjoint i64 %.2150178.us, 1
  %116 = load ptr, ptr %103, align 8, !tbaa !19
  %117 = getelementptr double, ptr %116, i64 %106
  %118 = getelementptr double, ptr %117, i64 %115
  %119 = load double, ptr %118, align 8, !tbaa !21
  %120 = load ptr, ptr %104, align 8, !tbaa !19
  %121 = getelementptr inbounds double, ptr %120, i64 %115
  %122 = load double, ptr %121, align 8, !tbaa !21
  %123 = fmul double %119, %122
  store double %123, ptr %118, align 8, !tbaa !21
  %124 = add nuw nsw i64 %.2150178.us, 2
  %niter226.next.1 = add i64 %niter226, 2
  %niter226.ncmp.1 = icmp eq i64 %niter226.next.1, %unroll_iter225
  br i1 %niter226.ncmp.1, label %._crit_edge.us182.unr-lcssa, label %.preheader166.us.new, !llvm.loop !26

._crit_edge.us182.unr-lcssa:                      ; preds = %.preheader166.us.new, %.preheader166.us
  %.2150178.us.unr = phi i64 [ 0, %.preheader166.us ], [ %124, %.preheader166.us.new ]
  br i1 %lcmp.mod224.not, label %._crit_edge.us182, label %._crit_edge.us182.epilog-lcssa

._crit_edge.us182.epilog-lcssa:                   ; preds = %._crit_edge.us182.unr-lcssa
  %125 = load ptr, ptr %103, align 8, !tbaa !19
  %126 = getelementptr double, ptr %125, i64 %106
  %127 = getelementptr double, ptr %126, i64 %.2150178.us.unr
  %128 = load double, ptr %127, align 8, !tbaa !21
  %129 = load ptr, ptr %104, align 8, !tbaa !19
  %130 = getelementptr inbounds double, ptr %129, i64 %.2150178.us.unr
  %131 = load double, ptr %130, align 8, !tbaa !21
  %132 = fmul double %128, %131
  store double %132, ptr %127, align 8, !tbaa !21
  br label %._crit_edge.us182

._crit_edge.us182:                                ; preds = %._crit_edge.us182.unr-lcssa, %._crit_edge.us182.epilog-lcssa
  %133 = add nuw nsw i64 %.1181.us, 1
  %exitcond202.not = icmp eq i64 %133, %14
  br i1 %exitcond202.not, label %.preheader165, label %.preheader166.us, !llvm.loop !27

134:                                              ; preds = %134, %.lr.ph.new
  %.1149176 = phi i64 [ 0, %.lr.ph.new ], [ %154, %134 ]
  %niter221 = phi i64 [ 0, %.lr.ph.new ], [ %niter221.next.1, %134 ]
  %135 = load ptr, ptr %89, align 8, !tbaa !19
  %136 = getelementptr inbounds double, ptr %135, i64 %.1149176
  %137 = load double, ptr %136, align 8, !tbaa !21
  %138 = load ptr, ptr %90, align 8, !tbaa !19
  %139 = getelementptr inbounds double, ptr %138, i64 %.1149176
  %140 = load double, ptr %139, align 8, !tbaa !21
  %141 = fdiv double %137, %140
  %142 = load ptr, ptr %91, align 8, !tbaa !19
  %143 = getelementptr inbounds double, ptr %142, i64 %.1149176
  store double %141, ptr %143, align 8, !tbaa !21
  %144 = or disjoint i64 %.1149176, 1
  %145 = load ptr, ptr %89, align 8, !tbaa !19
  %146 = getelementptr inbounds double, ptr %145, i64 %144
  %147 = load double, ptr %146, align 8, !tbaa !21
  %148 = load ptr, ptr %90, align 8, !tbaa !19
  %149 = getelementptr inbounds double, ptr %148, i64 %144
  %150 = load double, ptr %149, align 8, !tbaa !21
  %151 = fdiv double %147, %150
  %152 = load ptr, ptr %91, align 8, !tbaa !19
  %153 = getelementptr inbounds double, ptr %152, i64 %144
  store double %151, ptr %153, align 8, !tbaa !21
  %154 = add nuw nsw i64 %.1149176, 2
  %niter221.next.1 = add i64 %niter221, 2
  %niter221.ncmp.1 = icmp eq i64 %niter221.next.1, %unroll_iter220
  br i1 %niter221.ncmp.1, label %.preheader167.unr-lcssa, label %134, !llvm.loop !28

.preheader165:                                    ; preds = %._crit_edge.us182, %88, %.preheader166.lr.ph, %.preheader167
  %155 = load i64, ptr %85, align 8, !tbaa !25
  %.not.not158186 = icmp sgt i64 %155, 0
  br i1 %.not.not158186, label %.lr.ph188, label %.preheader164

.lr.ph188:                                        ; preds = %.preheader165
  %156 = getelementptr inbounds i8, ptr %1, i64 192
  %157 = getelementptr inbounds i8, ptr %0, i64 408
  %158 = getelementptr inbounds i8, ptr %1, i64 120
  %159 = getelementptr inbounds i8, ptr %0, i64 472
  %160 = getelementptr inbounds i8, ptr %1, i64 184
  %161 = getelementptr inbounds i8, ptr %1, i64 56
  %162 = getelementptr inbounds i8, ptr %0, i64 88
  %163 = getelementptr inbounds i8, ptr %0, i64 16
  %164 = getelementptr inbounds i8, ptr %0, i64 216
  br label %196

.preheader164:                                    ; preds = %._crit_edge, %.preheader165
  br i1 %.not.not170, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.preheader164
  %165 = getelementptr inbounds i8, ptr %4, i64 56
  %166 = getelementptr inbounds i8, ptr %0, i64 152
  br i1 %.not.not156175, label %.preheader.us.preheader, label %.loopexit

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter228 = and i64 %13, 1
  %167 = icmp eq i64 %13, 1
  %unroll_iter230 = and i64 %13, 9223372036854775806
  %lcmp.mod229.not = icmp eq i64 %xtraiter228, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge192.us
  %.2194.us = phi i64 [ %195, %._crit_edge192.us ], [ 0, %.preheader.us.preheader ]
  %168 = mul nuw nsw i64 %.2194.us, %13
  br i1 %167, label %._crit_edge192.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.4190.us = phi i64 [ %186, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter231 = phi i64 [ %niter231.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %169 = load ptr, ptr %165, align 8, !tbaa !19
  %170 = getelementptr double, ptr %169, i64 %168
  %171 = getelementptr double, ptr %170, i64 %.4190.us
  %172 = load double, ptr %171, align 8, !tbaa !21
  %173 = load ptr, ptr %166, align 8, !tbaa !19
  %174 = getelementptr inbounds double, ptr %173, i64 %.4190.us
  %175 = load double, ptr %174, align 8, !tbaa !21
  %176 = fdiv double %172, %175
  store double %176, ptr %171, align 8, !tbaa !21
  %177 = or disjoint i64 %.4190.us, 1
  %178 = load ptr, ptr %165, align 8, !tbaa !19
  %179 = getelementptr double, ptr %178, i64 %168
  %180 = getelementptr double, ptr %179, i64 %177
  %181 = load double, ptr %180, align 8, !tbaa !21
  %182 = load ptr, ptr %166, align 8, !tbaa !19
  %183 = getelementptr inbounds double, ptr %182, i64 %177
  %184 = load double, ptr %183, align 8, !tbaa !21
  %185 = fdiv double %181, %184
  store double %185, ptr %180, align 8, !tbaa !21
  %186 = add nuw nsw i64 %.4190.us, 2
  %niter231.next.1 = add i64 %niter231, 2
  %niter231.ncmp.1 = icmp eq i64 %niter231.next.1, %unroll_iter230
  br i1 %niter231.ncmp.1, label %._crit_edge192.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !29

._crit_edge192.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.4190.us.unr = phi i64 [ 0, %.preheader.us ], [ %186, %.preheader.us.new ]
  br i1 %lcmp.mod229.not, label %._crit_edge192.us, label %._crit_edge192.us.epilog-lcssa

._crit_edge192.us.epilog-lcssa:                   ; preds = %._crit_edge192.us.unr-lcssa
  %187 = load ptr, ptr %165, align 8, !tbaa !19
  %188 = getelementptr double, ptr %187, i64 %168
  %189 = getelementptr double, ptr %188, i64 %.4190.us.unr
  %190 = load double, ptr %189, align 8, !tbaa !21
  %191 = load ptr, ptr %166, align 8, !tbaa !19
  %192 = getelementptr inbounds double, ptr %191, i64 %.4190.us.unr
  %193 = load double, ptr %192, align 8, !tbaa !21
  %194 = fdiv double %190, %193
  store double %194, ptr %189, align 8, !tbaa !21
  br label %._crit_edge192.us

._crit_edge192.us:                                ; preds = %._crit_edge192.us.unr-lcssa, %._crit_edge192.us.epilog-lcssa
  %195 = add nuw nsw i64 %.2194.us, 1
  %exitcond205.not = icmp eq i64 %195, %14
  br i1 %exitcond205.not, label %.loopexit, label %.preheader.us, !llvm.loop !30

196:                                              ; preds = %.lr.ph188, %._crit_edge
  %.0151187 = phi i64 [ 0, %.lr.ph188 ], [ %246, %._crit_edge ]
  store double 0.000000e+00, ptr %156, align 8, !tbaa !31
  br i1 %.not.not156175, label %.lr.ph185, label %._crit_edge

.lr.ph185:                                        ; preds = %196, %232
  %.3184 = phi i64 [ %233, %232 ], [ 0, %196 ]
  %197 = load ptr, ptr %157, align 8, !tbaa !19
  %198 = getelementptr inbounds double, ptr %197, i64 %.3184
  %199 = load double, ptr %198, align 8, !tbaa !21
  %200 = load ptr, ptr %158, align 8, !tbaa !19
  %201 = getelementptr inbounds double, ptr %200, i64 %.3184
  store double %199, ptr %201, align 8, !tbaa !21
  %202 = load ptr, ptr %159, align 8, !tbaa !19
  %203 = getelementptr inbounds double, ptr %202, i64 %.3184
  %204 = load double, ptr %203, align 8, !tbaa !21
  %205 = load ptr, ptr %160, align 8, !tbaa !19
  %206 = getelementptr inbounds double, ptr %205, i64 %.3184
  store double %204, ptr %206, align 8, !tbaa !21
  %207 = load ptr, ptr %161, align 8, !tbaa !19
  %208 = getelementptr inbounds double, ptr %207, i64 %.3184
  %209 = load double, ptr %208, align 8, !tbaa !21
  %210 = load ptr, ptr %158, align 8, !tbaa !19
  %211 = getelementptr inbounds double, ptr %210, i64 %.3184
  %212 = load double, ptr %211, align 8, !tbaa !21
  %213 = tail call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %209, double noundef %212)
  br i1 %213, label %.sink.split, label %214

214:                                              ; preds = %.lr.ph185
  %215 = load ptr, ptr %161, align 8, !tbaa !19
  %216 = getelementptr inbounds double, ptr %215, i64 %.3184
  %217 = load double, ptr %216, align 8, !tbaa !21
  %218 = load ptr, ptr %160, align 8, !tbaa !19
  %219 = getelementptr inbounds double, ptr %218, i64 %.3184
  %220 = load double, ptr %219, align 8, !tbaa !21
  %221 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %217, double noundef %220)
  br i1 %221, label %.sink.split, label %232

.sink.split:                                      ; preds = %214, %.lr.ph185
  %.sink215 = phi ptr [ %158, %.lr.ph185 ], [ %161, %214 ]
  %.sink = phi ptr [ %161, %.lr.ph185 ], [ %160, %214 ]
  %222 = load double, ptr %156, align 8, !tbaa !31
  %223 = load ptr, ptr %.sink215, align 8, !tbaa !19
  %224 = getelementptr inbounds double, ptr %223, i64 %.3184
  %225 = load double, ptr %224, align 8, !tbaa !21
  %226 = load ptr, ptr %.sink, align 8, !tbaa !19
  %227 = getelementptr inbounds double, ptr %226, i64 %.3184
  %228 = load double, ptr %227, align 8, !tbaa !21
  %229 = fsub double %225, %228
  %230 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %229, ptr noundef %5)
  %231 = fadd double %222, %230
  store double %231, ptr %156, align 8, !tbaa !31
  br label %232

232:                                              ; preds = %.sink.split, %214
  %233 = add nuw nsw i64 %.3184, 1
  %exitcond203.not = icmp eq i64 %233, %13
  br i1 %exitcond203.not, label %._crit_edge, label %.lr.ph185, !llvm.loop !32

._crit_edge:                                      ; preds = %232, %196
  %234 = load ptr, ptr %162, align 8, !tbaa !19
  %235 = getelementptr inbounds double, ptr %234, i64 %.0151187
  %236 = load double, ptr %235, align 8, !tbaa !21
  %237 = fmul double %236, %236
  %238 = fdiv double 1.000000e+00, %237
  %239 = load i64, ptr %163, align 8, !tbaa !33
  %240 = tail call noundef double @_ZN11alglib_impl14rbfv2farradiusElPNS_8ae_stateE(i64 noundef %239, ptr noundef %5)
  %241 = fmul double %236, %240
  %242 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %241, ptr noundef %5)
  %243 = load ptr, ptr %164, align 8, !tbaa !19
  %244 = getelementptr inbounds i64, ptr %243, i64 %.0151187
  %245 = load i64, ptr %244, align 8, !tbaa !34
  tail call void @_ZN11alglib_implL20rbfv2_partialcalcrecEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferElddPKNS_9ae_vectorEPS5_S8_S8_lPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %1, i64 noundef %245, double noundef %238, double noundef %242, ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %4, i64 noundef 1, ptr noundef %5)
  %246 = add nuw nsw i64 %.0151187, 1
  %247 = load i64, ptr %85, align 8, !tbaa !25
  %.not.not158 = icmp slt i64 %246, %247
  br i1 %.not.not158, label %196, label %.preheader164, !llvm.loop !35

.loopexit:                                        ; preds = %._crit_edge192.us, %.preheader.lr.ph, %.preheader164, %._crit_edge174
  ret void
}

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

!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 = !{!14, !7, i64 8}
!14 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !6, i64 96, !6, i64 160, !6, i64 224, !6, i64 288, !6, i64 352, !6, i64 416, !6, i64 480, !15, i64 544, !16, i64 624, !7, i64 632, !16, i64 640, !7, i64 648, !17, i64 656}
!15 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!16 = !{!"double", !8, i64 0}
!17 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !16, i64 192, !6, i64 200, !6, i64 264}
!18 = !{!14, !7, i64 0}
!19 = !{!8, !8, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!16, !16, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = !{!14, !7, i64 24}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23}
!29 = distinct !{!29, !23}
!30 = distinct !{!30, !23}
!31 = !{!17, !16, i64 192}
!32 = distinct !{!32, !23}
!33 = !{!14, !7, i64 16}
!34 = !{!7, !7, i64 0}
!35 = distinct !{!35, !23}


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