; 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::rbfv3model" = type { i64, i64, i64, double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, %"struct.alglib_impl::rbf3evaluator", %"struct.alglib_impl::rbf3fastevaluator", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::rbfv3calcbuffer", i8, double }
%"struct.alglib_impl::rbf3evaluator" = type { i64, i64, %"struct.alglib_impl::ae_matrix", i64, i64, double, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::ae_shared_pool" = type { %"struct.alglib_impl::ae_lock", ptr, ptr, ptr, ptr, i64, ptr, ptr, %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_lock" = type { ptr, %"struct.alglib_impl::ae_dyn_block", i8 }
%"struct.alglib_impl::rbf3fastevaluator" = type { i64, i64, i64, i64, i64, double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_obj_array", %"struct.alglib_impl::biharmonicevaluator", %"struct.alglib_impl::ae_shared_pool", %"struct.alglib_impl::ae_matrix", i8, i64, i64, i64 }
%"struct.alglib_impl::ae_obj_array" = type { i64, i64, i8, ptr, ptr, ptr, ptr, %"struct.alglib_impl::ae_lock", %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::biharmonicevaluator" = type { 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_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" = type { i64, i64, i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.1 }
%union.anon.1 = type { ptr }
%"struct.alglib_impl::rbfv3calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::rbf3evaluatorbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbf3evaluatorbuffer" = type { %"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_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix" }

@.str.790 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.791 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.793 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.794 = external hidden unnamed_addr constant [44 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_impl8ae_fp_eqEdd(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 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 i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 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_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #1

declare void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #1

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

declare void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, double noundef, ptr noundef, ptr noundef) #1

declare noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) #1

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

declare noundef double @_ZN11alglib_impl6rdotvrElPKNS_9ae_vectorEPKNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

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

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

52:                                               ; preds = %6
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load i64, ptr %14, align 8, !tbaa !26
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %53, i64 noundef %54, ptr noundef %55)
  br label %56

56:                                               ; preds = %52, %6
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !9
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !27
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %63, i32 0, i32 1
  %65 = load i64, ptr %64, align 8, !tbaa !14
  %66 = mul nsw i64 %62, %65
  %67 = icmp slt i64 %59, %66
  br i1 %67, label %68, label %78

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

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

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

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

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

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

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

156:                                              ; preds = %100
  br label %157

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

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

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

166:                                              ; preds = %160
  store i64 0, ptr %16, align 8, !tbaa !26
  br label %167

167:                                              ; preds = %193, %166
  %168 = load i64, ptr %16, align 8, !tbaa !26
  %169 = load i64, ptr %13, align 8, !tbaa !26
  %170 = sub nsw i64 %169, 1
  %171 = icmp sle i64 %168, %170
  br i1 %171, label %172, label %196

172:                                              ; preds = %167
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !28
  %176 = load i64, ptr %16, align 8, !tbaa !26
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !29
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %179, i32 0, i32 4
  %181 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %180, i32 0, i32 4
  %182 = load ptr, ptr %181, align 8, !tbaa !28
  %183 = load i64, ptr %16, align 8, !tbaa !26
  %184 = getelementptr inbounds double, ptr %182, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !29
  %186 = fdiv double %178, %185
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !28
  %191 = load i64, ptr %16, align 8, !tbaa !26
  %192 = getelementptr inbounds double, ptr %190, i64 %191
  store double %186, ptr %192, align 8, !tbaa !29
  br label %193

193:                                              ; preds = %172
  %194 = load i64, ptr %16, align 8, !tbaa !26
  %195 = add nsw i64 %194, 1
  store i64 %195, ptr %16, align 8, !tbaa !26
  br label %167, !llvm.loop !34

196:                                              ; preds = %167
  store i64 0, ptr %15, align 8, !tbaa !26
  br label %197

197:                                              ; preds = %240, %196
  %198 = load i64, ptr %15, align 8, !tbaa !26
  %199 = load i64, ptr %14, align 8, !tbaa !26
  %200 = sub nsw i64 %199, 1
  %201 = icmp sle i64 %198, %200
  br i1 %201, label %202, label %243

202:                                              ; preds = %197
  store i64 0, ptr %16, align 8, !tbaa !26
  br label %203

203:                                              ; preds = %236, %202
  %204 = load i64, ptr %16, align 8, !tbaa !26
  %205 = load i64, ptr %13, align 8, !tbaa !26
  %206 = sub nsw i64 %205, 1
  %207 = icmp sle i64 %204, %206
  br i1 %207, label %208, label %239

208:                                              ; preds = %203
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !28
  %212 = load i64, ptr %15, align 8, !tbaa !26
  %213 = load i64, ptr %13, align 8, !tbaa !26
  %214 = mul nsw i64 %212, %213
  %215 = load i64, ptr %16, align 8, !tbaa !26
  %216 = add nsw i64 %214, %215
  %217 = getelementptr inbounds double, ptr %211, i64 %216
  %218 = load double, ptr %217, align 8, !tbaa !29
  %219 = load ptr, ptr %7, align 8, !tbaa !5
  %220 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %219, i32 0, i32 4
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !28
  %223 = load i64, ptr %16, align 8, !tbaa !26
  %224 = getelementptr inbounds double, ptr %222, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !29
  %226 = fmul double %218, %225
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !28
  %230 = load i64, ptr %15, align 8, !tbaa !26
  %231 = load i64, ptr %13, align 8, !tbaa !26
  %232 = mul nsw i64 %230, %231
  %233 = load i64, ptr %16, align 8, !tbaa !26
  %234 = add nsw i64 %232, %233
  %235 = getelementptr inbounds double, ptr %229, i64 %234
  store double %226, ptr %235, align 8, !tbaa !29
  br label %236

236:                                              ; preds = %208
  %237 = load i64, ptr %16, align 8, !tbaa !26
  %238 = add nsw i64 %237, 1
  store i64 %238, ptr %16, align 8, !tbaa !26
  br label %203, !llvm.loop !35

239:                                              ; preds = %203
  br label %240

240:                                              ; preds = %239
  %241 = load i64, ptr %15, align 8, !tbaa !26
  %242 = add nsw i64 %241, 1
  store i64 %242, ptr %15, align 8, !tbaa !26
  br label %197, !llvm.loop !36

243:                                              ; preds = %197
  store i8 0, ptr %18, align 1, !tbaa !37
  %244 = load i64, ptr %13, align 8, !tbaa !26
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  %246 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %245, i32 0, i32 0
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  %248 = call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %244, ptr noundef %246, ptr noundef %247)
  %249 = fadd double %248, 1.000000e+00
  %250 = load ptr, ptr %12, align 8, !tbaa !5
  %251 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 5.000000e-14, ptr noundef %250)
  %252 = fmul double %249, %251
  store double %252, ptr %17, align 8, !tbaa !29
  %253 = load ptr, ptr %7, align 8, !tbaa !5
  %254 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %253, i32 0, i32 2
  %255 = load i64, ptr %254, align 8, !tbaa !38
  %256 = icmp eq i64 %255, 1
  br i1 %256, label %267, label %257

257:                                              ; preds = %243
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %258, i32 0, i32 2
  %260 = load i64, ptr %259, align 8, !tbaa !38
  %261 = icmp eq i64 %260, 2
  br i1 %261, label %267, label %262

