; 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

declare void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr 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_impl14rbfv2tshessbufEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #3 {
  %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 ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  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 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
  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
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %28, i32 0, i32 1
  %30 = load i64, ptr %29, align 8, !tbaa !14
  %31 = icmp sge i64 %27, %30
  %32 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef @.str.708, ptr noundef %32)
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %34, i32 0, i32 1
  %36 = load i64, ptr %35, align 8, !tbaa !14
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %33, i64 noundef %36, ptr noundef %37)
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.709, ptr noundef %39)
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %40, i32 0, i32 1
  %42 = load i64, ptr %41, align 8, !tbaa !14
  store i64 %42, ptr %22, align 8, !tbaa !19
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %43, i32 0, i32 0
  %45 = load i64, ptr %44, align 8, !tbaa !20
  store i64 %45, ptr %23, align 8, !tbaa !19
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %49, i32 0, i32 0
  %51 = load i64, ptr %50, align 8, !tbaa !20
  %52 = icmp slt i64 %48, %51
  br i1 %52, label %53, label %59

53:                                               ; preds = %7
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %55, i32 0, i32 0
  %57 = load i64, ptr %56, align 8, !tbaa !20
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %54, i64 noundef %57, ptr noundef %58)
  br label %59

59:                                               ; preds = %53, %7
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %63, i32 0, i32 0
  %65 = load i64, ptr %64, align 8, !tbaa !20
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %66, i32 0, i32 1
  %68 = load i64, ptr %67, align 8, !tbaa !14
  %69 = mul nsw i64 %65, %68
  %70 = icmp slt i64 %62, %69
  br i1 %70, label %71, label %81

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

81:                                               ; preds = %71, %59
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %82, i32 0, i32 0
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = load i64, ptr %23, align 8, !tbaa !19
  %86 = load i64, ptr %22, align 8, !tbaa !19
  %87 = mul nsw i64 %85, %86
  %88 = load i64, ptr %22, align 8, !tbaa !19
  %89 = mul nsw i64 %87, %88
  %90 = icmp slt i64 %84, %89
  br i1 %90, label %91, label %99

91:                                               ; preds = %81
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load i64, ptr %23, align 8, !tbaa !19
  %94 = load i64, ptr %22, align 8, !tbaa !19
  %95 = mul nsw i64 %93, %94
  %96 = load i64, ptr %22, align 8, !tbaa !19
  %97 = mul nsw i64 %95, %96
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %92, i64 noundef %97, ptr noundef %98)
  br label %99

99:                                               ; preds = %91, %81
  store i64 0, ptr %15, align 8, !tbaa !19
  br label %100

100:                                              ; preds = %178, %99
  %101 = load i64, ptr %15, align 8, !tbaa !19
  %102 = load i64, ptr %23, align 8, !tbaa !19
  %103 = sub nsw i64 %102, 1
  %104 = icmp sle i64 %101, %103
  br i1 %104, label %105, label %181

105:                                              ; preds = %100
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %106, i32 0, i32 12
  %108 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %107, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !21
  %110 = load i64, ptr %15, align 8, !tbaa !19
  %111 = getelementptr inbounds ptr, ptr %109, i64 %110
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %22, align 8, !tbaa !19
  %114 = getelementptr inbounds double, ptr %112, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !22
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %116, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !21
  %119 = load i64, ptr %15, align 8, !tbaa !19
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  store double %115, ptr %120, align 8, !tbaa !22
  store i64 0, ptr %16, align 8, !tbaa !19
  br label %121

121:                                              ; preds = %174, %105
  %122 = load i64, ptr %16, align 8, !tbaa !19
  %123 = load i64, ptr %22, align 8, !tbaa !19
  %124 = sub nsw i64 %123, 1
  %125 = icmp sle i64 %122, %124
  br i1 %125, label %126, label %177

126:                                              ; preds = %121
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %127, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !21
  %130 = load i64, ptr %15, align 8, !tbaa !19
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !22
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %133, i32 0, i32 12
  %135 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %134, i32 0, i32 6
  %136 = load ptr, ptr %135, align 8, !tbaa !21
  %137 = load i64, ptr %15, align 8, !tbaa !19
  %138 = getelementptr inbounds ptr, ptr %136, i64 %137
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = load i64, ptr %16, align 8, !tbaa !19
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !22
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %143, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !21
  %146 = load i64, ptr %16, align 8, !tbaa !19
  %147 = getelementptr inbounds double, ptr %145, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !22
  %149 = call double @llvm.fmuladd.f64(double %142, double %148, double %132)
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !21
  %153 = load i64, ptr %15, align 8, !tbaa !19
  %154 = getelementptr inbounds double, ptr %152, i64 %153
  store double %149, ptr %154, align 8, !tbaa !22
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %155, i32 0, i32 12
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %156, i32 0, i32 6
  %158 = load ptr, ptr %157, align 8, !tbaa !21
  %159 = load i64, ptr %15, align 8, !tbaa !19
  %160 = getelementptr inbounds ptr, ptr %158, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = load i64, ptr %16, align 8, !tbaa !19
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !22
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %165, i32 0, i32 4
  %167 = load ptr, ptr %166, align 8, !tbaa !21
  %168 = load i64, ptr %15, align 8, !tbaa !19
  %169 = load i64, ptr %22, align 8, !tbaa !19
  %170 = mul nsw i64 %168, %169
  %171 = load i64, ptr %16, align 8, !tbaa !19
  %172 = add nsw i64 %170, %171
  %173 = getelementptr inbounds double, ptr %167, i64 %172
  store double %164, ptr %173, align 8, !tbaa !22
  br label %174

174:                                              ; preds = %126
  %175 = load i64, ptr %16, align 8, !tbaa !19
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %16, align 8, !tbaa !19
  br label %121, !llvm.loop !23

177:                                              ; preds = %121
  br label %178

178:                                              ; preds = %177
  %179 = load i64, ptr %15, align 8, !tbaa !19
  %180 = add nsw i64 %179, 1
  store i64 %180, ptr %15, align 8, !tbaa !19
  br label %100, !llvm.loop !25

181:                                              ; preds = %100
  %182 = load i64, ptr %23, align 8, !tbaa !19
  %183 = load i64, ptr %22, align 8, !tbaa !19
  %184 = mul nsw i64 %182, %183
  %185 = load i64, ptr %22, align 8, !tbaa !19
  %186 = mul nsw i64 %184, %185
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  %188 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %186, double noundef 0.000000e+00, ptr noundef %187, ptr noundef %188)
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %189, i32 0, i32 3
  %191 = load i64, ptr %190, align 8, !tbaa !26
  %192 = icmp eq i64 %191, 0
  br i1 %192, label %193, label %194

193:                                              ; preds = %181
  store i32 1, ptr %24, align 4
  br label %567

194:                                              ; preds = %181
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL24rbfv2_allocatecalcbufferEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_8ae_stateE(ptr noundef %195, ptr noundef %196, ptr noundef %197)
  store i64 0, ptr %16, align 8, !tbaa !19
  br label %198

198:                                              ; preds = %224, %194
  %199 = load i64, ptr %16, align 8, !tbaa !19
  %200 = load i64, ptr %22, align 8, !tbaa !19
  %201 = sub nsw i64 %200, 1
  %202 = icmp sle i64 %199, %201
  br i1 %202, label %203, label %227

203:                                              ; preds = %198
  %204 = load ptr, ptr %10, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %204, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !21
  %207 = load i64, ptr %16, align 8, !tbaa !19
  %208 = getelementptr inbounds double, ptr %206, i64 %207
  %209 = load double, ptr %208, align 8, !tbaa !22
  %210 = load ptr, ptr %8, align 8, !tbaa !5
  %211 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %210, i32 0, i32 5
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %211, i32 0, i32 4
  %213 = load ptr, ptr %212, align 8, !tbaa !21
  %214 = load i64, ptr %16, align 8, !tbaa !19
  %215 = getelementptr inbounds double, ptr %213, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !22
  %217 = fdiv double %209, %216
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %218, i32 0, i32 0
  %220 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %219, i32 0, i32 4
  %221 = load ptr, ptr %220, align 8, !tbaa !21
  %222 = load i64, ptr %16, align 8, !tbaa !19
  %223 = getelementptr inbounds double, ptr %221, i64 %222
  store double %217, ptr %223, align 8, !tbaa !22
  br label %224

