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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.alglib_impl::ae_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.680 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.681 = 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_impl13ae_fp_greaterEdd(double noundef, double noundef) #1

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

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

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

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

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

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

46:                                               ; preds = %5
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i64, ptr %18, align 8, !tbaa !19
  %49 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %47, i64 noundef %48, ptr noundef %49)
  br label %50

50:                                               ; preds = %46, %5
  store i64 0, ptr %11, align 8, !tbaa !19
  br label %51

51:                                               ; preds = %110, %50
  %52 = load i64, ptr %11, align 8, !tbaa !19
  %53 = load i64, ptr %18, align 8, !tbaa !19
  %54 = sub nsw i64 %53, 1
  %55 = icmp sle i64 %52, %54
  br i1 %55, label %56, label %113

56:                                               ; preds = %51
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %57, i32 0, i32 12
  %59 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %58, i32 0, i32 6
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  %61 = load i64, ptr %11, align 8, !tbaa !19
  %62 = getelementptr inbounds ptr, ptr %60, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = load i64, ptr %17, align 8, !tbaa !19
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !22
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = load i64, ptr %11, align 8, !tbaa !19
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  store double %66, ptr %71, align 8, !tbaa !22
  store i64 0, ptr %12, align 8, !tbaa !19
  br label %72

72:                                               ; preds = %106, %56
  %73 = load i64, ptr %12, align 8, !tbaa !19
  %74 = load i64, ptr %17, align 8, !tbaa !19
  %75 = sub nsw i64 %74, 1
  %76 = icmp sle i64 %73, %75
  br i1 %76, label %77, label %109

77:                                               ; preds = %72
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %78, i32 0, i32 4
  %80 = load ptr, ptr %79, align 8, !tbaa !21
  %81 = load i64, ptr %11, align 8, !tbaa !19
  %82 = getelementptr inbounds double, ptr %80, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !22
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %84, i32 0, i32 12
  %86 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %85, i32 0, i32 6
  %87 = load ptr, ptr %86, align 8, !tbaa !21
  %88 = load i64, ptr %11, align 8, !tbaa !19
  %89 = getelementptr inbounds ptr, ptr %87, i64 %88
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  %91 = load i64, ptr %12, align 8, !tbaa !19
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !22
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !21
  %97 = load i64, ptr %12, align 8, !tbaa !19
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !22
  %100 = call double @llvm.fmuladd.f64(double %93, double %99, double %83)
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !21
  %104 = load i64, ptr %11, align 8, !tbaa !19
  %105 = getelementptr inbounds double, ptr %103, i64 %104
  store double %100, ptr %105, align 8, !tbaa !22
  br label %106

106:                                              ; preds = %77
  %107 = load i64, ptr %12, align 8, !tbaa !19
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %12, align 8, !tbaa !19
  br label %72, !llvm.loop !23

109:                                              ; preds = %72
  br label %110

110:                                              ; preds = %109
  %111 = load i64, ptr %11, align 8, !tbaa !19
  %112 = add nsw i64 %111, 1
  store i64 %112, ptr %11, align 8, !tbaa !19
  br label %51, !llvm.loop !25

113:                                              ; preds = %51
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %114, i32 0, i32 3
  %116 = load i64, ptr %115, align 8, !tbaa !26
  %117 = icmp eq i64 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %113
  store i32 1, ptr %19, align 4
  br label %319

119:                                              ; preds = %113
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL24rbfv2_allocatecalcbufferEPNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_8ae_stateE(ptr noundef %120, ptr noundef %121, ptr noundef %122)
  store i64 0, ptr %12, align 8, !tbaa !19
  br label %123

123:                                              ; preds = %149, %119
  %124 = load i64, ptr %12, align 8, !tbaa !19
  %125 = load i64, ptr %17, align 8, !tbaa !19
  %126 = sub nsw i64 %125, 1
  %127 = icmp sle i64 %124, %126
  br i1 %127, label %128, label %152