262:                                              ; preds = %257
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %263, i32 0, i32 2
  %265 = load i64, ptr %264, align 8, !tbaa !38
  %266 = icmp eq i64 %265, 3
  br label %267

267:                                              ; preds = %262, %257, %243
  %268 = phi i1 [ true, %257 ], [ true, %243 ], [ %266, %262 ]
  %269 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %268, ptr noundef @.str.793, ptr noundef %269)
  %270 = load ptr, ptr %7, align 8, !tbaa !5
  %271 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %270, i32 0, i32 2
  %272 = load i64, ptr %271, align 8, !tbaa !38
  %273 = icmp ne i64 %272, 1
  br i1 %273, label %279, label %274

274:                                              ; preds = %267
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %275, i32 0, i32 3
  %277 = load double, ptr %276, align 8, !tbaa !39
  %278 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %277, double noundef 0.000000e+00)
  br label %279

279:                                              ; preds = %274, %267
  %280 = phi i1 [ true, %267 ], [ %278, %274 ]
  %281 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %280, ptr noundef @.str.794, ptr noundef %281)
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %282, i32 0, i32 9
  %284 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluator", ptr %283, i32 0, i32 6
  %285 = load i64, ptr %284, align 8, !tbaa !40
  store i64 %285, ptr %23, align 8, !tbaa !26
  %286 = load i64, ptr %23, align 8, !tbaa !26
  %287 = load ptr, ptr %8, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %287, i32 0, i32 1
  %289 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %288, i32 0, i32 3
  %290 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %286, ptr noundef %289, ptr noundef %290)
  %291 = load i64, ptr %23, align 8, !tbaa !26
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %292, i32 0, i32 1
  %294 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %293, i32 0, i32 4
  %295 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %291, ptr noundef %294, ptr noundef %295)
  %296 = load i64, ptr %23, align 8, !tbaa !26
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  %298 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %297, i32 0, i32 1
  %299 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %298, i32 0, i32 6
  %300 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %296, ptr noundef %299, ptr noundef %300)
  %301 = load i64, ptr %13, align 8, !tbaa !26
  %302 = load i64, ptr %23, align 8, !tbaa !26
  %303 = load ptr, ptr %8, align 8, !tbaa !5
  %304 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %303, i32 0, i32 1
  %305 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %304, i32 0, i32 10
  %306 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %301, i64 noundef %302, ptr noundef %305, ptr noundef %306)
  %307 = load i64, ptr %23, align 8, !tbaa !26
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %308, i32 0, i32 1
  %310 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %309, i32 0, i32 5
  %311 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %307, double noundef 1.000000e+50, ptr noundef %310, ptr noundef %311)
  store i64 0, ptr %19, align 8, !tbaa !26
  store i64 0, ptr %20, align 8, !tbaa !26
  store i64 0, ptr %21, align 8, !tbaa !26
  store double 1.000000e-50, ptr %24, align 8, !tbaa !29
  %312 = load ptr, ptr %7, align 8, !tbaa !5
  %313 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %312, i32 0, i32 2
  %314 = load i64, ptr %313, align 8, !tbaa !38
  %315 = icmp eq i64 %314, 1
  br i1 %315, label %316, label %322

316:                                              ; preds = %279
  %317 = load ptr, ptr %7, align 8, !tbaa !5
  %318 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %317, i32 0, i32 3
  %319 = load double, ptr %318, align 8, !tbaa !39
  %320 = load ptr, ptr %12, align 8, !tbaa !5
  %321 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %319, ptr noundef %320)
  store double %321, ptr %24, align 8, !tbaa !29
  br label %322

322:                                              ; preds = %316, %279
  br label %323

323:                                              ; preds = %441, %322
  %324 = load i64, ptr %19, align 8, !tbaa !26
  %325 = load ptr, ptr %7, align 8, !tbaa !5
  %326 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %325, i32 0, i32 8
  %327 = load i64, ptr %326, align 8, !tbaa !33
  %328 = icmp slt i64 %324, %327
  br i1 %328, label %329, label %451

329:                                              ; preds = %323
  %330 = load i64, ptr %23, align 8, !tbaa !26
  %331 = load ptr, ptr %7, align 8, !tbaa !5
  %332 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %331, i32 0, i32 8
  %333 = load i64, ptr %332, align 8, !tbaa !33
  %334 = load i64, ptr %19, align 8, !tbaa !26
  %335 = sub nsw i64 %333, %334
  %336 = load ptr, ptr %12, align 8, !tbaa !5
  %337 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %330, i64 noundef %335, ptr noundef %336)
  store i64 %337, ptr %22, align 8, !tbaa !26
  %338 = load ptr, ptr %7, align 8, !tbaa !5
  %339 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %338, i32 0, i32 9
  %340 = load ptr, ptr %8, align 8, !tbaa !5
  %341 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %340, i32 0, i32 0
  %342 = load ptr, ptr %8, align 8, !tbaa !5
  %343 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %342, i32 0, i32 1
  %344 = load i64, ptr %22, align 8, !tbaa !26
  %345 = load i64, ptr %20, align 8, !tbaa !26
  %346 = load double, ptr %24, align 8, !tbaa !29
  %347 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_implL21rbfv3_computerowchunkEPKNS_13rbf3evaluatorEPKNS_9ae_vectorEPNS_19rbf3evaluatorbufferElldlPNS_8ae_stateE(ptr noundef %339, ptr noundef %341, ptr noundef %343, i64 noundef %344, i64 noundef %345, double noundef %346, i64 noundef 1, ptr noundef %347)
  store i64 0, ptr %16, align 8, !tbaa !26
  br label %348

348:                                              ; preds = %363, %329
  %349 = load i64, ptr %16, align 8, !tbaa !26
  %350 = load i64, ptr %13, align 8, !tbaa !26
  %351 = sub nsw i64 %350, 1
  %352 = icmp sle i64 %349, %351
  br i1 %352, label %353, label %366

353:                                              ; preds = %348
  %354 = load i64, ptr %22, align 8, !tbaa !26
  %355 = load ptr, ptr %8, align 8, !tbaa !5
  %356 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %355, i32 0, i32 1
  %357 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %356, i32 0, i32 6
  %358 = load ptr, ptr %8, align 8, !tbaa !5
  %359 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %358, i32 0, i32 1
  %360 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %359, i32 0, i32 10
  %361 = load i64, ptr %16, align 8, !tbaa !26
  %362 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl11rmergemulvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %354, ptr noundef %357, ptr noundef %360, i64 noundef %361, ptr noundef %362)
  br label %363

363:                                              ; preds = %353
  %364 = load i64, ptr %16, align 8, !tbaa !26
  %365 = add nsw i64 %364, 1
  store i64 %365, ptr %16, align 8, !tbaa !26
  br label %348, !llvm.loop !41

366:                                              ; preds = %348
  store i64 0, ptr %15, align 8, !tbaa !26
  br label %367

367:                                              ; preds = %438, %366
  %368 = load i64, ptr %15, align 8, !tbaa !26
  %369 = load i64, ptr %14, align 8, !tbaa !26
  %370 = sub nsw i64 %369, 1
  %371 = icmp sle i64 %368, %370
  br i1 %371, label %372, label %441

