; 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.792 = external hidden unnamed_addr constant [48 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

; 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 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
define dso_local void @_ZN11alglib_impl14rbfv3tscalcbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_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 i64, align 8
  %15 = alloca double, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = 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) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  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 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %24, i32 0, i32 1
  %26 = load i64, ptr %25, align 8, !tbaa !14
  %27 = icmp sge i64 %23, %26
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %27, ptr noundef @.str.790, ptr noundef %28)
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !14
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %29, i64 noundef %32, ptr noundef %33)
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.791, ptr noundef %35)
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %36, i32 0, i32 1
  %38 = load i64, ptr %37, align 8, !tbaa !14
  store i64 %38, ptr %11, align 8, !tbaa !26
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %39, i32 0, i32 0
  %41 = load i64, ptr %40, align 8, !tbaa !27
  store i64 %41, ptr %12, align 8, !tbaa !26
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !9
  %45 = load i64, ptr %12, align 8, !tbaa !26
  %46 = icmp slt i64 %44, %45
  br i1 %46, label %47, label %51

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

51:                                               ; preds = %47, %5
  store i64 0, ptr %13, align 8, !tbaa !26
  br label %52

52:                                               ; preds = %111, %51
  %53 = load i64, ptr %13, align 8, !tbaa !26
  %54 = load i64, ptr %12, align 8, !tbaa !26
  %55 = sub nsw i64 %54, 1
  %56 = icmp sle i64 %53, %55
  br i1 %56, label %57, label %114

57:                                               ; preds = %52
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %58, i32 0, i32 5
  %60 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %59, i32 0, i32 6
  %61 = load ptr, ptr %60, align 8, !tbaa !28
  %62 = load i64, ptr %13, align 8, !tbaa !26
  %63 = getelementptr inbounds ptr, ptr %61, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  %65 = load i64, ptr %11, align 8, !tbaa !26
  %66 = getelementptr inbounds double, ptr %64, i64 %65
  %67 = load double, ptr %66, align 8, !tbaa !29
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !28
  %71 = load i64, ptr %13, align 8, !tbaa !26
  %72 = getelementptr inbounds double, ptr %70, i64 %71
  store double %67, ptr %72, align 8, !tbaa !29
  store i64 0, ptr %14, align 8, !tbaa !26
  br label %73

73:                                               ; preds = %107, %57
  %74 = load i64, ptr %14, align 8, !tbaa !26
  %75 = load i64, ptr %11, align 8, !tbaa !26
  %76 = sub nsw i64 %75, 1
  %77 = icmp sle i64 %74, %76
  br i1 %77, label %78, label %110

78:                                               ; preds = %73
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %79, i32 0, i32 4
  %81 = load ptr, ptr %80, align 8, !tbaa !28
  %82 = load i64, ptr %13, align 8, !tbaa !26
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  %84 = load double, ptr %83, align 8, !tbaa !29
  %85 = load ptr, ptr %6, 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 %13, 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 %14, 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 %8, 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 %14, align 8, !tbaa !26
  %99 = getelementptr inbounds double, ptr %97, i64 %98
  %100 = load double, ptr %99, align 8, !tbaa !29
  %101 = call double @llvm.fmuladd.f64(double %94, double %100, double %84)
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %102, i32 0, i32 4
  %104 = load ptr, ptr %103, align 8, !tbaa !28
  %105 = load i64, ptr %13, align 8, !tbaa !26
  %106 = getelementptr inbounds double, ptr %104, i64 %105
  store double %101, ptr %106, align 8, !tbaa !29
  br label %107

107:                                              ; preds = %78
  %108 = load i64, ptr %14, align 8, !tbaa !26
  %109 = add nsw i64 %108, 1
  store i64 %109, ptr %14, align 8, !tbaa !26
  br label %73, !llvm.loop !30

110:                                              ; preds = %73
  br label %111

111:                                              ; preds = %110
  %112 = load i64, ptr %13, align 8, !tbaa !26
  %113 = add nsw i64 %112, 1
  store i64 %113, ptr %13, align 8, !tbaa !26
  br label %52, !llvm.loop !32