224:                                              ; preds = %203
  %225 = load i64, ptr %16, align 8, !tbaa !19
  %226 = add nsw i64 %225, 1
  store i64 %226, ptr %16, align 8, !tbaa !19
  br label %198, !llvm.loop !27

227:                                              ; preds = %198
  store i64 0, ptr %15, align 8, !tbaa !19
  br label %228

228:                                              ; preds = %271, %227
  %229 = load i64, ptr %15, align 8, !tbaa !19
  %230 = load i64, ptr %23, align 8, !tbaa !19
  %231 = sub nsw i64 %230, 1
  %232 = icmp sle i64 %229, %231
  br i1 %232, label %233, label %274

233:                                              ; preds = %228
  store i64 0, ptr %16, align 8, !tbaa !19
  br label %234

234:                                              ; preds = %267, %233
  %235 = load i64, ptr %16, align 8, !tbaa !19
  %236 = load i64, ptr %22, align 8, !tbaa !19
  %237 = sub nsw i64 %236, 1
  %238 = icmp sle i64 %235, %237
  br i1 %238, label %239, label %270

239:                                              ; preds = %234
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %240, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !21
  %243 = load i64, ptr %15, align 8, !tbaa !19
  %244 = load i64, ptr %22, align 8, !tbaa !19
  %245 = mul nsw i64 %243, %244
  %246 = load i64, ptr %16, align 8, !tbaa !19
  %247 = add nsw i64 %245, %246
  %248 = getelementptr inbounds double, ptr %242, i64 %247
  %249 = load double, ptr %248, align 8, !tbaa !22
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %250, i32 0, i32 5
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %251, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !21
  %254 = load i64, ptr %16, align 8, !tbaa !19
  %255 = getelementptr inbounds double, ptr %253, i64 %254
  %256 = load double, ptr %255, align 8, !tbaa !22
  %257 = fmul double %249, %256
  %258 = load ptr, ptr %12, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %258, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !21
  %261 = load i64, ptr %15, align 8, !tbaa !19
  %262 = load i64, ptr %22, align 8, !tbaa !19
  %263 = mul nsw i64 %261, %262
  %264 = load i64, ptr %16, align 8, !tbaa !19
  %265 = add nsw i64 %263, %264
  %266 = getelementptr inbounds double, ptr %260, i64 %265
  store double %257, ptr %266, align 8, !tbaa !22
  br label %267

267:                                              ; preds = %239
  %268 = load i64, ptr %16, align 8, !tbaa !19
  %269 = add nsw i64 %268, 1
  store i64 %269, ptr %16, align 8, !tbaa !19
  br label %234, !llvm.loop !28

270:                                              ; preds = %234
  br label %271

271:                                              ; preds = %270
  %272 = load i64, ptr %15, align 8, !tbaa !19
  %273 = add nsw i64 %272, 1
  store i64 %273, ptr %15, align 8, !tbaa !19
  br label %228, !llvm.loop !29

274:                                              ; preds = %228
  store i64 0, ptr %18, align 8, !tbaa !19
  br label %275

275:                                              ; preds = %439, %274
  %276 = load i64, ptr %18, align 8, !tbaa !19
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  %278 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %277, i32 0, i32 3
  %279 = load i64, ptr %278, align 8, !tbaa !26
  %280 = sub nsw i64 %279, 1
  %281 = icmp sle i64 %276, %280
  br i1 %281, label %282, label %442

282:                                              ; preds = %275
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %283, i32 0, i32 3
  store double 0.000000e+00, ptr %284, align 8, !tbaa !30
  store i64 0, ptr %16, align 8, !tbaa !19
  br label %285

285:                                              ; preds = %398, %282
  %286 = load i64, ptr %16, align 8, !tbaa !19
  %287 = load i64, ptr %22, align 8, !tbaa !19
  %288 = sub nsw i64 %287, 1
  %289 = icmp sle i64 %286, %288
  br i1 %289, label %290, label %401

290:                                              ; preds = %285
  %291 = load ptr, ptr %8, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %291, i32 0, i32 9
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !21
  %295 = load i64, ptr %16, align 8, !tbaa !19
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !22
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  %299 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %298, i32 0, i32 1
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %299, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !21
  %302 = load i64, ptr %16, align 8, !tbaa !19
  %303 = getelementptr inbounds double, ptr %301, i64 %302
  store double %297, ptr %303, align 8, !tbaa !22
  %304 = load ptr, ptr %8, align 8, !tbaa !5
  %305 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %304, i32 0, i32 10
  %306 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %305, i32 0, i32 4
  %307 = load ptr, ptr %306, align 8, !tbaa !21
  %308 = load i64, ptr %16, align 8, !tbaa !19
  %309 = getelementptr inbounds double, ptr %307, i64 %308
  %310 = load double, ptr %309, align 8, !tbaa !22
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %311, i32 0, i32 2
  %313 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %312, i32 0, i32 4
  %314 = load ptr, ptr %313, align 8, !tbaa !21
  %315 = load i64, ptr %16, align 8, !tbaa !19
  %316 = getelementptr inbounds double, ptr %314, i64 %315
  store double %310, ptr %316, align 8, !tbaa !22
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %317, i32 0, i32 0
  %319 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %318, i32 0, i32 4
  %320 = load ptr, ptr %319, align 8, !tbaa !21
  %321 = load i64, ptr %16, align 8, !tbaa !19
  %322 = getelementptr inbounds double, ptr %320, i64 %321
  %323 = load double, ptr %322, align 8, !tbaa !22
  %324 = load ptr, ptr %9, align 8, !tbaa !5
  %325 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %324, i32 0, i32 1
  %326 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %325, i32 0, i32 4
  %327 = load ptr, ptr %326, align 8, !tbaa !21
  %328 = load i64, ptr %16, align 8, !tbaa !19
  %329 = getelementptr inbounds double, ptr %327, i64 %328
  %330 = load double, ptr %329, align 8, !tbaa !22
  %331 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %323, double noundef %330)
  br i1 %331, label %332, label %356

332:                                              ; preds = %290
  %333 = load ptr, ptr %9, align 8, !tbaa !5
  %334 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %333, i32 0, i32 3
  %335 = load double, ptr %334, align 8, !tbaa !30
  %336 = load ptr, ptr %9, align 8, !tbaa !5
  %337 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %336, i32 0, i32 1
  %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 %16, align 8, !tbaa !19
  %341 = getelementptr inbounds double, ptr %339, i64 %340
  %342 = load double, ptr %341, align 8, !tbaa !22
  %343 = load ptr, ptr %9, align 8, !tbaa !5
  %344 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %343, i32 0, i32 0
  %345 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %344, i32 0, i32 4
  %346 = load ptr, ptr %345, align 8, !tbaa !21
  %347 = load i64, ptr %16, align 8, !tbaa !19
  %348 = getelementptr inbounds double, ptr %346, i64 %347
  %349 = load double, ptr %348, align 8, !tbaa !22
  %350 = fsub double %342, %349
  %351 = load ptr, ptr %14, align 8, !tbaa !5
  %352 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %350, ptr noundef %351)
  %353 = fadd double %335, %352
  %354 = load ptr, ptr %9, align 8, !tbaa !5
  %355 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %354, i32 0, i32 3
  store double %353, ptr %355, align 8, !tbaa !30
  br label %397