128:                                              ; preds = %123
  %129 = load ptr, ptr %8, 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 %12, align 8, !tbaa !19
  %133 = getelementptr inbounds double, ptr %131, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !22
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %135, i32 0, i32 5
  %137 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !21
  %139 = load i64, ptr %12, align 8, !tbaa !19
  %140 = getelementptr inbounds double, ptr %138, i64 %139
  %141 = load double, ptr %140, align 8, !tbaa !22
  %142 = fdiv double %134, %141
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %143, i32 0, i32 0
  %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 %12, align 8, !tbaa !19
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  store double %142, ptr %148, align 8, !tbaa !22
  br label %149

149:                                              ; preds = %128
  %150 = load i64, ptr %12, align 8, !tbaa !19
  %151 = add nsw i64 %150, 1
  store i64 %151, ptr %12, align 8, !tbaa !19
  br label %123, !llvm.loop !27

152:                                              ; preds = %123
  store i64 0, ptr %13, align 8, !tbaa !19
  br label %153

153:                                              ; preds = %315, %152
  %154 = load i64, ptr %13, align 8, !tbaa !19
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %155, i32 0, i32 3
  %157 = load i64, ptr %156, align 8, !tbaa !26
  %158 = sub nsw i64 %157, 1
  %159 = icmp sle i64 %154, %158
  br i1 %159, label %160, label %318

160:                                              ; preds = %153
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %161, i32 0, i32 3
  store double 0.000000e+00, ptr %162, align 8, !tbaa !28
  store i64 0, ptr %12, align 8, !tbaa !19
  br label %163

163:                                              ; preds = %276, %160
  %164 = load i64, ptr %12, align 8, !tbaa !19
  %165 = load i64, ptr %17, align 8, !tbaa !19
  %166 = sub nsw i64 %165, 1
  %167 = icmp sle i64 %164, %166
  br i1 %167, label %168, label %279

168:                                              ; preds = %163
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %169, i32 0, i32 9
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !21
  %173 = load i64, ptr %12, align 8, !tbaa !19
  %174 = getelementptr inbounds double, ptr %172, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !22
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %176, i32 0, i32 1
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %177, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !21
  %180 = load i64, ptr %12, align 8, !tbaa !19
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  store double %175, ptr %181, align 8, !tbaa !22
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %182, i32 0, i32 10
  %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 %12, align 8, !tbaa !19
  %187 = getelementptr inbounds double, ptr %185, i64 %186
  %188 = load double, ptr %187, align 8, !tbaa !22
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %189, i32 0, i32 2
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !21
  %193 = load i64, ptr %12, align 8, !tbaa !19
  %194 = getelementptr inbounds double, ptr %192, i64 %193
  store double %188, ptr %194, align 8, !tbaa !22
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %196, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !21
  %199 = load i64, ptr %12, align 8, !tbaa !19
  %200 = getelementptr inbounds double, ptr %198, i64 %199
  %201 = load double, ptr %200, align 8, !tbaa !22
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %202, i32 0, i32 1
  %204 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %203, i32 0, i32 4
  %205 = load ptr, ptr %204, align 8, !tbaa !21
  %206 = load i64, ptr %12, align 8, !tbaa !19
  %207 = getelementptr inbounds double, ptr %205, i64 %206
  %208 = load double, ptr %207, align 8, !tbaa !22
  %209 = call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %201, double noundef %208)
  br i1 %209, label %210, label %234

210:                                              ; preds = %168
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %211, i32 0, i32 3
  %213 = load double, ptr %212, align 8, !tbaa !28
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %214, i32 0, i32 1
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %215, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !21
  %218 = load i64, ptr %12, align 8, !tbaa !19
  %219 = getelementptr inbounds double, ptr %217, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !22
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %221, i32 0, i32 0
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %222, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !21
  %225 = load i64, ptr %12, align 8, !tbaa !19
  %226 = getelementptr inbounds double, ptr %224, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !22
  %228 = fsub double %220, %227
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %228, ptr noundef %229)
  %231 = fadd double %213, %230
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %232, i32 0, i32 3
  store double %231, ptr %233, align 8, !tbaa !28
  br label %275