114:                                              ; preds = %52
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %115, i32 0, i32 8
  %117 = load i64, ptr %116, align 8, !tbaa !33
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %114
  store i32 1, ptr %20, align 4
  br label %266

120:                                              ; preds = %114
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %121, i32 0, i32 2
  %123 = load i64, ptr %122, align 8, !tbaa !34
  %124 = icmp eq i64 %123, 1
  br i1 %124, label %135, label %125

125:                                              ; preds = %120
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %126, i32 0, i32 2
  %128 = load i64, ptr %127, align 8, !tbaa !34
  %129 = icmp eq i64 %128, 2
  br i1 %129, label %135, label %130

130:                                              ; preds = %125
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %131, i32 0, i32 2
  %133 = load i64, ptr %132, align 8, !tbaa !34
  %134 = icmp eq i64 %133, 3
  br label %135

135:                                              ; preds = %130, %125, %120
  %136 = phi i1 [ true, %125 ], [ true, %120 ], [ %134, %130 ]
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %136, ptr noundef @.str.792, ptr noundef %137)
  store i64 0, ptr %14, align 8, !tbaa !26
  br label %138

138:                                              ; preds = %164, %135
  %139 = load i64, ptr %14, align 8, !tbaa !26
  %140 = load i64, ptr %11, align 8, !tbaa !26
  %141 = sub nsw i64 %140, 1
  %142 = icmp sle i64 %139, %141
  br i1 %142, label %143, label %167

143:                                              ; preds = %138
  %144 = load ptr, ptr %8, 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 %14, align 8, !tbaa !26
  %148 = getelementptr inbounds double, ptr %146, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !29
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %150, i32 0, i32 4
  %152 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %151, i32 0, i32 4
  %153 = load ptr, ptr %152, align 8, !tbaa !28
  %154 = load i64, ptr %14, align 8, !tbaa !26
  %155 = getelementptr inbounds double, ptr %153, i64 %154
  %156 = load double, ptr %155, align 8, !tbaa !29
  %157 = fdiv double %149, %156
  %158 = load ptr, ptr %7, align 8, !tbaa !5
  %159 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !28
  %162 = load i64, ptr %14, align 8, !tbaa !26
  %163 = getelementptr inbounds double, ptr %161, i64 %162
  store double %157, ptr %163, align 8, !tbaa !29
  br label %164

164:                                              ; preds = %143
  %165 = load i64, ptr %14, align 8, !tbaa !26
  %166 = add nsw i64 %165, 1
  store i64 %166, ptr %14, align 8, !tbaa !26
  br label %138, !llvm.loop !35

167:                                              ; preds = %138
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %168, i32 0, i32 9
  %170 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluator", ptr %169, i32 0, i32 6
  %171 = load i64, ptr %170, align 8, !tbaa !36
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %172, i32 0, i32 1
  %174 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %173, i32 0, i32 3
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %171, ptr noundef %174, ptr noundef %175)
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %176, i32 0, i32 9
  %178 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluator", ptr %177, i32 0, i32 6
  %179 = load i64, ptr %178, align 8, !tbaa !36
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %179, ptr noundef %182, ptr noundef %183)
  store i64 0, ptr %16, align 8, !tbaa !26
  store i64 0, ptr %17, align 8, !tbaa !26
  store i64 0, ptr %18, align 8, !tbaa !26
  store double 1.000000e-50, ptr %15, align 8, !tbaa !29
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %184, i32 0, i32 2
  %186 = load i64, ptr %185, align 8, !tbaa !34
  %187 = icmp eq i64 %186, 1
  br i1 %187, label %188, label %194

188:                                              ; preds = %167
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %189, i32 0, i32 3
  %191 = load double, ptr %190, align 8, !tbaa !37
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %191, ptr noundef %192)
  store double %193, ptr %15, align 8, !tbaa !29
  br label %194

194:                                              ; preds = %188, %167
  br label %195