356:                                              ; preds = %290
  %357 = load ptr, ptr %9, align 8, !tbaa !5
  %358 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %357, i32 0, i32 0
  %359 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %358, i32 0, i32 4
  %360 = load ptr, ptr %359, align 8, !tbaa !21
  %361 = load i64, ptr %16, align 8, !tbaa !19
  %362 = getelementptr inbounds double, ptr %360, i64 %361
  %363 = load double, ptr %362, align 8, !tbaa !22
  %364 = load ptr, ptr %9, align 8, !tbaa !5
  %365 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %364, i32 0, i32 2
  %366 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %365, i32 0, i32 4
  %367 = load ptr, ptr %366, align 8, !tbaa !21
  %368 = load i64, ptr %16, align 8, !tbaa !19
  %369 = getelementptr inbounds double, ptr %367, i64 %368
  %370 = load double, ptr %369, align 8, !tbaa !22
  %371 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %363, double noundef %370)
  br i1 %371, label %372, label %396

372:                                              ; preds = %356
  %373 = load ptr, ptr %9, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %373, i32 0, i32 3
  %375 = load double, ptr %374, align 8, !tbaa !30
  %376 = load ptr, ptr %9, align 8, !tbaa !5
  %377 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %376, i32 0, i32 0
  %378 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %377, i32 0, i32 4
  %379 = load ptr, ptr %378, align 8, !tbaa !21
  %380 = load i64, ptr %16, align 8, !tbaa !19
  %381 = getelementptr inbounds double, ptr %379, i64 %380
  %382 = load double, ptr %381, align 8, !tbaa !22
  %383 = load ptr, ptr %9, align 8, !tbaa !5
  %384 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %383, i32 0, i32 2
  %385 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %384, i32 0, i32 4
  %386 = load ptr, ptr %385, align 8, !tbaa !21
  %387 = load i64, ptr %16, align 8, !tbaa !19
  %388 = getelementptr inbounds double, ptr %386, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !22
  %390 = fsub double %382, %389
  %391 = load ptr, ptr %14, align 8, !tbaa !5
  %392 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %390, ptr noundef %391)
  %393 = fadd double %375, %392
  %394 = load ptr, ptr %9, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %394, i32 0, i32 3
  store double %393, ptr %395, align 8, !tbaa !30
  br label %396

396:                                              ; preds = %372, %356
  br label %397

397:                                              ; preds = %396, %332
  br label %398

398:                                              ; preds = %397
  %399 = load i64, ptr %16, align 8, !tbaa !19
  %400 = add nsw i64 %399, 1
  store i64 %400, ptr %16, align 8, !tbaa !19
  br label %285, !llvm.loop !31

401:                                              ; preds = %285
  %402 = load ptr, ptr %8, align 8, !tbaa !5
  %403 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %402, i32 0, i32 4
  %404 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %403, i32 0, i32 4
  %405 = load ptr, ptr %404, align 8, !tbaa !21
  %406 = load i64, ptr %18, align 8, !tbaa !19
  %407 = getelementptr inbounds double, ptr %405, i64 %406
  %408 = load double, ptr %407, align 8, !tbaa !22
  store double %408, ptr %19, align 8, !tbaa !22
  %409 = load double, ptr %19, align 8, !tbaa !22
  %410 = load double, ptr %19, align 8, !tbaa !22
  %411 = fmul double %409, %410
  %412 = fdiv double 1.000000e+00, %411
  store double %412, ptr %21, align 8, !tbaa !22
  %413 = load double, ptr %19, align 8, !tbaa !22
  %414 = load ptr, ptr %8, align 8, !tbaa !5
  %415 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %414, i32 0, i32 2
  %416 = load i64, ptr %415, align 8, !tbaa !32
  %417 = load ptr, ptr %14, align 8, !tbaa !5
  %418 = call noundef double @_ZN11alglib_impl14rbfv2farradiusElPNS_8ae_stateE(i64 noundef %416, ptr noundef %417)
  %419 = fmul double %413, %418
  %420 = load ptr, ptr %14, align 8, !tbaa !5
  %421 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %419, ptr noundef %420)
  store double %421, ptr %20, align 8, !tbaa !22
  %422 = load ptr, ptr %8, align 8, !tbaa !5
  %423 = load ptr, ptr %9, align 8, !tbaa !5
  %424 = load ptr, ptr %8, align 8, !tbaa !5
  %425 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %424, i32 0, i32 6
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %425, i32 0, i32 4
  %427 = load ptr, ptr %426, align 8, !tbaa !21
  %428 = load i64, ptr %18, align 8, !tbaa !19
  %429 = getelementptr inbounds i64, ptr %427, i64 %428
  %430 = load i64, ptr %429, align 8, !tbaa !19
  %431 = load double, ptr %21, align 8, !tbaa !22
  %432 = load double, ptr %20, align 8, !tbaa !22
  %433 = load ptr, ptr %9, align 8, !tbaa !5
  %434 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %433, i32 0, i32 0
  %435 = load ptr, ptr %11, align 8, !tbaa !5
  %436 = load ptr, ptr %12, align 8, !tbaa !5
  %437 = load ptr, ptr %13, align 8, !tbaa !5
  %438 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_implL20rbfv2_partialcalcrecEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferElddPKNS_9ae_vectorEPS5_S8_S8_lPNS_8ae_stateE(ptr noundef %422, ptr noundef %423, i64 noundef %430, double noundef %431, double noundef %432, ptr noundef %434, ptr noundef %435, ptr noundef %436, ptr noundef %437, i64 noundef 2, ptr noundef %438)
  br label %439

439:                                              ; preds = %401
  %440 = load i64, ptr %18, align 8, !tbaa !19
  %441 = add nsw i64 %440, 1
  store i64 %441, ptr %18, align 8, !tbaa !19
  br label %275, !llvm.loop !33

442:                                              ; preds = %275
  store i64 0, ptr %15, align 8, !tbaa !19
  br label %443

443:                                              ; preds = %486, %442
  %444 = load i64, ptr %15, align 8, !tbaa !19
  %445 = load i64, ptr %23, align 8, !tbaa !19
  %446 = sub nsw i64 %445, 1
  %447 = icmp sle i64 %444, %446
  br i1 %447, label %448, label %489

448:                                              ; preds = %443
  store i64 0, ptr %16, align 8, !tbaa !19
  br label %449

449:                                              ; preds = %482, %448
  %450 = load i64, ptr %16, align 8, !tbaa !19
  %451 = load i64, ptr %22, align 8, !tbaa !19
  %452 = sub nsw i64 %451, 1
  %453 = icmp sle i64 %450, %452
  br i1 %453, label %454, label %485

454:                                              ; preds = %449
  %455 = load ptr, ptr %12, align 8, !tbaa !5
  %456 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %455, i32 0, i32 4
  %457 = load ptr, ptr %456, align 8, !tbaa !21
  %458 = load i64, ptr %15, align 8, !tbaa !19
  %459 = load i64, ptr %22, align 8, !tbaa !19
  %460 = mul nsw i64 %458, %459
  %461 = load i64, ptr %16, align 8, !tbaa !19
  %462 = add nsw i64 %460, %461
  %463 = getelementptr inbounds double, ptr %457, i64 %462
  %464 = load double, ptr %463, align 8, !tbaa !22
  %465 = load ptr, ptr %8, align 8, !tbaa !5
  %466 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %465, i32 0, i32 5
  %467 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %466, i32 0, i32 4
  %468 = load ptr, ptr %467, align 8, !tbaa !21
  %469 = load i64, ptr %16, align 8, !tbaa !19
  %470 = getelementptr inbounds double, ptr %468, i64 %469
  %471 = load double, ptr %470, align 8, !tbaa !22
  %472 = fdiv double %464, %471
  %473 = load ptr, ptr %12, align 8, !tbaa !5
  %474 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %473, i32 0, i32 4
  %475 = load ptr, ptr %474, align 8, !tbaa !21
  %476 = load i64, ptr %15, align 8, !tbaa !19
  %477 = load i64, ptr %22, align 8, !tbaa !19
  %478 = mul nsw i64 %476, %477
  %479 = load i64, ptr %16, align 8, !tbaa !19
  %480 = add nsw i64 %478, %479
  %481 = getelementptr inbounds double, ptr %475, i64 %480
  store double %472, ptr %481, align 8, !tbaa !22
  br label %482