234:                                              ; preds = %168
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %235, i32 0, i32 0
  %237 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %236, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !21
  %239 = load i64, ptr %12, align 8, !tbaa !19
  %240 = getelementptr inbounds double, ptr %238, i64 %239
  %241 = load double, ptr %240, align 8, !tbaa !22
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %242, i32 0, i32 2
  %244 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %243, i32 0, i32 4
  %245 = load ptr, ptr %244, align 8, !tbaa !21
  %246 = load i64, ptr %12, align 8, !tbaa !19
  %247 = getelementptr inbounds double, ptr %245, i64 %246
  %248 = load double, ptr %247, align 8, !tbaa !22
  %249 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %241, double noundef %248)
  br i1 %249, label %250, label %274

250:                                              ; preds = %234
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %251, i32 0, i32 3
  %253 = load double, ptr %252, align 8, !tbaa !28
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %254, i32 0, i32 0
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %255, i32 0, i32 4
  %257 = load ptr, ptr %256, align 8, !tbaa !21
  %258 = load i64, ptr %12, align 8, !tbaa !19
  %259 = getelementptr inbounds double, ptr %257, i64 %258
  %260 = load double, ptr %259, align 8, !tbaa !22
  %261 = load ptr, ptr %7, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %261, i32 0, i32 2
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %262, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !21
  %265 = load i64, ptr %12, align 8, !tbaa !19
  %266 = getelementptr inbounds double, ptr %264, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !22
  %268 = fsub double %260, %267
  %269 = load ptr, ptr %10, align 8, !tbaa !5
  %270 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %268, ptr noundef %269)
  %271 = fadd double %253, %270
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %272, i32 0, i32 3
  store double %271, ptr %273, align 8, !tbaa !28
  br label %274

274:                                              ; preds = %250, %234
  br label %275

275:                                              ; preds = %274, %210
  br label %276

276:                                              ; preds = %275
  %277 = load i64, ptr %12, align 8, !tbaa !19
  %278 = add nsw i64 %277, 1
  store i64 %278, ptr %12, align 8, !tbaa !19
  br label %163, !llvm.loop !29

279:                                              ; preds = %163
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %280, i32 0, i32 4
  %282 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %281, i32 0, i32 4
  %283 = load ptr, ptr %282, align 8, !tbaa !21
  %284 = load i64, ptr %13, align 8, !tbaa !19
  %285 = getelementptr inbounds double, ptr %283, i64 %284
  %286 = load double, ptr %285, align 8, !tbaa !22
  store double %286, ptr %14, align 8, !tbaa !22
  %287 = load double, ptr %14, align 8, !tbaa !22
  %288 = load double, ptr %14, align 8, !tbaa !22
  %289 = fmul double %287, %288
  %290 = fdiv double 1.000000e+00, %289
  store double %290, ptr %16, align 8, !tbaa !22
  %291 = load double, ptr %14, align 8, !tbaa !22
  %292 = load ptr, ptr %6, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %292, i32 0, i32 2
  %294 = load i64, ptr %293, align 8, !tbaa !30
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  %296 = call noundef double @_ZN11alglib_impl14rbfv2farradiusElPNS_8ae_stateE(i64 noundef %294, ptr noundef %295)
  %297 = fmul double %291, %296
  %298 = load ptr, ptr %10, align 8, !tbaa !5
  %299 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %297, ptr noundef %298)
  store double %299, ptr %15, align 8, !tbaa !22
  %300 = load ptr, ptr %6, align 8, !tbaa !5
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = getelementptr inbounds %"struct.alglib_impl::rbfv2model", ptr %302, i32 0, i32 6
  %304 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %303, i32 0, i32 4
  %305 = load ptr, ptr %304, align 8, !tbaa !21
  %306 = load i64, ptr %13, align 8, !tbaa !19
  %307 = getelementptr inbounds i64, ptr %305, i64 %306
  %308 = load i64, ptr %307, align 8, !tbaa !19
  %309 = load double, ptr %16, align 8, !tbaa !22
  %310 = load double, ptr %15, align 8, !tbaa !22
  %311 = load ptr, ptr %7, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.alglib_impl::rbfv2calcbuffer", ptr %311, i32 0, i32 0
  %313 = load ptr, ptr %9, align 8, !tbaa !5
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL20rbfv2_partialcalcrecEPNS_10rbfv2modelEPNS_15rbfv2calcbufferElddPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef %300, ptr noundef %301, i64 noundef %308, double noundef %309, double noundef %310, ptr noundef %312, ptr noundef %313, ptr noundef %314)
  br label %315