195:                                              ; preds = %255, %194
  %196 = load i64, ptr %16, align 8, !tbaa !26
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %197, i32 0, i32 8
  %199 = load i64, ptr %198, align 8, !tbaa !33
  %200 = icmp slt i64 %196, %199
  br i1 %200, label %201, label %265

201:                                              ; preds = %195
  %202 = load ptr, ptr %6, align 8, !tbaa !5
  %203 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %202, i32 0, i32 9
  %204 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluator", ptr %203, i32 0, i32 6
  %205 = load i64, ptr %204, align 8, !tbaa !36
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %206, i32 0, i32 8
  %208 = load i64, ptr %207, align 8, !tbaa !33
  %209 = load i64, ptr %16, align 8, !tbaa !26
  %210 = sub nsw i64 %208, %209
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %205, i64 noundef %210, ptr noundef %211)
  store i64 %212, ptr %19, align 8, !tbaa !26
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %213, i32 0, i32 9
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %215, i32 0, i32 0
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %217, i32 0, i32 1
  %219 = load i64, ptr %19, align 8, !tbaa !26
  %220 = load i64, ptr %17, align 8, !tbaa !26
  %221 = load double, ptr %15, align 8, !tbaa !29
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL21rbfv3_computerowchunkEPKNS_13rbf3evaluatorEPKNS_9ae_vectorEPNS_19rbf3evaluatorbufferElldlPNS_8ae_stateE(ptr noundef %214, ptr noundef %216, ptr noundef %218, i64 noundef %219, i64 noundef %220, double noundef %221, i64 noundef 0, ptr noundef %222)
  store i64 0, ptr %13, align 8, !tbaa !26
  br label %223

223:                                              ; preds = %252, %201
  %224 = load i64, ptr %13, align 8, !tbaa !26
  %225 = load i64, ptr %12, align 8, !tbaa !26
  %226 = sub nsw i64 %225, 1
  %227 = icmp sle i64 %224, %226
  br i1 %227, label %228, label %255

228:                                              ; preds = %223
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  %230 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %229, i32 0, i32 4
  %231 = load ptr, ptr %230, align 8, !tbaa !28
  %232 = load i64, ptr %13, align 8, !tbaa !26
  %233 = getelementptr inbounds double, ptr %231, i64 %232
  %234 = load double, ptr %233, align 8, !tbaa !29
  %235 = load i64, ptr %19, align 8, !tbaa !26
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %"struct.alglib_impl::rbfv3calcbuffer", ptr %236, i32 0, i32 1
  %238 = getelementptr inbounds %"struct.alglib_impl::rbf3evaluatorbuffer", ptr %237, i32 0, i32 3
  %239 = load ptr, ptr %6, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %239, i32 0, i32 11
  %241 = load i64, ptr %18, align 8, !tbaa !26
  %242 = load i64, ptr %13, align 8, !tbaa !26
  %243 = add nsw i64 %241, %242
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = call noundef double @_ZN11alglib_impl6rdotvrElPKNS_9ae_vectorEPKNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %235, ptr noundef %238, ptr noundef %240, i64 noundef %243, ptr noundef %244)
  %246 = fadd double %234, %245
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %247, i32 0, i32 4
  %249 = load ptr, ptr %248, align 8, !tbaa !28
  %250 = load i64, ptr %13, align 8, !tbaa !26
  %251 = getelementptr inbounds double, ptr %249, i64 %250
  store double %246, ptr %251, align 8, !tbaa !29
  br label %252

252:                                              ; preds = %228
  %253 = load i64, ptr %13, align 8, !tbaa !26
  %254 = add nsw i64 %253, 1
  store i64 %254, ptr %13, align 8, !tbaa !26
  br label %223, !llvm.loop !38

255:                                              ; preds = %223
  %256 = load i64, ptr %16, align 8, !tbaa !26
  %257 = load i64, ptr %19, align 8, !tbaa !26
  %258 = add nsw i64 %256, %257
  store i64 %258, ptr %16, align 8, !tbaa !26
  %259 = load i64, ptr %17, align 8, !tbaa !26
  %260 = load i64, ptr %11, align 8, !tbaa !26
  %261 = add nsw i64 %259, %260
  store i64 %261, ptr %17, align 8, !tbaa !26
  %262 = load i64, ptr %18, align 8, !tbaa !26
  %263 = load i64, ptr %12, align 8, !tbaa !26
  %264 = add nsw i64 %262, %263
  store i64 %264, ptr %18, align 8, !tbaa !26
  br label %195, !llvm.loop !39