482:                                              ; preds = %454
  %483 = load i64, ptr %16, align 8, !tbaa !19
  %484 = add nsw i64 %483, 1
  store i64 %484, ptr %16, align 8, !tbaa !19
  br label %449, !llvm.loop !34

485:                                              ; preds = %449
  br label %486

486:                                              ; preds = %485
  %487 = load i64, ptr %15, align 8, !tbaa !19
  %488 = add nsw i64 %487, 1
  store i64 %488, ptr %15, align 8, !tbaa !19
  br label %443, !llvm.loop !35

489:                                              ; preds = %443
  store i64 0, ptr %15, align 8, !tbaa !19
  br label %490

490:                                              ; preds = %563, %489
  %491 = load i64, ptr %15, align 8, !tbaa !19
  %492 = load i64, ptr %23, align 8, !tbaa !19
  %493 = sub nsw i64 %492, 1
  %494 = icmp sle i64 %491, %493
  br i1 %494, label %495, label %566

495:                                              ; preds = %490
  store i64 0, ptr %16, align 8, !tbaa !19
  br label %496

496:                                              ; preds = %559, %495
  %497 = load i64, ptr %16, align 8, !tbaa !19
  %498 = load i64, ptr %22, align 8, !tbaa !19
  %499 = sub nsw i64 %498, 1
  %500 = icmp sle i64 %497, %499
  br i1 %500, label %501, label %562

501:                                              ; preds = %496
  store i64 0, ptr %17, align 8, !tbaa !19
  br label %502

502:                                              ; preds = %555, %501
  %503 = load i64, ptr %17, align 8, !tbaa !19
  %504 = load i64, ptr %22, align 8, !tbaa !19
  %505 = sub nsw i64 %504, 1
  %506 = icmp sle i64 %503, %505
  br i1 %506, label %507, label %558

507:                                              ; preds = %502
  %508 = load ptr, ptr %13, align 8, !tbaa !5
  %509 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %508, i32 0, i32 4
  %510 = load ptr, ptr %509, align 8, !tbaa !21
  %511 = load i64, ptr %15, align 8, !tbaa !19
  %512 = load i64, ptr %22, align 8, !tbaa !19
  %513 = mul nsw i64 %511, %512
  %514 = load i64, ptr %22, align 8, !tbaa !19
  %515 = mul nsw i64 %513, %514
  %516 = load i64, ptr %16, align 8, !tbaa !19
  %517 = load i64, ptr %22, align 8, !tbaa !19
  %518 = mul nsw i64 %516, %517
  %519 = add nsw i64 %515, %518
  %520 = load i64, ptr %17, align 8, !tbaa !19
  %521 = add nsw i64 %519, %520
  %522 = getelementptr inbounds double, ptr %510, i64 %521
  %523 = load double, ptr %522, align 8, !tbaa !22
  %524 = load ptr, ptr %8, align 8, !tbaa !5
  %525 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %524, i32 0, i32 5
  %526 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %525, i32 0, i32 4
  %527 = load ptr, ptr %526, align 8, !tbaa !21
  %528 = load i64, ptr %16, align 8, !tbaa !19
  %529 = getelementptr inbounds double, ptr %527, i64 %528
  %530 = load double, ptr %529, align 8, !tbaa !22
  %531 = load ptr, ptr %8, align 8, !tbaa !5
  %532 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %531, i32 0, i32 5
  %533 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %532, i32 0, i32 4
  %534 = load ptr, ptr %533, align 8, !tbaa !21
  %535 = load i64, ptr %17, align 8, !tbaa !19
  %536 = getelementptr inbounds double, ptr %534, i64 %535
  %537 = load double, ptr %536, align 8, !tbaa !22
  %538 = fmul double %530, %537
  %539 = fdiv double %523, %538
  %540 = load ptr, ptr %13, align 8, !tbaa !5
  %541 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %540, i32 0, i32 4
  %542 = load ptr, ptr %541, align 8, !tbaa !21
  %543 = load i64, ptr %15, align 8, !tbaa !19
  %544 = load i64, ptr %22, align 8, !tbaa !19
  %545 = mul nsw i64 %543, %544
  %546 = load i64, ptr %22, align 8, !tbaa !19
  %547 = mul nsw i64 %545, %546
  %548 = load i64, ptr %16, align 8, !tbaa !19
  %549 = load i64, ptr %22, align 8, !tbaa !19
  %550 = mul nsw i64 %548, %549
  %551 = add nsw i64 %547, %550
  %552 = load i64, ptr %17, align 8, !tbaa !19
  %553 = add nsw i64 %551, %552
  %554 = getelementptr inbounds double, ptr %542, i64 %553
  store double %539, ptr %554, align 8, !tbaa !22
  br label %555

555:                                              ; preds = %507
  %556 = load i64, ptr %17, align 8, !tbaa !19
  %557 = add nsw i64 %556, 1
  store i64 %557, ptr %17, align 8, !tbaa !19
  br label %502, !llvm.loop !36

558:                                              ; preds = %502
  br label %559

559:                                              ; preds = %558
  %560 = load i64, ptr %16, align 8, !tbaa !19
  %561 = add nsw i64 %560, 1
  store i64 %561, ptr %16, align 8, !tbaa !19
  br label %496, !llvm.loop !37

562:                                              ; preds = %496
  br label %563

563:                                              ; preds = %562
  %564 = load i64, ptr %15, align 8, !tbaa !19
  %565 = add nsw i64 %564, 1
  store i64 %565, ptr %15, align 8, !tbaa !19
  br label %490, !llvm.loop !38

566:                                              ; preds = %490
  store i32 0, ptr %24, align 4
  br label %567

567:                                              ; preds = %566, %193
  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 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
  %568 = load i32, ptr %24, align 4
  switch i32 %568, label %570 [
    i32 0, label %569
    i32 1, label %569
  ]

569:                                              ; preds = %567, %567
  ret void

570:                                              ; preds = %567
  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}
!36 = distinct !{!36, !24}
!37 = distinct !{!37, !24}
!38 = distinct !{!38, !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

declare void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr 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_impl14rbfv2tshessbufEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #2 {
  %8 = load i64, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = icmp sge i64 %8, %10
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.708, ptr noundef %6)
  %12 = load i64, ptr %9, align 8, !tbaa !13
  %13 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %12, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.709, ptr noundef %6)
  %14 = load i64, ptr %9, align 8, !tbaa !13
  %15 = load i64, ptr %0, align 8, !tbaa !18
  %16 = load i64, ptr %3, align 8, !tbaa !5
  %17 = icmp slt i64 %16, %15
  br i1 %17, label %18, label %19

18:                                               ; preds = %7
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %15, ptr noundef %6)
  %.pre = load i64, ptr %0, align 8, !tbaa !18
  %.pre269 = load i64, ptr %9, align 8, !tbaa !13
  br label %19

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

25:                                               ; preds = %19
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %23, ptr noundef %6)
  br label %26

26:                                               ; preds = %25, %19
  %27 = load i64, ptr %5, align 8, !tbaa !5
  %28 = mul i64 %14, %14
  %29 = mul i64 %28, %15
  %30 = icmp slt i64 %27, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %26
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %29, ptr noundef %6)
  br label %32

32:                                               ; preds = %31, %26
  %.not.not220 = icmp sgt i64 %15, 0
  br i1 %.not.not220, label %.lr.ph223, label %._crit_edge224

.lr.ph223:                                        ; preds = %32
  %33 = getelementptr inbounds i8, ptr %0, i64 616
  %34 = getelementptr inbounds i8, ptr %3, i64 56
  %.not.not210218 = icmp sgt i64 %14, 0
  %35 = getelementptr inbounds i8, ptr %2, i64 56
  %36 = getelementptr inbounds i8, ptr %4, i64 56
  br i1 %.not.not210218, label %.lr.ph.us, label %.lr.ph223.split.preheader