372:                                              ; preds = %367
  %373 = load ptr, ptr %10, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %373, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !28
  %376 = load i64, ptr %15, align 8, !tbaa !26
  %377 = getelementptr inbounds double, ptr %375, i64 %376
  %378 = load double, ptr %377, align 8, !tbaa !29
  %379 = load i64, ptr %22, align 8, !tbaa !26
  %380 = load ptr, ptr %8, align 8, !tbaa !5
  %381 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %380, i32 0, i32 1
  %382 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %381, i32 0, i32 3
  %383 = load ptr, ptr %7, align 8, !tbaa !5
  %384 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %383, i32 0, i32 11
  %385 = load i64, ptr %21, align 8, !tbaa !26
  %386 = load i64, ptr %15, align 8, !tbaa !26
  %387 = add nsw i64 %385, %386
  %388 = load ptr, ptr %12, align 8, !tbaa !5
  %389 = call noundef double @_ZN11alglib_impl6rdotvrElPKNS_9ae_vectorEPKNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %379, ptr noundef %382, ptr noundef %384, i64 noundef %387, ptr noundef %388)
  %390 = fadd double %378, %389
  %391 = load ptr, ptr %10, align 8, !tbaa !5
  %392 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %391, i32 0, i32 4
  %393 = load ptr, ptr %392, align 8, !tbaa !28
  %394 = load i64, ptr %15, align 8, !tbaa !26
  %395 = getelementptr inbounds double, ptr %393, i64 %394
  store double %390, ptr %395, align 8, !tbaa !29
  store i64 0, ptr %16, align 8, !tbaa !26
  br label %396

396:                                              ; preds = %434, %372
  %397 = load i64, ptr %16, align 8, !tbaa !26
  %398 = load i64, ptr %13, align 8, !tbaa !26
  %399 = sub nsw i64 %398, 1
  %400 = icmp sle i64 %397, %399
  br i1 %400, label %401, label %437

401:                                              ; preds = %396
  %402 = load ptr, ptr %11, align 8, !tbaa !5
  %403 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %402, i32 0, i32 4
  %404 = load ptr, ptr %403, align 8, !tbaa !28
  %405 = load i64, ptr %15, align 8, !tbaa !26
  %406 = load i64, ptr %13, align 8, !tbaa !26
  %407 = mul nsw i64 %405, %406
  %408 = load i64, ptr %16, align 8, !tbaa !26
  %409 = add nsw i64 %407, %408
  %410 = getelementptr inbounds double, ptr %404, i64 %409
  %411 = load double, ptr %410, align 8, !tbaa !29
  %412 = load i64, ptr %22, align 8, !tbaa !26
  %413 = load ptr, ptr %7, align 8, !tbaa !5
  %414 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %413, i32 0, i32 11
  %415 = load i64, ptr %21, align 8, !tbaa !26
  %416 = load i64, ptr %15, align 8, !tbaa !26
  %417 = add nsw i64 %415, %416
  %418 = load ptr, ptr %8, align 8, !tbaa !5
  %419 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %418, i32 0, i32 1
  %420 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %419, i32 0, i32 10
  %421 = load i64, ptr %16, align 8, !tbaa !26
  %422 = load ptr, ptr %12, align 8, !tbaa !5
  %423 = call noundef double @_ZN11alglib_impl6rdotrrElPKNS_9ae_matrixElS2_lPNS_8ae_stateE(i64 noundef %412, ptr noundef %414, i64 noundef %417, ptr noundef %420, i64 noundef %421, ptr noundef %422)
  %424 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %423, double %411)
  %425 = load ptr, ptr %11, align 8, !tbaa !5
  %426 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %425, i32 0, i32 4
  %427 = load ptr, ptr %426, align 8, !tbaa !28
  %428 = load i64, ptr %15, align 8, !tbaa !26
  %429 = load i64, ptr %13, align 8, !tbaa !26
  %430 = mul nsw i64 %428, %429
  %431 = load i64, ptr %16, align 8, !tbaa !26
  %432 = add nsw i64 %430, %431
  %433 = getelementptr inbounds double, ptr %427, i64 %432
  store double %424, ptr %433, align 8, !tbaa !29
  br label %434

434:                                              ; preds = %401
  %435 = load i64, ptr %16, align 8, !tbaa !26
  %436 = add nsw i64 %435, 1
  store i64 %436, ptr %16, align 8, !tbaa !26
  br label %396, !llvm.loop !42

437:                                              ; preds = %396
  br label %438

438:                                              ; preds = %437
  %439 = load i64, ptr %15, align 8, !tbaa !26
  %440 = add nsw i64 %439, 1
  store i64 %440, ptr %15, align 8, !tbaa !26
  br label %367, !llvm.loop !43

441:                                              ; preds = %367
  %442 = load i64, ptr %19, align 8, !tbaa !26
  %443 = load i64, ptr %22, align 8, !tbaa !26
  %444 = add nsw i64 %442, %443
  store i64 %444, ptr %19, align 8, !tbaa !26
  %445 = load i64, ptr %20, align 8, !tbaa !26
  %446 = load i64, ptr %13, align 8, !tbaa !26
  %447 = add nsw i64 %445, %446
  store i64 %447, ptr %20, align 8, !tbaa !26
  %448 = load i64, ptr %21, align 8, !tbaa !26
  %449 = load i64, ptr %14, align 8, !tbaa !26
  %450 = add nsw i64 %448, %449
  store i64 %450, ptr %21, align 8, !tbaa !26
  br label %323, !llvm.loop !44

451:                                              ; preds = %323
  %452 = load ptr, ptr %7, align 8, !tbaa !5
  %453 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %452, i32 0, i32 2
  %454 = load i64, ptr %453, align 8, !tbaa !38
  %455 = icmp eq i64 %454, 1
  br i1 %455, label %456, label %497

456:                                              ; preds = %451
  %457 = load ptr, ptr %7, align 8, !tbaa !5
  %458 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %457, i32 0, i32 3
  %459 = load double, ptr %458, align 8, !tbaa !39
  %460 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %459, double noundef 0.000000e+00)
  br i1 %460, label %461, label %497

461:                                              ; preds = %456
  store i64 0, ptr %15, align 8, !tbaa !26
  br label %462

462:                                              ; preds = %484, %461
  %463 = load i64, ptr %15, align 8, !tbaa !26
  %464 = load i64, ptr %23, align 8, !tbaa !26
  %465 = sub nsw i64 %464, 1
  %466 = icmp sle i64 %463, %465
  br i1 %466, label %467, label %487

467:                                              ; preds = %462
  %468 = load i8, ptr %18, align 1, !tbaa !37, !range !45, !noundef !46
  %469 = trunc i8 %468 to i1
  br i1 %469, label %481, label %470

470:                                              ; preds = %467
  %471 = load ptr, ptr %8, align 8, !tbaa !5
  %472 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %471, i32 0, i32 1
  %473 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %472, i32 0, i32 5
  %474 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %473, i32 0, i32 4
  %475 = load ptr, ptr %474, align 8, !tbaa !28
  %476 = load i64, ptr %15, align 8, !tbaa !26
  %477 = getelementptr inbounds double, ptr %475, i64 %476
  %478 = load double, ptr %477, align 8, !tbaa !29
  %479 = load double, ptr %17, align 8, !tbaa !29
  %480 = fcmp ole double %478, %479
  br label %481