265:                                              ; preds = %195
  store i32 0, ptr %20, align 4
  br label %266

266:                                              ; preds = %265, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %267 = load i32, ptr %20, align 4
  switch i32 %267, label %269 [
    i32 0, label %268
    i32 1, label %268
  ]

268:                                              ; preds = %266, %266
  ret void

269:                                              ; preds = %266
  unreachable
}

; 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

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 = !{!15, !11, i64 16}
!35 = distinct !{!35, !31}
!36 = !{!15, !11, i64 432}
!37 = !{!15, !16, i64 24}
!38 = distinct !{!38, !31}
!39 = distinct !{!39, !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.792 = external hidden unnamed_addr constant [48 x i8], align 1

declare void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext, ptr 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 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 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
define dso_local void @_ZN11alglib_impl14rbfv3tscalcbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_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.790, ptr noundef %4)
  %10 = load i64, ptr %7, align 8, !tbaa !13
  %11 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_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.791, ptr noundef %4)
  %12 = load i64, ptr %7, align 8, !tbaa !13
  %13 = load i64, ptr %0, align 8, !tbaa !25
  %.fr = freeze i64 %13
  %14 = load i64, ptr %3, align 8, !tbaa !5
  %15 = icmp slt i64 %14, %.fr
  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 %.fr, ptr noundef %4)
  br label %17

17:                                               ; preds = %16, %5
  %.not.not103 = icmp sgt i64 %.fr, 0
  br i1 %.not.not103, label %.lr.ph106, label %._crit_edge107

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

.lr.ph106.split.preheader:                        ; preds = %.lr.ph106
  %xtraiter = and i64 %.fr, 1
  %21 = icmp eq i64 %.fr, 1
  br i1 %21, label %._crit_edge107.loopexit131.unr-lcssa, label %.lr.ph106.split.preheader.new

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