.lr.ph223.split.preheader:                        ; preds = %.lr.ph223
  %xtraiter = and i64 %15, 1
  %37 = icmp eq i64 %15, 1
  br i1 %37, label %._crit_edge224.loopexit281.unr-lcssa, label %.lr.ph223.split.preheader.new

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

.lr.ph.us:                                        ; preds = %.lr.ph223, %._crit_edge.us
  %.0221.us = phi i64 [ %68, %._crit_edge.us ], [ 0, %.lr.ph223 ]
  %38 = load ptr, ptr %33, align 8, !tbaa !19
  %39 = getelementptr inbounds ptr, ptr %38, i64 %.0221.us
  %40 = load ptr, ptr %39, align 8, !tbaa !20
  %41 = getelementptr inbounds double, ptr %40, i64 %14
  %42 = load double, ptr %41, align 8, !tbaa !21
  %43 = load ptr, ptr %34, align 8, !tbaa !19
  %44 = getelementptr inbounds double, ptr %43, i64 %.0221.us
  store double %42, ptr %44, align 8, !tbaa !21
  %45 = mul nuw nsw i64 %.0221.us, %14
  br label %46

46:                                               ; preds = %.lr.ph.us, %46
  %.0189219.us = phi i64 [ 0, %.lr.ph.us ], [ %67, %46 ]
  %47 = load ptr, ptr %34, align 8, !tbaa !19
  %48 = getelementptr inbounds double, ptr %47, i64 %.0221.us
  %49 = load double, ptr %48, align 8, !tbaa !21
  %50 = load ptr, ptr %33, align 8, !tbaa !19
  %51 = getelementptr inbounds ptr, ptr %50, i64 %.0221.us
  %52 = load ptr, ptr %51, align 8, !tbaa !20
  %53 = getelementptr inbounds double, ptr %52, i64 %.0189219.us
  %54 = load double, ptr %53, align 8, !tbaa !21
  %55 = load ptr, ptr %35, align 8, !tbaa !19
  %56 = getelementptr inbounds double, ptr %55, i64 %.0189219.us
  %57 = load double, ptr %56, align 8, !tbaa !21
  %58 = tail call double @llvm.fmuladd.f64(double %54, double %57, double %49)
  store double %58, ptr %48, align 8, !tbaa !21
  %59 = load ptr, ptr %33, align 8, !tbaa !19
  %60 = getelementptr inbounds ptr, ptr %59, i64 %.0221.us
  %61 = load ptr, ptr %60, align 8, !tbaa !20
  %62 = getelementptr inbounds double, ptr %61, i64 %.0189219.us
  %63 = load double, ptr %62, align 8, !tbaa !21
  %64 = load ptr, ptr %36, align 8, !tbaa !19
  %65 = getelementptr double, ptr %64, i64 %45
  %66 = getelementptr double, ptr %65, i64 %.0189219.us
  store double %63, ptr %66, align 8, !tbaa !21
  %67 = add nuw nsw i64 %.0189219.us, 1
  %exitcond258.not = icmp eq i64 %67, %14
  br i1 %exitcond258.not, label %._crit_edge.us, label %46, !llvm.loop !22

._crit_edge.us:                                   ; preds = %46
  %68 = add nuw nsw i64 %.0221.us, 1
  %exitcond259.not = icmp eq i64 %68, %15
  br i1 %exitcond259.not, label %._crit_edge224, label %.lr.ph.us, !llvm.loop !24

.lr.ph223.split:                                  ; preds = %.lr.ph223.split, %.lr.ph223.split.preheader.new
  %.0221 = phi i64 [ 0, %.lr.ph223.split.preheader.new ], [ %84, %.lr.ph223.split ]
  %niter = phi i64 [ 0, %.lr.ph223.split.preheader.new ], [ %niter.next.1, %.lr.ph223.split ]
  %69 = load ptr, ptr %33, align 8, !tbaa !19
  %70 = getelementptr inbounds ptr, ptr %69, i64 %.0221
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  %72 = getelementptr inbounds double, ptr %71, i64 %14
  %73 = load double, ptr %72, align 8, !tbaa !21
  %74 = load ptr, ptr %34, align 8, !tbaa !19
  %75 = getelementptr inbounds double, ptr %74, i64 %.0221
  store double %73, ptr %75, align 8, !tbaa !21
  %76 = or disjoint i64 %.0221, 1
  %77 = load ptr, ptr %33, align 8, !tbaa !19
  %78 = getelementptr inbounds ptr, ptr %77, i64 %76
  %79 = load ptr, ptr %78, align 8, !tbaa !20
  %80 = getelementptr inbounds double, ptr %79, i64 %14
  %81 = load double, ptr %80, align 8, !tbaa !21
  %82 = load ptr, ptr %34, align 8, !tbaa !19
  %83 = getelementptr inbounds double, ptr %82, i64 %76
  store double %81, ptr %83, align 8, !tbaa !21
  %84 = add nuw nsw i64 %.0221, 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_edge224.loopexit281.unr-lcssa, label %.lr.ph223.split, !llvm.loop !24

._crit_edge224.loopexit281.unr-lcssa:             ; preds = %.lr.ph223.split, %.lr.ph223.split.preheader
  %.0221.unr = phi i64 [ 0, %.lr.ph223.split.preheader ], [ %84, %.lr.ph223.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge224, label %.lr.ph223.split.epil

.lr.ph223.split.epil:                             ; preds = %._crit_edge224.loopexit281.unr-lcssa
  %85 = load ptr, ptr %33, align 8, !tbaa !19
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.0221.unr
  %87 = load ptr, ptr %86, align 8, !tbaa !20
  %88 = getelementptr inbounds double, ptr %87, i64 %14
  %89 = load double, ptr %88, align 8, !tbaa !21
  %90 = load ptr, ptr %34, align 8, !tbaa !19
  %91 = getelementptr inbounds double, ptr %90, i64 %.0221.unr
  store double %89, ptr %91, align 8, !tbaa !21
  br label %._crit_edge224

._crit_edge224:                                   ; preds = %.lr.ph223.split.epil, %._crit_edge224.loopexit281.unr-lcssa, %._crit_edge.us, %32
  tail call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %29, double noundef 0.000000e+00, ptr noundef nonnull %5, ptr noundef %6)
  %92 = getelementptr inbounds i8, ptr %0, i64 24
  %93 = load i64, ptr %92, align 8, !tbaa !25
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %.loopexit, label %95

95:                                               ; preds = %._crit_edge224
  tail call void @_ZN11alglib_implL24rbfv2_allocatecalcbufferEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %6)
  %.not.not200225 = icmp sgt i64 %14, 0
  br i1 %.not.not200225, label %.lr.ph, label %.preheader215

.lr.ph:                                           ; preds = %95
  %96 = getelementptr inbounds i8, ptr %2, i64 56
  %97 = getelementptr inbounds i8, ptr %0, i64 152
  %98 = getelementptr inbounds i8, ptr %1, i64 56
  %99 = add nsw i64 %14, -1
  %xtraiter282 = and i64 %14, 1
  %100 = icmp eq i64 %99, 0
  br i1 %100, label %.preheader217.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter284 = and i64 %14, 9223372036854775806
  br label %141

.preheader217.unr-lcssa:                          ; preds = %141, %.lr.ph
  %.1190226.unr = phi i64 [ 0, %.lr.ph ], [ %161, %141 ]
  %lcmp.mod283.not = icmp eq i64 %xtraiter282, 0
  br i1 %lcmp.mod283.not, label %.preheader217, label %.preheader217.epilog-lcssa