481:                                              ; preds = %470, %467
  %482 = phi i1 [ true, %467 ], [ %480, %470 ]
  %483 = zext i1 %482 to i8
  store i8 %483, ptr %18, align 1, !tbaa !37
  br label %484

484:                                              ; preds = %481
  %485 = load i64, ptr %15, align 8, !tbaa !26
  %486 = add nsw i64 %485, 1
  store i64 %486, ptr %15, align 8, !tbaa !26
  br label %462, !llvm.loop !47

487:                                              ; preds = %462
  %488 = load i8, ptr %18, align 1, !tbaa !37, !range !45, !noundef !46
  %489 = trunc i8 %488 to i1
  br i1 %489, label %490, label %496

490:                                              ; preds = %487
  %491 = load i64, ptr %14, align 8, !tbaa !26
  %492 = load i64, ptr %13, align 8, !tbaa !26
  %493 = mul nsw i64 %491, %492
  %494 = load ptr, ptr %11, align 8, !tbaa !5
  %495 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %493, double noundef 0.000000e+00, ptr noundef %494, ptr noundef %495)
  br label %496

496:                                              ; preds = %490, %487
  br label %497

497:                                              ; preds = %496, %456, %451
  store i64 0, ptr %15, align 8, !tbaa !26
  br label %498

498:                                              ; preds = %541, %497
  %499 = load i64, ptr %15, align 8, !tbaa !26
  %500 = load i64, ptr %14, align 8, !tbaa !26
  %501 = sub nsw i64 %500, 1
  %502 = icmp sle i64 %499, %501
  br i1 %502, label %503, label %544

503:                                              ; preds = %498
  store i64 0, ptr %16, align 8, !tbaa !26
  br label %504

504:                                              ; preds = %537, %503
  %505 = load i64, ptr %16, align 8, !tbaa !26
  %506 = load i64, ptr %13, align 8, !tbaa !26
  %507 = sub nsw i64 %506, 1
  %508 = icmp sle i64 %505, %507
  br i1 %508, label %509, label %540

509:                                              ; preds = %504
  %510 = load ptr, ptr %11, align 8, !tbaa !5
  %511 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %510, i32 0, i32 4
  %512 = load ptr, ptr %511, align 8, !tbaa !28
  %513 = load i64, ptr %15, align 8, !tbaa !26
  %514 = load i64, ptr %13, align 8, !tbaa !26
  %515 = mul nsw i64 %513, %514
  %516 = load i64, ptr %16, align 8, !tbaa !26
  %517 = add nsw i64 %515, %516
  %518 = getelementptr inbounds double, ptr %512, i64 %517
  %519 = load double, ptr %518, align 8, !tbaa !29
  %520 = load ptr, ptr %7, align 8, !tbaa !5
  %521 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %520, i32 0, i32 4
  %522 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %521, i32 0, i32 4
  %523 = load ptr, ptr %522, align 8, !tbaa !28
  %524 = load i64, ptr %16, align 8, !tbaa !26
  %525 = getelementptr inbounds double, ptr %523, i64 %524
  %526 = load double, ptr %525, align 8, !tbaa !29
  %527 = fdiv double %519, %526
  %528 = load ptr, ptr %11, align 8, !tbaa !5
  %529 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %528, i32 0, i32 4
  %530 = load ptr, ptr %529, align 8, !tbaa !28
  %531 = load i64, ptr %15, align 8, !tbaa !26
  %532 = load i64, ptr %13, align 8, !tbaa !26
  %533 = mul nsw i64 %531, %532
  %534 = load i64, ptr %16, align 8, !tbaa !26
  %535 = add nsw i64 %533, %534
  %536 = getelementptr inbounds double, ptr %530, i64 %535
  store double %527, ptr %536, align 8, !tbaa !29
  br label %537

537:                                              ; preds = %509
  %538 = load i64, ptr %16, align 8, !tbaa !26
  %539 = add nsw i64 %538, 1
  store i64 %539, ptr %16, align 8, !tbaa !26
  br label %504, !llvm.loop !48

540:                                              ; preds = %504
  br label %541

541:                                              ; preds = %540
  %542 = load i64, ptr %15, align 8, !tbaa !26
  %543 = add nsw i64 %542, 1
  store i64 %543, ptr %15, align 8, !tbaa !26
  br label %498, !llvm.loop !49

544:                                              ; preds = %498
  store i32 0, ptr %25, align 4
  br label %545

545:                                              ; preds = %544, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %546 = load i32, ptr %25, align 4
  switch i32 %546, label %548 [
    i32 0, label %547
    i32 1, label %547
  ]

547:                                              ; preds = %545, %545
  ret void

548:                                              ; preds = %545
  unreachable
}

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