.lr.ph.us.preheader:                              ; preds = %.lr.ph106
  %xtraiter132 = and i64 %12, 1
  %22 = icmp eq i64 %12, 1
  %unroll_iter134 = and i64 %12, 9223372036854775806
  %lcmp.mod133.not = icmp eq i64 %xtraiter132, 0
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.0104.us = phi i64 [ %68, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %23 = load ptr, ptr %18, align 8, !tbaa !26
  %24 = getelementptr inbounds ptr, ptr %23, i64 %.0104.us
  %25 = load ptr, ptr %24, align 8, !tbaa !27
  %26 = getelementptr inbounds double, ptr %25, i64 %12
  %27 = load double, ptr %26, align 8, !tbaa !28
  %28 = load ptr, ptr %19, align 8, !tbaa !26
  %29 = getelementptr inbounds double, ptr %28, i64 %.0104.us
  store double %27, ptr %29, align 8, !tbaa !28
  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
  %.092102.us = phi i64 [ %55, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %niter135 = phi i64 [ %niter135.next.1, %.lr.ph.us.new ], [ 0, %.lr.ph.us ]
  %30 = load ptr, ptr %19, align 8, !tbaa !26
  %31 = getelementptr inbounds double, ptr %30, i64 %.0104.us
  %32 = load double, ptr %31, align 8, !tbaa !28
  %33 = load ptr, ptr %18, align 8, !tbaa !26
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.0104.us
  %35 = load ptr, ptr %34, align 8, !tbaa !27
  %36 = getelementptr inbounds double, ptr %35, i64 %.092102.us
  %37 = load double, ptr %36, align 8, !tbaa !28
  %38 = load ptr, ptr %20, align 8, !tbaa !26
  %39 = getelementptr inbounds double, ptr %38, i64 %.092102.us
  %40 = load double, ptr %39, align 8, !tbaa !28
  %41 = tail call double @llvm.fmuladd.f64(double %37, double %40, double %32)
  store double %41, ptr %31, align 8, !tbaa !28
  %42 = or disjoint i64 %.092102.us, 1
  %43 = load ptr, ptr %19, align 8, !tbaa !26
  %44 = getelementptr inbounds double, ptr %43, i64 %.0104.us
  %45 = load double, ptr %44, align 8, !tbaa !28
  %46 = load ptr, ptr %18, align 8, !tbaa !26
  %47 = getelementptr inbounds ptr, ptr %46, i64 %.0104.us
  %48 = load ptr, ptr %47, align 8, !tbaa !27
  %49 = getelementptr inbounds double, ptr %48, i64 %42
  %50 = load double, ptr %49, align 8, !tbaa !28
  %51 = load ptr, ptr %20, align 8, !tbaa !26
  %52 = getelementptr inbounds double, ptr %51, i64 %42
  %53 = load double, ptr %52, align 8, !tbaa !28
  %54 = tail call double @llvm.fmuladd.f64(double %50, double %53, double %45)
  store double %54, ptr %44, align 8, !tbaa !28
  %55 = add nuw nsw i64 %.092102.us, 2
  %niter135.next.1 = add i64 %niter135, 2
  %niter135.ncmp.1 = icmp eq i64 %niter135.next.1, %unroll_iter134
  br i1 %niter135.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.lr.ph.us.new, !llvm.loop !29

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph.us.new, %.lr.ph.us
  %.092102.us.unr = phi i64 [ 0, %.lr.ph.us ], [ %55, %.lr.ph.us.new ]
  br i1 %lcmp.mod133.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 !26
  %57 = getelementptr inbounds double, ptr %56, i64 %.0104.us
  %58 = load double, ptr %57, align 8, !tbaa !28
  %59 = load ptr, ptr %18, align 8, !tbaa !26
  %60 = getelementptr inbounds ptr, ptr %59, i64 %.0104.us
  %61 = load ptr, ptr %60, align 8, !tbaa !27
  %62 = getelementptr inbounds double, ptr %61, i64 %.092102.us.unr
  %63 = load double, ptr %62, align 8, !tbaa !28
  %64 = load ptr, ptr %20, align 8, !tbaa !26
  %65 = getelementptr inbounds double, ptr %64, i64 %.092102.us.unr
  %66 = load double, ptr %65, align 8, !tbaa !28
  %67 = tail call double @llvm.fmuladd.f64(double %63, double %66, double %58)
  store double %67, ptr %57, align 8, !tbaa !28
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.unr-lcssa, %._crit_edge.us.epilog-lcssa
  %68 = add nuw nsw i64 %.0104.us, 1
  %exitcond123.not = icmp eq i64 %68, %.fr
  br i1 %exitcond123.not, label %._crit_edge107, label %.lr.ph.us, !llvm.loop !31

.lr.ph106.split:                                  ; preds = %.lr.ph106.split, %.lr.ph106.split.preheader.new
  %.0104 = phi i64 [ 0, %.lr.ph106.split.preheader.new ], [ %84, %.lr.ph106.split ]
  %niter = phi i64 [ 0, %.lr.ph106.split.preheader.new ], [ %niter.next.1, %.lr.ph106.split ]
  %69 = load ptr, ptr %18, align 8, !tbaa !26
  %70 = getelementptr inbounds ptr, ptr %69, i64 %.0104
  %71 = load ptr, ptr %70, align 8, !tbaa !27
  %72 = getelementptr inbounds double, ptr %71, i64 %12
  %73 = load double, ptr %72, align 8, !tbaa !28
  %74 = load ptr, ptr %19, align 8, !tbaa !26
  %75 = getelementptr inbounds double, ptr %74, i64 %.0104
  store double %73, ptr %75, align 8, !tbaa !28
  %76 = or disjoint i64 %.0104, 1
  %77 = load ptr, ptr %18, align 8, !tbaa !26
  %78 = getelementptr inbounds ptr, ptr %77, i64 %76
  %79 = load ptr, ptr %78, align 8, !tbaa !27
  %80 = getelementptr inbounds double, ptr %79, i64 %12
  %81 = load double, ptr %80, align 8, !tbaa !28
  %82 = load ptr, ptr %19, align 8, !tbaa !26
  %83 = getelementptr inbounds double, ptr %82, i64 %76
  store double %81, ptr %83, align 8, !tbaa !28
  %84 = add nuw nsw i64 %.0104, 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_edge107.loopexit131.unr-lcssa, label %.lr.ph106.split, !llvm.loop !31

._crit_edge107.loopexit131.unr-lcssa:             ; preds = %.lr.ph106.split, %.lr.ph106.split.preheader
  %.0104.unr = phi i64 [ 0, %.lr.ph106.split.preheader ], [ %84, %.lr.ph106.split ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge107, label %.lr.ph106.split.epil

.lr.ph106.split.epil:                             ; preds = %._crit_edge107.loopexit131.unr-lcssa
  %85 = load ptr, ptr %18, align 8, !tbaa !26
  %86 = getelementptr inbounds ptr, ptr %85, i64 %.0104.unr
  %87 = load ptr, ptr %86, align 8, !tbaa !27
  %88 = getelementptr inbounds double, ptr %87, i64 %12
  %89 = load double, ptr %88, align 8, !tbaa !28
  %90 = load ptr, ptr %19, align 8, !tbaa !26
  %91 = getelementptr inbounds double, ptr %90, i64 %.0104.unr
  store double %89, ptr %91, align 8, !tbaa !28
  br label %._crit_edge107

._crit_edge107:                                   ; preds = %.lr.ph106.split.epil, %._crit_edge107.loopexit131.unr-lcssa, %._crit_edge.us, %17
  %92 = getelementptr inbounds i8, ptr %0, i64 304
  %93 = load i64, ptr %92, align 8, !tbaa !32
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %.loopexit, label %switch.edge

switch.edge:                                      ; preds = %._crit_edge107
  %95 = getelementptr inbounds i8, ptr %0, i64 16
  %96 = load i64, ptr %95, align 8, !tbaa !33
  %.off = add i64 %96, -1
  %switch = icmp ult i64 %.off, 3
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %switch, ptr noundef nonnull @.str.792, ptr noundef %4)
  %.not.not98108 = icmp sgt i64 %12, 0
  br i1 %.not.not98108, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %switch.edge
  %97 = getelementptr inbounds i8, ptr %2, i64 56
  %98 = getelementptr inbounds i8, ptr %0, i64 88
  %99 = getelementptr inbounds i8, ptr %1, i64 56
  %xtraiter137 = and i64 %12, 1
  %100 = icmp eq i64 %12, 1
  br i1 %100, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

101:                                              ; preds = %101, %.lr.ph.new
  %.193109 = phi i64 [ 0, %.lr.ph.new ], [ %121, %101 ]
  %niter140 = phi i64 [ 0, %.lr.ph.new ], [ %niter140.next.1, %101 ]
  %102 = load ptr, ptr %97, align 8, !tbaa !26
  %103 = getelementptr inbounds double, ptr %102, i64 %.193109
  %104 = load double, ptr %103, align 8, !tbaa !28
  %105 = load ptr, ptr %98, align 8, !tbaa !26
  %106 = getelementptr inbounds double, ptr %105, i64 %.193109
  %107 = load double, ptr %106, align 8, !tbaa !28
  %108 = fdiv double %104, %107
  %109 = load ptr, ptr %99, align 8, !tbaa !26
  %110 = getelementptr inbounds double, ptr %109, i64 %.193109
  store double %108, ptr %110, align 8, !tbaa !28
  %111 = or disjoint i64 %.193109, 1
  %112 = load ptr, ptr %97, align 8, !tbaa !26
  %113 = getelementptr inbounds double, ptr %112, i64 %111
  %114 = load double, ptr %113, align 8, !tbaa !28
  %115 = load ptr, ptr %98, align 8, !tbaa !26
  %116 = getelementptr inbounds double, ptr %115, i64 %111
  %117 = load double, ptr %116, align 8, !tbaa !28
  %118 = fdiv double %114, %117
  %119 = load ptr, ptr %99, align 8, !tbaa !26
  %120 = getelementptr inbounds double, ptr %119, i64 %111
  store double %118, ptr %120, align 8, !tbaa !28
  %121 = add nuw nsw i64 %.193109, 2
  %niter140.next.1 = add i64 %niter140, 2
  %niter140.ncmp.1 = icmp eq i64 %niter140.next.1, %unroll_iter139
  br i1 %niter140.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %101, !llvm.loop !34

._crit_edge.loopexit.unr-lcssa:                   ; preds = %101, %.lr.ph
  %.193109.unr = phi i64 [ 0, %.lr.ph ], [ %121, %101 ]
  %lcmp.mod138.not = icmp eq i64 %xtraiter137, 0
  br i1 %lcmp.mod138.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %122 = load ptr, ptr %97, align 8, !tbaa !26
  %123 = getelementptr inbounds double, ptr %122, i64 %.193109.unr
  %124 = load double, ptr %123, align 8, !tbaa !28
  %125 = load ptr, ptr %98, align 8, !tbaa !26
  %126 = getelementptr inbounds double, ptr %125, i64 %.193109.unr
  %127 = load double, ptr %126, align 8, !tbaa !28
  %128 = fdiv double %124, %127
  %129 = load ptr, ptr %99, align 8, !tbaa !26
  %130 = getelementptr inbounds double, ptr %129, i64 %.193109.unr
  store double %128, ptr %130, align 8, !tbaa !28
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %switch.edge
  %131 = getelementptr inbounds i8, ptr %0, i64 312
  %132 = getelementptr inbounds i8, ptr %0, i64 432
  %133 = load i64, ptr %132, align 8, !tbaa !35
  %134 = getelementptr inbounds i8, ptr %1, i64 64
  %135 = getelementptr inbounds i8, ptr %1, i64 256
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %133, ptr noundef nonnull %135, ptr noundef %4)
  %136 = load i64, ptr %132, align 8, !tbaa !35
  %137 = getelementptr inbounds i8, ptr %1, i64 320
  tail call void @_ZN11alglib_impl7rallocvElPNS_9ae_vectorEPNS_8ae_stateE(i64 noundef %136, ptr noundef nonnull %137, ptr noundef %4)
  %138 = load i64, ptr %95, align 8, !tbaa !33
  %139 = icmp eq i64 %138, 1
  br i1 %139, label %140, label %144

140:                                              ; preds = %._crit_edge
  %141 = getelementptr inbounds i8, ptr %0, i64 24
  %142 = load double, ptr %141, align 8, !tbaa !36
  %143 = tail call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %142, ptr noundef %4)
  br label %144