315:                                              ; preds = %279
  %316 = load i64, ptr %13, align 8, !tbaa !19
  %317 = add nsw i64 %316, 1
  store i64 %317, ptr %13, align 8, !tbaa !19
  br label %153, !llvm.loop !31

318:                                              ; preds = %153
  store i32 0, ptr %19, align 4
  br label %319

319:                                              ; preds = %318, %118
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %320 = load i32, ptr %19, align 4
  switch i32 %320, label %322 [
    i32 0, label %321
    i32 1, label %321
  ]

321:                                              ; preds = %319, %319
  ret void

322:                                              ; preds = %319
  unreachable
}

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

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 = !{!18, !17, i64 192}
!29 = distinct !{!29, !24}
!30 = !{!15, !11, i64 16}
!31 = distinct !{!31, !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.680 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.681 = 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_impl13ae_fp_greaterEdd(double noundef, double noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 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

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

declare noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double 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 uwtable
declare hidden void @_ZN11alglib_implL24rbfv2_allocatecalcbufferEPNS_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
define dso_local void @_ZN11alglib_impl14rbfv2tscalcbufEPNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = load i64, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !13
  %9 = icmp sge i64 %6, %8
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %9, ptr noundef nonnull @.str.680, ptr noundef %4)
  %10 = load i64, ptr %7, align 8, !tbaa !13
  %11 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %10, ptr noundef %4)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.681, ptr noundef %4)
  %12 = load i64, ptr %7, align 8, !tbaa !13
  %13 = load i64, ptr %0, align 8, !tbaa !18
  %14 = load i64, ptr %3, align 8, !tbaa !5
  %15 = icmp slt i64 %14, %13
  br i1 %15, label %16, label %17

16:                                               ; preds = %5
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %13, ptr noundef %4)
  br label %17

17:                                               ; preds = %16, %5
  %.not.not110 = icmp sgt i64 %13, 0
  br i1 %.not.not110, label %.lr.ph113, label %._crit_edge114

.lr.ph113:                                        ; preds = %17
  %18 = getelementptr inbounds i8, ptr %0, i64 616
  %19 = getelementptr inbounds i8, ptr %3, i64 56
  %.not.not107108 = icmp sgt i64 %12, 0
  %20 = getelementptr inbounds i8, ptr %2, i64 56
  br i1 %.not.not107108, label %.lr.ph.us.preheader, label %.lr.ph113.split.preheader

.lr.ph113.split.preheader:                        ; preds = %.lr.ph113
  %xtraiter = and i64 %13, 1
  %21 = icmp eq i64 %13, 1
  br i1 %21, label %._crit_edge114.loopexit138.unr-lcssa, label %.lr.ph113.split.preheader.new

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