declare noundef double @_ZN11alglib_impl6rdotrrElPKNS_9ae_matrixElS2_lPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) #1

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 = { 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_impl10rbfv3modelE", !11, i64 0, !11, i64 8, !11, i64 16, !16, i64 24, !10, i64 32, !17, i64 96, !10, i64 176, !10, i64 240, !11, i64 304, !18, i64 312, !21, i64 864, !17, i64 2440, !24, i64 2520, !12, i64 3720, !16, i64 3728}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !11, i64 0, !11, i64 8, !17, i64 16, !11, i64 96, !11, i64 104, !16, i64 112, !11, i64 120, !10, i64 128, !17, i64 192, !17, i64 272, !19, i64 352, !10, i64 488}
!19 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !20, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !13, i64 104}
!20 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !13, i64 8, !12, i64 40}
!21 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !16, i64 40, !17, i64 48, !10, i64 128, !17, i64 192, !12, i64 272, !22, i64 280, !23, i64 416, !19, i64 1328, !17, i64 1464, !12, i64 1544, !11, i64 1552, !11, i64 1560, !11, i64 1568}
!22 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !11, i64 0, !11, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !20, i64 56, !13, i64 104}
!23 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !11, i64 0, !11, i64 8, !10, i64 16, !10, i64 80, !10, i64 144, !10, i64 208, !10, i64 272, !10, i64 336, !10, i64 400, !10, i64 464, !10, i64 528, !10, i64 592, !10, i64 656, !10, i64 720, !10, i64 784, !10, i64 848}
!24 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !10, i64 0, !25, i64 64, !10, i64 784, !10, i64 848, !17, i64 912, !17, i64 992, !10, i64 1072, !10, i64 1136}
!25 = !{!"_ZTSN11alglib_impl19rbf3evaluatorbufferE", !10, i64 0, !10, i64 64, !10, i64 128, !10, i64 192, !10, i64 256, !10, i64 320, !10, i64 384, !10, i64 448, !10, i64 512, !10, i64 576, !17, i64 640}
!26 = !{!11, !11, i64 0}
!27 = !{!15, !11, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{!16, !16, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = !{!15, !11, i64 304}
!34 = distinct !{!34, !31}
!35 = distinct !{!35, !31}
!36 = distinct !{!36, !31}
!37 = !{!12, !12, i64 0}
!38 = !{!15, !11, i64 16}
!39 = !{!15, !16, i64 24}
!40 = !{!15, !11, i64 432}
!41 = distinct !{!41, !31}
!42 = distinct !{!42, !31}
!43 = distinct !{!43, !31}
!44 = distinct !{!44, !31}
!45 = !{i8 0, i8 2}
!46 = !{}
!47 = distinct !{!47, !31}
!48 = distinct !{!48, !31}
!49 = distinct !{!49, !31}


; 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.790 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.791 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.793 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.794 = external hidden unnamed_addr constant [44 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_impl8ae_fp_eqEdd(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 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 i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 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_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr 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

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

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

declare noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare noundef double @_ZN11alglib_impl6rdotvrElPKNS_9ae_vectorEPKNS_9ae_matrixElPNS_8ae_stateE(i64 noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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

25:                                               ; preds = %24, %18
  %.not.not225 = icmp sgt i64 %14, 0
  br i1 %.not.not225, label %.lr.ph228, label %._crit_edge229

.lr.ph228:                                        ; preds = %25
  %26 = getelementptr inbounds i8, ptr %0, i64 168
  %27 = getelementptr inbounds i8, ptr %3, i64 56
  %.not217.not223 = icmp sgt i64 %.fr, 0
  %28 = getelementptr inbounds i8, ptr %2, i64 56
  %29 = getelementptr inbounds i8, ptr %4, i64 56
  br i1 %.not217.not223, label %.lr.ph.us, label %.lr.ph228.split.preheader

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

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

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

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

._crit_edge.us:                                   ; preds = %39
  %61 = add nuw nsw i64 %.0192226.us, 1
  %exitcond270.not = icmp eq i64 %61, %14
  br i1 %exitcond270.not, label %._crit_edge229, label %.lr.ph.us, !llvm.loop !31

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

._crit_edge229.loopexit288.unr-lcssa:             ; preds = %.lr.ph228.split, %.lr.ph228.split.preheader
  %.0192226.unr = phi i64 [ 0, %.lr.ph228.split.preheader ], [ %77, %.lr.ph228.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge229, label %.lr.ph228.split.epil

.lr.ph228.split.epil:                             ; preds = %._crit_edge229.loopexit288.unr-lcssa
  %78 = load ptr, ptr %26, align 8, !tbaa !26
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.0192226.unr
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %81 = getelementptr inbounds double, ptr %80, i64 %.fr
  %82 = load double, ptr %81, align 8, !tbaa !28
  %83 = load ptr, ptr %27, align 8, !tbaa !26
  %84 = getelementptr inbounds double, ptr %83, i64 %.0192226.unr
  store double %82, ptr %84, align 8, !tbaa !28
  br label %._crit_edge229

._crit_edge229:                                   ; preds = %.lr.ph228.split.epil, %._crit_edge229.loopexit288.unr-lcssa, %._crit_edge.us, %25
  %85 = getelementptr inbounds i8, ptr %0, i64 304
  %86 = load i64, ptr %85, align 8, !tbaa !32
  %87 = icmp eq i64 %86, 0
  br i1 %87, label %.loopexit, label %.preheader222

.preheader222:                                    ; preds = %._crit_edge229
  %.not.not208230 = icmp sgt i64 %.fr, 0
  br i1 %.not.not208230, label %.lr.ph, label %switch.edge

.lr.ph:                                           ; preds = %.preheader222
  %88 = getelementptr inbounds i8, ptr %2, i64 56
  %89 = getelementptr inbounds i8, ptr %0, i64 88
  %90 = getelementptr inbounds i8, ptr %1, i64 56
  %91 = add nsw i64 %.fr, -1
  %xtraiter289 = and i64 %.fr, 1
  %92 = icmp eq i64 %91, 0
  br i1 %92, label %.preheader221.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter291 = and i64 %.fr, 9223372036854775806
  br label %133

.preheader221.unr-lcssa:                          ; preds = %133, %.lr.ph
  %.1194231.unr = phi i64 [ 0, %.lr.ph ], [ %153, %133 ]
  %lcmp.mod290.not = icmp eq i64 %xtraiter289, 0
  br i1 %lcmp.mod290.not, label %.preheader221, label %.preheader221.epilog-lcssa

.preheader221.epilog-lcssa:                       ; preds = %.preheader221.unr-lcssa
  %93 = load ptr, ptr %88, align 8, !tbaa !26
  %94 = getelementptr inbounds double, ptr %93, i64 %.1194231.unr
  %95 = load double, ptr %94, align 8, !tbaa !28
  %96 = load ptr, ptr %89, align 8, !tbaa !26
  %97 = getelementptr inbounds double, ptr %96, i64 %.1194231.unr
  %98 = load double, ptr %97, align 8, !tbaa !28
  %99 = fdiv double %95, %98
  %100 = load ptr, ptr %90, align 8, !tbaa !26
  %101 = getelementptr inbounds double, ptr %100, i64 %.1194231.unr
  store double %99, ptr %101, align 8, !tbaa !28
  br label %.preheader221

.preheader221:                                    ; preds = %.preheader221.unr-lcssa, %.preheader221.epilog-lcssa
  br i1 %.not.not225, label %.preheader220.lr.ph, label %switch.edge

.preheader220.lr.ph:                              ; preds = %.preheader221
  %102 = getelementptr inbounds i8, ptr %4, i64 56
  %103 = getelementptr inbounds i8, ptr %0, i64 88
  br i1 %.not.not208230, label %.preheader220.us.preheader, label %switch.edge

.preheader220.us.preheader:                       ; preds = %.preheader220.lr.ph
  %xtraiter294 = and i64 %.fr, 1
  %104 = icmp eq i64 %91, 0
  %unroll_iter296 = and i64 %.fr, 9223372036854775806
  %lcmp.mod295.not = icmp eq i64 %xtraiter294, 0
  br label %.preheader220.us

.preheader220.us:                                 ; preds = %.preheader220.us.preheader, %._crit_edge.us237
  %.1236.us = phi i64 [ %132, %._crit_edge.us237 ], [ 0, %.preheader220.us.preheader ]
  %105 = mul nuw nsw i64 %.1236.us, %.fr
  br i1 %104, label %._crit_edge.us237.unr-lcssa, label %.preheader220.us.new

.preheader220.us.new:                             ; preds = %.preheader220.us, %.preheader220.us.new
  %.2195233.us = phi i64 [ %123, %.preheader220.us.new ], [ 0, %.preheader220.us ]
  %niter297 = phi i64 [ %niter297.next.1, %.preheader220.us.new ], [ 0, %.preheader220.us ]
  %106 = load ptr, ptr %102, align 8, !tbaa !26
  %107 = getelementptr double, ptr %106, i64 %105
  %108 = getelementptr double, ptr %107, i64 %.2195233.us
  %109 = load double, ptr %108, align 8, !tbaa !28
  %110 = load ptr, ptr %103, align 8, !tbaa !26
  %111 = getelementptr inbounds double, ptr %110, i64 %.2195233.us
  %112 = load double, ptr %111, align 8, !tbaa !28
  %113 = fmul double %109, %112
  store double %113, ptr %108, align 8, !tbaa !28
  %114 = or disjoint i64 %.2195233.us, 1
  %115 = load ptr, ptr %102, align 8, !tbaa !26
  %116 = getelementptr double, ptr %115, i64 %105
  %117 = getelementptr double, ptr %116, i64 %114
  %118 = load double, ptr %117, align 8, !tbaa !28
  %119 = load ptr, ptr %103, align 8, !tbaa !26
  %120 = getelementptr inbounds double, ptr %119, i64 %114
  %121 = load double, ptr %120, align 8, !tbaa !28
  %122 = fmul double %118, %121
  store double %122, ptr %117, align 8, !tbaa !28
  %123 = add nuw nsw i64 %.2195233.us, 2
  %niter297.next.1 = add i64 %niter297, 2
  %niter297.ncmp.1 = icmp eq i64 %niter297.next.1, %unroll_iter296
  br i1 %niter297.ncmp.1, label %._crit_edge.us237.unr-lcssa, label %.preheader220.us.new, !llvm.loop !33

._crit_edge.us237.unr-lcssa:                      ; preds = %.preheader220.us.new, %.preheader220.us
  %.2195233.us.unr = phi i64 [ 0, %.preheader220.us ], [ %123, %.preheader220.us.new ]
  br i1 %lcmp.mod295.not, label %._crit_edge.us237, label %._crit_edge.us237.epilog-lcssa

._crit_edge.us237.epilog-lcssa:                   ; preds = %._crit_edge.us237.unr-lcssa
  %124 = load ptr, ptr %102, align 8, !tbaa !26
  %125 = getelementptr double, ptr %124, i64 %105
  %126 = getelementptr double, ptr %125, i64 %.2195233.us.unr
  %127 = load double, ptr %126, align 8, !tbaa !28
  %128 = load ptr, ptr %103, align 8, !tbaa !26
  %129 = getelementptr inbounds double, ptr %128, i64 %.2195233.us.unr
  %130 = load double, ptr %129, align 8, !tbaa !28
  %131 = fmul double %127, %130
  store double %131, ptr %126, align 8, !tbaa !28
  br label %._crit_edge.us237

._crit_edge.us237:                                ; preds = %._crit_edge.us237.unr-lcssa, %._crit_edge.us237.epilog-lcssa
  %132 = add nuw nsw i64 %.1236.us, 1
  %exitcond273.not = icmp eq i64 %132, %14
  br i1 %exitcond273.not, label %switch.edge, label %.preheader220.us, !llvm.loop !34

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

switch.edge:                                      ; preds = %._crit_edge.us237, %.preheader222, %.preheader220.lr.ph, %.preheader221
  %154 = tail call noundef double @_ZN11alglib_impl6rdotv2ElPKNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %.fr, ptr noundef %1, ptr noundef %5)
  %155 = fadd double %154, 1.000000e+00
  %156 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef 5.000000e-14, ptr noundef %5)
  %157 = fmul double %155, %156
  %158 = getelementptr inbounds i8, ptr %0, i64 16
  %159 = load i64, ptr %158, align 8, !tbaa !36
  %.off = add i64 %159, -1
  %switch = icmp ult i64 %.off, 3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %switch, ptr noundef nonnull @.str.793, ptr noundef %5)
  %160 = load i64, ptr %158, align 8, !tbaa !36
  %.not = icmp eq i64 %160, 1
  br i1 %.not, label %161, label %165

161:                                              ; preds = %switch.edge
  %162 = getelementptr inbounds i8, ptr %0, i64 24
  %163 = load double, ptr %162, align 8, !tbaa !37
  %164 = tail call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %163, double noundef 0.000000e+00)
  br label %165

165:                                              ; preds = %161, %switch.edge
  %166 = phi i1 [ true, %switch.edge ], [ %164, %161 ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %166, ptr noundef nonnull @.str.794, ptr noundef %5)
  %167 = getelementptr inbounds i8, ptr %0, i64 312
  %168 = getelementptr inbounds i8, ptr %0, i64 432
  %169 = load i64, ptr %168, align 8, !tbaa !38
  %170 = getelementptr inbounds i8, ptr %1, i64 64
  %171 = getelementptr inbounds i8, ptr %1, i64 256
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %169, ptr noundef nonnull %171, ptr noundef %5)
  %172 = getelementptr inbounds i8, ptr %1, i64 320
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %169, ptr noundef nonnull %172, ptr noundef %5)
  %173 = getelementptr inbounds i8, ptr %1, i64 448
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %169, ptr noundef nonnull %173, ptr noundef %5)
  %174 = getelementptr inbounds i8, ptr %1, i64 704
  tail call void @_ZN11alglib_impl7rallocmEllPNS_9ae_matrixEPNS_8ae_stateE(i64 noundef %.fr, i64 noundef %169, ptr noundef nonnull %174, ptr noundef %5)
  %175 = getelementptr inbounds i8, ptr %1, i64 384
  tail call void @_ZN11alglib_impl10rsetallocvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %169, double noundef 1.000000e+50, ptr noundef nonnull %175, ptr noundef %5)
  %176 = load i64, ptr %158, align 8, !tbaa !36
  %177 = icmp eq i64 %176, 1
  br i1 %177, label %178, label %182