144:                                              ; preds = %140, %._crit_edge
  %.091 = phi double [ %143, %140 ], [ 1.000000e-50, %._crit_edge ]
  %145 = load i64, ptr %92, align 8, !tbaa !32
  %146 = icmp sgt i64 %145, 0
  br i1 %146, label %.lr.ph119, label %.loopexit

.lr.ph119:                                        ; preds = %144
  %147 = getelementptr inbounds i8, ptr %3, i64 56
  %148 = getelementptr inbounds i8, ptr %0, i64 2440
  br i1 %.not.not103, label %.lr.ph113.us, label %.lr.ph119.split

.lr.ph113.us:                                     ; preds = %.lr.ph119, %._crit_edge114.us
  %149 = phi i64 [ %166, %._crit_edge114.us ], [ %145, %.lr.ph119 ]
  %.088117.us = phi i64 [ %165, %._crit_edge114.us ], [ 0, %.lr.ph119 ]
  %.089116.us = phi i64 [ %164, %._crit_edge114.us ], [ 0, %.lr.ph119 ]
  %.090115.us = phi i64 [ %163, %._crit_edge114.us ], [ 0, %.lr.ph119 ]
  %150 = load i64, ptr %132, align 8, !tbaa !35
  %151 = sub nsw i64 %149, %.090115.us
  %152 = tail call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %150, i64 noundef %151, ptr noundef %4)
  tail call void @_ZN11alglib_implL21rbfv3_computerowchunkEPKNS_13rbf3evaluatorEPKNS_9ae_vectorEPNS_19rbf3evaluatorbufferElldlPNS_8ae_stateE(ptr noundef nonnull %131, ptr noundef %1, ptr noundef nonnull %134, i64 noundef %152, i64 noundef %.089116.us, double noundef %.091, i64 noundef 0, ptr noundef %4)
  br label %153