.preheader217.epilog-lcssa:                       ; preds = %.preheader217.unr-lcssa
  %101 = load ptr, ptr %96, align 8, !tbaa !19
  %102 = getelementptr inbounds double, ptr %101, i64 %.1190226.unr
  %103 = load double, ptr %102, align 8, !tbaa !21
  %104 = load ptr, ptr %97, align 8, !tbaa !19
  %105 = getelementptr inbounds double, ptr %104, i64 %.1190226.unr
  %106 = load double, ptr %105, align 8, !tbaa !21
  %107 = fdiv double %103, %106
  %108 = load ptr, ptr %98, align 8, !tbaa !19
  %109 = getelementptr inbounds double, ptr %108, i64 %.1190226.unr
  store double %107, ptr %109, align 8, !tbaa !21
  br label %.preheader217

.preheader217:                                    ; preds = %.preheader217.unr-lcssa, %.preheader217.epilog-lcssa
  br i1 %.not.not220, label %.preheader216.lr.ph, label %.preheader215

.preheader216.lr.ph:                              ; preds = %.preheader217
  %110 = getelementptr inbounds i8, ptr %4, i64 56
  %111 = getelementptr inbounds i8, ptr %0, i64 152
  br i1 %.not.not200225, label %.preheader216.us.preheader, label %.preheader215

.preheader216.us.preheader:                       ; preds = %.preheader216.lr.ph
  %xtraiter287 = and i64 %14, 1
  %112 = icmp eq i64 %99, 0
  %unroll_iter289 = and i64 %14, 9223372036854775806
  %lcmp.mod288.not = icmp eq i64 %xtraiter287, 0
  br label %.preheader216.us

.preheader216.us:                                 ; preds = %.preheader216.us.preheader, %._crit_edge.us232
  %.1231.us = phi i64 [ %140, %._crit_edge.us232 ], [ 0, %.preheader216.us.preheader ]
  %113 = mul nuw nsw i64 %.1231.us, %14
  br i1 %112, label %._crit_edge.us232.unr-lcssa, label %.preheader216.us.new

.preheader216.us.new:                             ; preds = %.preheader216.us, %.preheader216.us.new
  %.2191228.us = phi i64 [ %131, %.preheader216.us.new ], [ 0, %.preheader216.us ]
  %niter290 = phi i64 [ %niter290.next.1, %.preheader216.us.new ], [ 0, %.preheader216.us ]
  %114 = load ptr, ptr %110, align 8, !tbaa !19
  %115 = getelementptr double, ptr %114, i64 %113
  %116 = getelementptr double, ptr %115, i64 %.2191228.us
  %117 = load double, ptr %116, align 8, !tbaa !21
  %118 = load ptr, ptr %111, align 8, !tbaa !19
  %119 = getelementptr inbounds double, ptr %118, i64 %.2191228.us
  %120 = load double, ptr %119, align 8, !tbaa !21
  %121 = fmul double %117, %120
  store double %121, ptr %116, align 8, !tbaa !21
  %122 = or disjoint i64 %.2191228.us, 1
  %123 = load ptr, ptr %110, align 8, !tbaa !19
  %124 = getelementptr double, ptr %123, i64 %113
  %125 = getelementptr double, ptr %124, i64 %122
  %126 = load double, ptr %125, align 8, !tbaa !21
  %127 = load ptr, ptr %111, align 8, !tbaa !19
  %128 = getelementptr inbounds double, ptr %127, i64 %122
  %129 = load double, ptr %128, align 8, !tbaa !21
  %130 = fmul double %126, %129
  store double %130, ptr %125, align 8, !tbaa !21
  %131 = add nuw nsw i64 %.2191228.us, 2
  %niter290.next.1 = add i64 %niter290, 2
  %niter290.ncmp.1 = icmp eq i64 %niter290.next.1, %unroll_iter289
  br i1 %niter290.ncmp.1, label %._crit_edge.us232.unr-lcssa, label %.preheader216.us.new, !llvm.loop !26

._crit_edge.us232.unr-lcssa:                      ; preds = %.preheader216.us.new, %.preheader216.us
  %.2191228.us.unr = phi i64 [ 0, %.preheader216.us ], [ %131, %.preheader216.us.new ]
  br i1 %lcmp.mod288.not, label %._crit_edge.us232, label %._crit_edge.us232.epilog-lcssa

._crit_edge.us232.epilog-lcssa:                   ; preds = %._crit_edge.us232.unr-lcssa
  %132 = load ptr, ptr %110, align 8, !tbaa !19
  %133 = getelementptr double, ptr %132, i64 %113
  %134 = getelementptr double, ptr %133, i64 %.2191228.us.unr
  %135 = load double, ptr %134, align 8, !tbaa !21
  %136 = load ptr, ptr %111, align 8, !tbaa !19
  %137 = getelementptr inbounds double, ptr %136, i64 %.2191228.us.unr
  %138 = load double, ptr %137, align 8, !tbaa !21
  %139 = fmul double %135, %138
  store double %139, ptr %134, align 8, !tbaa !21
  br label %._crit_edge.us232

._crit_edge.us232:                                ; preds = %._crit_edge.us232.unr-lcssa, %._crit_edge.us232.epilog-lcssa
  %140 = add nuw nsw i64 %.1231.us, 1
  %exitcond262.not = icmp eq i64 %140, %15
  br i1 %exitcond262.not, label %.preheader215, label %.preheader216.us, !llvm.loop !27

141:                                              ; preds = %141, %.lr.ph.new
  %.1190226 = phi i64 [ 0, %.lr.ph.new ], [ %161, %141 ]
  %niter285 = phi i64 [ 0, %.lr.ph.new ], [ %niter285.next.1, %141 ]
  %142 = load ptr, ptr %96, align 8, !tbaa !19
  %143 = getelementptr inbounds double, ptr %142, i64 %.1190226
  %144 = load double, ptr %143, align 8, !tbaa !21
  %145 = load ptr, ptr %97, align 8, !tbaa !19
  %146 = getelementptr inbounds double, ptr %145, i64 %.1190226
  %147 = load double, ptr %146, align 8, !tbaa !21
  %148 = fdiv double %144, %147
  %149 = load ptr, ptr %98, align 8, !tbaa !19
  %150 = getelementptr inbounds double, ptr %149, i64 %.1190226
  store double %148, ptr %150, align 8, !tbaa !21
  %151 = or disjoint i64 %.1190226, 1
  %152 = load ptr, ptr %96, align 8, !tbaa !19
  %153 = getelementptr inbounds double, ptr %152, i64 %151
  %154 = load double, ptr %153, align 8, !tbaa !21
  %155 = load ptr, ptr %97, align 8, !tbaa !19
  %156 = getelementptr inbounds double, ptr %155, i64 %151
  %157 = load double, ptr %156, align 8, !tbaa !21
  %158 = fdiv double %154, %157
  %159 = load ptr, ptr %98, align 8, !tbaa !19
  %160 = getelementptr inbounds double, ptr %159, i64 %151
  store double %158, ptr %160, align 8, !tbaa !21
  %161 = add nuw nsw i64 %.1190226, 2
  %niter285.next.1 = add i64 %niter285, 2
  %niter285.ncmp.1 = icmp eq i64 %niter285.next.1, %unroll_iter284
  br i1 %niter285.ncmp.1, label %.preheader217.unr-lcssa, label %141, !llvm.loop !28

.preheader215:                                    ; preds = %._crit_edge.us232, %95, %.preheader216.lr.ph, %.preheader217
  %162 = load i64, ptr %92, align 8, !tbaa !25
  %.not.not202236 = icmp sgt i64 %162, 0
  br i1 %.not.not202236, label %.lr.ph238, label %.preheader214

.lr.ph238:                                        ; preds = %.preheader215
  %163 = getelementptr inbounds i8, ptr %1, i64 192
  %164 = getelementptr inbounds i8, ptr %0, i64 408
  %165 = getelementptr inbounds i8, ptr %1, i64 120
  %166 = getelementptr inbounds i8, ptr %0, i64 472
  %167 = getelementptr inbounds i8, ptr %1, i64 184
  %168 = getelementptr inbounds i8, ptr %1, i64 56
  %169 = getelementptr inbounds i8, ptr %0, i64 88
  %170 = getelementptr inbounds i8, ptr %0, i64 16
  %171 = getelementptr inbounds i8, ptr %0, i64 216
  br label %204