178:                                              ; preds = %165
  %179 = getelementptr inbounds i8, ptr %0, i64 24
  %180 = load double, ptr %179, align 8, !tbaa !37
  %181 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %180, ptr noundef %5)
  br label %182

182:                                              ; preds = %178, %165
  %.0 = phi double [ %181, %178 ], [ 1.000000e-50, %165 ]
  %183 = load i64, ptr %85, align 8, !tbaa !32
  %184 = icmp sgt i64 %183, 0
  br i1 %184, label %.lr.ph253, label %._crit_edge

.lr.ph253:                                        ; preds = %182
  %185 = getelementptr inbounds i8, ptr %3, i64 56
  %186 = getelementptr inbounds i8, ptr %0, i64 2440
  %187 = getelementptr inbounds i8, ptr %4, i64 56
  br label %188

188:                                              ; preds = %.lr.ph253, %._crit_edge247
  %189 = phi i64 [ %183, %.lr.ph253 ], [ %225, %._crit_edge247 ]
  %.0198251 = phi i64 [ 0, %.lr.ph253 ], [ %224, %._crit_edge247 ]
  %.0199250 = phi i64 [ 0, %.lr.ph253 ], [ %223, %._crit_edge247 ]
  %.0200249 = phi i64 [ 0, %.lr.ph253 ], [ %222, %._crit_edge247 ]
  %190 = sub nsw i64 %189, %.0200249
  %191 = tail call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %169, i64 noundef %190, ptr noundef %5)
  tail call void @_ZN11alglib_implL21rbfv3_computerowchunkEPKNS_13rbf3evaluatorEPKNS_9ae_vectorEPNS_19rbf3evaluatorbufferElldlPNS_8ae_stateE(ptr noundef nonnull %167, ptr noundef %1, ptr noundef nonnull %170, i64 noundef %191, i64 noundef %.0199250, double noundef %.0, i64 noundef 1, ptr noundef %5)
  br i1 %.not.not208230, label %.lr.ph240, label %.preheader219.thread

.preheader219:                                    ; preds = %.lr.ph240
  br i1 %.not.not225, label %.lr.ph246, label %._crit_edge247

.preheader219.thread:                             ; preds = %188
  br i1 %.not.not225, label %.lr.ph246.split.preheader, label %._crit_edge247