153:                                              ; preds = %.lr.ph113.us, %153
  %.1111.us = phi i64 [ 0, %.lr.ph113.us ], [ %162, %153 ]
  %154 = load ptr, ptr %147, align 8, !tbaa !26
  %155 = getelementptr inbounds double, ptr %154, i64 %.1111.us
  %156 = load double, ptr %155, align 8, !tbaa !28
  %157 = add nuw nsw i64 %.1111.us, %.088117.us
  %158 = tail call noundef double @_ZN11alglib_impl6rdotvrElPKNS_9ae_vectorEPKNS_9ae_matrixElPNS_8ae_stateE(i64 noundef %152, ptr noundef nonnull %135, ptr noundef nonnull %148, i64 noundef %157, ptr noundef %4)
  %159 = fadd double %156, %158
  %160 = load ptr, ptr %147, align 8, !tbaa !26
  %161 = getelementptr inbounds double, ptr %160, i64 %.1111.us
  store double %159, ptr %161, align 8, !tbaa !28
  %162 = add nuw nsw i64 %.1111.us, 1
  %exitcond125.not = icmp eq i64 %162, %.fr
  br i1 %exitcond125.not, label %._crit_edge114.us, label %153, !llvm.loop !37

._crit_edge114.us:                                ; preds = %153
  %163 = add nsw i64 %152, %.090115.us
  %164 = add nsw i64 %.089116.us, %12
  %165 = add nuw nsw i64 %.088117.us, %.fr
  %166 = load i64, ptr %92, align 8, !tbaa !32
  %167 = icmp slt i64 %163, %166
  br i1 %167, label %.lr.ph113.us, label %.loopexit, !llvm.loop !38