.preheader214:                                    ; preds = %._crit_edge, %.preheader215
  br i1 %.not.not220, label %.preheader213.lr.ph, label %.loopexit

.preheader213.lr.ph:                              ; preds = %.preheader214
  %172 = getelementptr inbounds i8, ptr %4, i64 56
  %173 = getelementptr inbounds i8, ptr %0, i64 152
  br i1 %.not.not200225, label %.preheader213.us.preheader, label %.loopexit

.preheader213.us.preheader:                       ; preds = %.preheader213.lr.ph
  %174 = add nsw i64 %14, -1
  %xtraiter292 = and i64 %14, 1
  %175 = icmp eq i64 %174, 0
  %unroll_iter294 = and i64 %14, 9223372036854775806
  %lcmp.mod293.not = icmp eq i64 %xtraiter292, 0
  br label %.preheader213.us

.preheader213.us:                                 ; preds = %.preheader213.us.preheader, %._crit_edge242.us
  %.2244.us = phi i64 [ %203, %._crit_edge242.us ], [ 0, %.preheader213.us.preheader ]
  %176 = mul nuw nsw i64 %.2244.us, %14
  br i1 %175, label %._crit_edge242.us.unr-lcssa, label %.preheader213.us.new

.preheader213.us.new:                             ; preds = %.preheader213.us, %.preheader213.us.new
  %.4240.us = phi i64 [ %194, %.preheader213.us.new ], [ 0, %.preheader213.us ]
  %niter295 = phi i64 [ %niter295.next.1, %.preheader213.us.new ], [ 0, %.preheader213.us ]
  %177 = load ptr, ptr %172, align 8, !tbaa !19
  %178 = getelementptr double, ptr %177, i64 %176
  %179 = getelementptr double, ptr %178, i64 %.4240.us
  %180 = load double, ptr %179, align 8, !tbaa !21
  %181 = load ptr, ptr %173, align 8, !tbaa !19
  %182 = getelementptr inbounds double, ptr %181, i64 %.4240.us
  %183 = load double, ptr %182, align 8, !tbaa !21
  %184 = fdiv double %180, %183
  store double %184, ptr %179, align 8, !tbaa !21
  %185 = or disjoint i64 %.4240.us, 1
  %186 = load ptr, ptr %172, align 8, !tbaa !19
  %187 = getelementptr double, ptr %186, i64 %176
  %188 = getelementptr double, ptr %187, i64 %185
  %189 = load double, ptr %188, align 8, !tbaa !21
  %190 = load ptr, ptr %173, align 8, !tbaa !19
  %191 = getelementptr inbounds double, ptr %190, i64 %185
  %192 = load double, ptr %191, align 8, !tbaa !21
  %193 = fdiv double %189, %192
  store double %193, ptr %188, align 8, !tbaa !21
  %194 = add nuw nsw i64 %.4240.us, 2
  %niter295.next.1 = add i64 %niter295, 2
  %niter295.ncmp.1 = icmp eq i64 %niter295.next.1, %unroll_iter294
  br i1 %niter295.ncmp.1, label %._crit_edge242.us.unr-lcssa, label %.preheader213.us.new, !llvm.loop !29

._crit_edge242.us.unr-lcssa:                      ; preds = %.preheader213.us.new, %.preheader213.us
  %.4240.us.unr = phi i64 [ 0, %.preheader213.us ], [ %194, %.preheader213.us.new ]
  br i1 %lcmp.mod293.not, label %._crit_edge242.us, label %._crit_edge242.us.epilog-lcssa

._crit_edge242.us.epilog-lcssa:                   ; preds = %._crit_edge242.us.unr-lcssa
  %195 = load ptr, ptr %172, align 8, !tbaa !19
  %196 = getelementptr double, ptr %195, i64 %176
  %197 = getelementptr double, ptr %196, i64 %.4240.us.unr
  %198 = load double, ptr %197, align 8, !tbaa !21
  %199 = load ptr, ptr %173, align 8, !tbaa !19
  %200 = getelementptr inbounds double, ptr %199, i64 %.4240.us.unr
  %201 = load double, ptr %200, align 8, !tbaa !21
  %202 = fdiv double %198, %201
  store double %202, ptr %197, align 8, !tbaa !21
  br label %._crit_edge242.us

._crit_edge242.us:                                ; preds = %._crit_edge242.us.unr-lcssa, %._crit_edge242.us.epilog-lcssa
  %203 = add nuw nsw i64 %.2244.us, 1
  %exitcond265.not = icmp eq i64 %203, %15
  br i1 %exitcond265.not, label %.preheader212, label %.preheader213.us, !llvm.loop !30

204:                                              ; preds = %.lr.ph238, %._crit_edge
  %.0194237 = phi i64 [ 0, %.lr.ph238 ], [ %254, %._crit_edge ]
  store double 0.000000e+00, ptr %163, align 8, !tbaa !31
  br i1 %.not.not200225, label %.lr.ph235, label %._crit_edge

.lr.ph235:                                        ; preds = %204, %240
  %.3192234 = phi i64 [ %241, %240 ], [ 0, %204 ]
  %205 = load ptr, ptr %164, align 8, !tbaa !19
  %206 = getelementptr inbounds double, ptr %205, i64 %.3192234
  %207 = load double, ptr %206, align 8, !tbaa !21
  %208 = load ptr, ptr %165, align 8, !tbaa !19
  %209 = getelementptr inbounds double, ptr %208, i64 %.3192234
  store double %207, ptr %209, align 8, !tbaa !21
  %210 = load ptr, ptr %166, align 8, !tbaa !19
  %211 = getelementptr inbounds double, ptr %210, i64 %.3192234
  %212 = load double, ptr %211, align 8, !tbaa !21
  %213 = load ptr, ptr %167, align 8, !tbaa !19
  %214 = getelementptr inbounds double, ptr %213, i64 %.3192234
  store double %212, ptr %214, align 8, !tbaa !21
  %215 = load ptr, ptr %168, align 8, !tbaa !19
  %216 = getelementptr inbounds double, ptr %215, i64 %.3192234
  %217 = load double, ptr %216, align 8, !tbaa !21
  %218 = load ptr, ptr %165, align 8, !tbaa !19
  %219 = getelementptr inbounds double, ptr %218, i64 %.3192234
  %220 = load double, ptr %219, align 8, !tbaa !21
  %221 = tail call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %217, double noundef %220)
  br i1 %221, label %.sink.split, label %222

222:                                              ; preds = %.lr.ph235
  %223 = load ptr, ptr %168, align 8, !tbaa !19
  %224 = getelementptr inbounds double, ptr %223, i64 %.3192234
  %225 = load double, ptr %224, align 8, !tbaa !21
  %226 = load ptr, ptr %167, align 8, !tbaa !19
  %227 = getelementptr inbounds double, ptr %226, i64 %.3192234
  %228 = load double, ptr %227, align 8, !tbaa !21
  %229 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %225, double noundef %228)
  br i1 %229, label %.sink.split, label %240

.sink.split:                                      ; preds = %222, %.lr.ph235
  %.sink279 = phi ptr [ %165, %.lr.ph235 ], [ %168, %222 ]
  %.sink = phi ptr [ %168, %.lr.ph235 ], [ %167, %222 ]
  %230 = load double, ptr %163, align 8, !tbaa !31
  %231 = load ptr, ptr %.sink279, align 8, !tbaa !19
  %232 = getelementptr inbounds double, ptr %231, i64 %.3192234
  %233 = load double, ptr %232, align 8, !tbaa !21
  %234 = load ptr, ptr %.sink, align 8, !tbaa !19
  %235 = getelementptr inbounds double, ptr %234, i64 %.3192234
  %236 = load double, ptr %235, align 8, !tbaa !21
  %237 = fsub double %233, %236
  %238 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %237, ptr noundef %6)
  %239 = fadd double %230, %238
  store double %239, ptr %163, align 8, !tbaa !31
  br label %240