.lr.ph246:                                        ; preds = %.preheader219
  br i1 %.not.not208230, label %.lr.ph243.us, label %.lr.ph246.split.preheader

.lr.ph246.split.preheader:                        ; preds = %.preheader219.thread, %.lr.ph246
  br label %.lr.ph246.split

.lr.ph243.us:                                     ; preds = %.lr.ph246, %._crit_edge.us248
  %.2245.us = phi i64 [ %211, %._crit_edge.us248 ], [ 0, %.lr.ph246 ]
  %192 = load ptr, ptr %185, align 8, !tbaa !26
  %193 = getelementptr inbounds double, ptr %192, i64 %.2245.us
  %194 = load double, ptr %193, align 8, !tbaa !28
  %195 = add nsw i64 %.2245.us, %.0198251
  %196 = tail call noundef double @_ZN11alglib_impl6rdotvrElPKNS_9ae_vectorEPKNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %191, ptr noundef nonnull %171, ptr noundef nonnull %186, i64 noundef %195, ptr noundef %5)
  %197 = fadd double %194, %196
  %198 = load ptr, ptr %185, align 8, !tbaa !26
  %199 = getelementptr inbounds double, ptr %198, i64 %.2245.us
  store double %197, ptr %199, align 8, !tbaa !28
  %200 = mul nuw nsw i64 %.2245.us, %.fr
  br label %201

201:                                              ; preds = %.lr.ph243.us, %201
  %.4197242.us = phi i64 [ 0, %.lr.ph243.us ], [ %210, %201 ]
  %202 = load ptr, ptr %187, align 8, !tbaa !26
  %203 = add nuw nsw i64 %.4197242.us, %200
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !28
  %206 = tail call noundef double @_ZN11alglib_impl6rdotrrElPKNS_9ae_matrixElS2_lPNS_8ae_stateE(i64 noundef %191, ptr noundef nonnull %186, i64 noundef %195, ptr noundef nonnull %174, i64 noundef %.4197242.us, ptr noundef %5)
  %207 = tail call double @llvm.fmuladd.f64(double %206, double 2.000000e+00, double %205)
  %208 = load ptr, ptr %187, align 8, !tbaa !26
  %209 = getelementptr inbounds double, ptr %208, i64 %203
  store double %207, ptr %209, align 8, !tbaa !28
  %210 = add nuw nsw i64 %.4197242.us, 1
  %exitcond276.not = icmp eq i64 %210, %.fr
  br i1 %exitcond276.not, label %._crit_edge.us248, label %201, !llvm.loop !39

._crit_edge.us248:                                ; preds = %201
  %211 = add nuw nsw i64 %.2245.us, 1
  %exitcond277.not = icmp eq i64 %211, %14
  br i1 %exitcond277.not, label %._crit_edge247, label %.lr.ph243.us, !llvm.loop !40

.lr.ph240:                                        ; preds = %188, %.lr.ph240
  %.3196239 = phi i64 [ %212, %.lr.ph240 ], [ 0, %188 ]
  tail call void @_ZN11alglib_impl11rmergemulvrElPKNS_9ae_vectorEPNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %191, ptr noundef nonnull %173, ptr noundef nonnull %174, i64 noundef %.3196239, ptr noundef %5)
  %212 = add nuw nsw i64 %.3196239, 1
  %exitcond274.not = icmp eq i64 %212, %.fr
  br i1 %exitcond274.not, label %.preheader219, label %.lr.ph240, !llvm.loop !41

.lr.ph246.split:                                  ; preds = %.lr.ph246.split.preheader, %.lr.ph246.split
  %.2245 = phi i64 [ %221, %.lr.ph246.split ], [ 0, %.lr.ph246.split.preheader ]
  %213 = load ptr, ptr %185, align 8, !tbaa !26
  %214 = getelementptr inbounds double, ptr %213, i64 %.2245
  %215 = load double, ptr %214, align 8, !tbaa !28
  %216 = add nsw i64 %.2245, %.0198251
  %217 = tail call noundef double @_ZN11alglib_impl6rdotvrElPKNS_9ae_vectorEPKNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %191, ptr noundef nonnull %171, ptr noundef nonnull %186, i64 noundef %216, ptr noundef %5)
  %218 = fadd double %215, %217
  %219 = load ptr, ptr %185, align 8, !tbaa !26
  %220 = getelementptr inbounds double, ptr %219, i64 %.2245
  store double %218, ptr %220, align 8, !tbaa !28
  %221 = add nuw nsw i64 %.2245, 1
  %exitcond275.not = icmp eq i64 %221, %14
  br i1 %exitcond275.not, label %._crit_edge247, label %.lr.ph246.split, !llvm.loop !40

._crit_edge247:                                   ; preds = %.lr.ph246.split, %._crit_edge.us248, %.preheader219.thread, %.preheader219
  %222 = add nsw i64 %191, %.0200249
  %223 = add nsw i64 %.0199250, %.fr
  %224 = add nsw i64 %.0198251, %14
  %225 = load i64, ptr %85, align 8, !tbaa !32
  %226 = icmp slt i64 %222, %225
  br i1 %226, label %188, label %._crit_edge, !llvm.loop !42

._crit_edge:                                      ; preds = %._crit_edge247, %182
  %227 = load i64, ptr %158, align 8, !tbaa !36
  %228 = icmp eq i64 %227, 1
  br i1 %228, label %229, label %.critedge

229:                                              ; preds = %._crit_edge
  %230 = getelementptr inbounds i8, ptr %0, i64 24
  %231 = load double, ptr %230, align 8, !tbaa !37
  %232 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %231, double noundef 0.000000e+00)
  %.not210.not254 = icmp sgt i64 %169, 0
  %or.cond = and i1 %232, %.not210.not254
  br i1 %or.cond, label %.lr.ph257, label %.critedge

.lr.ph257:                                        ; preds = %229
  %233 = getelementptr inbounds i8, ptr %1, i64 440
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %.lr.ph257
  %.3256 = phi i64 [ 0, %.lr.ph257 ], [ %.3256.be, %.backedge.backedge ]
  %.0201255 = phi i1 [ false, %.lr.ph257 ], [ %.0201255.be, %.backedge.backedge ]
  br i1 %.0201255, label %.thread, label %234

234:                                              ; preds = %.backedge
  %235 = load ptr, ptr %233, align 8, !tbaa !26
  %236 = getelementptr inbounds double, ptr %235, i64 %.3256
  %237 = load double, ptr %236, align 8, !tbaa !28
  %238 = fcmp ole double %237, %157
  %239 = add nuw nsw i64 %.3256, 1
  %exitcond278.not = icmp eq i64 %239, %169
  br i1 %exitcond278.not, label %._crit_edge258, label %.backedge.backedge

.backedge.backedge:                               ; preds = %234, %.thread
  %.3256.be = phi i64 [ %239, %234 ], [ %240, %.thread ]
  %.0201255.be = phi i1 [ %238, %234 ], [ true, %.thread ]
  br label %.backedge, !llvm.loop !43

.thread:                                          ; preds = %.backedge
  %240 = add nuw nsw i64 %.3256, 1
  %exitcond278.not282 = icmp eq i64 %240, %169
  br i1 %exitcond278.not282, label %._crit_edge258.thread, label %.backedge.backedge