.lr.ph119.split:                                  ; preds = %.lr.ph119, %.lr.ph119.split
  %168 = phi i64 [ %174, %.lr.ph119.split ], [ %145, %.lr.ph119 ]
  %.089116 = phi i64 [ %173, %.lr.ph119.split ], [ 0, %.lr.ph119 ]
  %.090115 = phi i64 [ %172, %.lr.ph119.split ], [ 0, %.lr.ph119 ]
  %169 = load i64, ptr %132, align 8, !tbaa !35
  %170 = sub nsw i64 %168, %.090115
  %171 = tail call noundef i64 @_ZN11alglib_impl9ae_minintEllPNS_8ae_stateE(i64 noundef %169, i64 noundef %170, ptr noundef %4)
  tail call void @_ZN11alglib_implL21rbfv3_computerowchunkEPKNS_13rbf3evaluatorEPKNS_9ae_vectorEPNS_19rbf3evaluatorbufferElldlPNS_8ae_stateE(ptr noundef nonnull %131, ptr noundef %1, ptr noundef nonnull %134, i64 noundef %171, i64 noundef %.089116, double noundef %.091, i64 noundef 0, ptr noundef %4)
  %172 = add nsw i64 %171, %.090115
  %173 = add nsw i64 %.089116, %12
  %174 = load i64, ptr %92, align 8, !tbaa !32
  %175 = icmp slt i64 %172, %174
  br i1 %175, label %.lr.ph119.split, label %.loopexit, !llvm.loop !38

.loopexit:                                        ; preds = %.lr.ph119.split, %._crit_edge114.us, %144, %._crit_edge107
  ret void
}

; 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

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 = !{!14, !7, i64 16}
!34 = distinct !{!34, !30}
!35 = !{!14, !7, i64 432}
!36 = !{!14, !15, i64 24}
!37 = distinct !{!37, !30}
!38 = distinct !{!38, !30}


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