.lr.ph.us.preheader:                              ; preds = %.lr.ph113
  %xtraiter139 = and i64 %12, 1
  %22 = icmp eq i64 %12, 1
  %unroll_iter141 = and i64 %12, 9223372036854775806
  %lcmp.mod140.not = icmp eq i64 %xtraiter139, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.0111.us = phi i64 [ %68, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %23 = load ptr, ptr %18, align 8, !tbaa !19
  %24 = getelementptr inbounds ptr, ptr %23, i64 %.0111.us
  %25 = load ptr, ptr %24, align 8, !tbaa !20
  %26 = getelementptr inbounds double, ptr %25, i64 %12
  %27 = load double, ptr %26, align 8, !tbaa !21
  %28 = load ptr, ptr %19, align 8, !tbaa !19
  %29 = getelementptr inbounds double, ptr %28, i64 %.0111.us
  store double %27, ptr %29, align 8, !tbaa !21
  br i1 %22, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new

.lr.ph.us.new:                                    ; preds = %.lr.ph.us, %.lr.ph.us.new
  %.0100109.us = phi i64 [ %55, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %niter142 = phi i64 [ %niter142.next.1, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %30 = load ptr, ptr %19, align 8, !tbaa !19
  %31 = getelementptr inbounds double, ptr %30, i64 %.0111.us
  %32 = load double, ptr %31, align 8, !tbaa !21
  %33 = load ptr, ptr %18, align 8, !tbaa !19
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.0111.us
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %36 = getelementptr inbounds double, ptr %35, i64 %.0100109.us
  %37 = load double, ptr %36, align 8, !tbaa !21
  %38 = load ptr, ptr %20, align 8, !tbaa !19
  %39 = getelementptr inbounds double, ptr %38, i64 %.0100109.us
  %40 = load double, ptr %39, align 8, !tbaa !21
  %41 = tail call double @llvm.fmuladd.f64(double %37, double %40, double %32)
  store double %41, ptr %31, align 8, !tbaa !21
  %42 = or disjoint i64 %.0100109.us, 1
  %43 = load ptr, ptr %19, align 8, !tbaa !19
  %44 = getelementptr inbounds double, ptr %43, i64 %.0111.us
  %45 = load double, ptr %44, align 8, !tbaa !21
  %46 = load ptr, ptr %18, align 8, !tbaa !19
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.0111.us
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = getelementptr inbounds double, ptr %48, i64 %42
  %50 = load double, ptr %49, align 8, !tbaa !21
  %51 = load ptr, ptr %20, align 8, !tbaa !19
  %52 = getelementptr inbounds double, ptr %51, i64 %42
  %53 = load double, ptr %52, align 8, !tbaa !21
  %54 = tail call double @llvm.fmuladd.f64(double %50, double %53, double %45)
  store double %54, ptr %44, align 8, !tbaa !21
  %55 = add nuw nsw i64 %.0100109.us, 2
  %niter142.next.1 = add i64 %niter142, 2
  %niter142.ncmp.1 = icmp eq i64 %niter142.next.1, %unroll_iter141
  br i1 %niter142.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !22

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph.us.new, %.lr.ph.us
  %.0100109.us.unr = phi i64 [ 0, %.lr.ph.us ], [ %55, %.lr.ph.us.new ]
  br i1 %lcmp.mod140.not, label %._crit_edge.us, label %._crit_edge.us.epilog-lcssa

._crit_edge.us.epilog-lcssa:                      ; preds = %._crit_edge.us.unr-lcssa
  %56 = load ptr, ptr %19, align 8, !tbaa !19
  %57 = getelementptr inbounds double, ptr %56, i64 %.0111.us
  %58 = load double, ptr %57, align 8, !tbaa !21
  %59 = load ptr, ptr %18, align 8, !tbaa !19
  %60 = getelementptr inbounds ptr, ptr %59, i64 %.0111.us
  %61 = load ptr, ptr %60, align 8, !tbaa !20
  %62 = getelementptr inbounds double, ptr %61, i64 %.0100109.us.unr
  %63 = load double, ptr %62, align 8, !tbaa !21
  %64 = load ptr, ptr %20, align 8, !tbaa !19
  %65 = getelementptr inbounds double, ptr %64, i64 %.0100109.us.unr
  %66 = load double, ptr %65, align 8, !tbaa !21
  %67 = tail call double @llvm.fmuladd.f64(double %63, double %66, double %58)
  store double %67, ptr %57, align 8, !tbaa !21
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %68 = add nuw nsw i64 %.0111.us, 1
  %exitcond125.not = icmp eq i64 %68, %13
  br i1 %exitcond125.not, label %._crit_edge114, label %.lr.ph.us, !llvm.loop !24

.lr.ph113.split:                                  ; preds = %.lr.ph113.split, %.lr.ph113.split.preheader.new
  %.0111 = phi i64 [ 0, %.lr.ph113.split.preheader.new ], [ %84, %.lr.ph113.split ]
  %niter = phi i64 [ 0, %.lr.ph113.split.preheader.new ], [ %niter.next.1, %.lr.ph113.split ]
  %69 = load ptr, ptr %18, align 8, !tbaa !19
  %70 = getelementptr inbounds ptr, ptr %69, i64 %.0111
  %71 = load ptr, ptr %70, align 8, !tbaa !20
  %72 = getelementptr inbounds double, ptr %71, i64 %12
  %73 = load double, ptr %72, align 8, !tbaa !21
  %74 = load ptr, ptr %19, align 8, !tbaa !19
  %75 = getelementptr inbounds double, ptr %74, i64 %.0111
  store double %73, ptr %75, align 8, !tbaa !21
  %76 = or disjoint i64 %.0111, 1
  %77 = load ptr, ptr %18, 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 %12
  %81 = load double, ptr %80, align 8, !tbaa !21
  %82 = load ptr, ptr %19, 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 %.0111, 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_edge114.loopexit138.unr-lcssa, label %.lr.ph113.split, !llvm.loop !24

._crit_edge114.loopexit138.unr-lcssa:             ; preds = %.lr.ph113.split, %.lr.ph113.split.preheader
  %.0111.unr = phi i64 [ 0, %.lr.ph113.split.preheader ], [ %84, %.lr.ph113.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge114, label %.lr.ph113.split.epil

.lr.ph113.split.epil:                             ; preds = %._crit_edge114.loopexit138.unr-lcssa
  %85 = load ptr, ptr %18, align 8, !tbaa !19
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.0111.unr
  %87 = load ptr, ptr %86, align 8, !tbaa !20
  %88 = getelementptr inbounds double, ptr %87, i64 %12
  %89 = load double, ptr %88, align 8, !tbaa !21
  %90 = load ptr, ptr %19, align 8, !tbaa !19
  %91 = getelementptr inbounds double, ptr %90, i64 %.0111.unr
  store double %89, ptr %91, align 8, !tbaa !21
  br label %._crit_edge114

._crit_edge114:                                   ; preds = %.lr.ph113.split.epil, %._crit_edge114.loopexit138.unr-lcssa, %._crit_edge.us, %17
  %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_edge114
  tail call void @_ZN11alglib_implL24rbfv2_allocatecalcbufferEPNS_10rbfv2modelEPNS_15rbfv2calcbufferEPNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %4)
  %.not.not104115 = icmp sgt i64 %12, 0
  br i1 %.not.not104115, label %.lr.ph, label %.preheader

.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
  %xtraiter144 = and i64 %12, 1
  %99 = icmp eq i64 %12, 1
  br i1 %99, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter146 = and i64 %12, 9223372036854775806
  br label %119

.preheader.loopexit.unr-lcssa:                    ; preds = %119, %.lr.ph
  %.1116.unr = phi i64 [ 0, %.lr.ph ], [ %139, %119 ]
  %lcmp.mod145.not = icmp eq i64 %xtraiter144, 0
  br i1 %lcmp.mod145.not, label %.preheader, label %.preheader.loopexit.epilog-lcssa

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

.preheader:                                       ; preds = %.preheader.loopexit.epilog-lcssa, %.preheader.loopexit.unr-lcssa, %95
  %109 = load i64, ptr %92, align 8, !tbaa !25
  %.not.not105120 = icmp sgt i64 %109, 0
  br i1 %.not.not105120, label %.lr.ph122, label %.loopexit

.lr.ph122:                                        ; preds = %.preheader
  %110 = getelementptr inbounds i8, ptr %1, i64 192
  %111 = getelementptr inbounds i8, ptr %0, i64 408
  %112 = getelementptr inbounds i8, ptr %1, i64 120
  %113 = getelementptr inbounds i8, ptr %0, i64 472
  %114 = getelementptr inbounds i8, ptr %1, i64 184
  %115 = getelementptr inbounds i8, ptr %1, i64 56
  %116 = getelementptr inbounds i8, ptr %0, i64 88
  %117 = getelementptr inbounds i8, ptr %0, i64 16
  %118 = getelementptr inbounds i8, ptr %0, i64 216
  br label %140

119:                                              ; preds = %119, %.lr.ph.new
  %.1116 = phi i64 [ 0, %.lr.ph.new ], [ %139, %119 ]
  %niter147 = phi i64 [ 0, %.lr.ph.new ], [ %niter147.next.1, %119 ]
  %120 = load ptr, ptr %96, align 8, !tbaa !19
  %121 = getelementptr inbounds double, ptr %120, i64 %.1116
  %122 = load double, ptr %121, align 8, !tbaa !21
  %123 = load ptr, ptr %97, align 8, !tbaa !19
  %124 = getelementptr inbounds double, ptr %123, i64 %.1116
  %125 = load double, ptr %124, align 8, !tbaa !21
  %126 = fdiv double %122, %125
  %127 = load ptr, ptr %98, align 8, !tbaa !19
  %128 = getelementptr inbounds double, ptr %127, i64 %.1116
  store double %126, ptr %128, align 8, !tbaa !21
  %129 = or disjoint i64 %.1116, 1
  %130 = load ptr, ptr %96, align 8, !tbaa !19
  %131 = getelementptr inbounds double, ptr %130, i64 %129
  %132 = load double, ptr %131, align 8, !tbaa !21
  %133 = load ptr, ptr %97, align 8, !tbaa !19
  %134 = getelementptr inbounds double, ptr %133, i64 %129
  %135 = load double, ptr %134, align 8, !tbaa !21
  %136 = fdiv double %132, %135
  %137 = load ptr, ptr %98, align 8, !tbaa !19
  %138 = getelementptr inbounds double, ptr %137, i64 %129
  store double %136, ptr %138, align 8, !tbaa !21
  %139 = add nuw nsw i64 %.1116, 2
  %niter147.next.1 = add i64 %niter147, 2
  %niter147.ncmp.1 = icmp eq i64 %niter147.next.1, %unroll_iter146
  br i1 %niter147.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %119, !llvm.loop !26

140:                                              ; preds = %.lr.ph122, %._crit_edge
  %.0101121 = phi i64 [ 0, %.lr.ph122 ], [ %190, %._crit_edge ]
  store double 0.000000e+00, ptr %110, align 8, !tbaa !27
  br i1 %.not.not104115, label %.lr.ph119, label %._crit_edge

.lr.ph119:                                        ; preds = %140, %176
  %.2118 = phi i64 [ %177, %176 ], [ 0, %140 ]
  %141 = load ptr, ptr %111, align 8, !tbaa !19
  %142 = getelementptr inbounds double, ptr %141, i64 %.2118
  %143 = load double, ptr %142, align 8, !tbaa !21
  %144 = load ptr, ptr %112, align 8, !tbaa !19
  %145 = getelementptr inbounds double, ptr %144, i64 %.2118
  store double %143, ptr %145, align 8, !tbaa !21
  %146 = load ptr, ptr %113, align 8, !tbaa !19
  %147 = getelementptr inbounds double, ptr %146, i64 %.2118
  %148 = load double, ptr %147, align 8, !tbaa !21
  %149 = load ptr, ptr %114, align 8, !tbaa !19
  %150 = getelementptr inbounds double, ptr %149, i64 %.2118
  store double %148, ptr %150, align 8, !tbaa !21
  %151 = load ptr, ptr %115, align 8, !tbaa !19
  %152 = getelementptr inbounds double, ptr %151, i64 %.2118
  %153 = load double, ptr %152, align 8, !tbaa !21
  %154 = load ptr, ptr %112, align 8, !tbaa !19
  %155 = getelementptr inbounds double, ptr %154, i64 %.2118
  %156 = load double, ptr %155, align 8, !tbaa !21
  %157 = tail call noundef zeroext i1 @_ZN11alglib_impl10ae_fp_lessEdd(double noundef %153, double noundef %156)
  br i1 %157, label %.sink.split, label %158

158:                                              ; preds = %.lr.ph119
  %159 = load ptr, ptr %115, align 8, !tbaa !19
  %160 = getelementptr inbounds double, ptr %159, i64 %.2118
  %161 = load double, ptr %160, align 8, !tbaa !21
  %162 = load ptr, ptr %114, align 8, !tbaa !19
  %163 = getelementptr inbounds double, ptr %162, i64 %.2118
  %164 = load double, ptr %163, align 8, !tbaa !21
  %165 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %161, double noundef %164)
  br i1 %165, label %.sink.split, label %176

.sink.split:                                      ; preds = %158, %.lr.ph119
  %.sink136 = phi ptr [ %112, %.lr.ph119 ], [ %115, %158 ]
  %.sink = phi ptr [ %115, %.lr.ph119 ], [ %114, %158 ]
  %166 = load double, ptr %110, align 8, !tbaa !27
  %167 = load ptr, ptr %.sink136, align 8, !tbaa !19
  %168 = getelementptr inbounds double, ptr %167, i64 %.2118
  %169 = load double, ptr %168, align 8, !tbaa !21
  %170 = load ptr, ptr %.sink, align 8, !tbaa !19
  %171 = getelementptr inbounds double, ptr %170, i64 %.2118
  %172 = load double, ptr %171, align 8, !tbaa !21
  %173 = fsub double %169, %172
  %174 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %173, ptr noundef %4)
  %175 = fadd double %166, %174
  store double %175, ptr %110, align 8, !tbaa !27
  br label %176

176:                                              ; preds = %.sink.split, %158
  %177 = add nuw nsw i64 %.2118, 1
  %exitcond127.not = icmp eq i64 %177, %12
  br i1 %exitcond127.not, label %._crit_edge, label %.lr.ph119, !llvm.loop !28

._crit_edge:                                      ; preds = %176, %140
  %178 = load ptr, ptr %116, align 8, !tbaa !19
  %179 = getelementptr inbounds double, ptr %178, i64 %.0101121
  %180 = load double, ptr %179, align 8, !tbaa !21
  %181 = fmul double %180, %180
  %182 = fdiv double 1.000000e+00, %181
  %183 = load i64, ptr %117, align 8, !tbaa !29
  %184 = tail call noundef double @_ZN11alglib_impl14rbfv2farradiusElPNS_8ae_stateE(i64 noundef %183, ptr noundef %4)
  %185 = fmul double %180, %184
  %186 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %185, ptr noundef %4)
  %187 = load ptr, ptr %118, align 8, !tbaa !19
  %188 = getelementptr inbounds i64, ptr %187, i64 %.0101121
  %189 = load i64, ptr %188, align 8, !tbaa !30
  tail call void @_ZN11alglib_implL20rbfv2_partialcalcrecEPNS_10rbfv2modelEPNS_15rbfv2calcbufferElddPNS_9ae_vectorES5_PNS_8ae_stateE(ptr noundef nonnull %0, ptr noundef nonnull %1, i64 noundef %189, double noundef %182, double noundef %186, ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef %4)
  %190 = add nuw nsw i64 %.0101121, 1
  %191 = load i64, ptr %92, align 8, !tbaa !25
  %.not.not105 = icmp slt i64 %190, %191
  br i1 %.not.not105, label %140, label %.loopexit, !llvm.loop !31

.loopexit:                                        ; preds = %._crit_edge, %.preheader, %._crit_edge114
  ret void
}

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

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 = !{!17, !16, i64 192}
!28 = distinct !{!28, !23}
!29 = !{!14, !7, i64 16}
!30 = !{!7, !7, i64 0}
!31 = distinct !{!31, !23}


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