._crit_edge258:                                   ; preds = %234
  br i1 %238, label %._crit_edge258.thread, label %.critedge

._crit_edge258.thread:                            ; preds = %.thread, %._crit_edge258
  %241 = mul nsw i64 %14, %.fr
  tail call void @_ZN11alglib_impl5rsetvEldPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %241, double noundef 0.000000e+00, ptr noundef nonnull %4, ptr noundef %5)
  br label %.critedge

.critedge:                                        ; preds = %._crit_edge258, %._crit_edge258.thread, %229, %._crit_edge
  br i1 %.not.not225, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.critedge
  %242 = getelementptr inbounds i8, ptr %4, i64 56
  %243 = getelementptr inbounds i8, ptr %0, i64 88
  br i1 %.not.not208230, label %.preheader.us.preheader, label %.loopexit

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter299 = and i64 %.fr, 1
  %244 = icmp eq i64 %.fr, 1
  %unroll_iter301 = and i64 %.fr, 9223372036854775806
  %lcmp.mod300.not = icmp eq i64 %xtraiter299, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge262.us
  %.4264.us = phi i64 [ %272, %._crit_edge262.us ], [ 0, %.preheader.us.preheader ]
  %245 = mul nuw nsw i64 %.4264.us, %.fr
  br i1 %244, label %._crit_edge262.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.5260.us = phi i64 [ %263, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter302 = phi i64 [ %niter302.next.1, %.preheader.us.new ], [ 0, %.preheader.us ]
  %246 = load ptr, ptr %242, align 8, !tbaa !26
  %247 = getelementptr double, ptr %246, i64 %245
  %248 = getelementptr double, ptr %247, i64 %.5260.us
  %249 = load double, ptr %248, align 8, !tbaa !28
  %250 = load ptr, ptr %243, align 8, !tbaa !26
  %251 = getelementptr inbounds double, ptr %250, i64 %.5260.us
  %252 = load double, ptr %251, align 8, !tbaa !28
  %253 = fdiv double %249, %252
  store double %253, ptr %248, align 8, !tbaa !28
  %254 = or disjoint i64 %.5260.us, 1
  %255 = load ptr, ptr %242, align 8, !tbaa !26
  %256 = getelementptr double, ptr %255, i64 %245
  %257 = getelementptr double, ptr %256, i64 %254
  %258 = load double, ptr %257, align 8, !tbaa !28
  %259 = load ptr, ptr %243, align 8, !tbaa !26
  %260 = getelementptr inbounds double, ptr %259, i64 %254
  %261 = load double, ptr %260, align 8, !tbaa !28
  %262 = fdiv double %258, %261
  store double %262, ptr %257, align 8, !tbaa !28
  %263 = add nuw nsw i64 %.5260.us, 2
  %niter302.next.1 = add i64 %niter302, 2
  %niter302.ncmp.1 = icmp eq i64 %niter302.next.1, %unroll_iter301
  br i1 %niter302.ncmp.1, label %._crit_edge262.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !44

._crit_edge262.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.5260.us.unr = phi i64 [ 0, %.preheader.us ], [ %263, %.preheader.us.new ]
  br i1 %lcmp.mod300.not, label %._crit_edge262.us, label %._crit_edge262.us.epilog-lcssa

._crit_edge262.us.epilog-lcssa:                   ; preds = %._crit_edge262.us.unr-lcssa
  %264 = load ptr, ptr %242, align 8, !tbaa !26
  %265 = getelementptr double, ptr %264, i64 %245
  %266 = getelementptr double, ptr %265, i64 %.5260.us.unr
  %267 = load double, ptr %266, align 8, !tbaa !28
  %268 = load ptr, ptr %243, align 8, !tbaa !26
  %269 = getelementptr inbounds double, ptr %268, i64 %.5260.us.unr
  %270 = load double, ptr %269, align 8, !tbaa !28
  %271 = fdiv double %267, %270
  store double %271, ptr %266, align 8, !tbaa !28
  br label %._crit_edge262.us

._crit_edge262.us:                                ; preds = %._crit_edge262.us.unr-lcssa, %._crit_edge262.us.epilog-lcssa
  %272 = add nuw nsw i64 %.4264.us, 1
  %exitcond280.not = icmp eq i64 %272, %14
  br i1 %exitcond280.not, label %.loopexit, label %.preheader.us, !llvm.loop !45

.loopexit:                                        ; preds = %._crit_edge262.us, %.preheader.lr.ph, %.critedge, %._crit_edge229
  ret void
}

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

declare noundef double @_ZN11alglib_impl6rdotrrElPKNS_9ae_matrixElS2_lPNS_8ae_stateE(i64 noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

!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_impl10rbfv3modelE", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !6, i64 32, !16, i64 96, !6, i64 176, !6, i64 240, !7, i64 304, !17, i64 312, !20, i64 864, !16, i64 2440, !23, i64 2520, !10, i64 3720, !15, i64 3728}
!15 = !{!"double", !8, i64 0}
!16 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!17 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !7, i64 0, !7, i64 8, !16, i64 16, !7, i64 96, !7, i64 104, !15, i64 112, !7, i64 120, !6, i64 128, !16, i64 192, !16, i64 272, !18, i64 352, !6, i64 488}
!18 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !19, i64 0, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !7, i64 80, !12, i64 88, !12, i64 96, !11, i64 104}
!19 = !{!"_ZTSN11alglib_impl7ae_lockE", !12, i64 0, !11, i64 8, !10, i64 40}
!20 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !15, i64 40, !16, i64 48, !6, i64 128, !16, i64 192, !10, i64 272, !21, i64 280, !22, i64 416, !18, i64 1328, !16, i64 1464, !10, i64 1544, !7, i64 1552, !7, i64 1560, !7, i64 1568}
!21 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !7, i64 0, !7, i64 8, !10, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !19, i64 56, !11, i64 104}
!22 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !7, i64 0, !7, i64 8, !6, i64 16, !6, i64 80, !6, i64 144, !6, i64 208, !6, i64 272, !6, i64 336, !6, i64 400, !6, i64 464, !6, i64 528, !6, i64 592, !6, i64 656, !6, i64 720, !6, i64 784, !6, i64 848}
!23 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !6, i64 0, !24, i64 64, !6, i64 784, !6, i64 848, !16, i64 912, !16, i64 992, !6, i64 1072, !6, i64 1136}
!24 = !{!"_ZTSN11alglib_impl19rbf3evaluatorbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !6, i64 192, !6, i64 256, !6, i64 320, !6, i64 384, !6, i64 448, !6, i64 512, !6, i64 576, !16, i64 640}
!25 = !{!14, !7, i64 0}
!26 = !{!8, !8, i64 0}
!27 = !{!12, !12, i64 0}
!28 = !{!15, !15, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = !{!14, !7, i64 304}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}
!35 = distinct !{!35, !30}
!36 = !{!14, !7, i64 16}
!37 = !{!14, !15, i64 24}
!38 = !{!14, !7, i64 432}
!39 = distinct !{!39, !30}
!40 = distinct !{!40, !30}
!41 = distinct !{!41, !30}
!42 = distinct !{!42, !30}
!43 = distinct !{!43, !30}
!44 = distinct !{!44, !30}
!45 = distinct !{!45, !30}


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