240:                                              ; preds = %.sink.split, %222
  %241 = add nuw nsw i64 %.3192234, 1
  %exitcond263.not = icmp eq i64 %241, %14
  br i1 %exitcond263.not, label %._crit_edge, label %.lr.ph235, !llvm.loop !32

._crit_edge:                                      ; preds = %240, %204
  %242 = load ptr, ptr %169, align 8, !tbaa !19
  %243 = getelementptr inbounds double, ptr %242, i64 %.0194237
  %244 = load double, ptr %243, align 8, !tbaa !21
  %245 = fmul double %244, %244
  %246 = fdiv double 1.000000e+00, %245
  %247 = load i64, ptr %170, align 8, !tbaa !33
  %248 = tail call noundef double @_ZN11alglib_impl14rbfv2farradiusElPNS_8ae_stateE(i64 noundef %247, ptr noundef %6)
  %249 = fmul double %244, %248
  %250 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %249, ptr noundef %6)
  %251 = load ptr, ptr %171, align 8, !tbaa !19
  %252 = getelementptr inbounds i64, ptr %251, i64 %.0194237
  %253 = load i64, ptr %252, 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 %253, double noundef %246, double noundef %250, ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, i64 noundef 2, ptr noundef %6)
  %254 = add nuw nsw i64 %.0194237, 1
  %255 = load i64, ptr %92, align 8, !tbaa !25
  %.not.not202 = icmp slt i64 %254, %255
  br i1 %.not.not202, label %204, label %.preheader214, !llvm.loop !35

.preheader212:                                    ; preds = %._crit_edge242.us
  br i1 %.not.not220, label %.preheader211.lr.ph, label %.loopexit

.preheader211.lr.ph:                              ; preds = %.preheader212
  %256 = getelementptr inbounds i8, ptr %5, i64 56
  %257 = getelementptr inbounds i8, ptr %0, i64 152
  br i1 %.not.not200225, label %.preheader211.us.preheader, label %.loopexit

.preheader211.us.preheader:                       ; preds = %.preheader211.lr.ph
  %xtraiter297 = and i64 %14, 1
  %258 = icmp eq i64 %174, 0
  %unroll_iter299 = and i64 %14, 9223372036854775806
  %lcmp.mod298.not = icmp eq i64 %xtraiter297, 0
  br label %.preheader211.us

.preheader211.us:                                 ; preds = %.preheader211.us.preheader, %._crit_edge251.split.us.us
  %.3253.us = phi i64 [ %298, %._crit_edge251.split.us.us ], [ 0, %.preheader211.us.preheader ]
  %259 = mul nuw nsw i64 %.3253.us, %14
  br label %.preheader.us.us

.preheader.us.us:                                 ; preds = %._crit_edge248.us.us, %.preheader211.us
  %.5250.us.us = phi i64 [ 0, %.preheader211.us ], [ %297, %._crit_edge248.us.us ]
  %260 = add nuw i64 %.5250.us.us, %259
  %261 = mul i64 %260, %14
  br i1 %258, label %._crit_edge248.us.us.unr-lcssa, label %.preheader.us.us.new

.preheader.us.us.new:                             ; preds = %.preheader.us.us, %.preheader.us.us.new
  %.0193246.us.us = phi i64 [ %285, %.preheader.us.us.new ], [ 0, %.preheader.us.us ]
  %niter300 = phi i64 [ %niter300.next.1, %.preheader.us.us.new ], [ 0, %.preheader.us.us ]
  %262 = load ptr, ptr %256, align 8, !tbaa !19
  %263 = getelementptr double, ptr %262, i64 %261
  %264 = getelementptr double, ptr %263, i64 %.0193246.us.us
  %265 = load double, ptr %264, align 8, !tbaa !21
  %266 = load ptr, ptr %257, align 8, !tbaa !19
  %267 = getelementptr inbounds double, ptr %266, i64 %.5250.us.us
  %268 = load double, ptr %267, align 8, !tbaa !21
  %269 = getelementptr inbounds double, ptr %266, i64 %.0193246.us.us
  %270 = load double, ptr %269, align 8, !tbaa !21
  %271 = fmul double %268, %270
  %272 = fdiv double %265, %271
  store double %272, ptr %264, align 8, !tbaa !21
  %273 = or disjoint i64 %.0193246.us.us, 1
  %274 = load ptr, ptr %256, align 8, !tbaa !19
  %275 = getelementptr double, ptr %274, i64 %261
  %276 = getelementptr double, ptr %275, i64 %273
  %277 = load double, ptr %276, align 8, !tbaa !21
  %278 = load ptr, ptr %257, align 8, !tbaa !19
  %279 = getelementptr inbounds double, ptr %278, i64 %.5250.us.us
  %280 = load double, ptr %279, align 8, !tbaa !21
  %281 = getelementptr inbounds double, ptr %278, i64 %273
  %282 = load double, ptr %281, align 8, !tbaa !21
  %283 = fmul double %280, %282
  %284 = fdiv double %277, %283
  store double %284, ptr %276, align 8, !tbaa !21
  %285 = add nuw nsw i64 %.0193246.us.us, 2
  %niter300.next.1 = add i64 %niter300, 2
  %niter300.ncmp.1 = icmp eq i64 %niter300.next.1, %unroll_iter299
  br i1 %niter300.ncmp.1, label %._crit_edge248.us.us.unr-lcssa, label %.preheader.us.us.new, !llvm.loop !36

._crit_edge248.us.us.unr-lcssa:                   ; preds = %.preheader.us.us.new, %.preheader.us.us
  %.0193246.us.us.unr = phi i64 [ 0, %.preheader.us.us ], [ %285, %.preheader.us.us.new ]
  br i1 %lcmp.mod298.not, label %._crit_edge248.us.us, label %._crit_edge248.us.us.epilog-lcssa

._crit_edge248.us.us.epilog-lcssa:                ; preds = %._crit_edge248.us.us.unr-lcssa
  %286 = load ptr, ptr %256, align 8, !tbaa !19
  %287 = getelementptr double, ptr %286, i64 %261
  %288 = getelementptr double, ptr %287, i64 %.0193246.us.us.unr
  %289 = load double, ptr %288, align 8, !tbaa !21
  %290 = load ptr, ptr %257, align 8, !tbaa !19
  %291 = getelementptr inbounds double, ptr %290, i64 %.5250.us.us
  %292 = load double, ptr %291, align 8, !tbaa !21
  %293 = getelementptr inbounds double, ptr %290, i64 %.0193246.us.us.unr
  %294 = load double, ptr %293, align 8, !tbaa !21
  %295 = fmul double %292, %294
  %296 = fdiv double %289, %295
  store double %296, ptr %288, align 8, !tbaa !21
  br label %._crit_edge248.us.us

._crit_edge248.us.us:                             ; preds = %._crit_edge248.us.us.unr-lcssa, %._crit_edge248.us.us.epilog-lcssa
  %297 = add nuw nsw i64 %.5250.us.us, 1
  %exitcond267.not = icmp eq i64 %297, %14
  br i1 %exitcond267.not, label %._crit_edge251.split.us.us, label %.preheader.us.us, !llvm.loop !37

._crit_edge251.split.us.us:                       ; preds = %._crit_edge248.us.us
  %298 = add nuw nsw i64 %.3253.us, 1
  %exitcond268.not = icmp eq i64 %298, %15
  br i1 %exitcond268.not, label %.loopexit, label %.preheader211.us, !llvm.loop !38

.loopexit:                                        ; preds = %._crit_edge251.split.us.us, %.preheader213.lr.ph, %.preheader214, %.preheader211.lr.ph, %.preheader212, %._crit_edge224
  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}
!36 = distinct !{!36, !23}
!37 = distinct !{!37, !23}
!38 = distinct !{!38, !23}


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