; 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::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::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::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.798 = external hidden unnamed_addr constant [35 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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11rbfv3unpackEPNS_10rbfv3modelEPlS2_PNS_9ae_matrixES2_S4_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i8, align 1
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 0, ptr %19, align 8, !tbaa !9
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 0, ptr %20, align 8, !tbaa !9
  %21 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %21)
  %22 = load ptr, ptr %12, align 8, !tbaa !5
  store i64 0, ptr %22, align 8, !tbaa !9
  %23 = load ptr, ptr %13, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %23)
  %24 = load ptr, ptr %8, 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 !11
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  store i64 %26, ptr %27, align 8, !tbaa !9
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %28, i32 0, i32 0
  %30 = load i64, ptr %29, align 8, !tbaa !26
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  store i64 %30, ptr %31, align 8, !tbaa !9
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %32, i32 0, i32 8
  %34 = load i64, ptr %33, align 8, !tbaa !27
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  store i64 %34, ptr %35, align 8, !tbaa !9
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !26
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %40, i32 0, i32 1
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = add nsw i64 %42, 1
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %36, i64 noundef %39, i64 noundef %43, ptr noundef %44)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %62, %7
  %46 = load i64, ptr %15, align 8, !tbaa !9
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %47, i32 0, i32 0
  %49 = load i64, ptr %48, align 8, !tbaa !26
  %50 = sub nsw i64 %49, 1
  %51 = icmp sle i64 %46, %50
  br i1 %51, label %52, label %65

52:                                               ; preds = %45
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = add nsw i64 %54, 1
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %56, i32 0, i32 5
  %58 = load i64, ptr %15, align 8, !tbaa !9
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = load i64, ptr %15, align 8, !tbaa !9
  %61 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl7rcopyrrElPKNS_9ae_matrixElPS0_lPNS_8ae_stateE(i64 noundef %55, ptr noundef %57, i64 noundef %58, ptr noundef %59, i64 noundef %60, ptr noundef %61)
  br label %62

62:                                               ; preds = %52
  %63 = load i64, ptr %15, align 8, !tbaa !9
  %64 = add nsw i64 %63, 1
  store i64 %64, ptr %15, align 8, !tbaa !9
  br label %45, !llvm.loop !28

65:                                               ; preds = %45
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = icmp sgt i64 %67, 0
  br i1 %68, label %69, label %429

69:                                               ; preds = %65
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = load i64, ptr %72, align 8, !tbaa !9
  %74 = add nsw i64 %71, %73
  store i64 %74, ptr %17, align 8, !tbaa !9
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = add nsw i64 %79, %81
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = add nsw i64 %82, %84
  %86 = add nsw i64 %85, 3
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %75, i64 noundef %77, i64 noundef %86, ptr noundef %87)
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %88

88:                                               ; preds = %425, %69
  %89 = load i64, ptr %15, align 8, !tbaa !9
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = sub nsw i64 %91, 1
  %93 = icmp sle i64 %89, %92
  br i1 %93, label %94, label %428

94:                                               ; preds = %88
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %129, %94
  %96 = load i64, ptr %16, align 8, !tbaa !9
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = sub nsw i64 %98, 1
  %100 = icmp sle i64 %96, %99
  br i1 %100, label %101, label %132

101:                                              ; preds = %95
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %102, i32 0, i32 6
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !30
  %106 = load i64, ptr %15, align 8, !tbaa !9
  %107 = load i64, ptr %17, align 8, !tbaa !9
  %108 = mul nsw i64 %106, %107
  %109 = load i64, ptr %16, align 8, !tbaa !9
  %110 = add nsw i64 %108, %109
  %111 = getelementptr inbounds double, ptr %105, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !31
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %113, i32 0, i32 4
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !30
  %117 = load i64, ptr %16, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  %119 = load double, ptr %118, align 8, !tbaa !31
  %120 = fmul double %112, %119
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %121, i32 0, i32 6
  %123 = load ptr, ptr %122, align 8, !tbaa !30
  %124 = load i64, ptr %15, align 8, !tbaa !9
  %125 = getelementptr inbounds ptr, ptr %123, i64 %124
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = load i64, ptr %16, align 8, !tbaa !9
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  store double %120, ptr %128, align 8, !tbaa !31
  br label %129

129:                                              ; preds = %101
  %130 = load i64, ptr %16, align 8, !tbaa !9
  %131 = add nsw i64 %130, 1
  store i64 %131, ptr %16, align 8, !tbaa !9
  br label %95, !llvm.loop !32

132:                                              ; preds = %95
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %165, %132
  %134 = load i64, ptr %16, align 8, !tbaa !9
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = load i64, ptr %135, align 8, !tbaa !9
  %137 = sub nsw i64 %136, 1
  %138 = icmp sle i64 %134, %137
  br i1 %138, label %139, label %168

139:                                              ; preds = %133
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %140, i32 0, i32 6
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !30
  %144 = load i64, ptr %15, align 8, !tbaa !9
  %145 = load i64, ptr %17, align 8, !tbaa !9
  %146 = mul nsw i64 %144, %145
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = add nsw i64 %146, %148
  %150 = load i64, ptr %16, align 8, !tbaa !9
  %151 = add nsw i64 %149, %150
  %152 = getelementptr inbounds double, ptr %143, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !31
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %154, i32 0, i32 6
  %156 = load ptr, ptr %155, align 8, !tbaa !30
  %157 = load i64, ptr %15, align 8, !tbaa !9
  %158 = getelementptr inbounds ptr, ptr %156, i64 %157
  %159 = load ptr, ptr %158, align 8, !tbaa !5
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load i64, ptr %160, align 8, !tbaa !9
  %162 = load i64, ptr %16, align 8, !tbaa !9
  %163 = add nsw i64 %161, %162
  %164 = getelementptr inbounds double, ptr %159, i64 %163
  store double %153, ptr %164, align 8, !tbaa !31
  br label %165

165:                                              ; preds = %139
  %166 = load i64, ptr %16, align 8, !tbaa !9
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %16, align 8, !tbaa !9
  br label %133, !llvm.loop !33

168:                                              ; preds = %133
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %169

169:                                              ; preds = %197, %168
  %170 = load i64, ptr %16, align 8, !tbaa !9
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = load i64, ptr %171, align 8, !tbaa !9
  %173 = sub nsw i64 %172, 1
  %174 = icmp sle i64 %170, %173
  br i1 %174, label %175, label %200

175:                                              ; preds = %169
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %176, i32 0, i32 4
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %177, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !30
  %180 = load i64, ptr %16, align 8, !tbaa !9
  %181 = getelementptr inbounds double, ptr %179, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !31
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %183, i32 0, i32 6
  %185 = load ptr, ptr %184, align 8, !tbaa !30
  %186 = load i64, ptr %15, align 8, !tbaa !9
  %187 = getelementptr inbounds ptr, ptr %185, i64 %186
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  %190 = load i64, ptr %189, align 8, !tbaa !9
  %191 = load ptr, ptr %10, align 8, !tbaa !5
  %192 = load i64, ptr %191, align 8, !tbaa !9
  %193 = add nsw i64 %190, %192
  %194 = load i64, ptr %16, align 8, !tbaa !9
  %195 = add nsw i64 %193, %194
  %196 = getelementptr inbounds double, ptr %188, i64 %195
  store double %182, ptr %196, align 8, !tbaa !31
  br label %197

197:                                              ; preds = %175
  %198 = load i64, ptr %16, align 8, !tbaa !9
  %199 = add nsw i64 %198, 1
  store i64 %199, ptr %16, align 8, !tbaa !9
  br label %169, !llvm.loop !34

200:                                              ; preds = %169
  store i8 0, ptr %18, align 1, !tbaa !35
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %201, i32 0, i32 2
  %203 = load i64, ptr %202, align 8, !tbaa !36
  %204 = icmp eq i64 %203, 1
  br i1 %204, label %205, label %278

205:                                              ; preds = %200
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %206, i32 0, i32 3
  %208 = load double, ptr %207, align 8, !tbaa !37
  %209 = call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %208, double noundef 0.000000e+00)
  br i1 %209, label %210, label %278

210:                                              ; preds = %205
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %211, i32 0, i32 6
  %213 = load ptr, ptr %212, align 8, !tbaa !30
  %214 = load i64, ptr %15, align 8, !tbaa !9
  %215 = getelementptr inbounds ptr, ptr %213, i64 %214
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = load i64, ptr %217, align 8, !tbaa !9
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = load i64, ptr %219, align 8, !tbaa !9
  %221 = add nsw i64 %218, %220
  %222 = load ptr, ptr %9, align 8, !tbaa !5
  %223 = load i64, ptr %222, align 8, !tbaa !9
  %224 = add nsw i64 %221, %223
  %225 = add nsw i64 %224, 0
  %226 = getelementptr inbounds double, ptr %216, i64 %225
  store double 1.000000e+00, ptr %226, align 8, !tbaa !31
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %227, i32 0, i32 6
  %229 = load ptr, ptr %228, align 8, !tbaa !30
  %230 = load i64, ptr %15, align 8, !tbaa !9
  %231 = getelementptr inbounds ptr, ptr %229, i64 %230
  %232 = load ptr, ptr %231, align 8, !tbaa !5
  %233 = load ptr, ptr %9, align 8, !tbaa !5
  %234 = load i64, ptr %233, align 8, !tbaa !9
  %235 = load ptr, ptr %10, align 8, !tbaa !5
  %236 = load i64, ptr %235, align 8, !tbaa !9
  %237 = add nsw i64 %234, %236
  %238 = load ptr, ptr %9, align 8, !tbaa !5
  %239 = load i64, ptr %238, align 8, !tbaa !9
  %240 = add nsw i64 %237, %239
  %241 = add nsw i64 %240, 1
  %242 = getelementptr inbounds double, ptr %232, i64 %241
  store double 0.000000e+00, ptr %242, align 8, !tbaa !31
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %274, %210
  %244 = load i64, ptr %16, align 8, !tbaa !9
  %245 = load ptr, ptr %10, align 8, !tbaa !5
  %246 = load i64, ptr %245, align 8, !tbaa !9
  %247 = sub nsw i64 %246, 1
  %248 = icmp sle i64 %244, %247
  br i1 %248, label %249, label %277

249:                                              ; preds = %243
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %250, i32 0, i32 6
  %252 = load ptr, ptr %251, align 8, !tbaa !30
  %253 = load i64, ptr %15, align 8, !tbaa !9
  %254 = getelementptr inbounds ptr, ptr %252, i64 %253
  %255 = load ptr, ptr %254, align 8, !tbaa !5
  %256 = load ptr, ptr %9, align 8, !tbaa !5
  %257 = load i64, ptr %256, align 8, !tbaa !9
  %258 = load i64, ptr %16, align 8, !tbaa !9
  %259 = add nsw i64 %257, %258
  %260 = getelementptr inbounds double, ptr %255, i64 %259
  %261 = load double, ptr %260, align 8, !tbaa !31
  %262 = fneg double %261
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %263, i32 0, i32 6
  %265 = load ptr, ptr %264, align 8, !tbaa !30
  %266 = load i64, ptr %15, align 8, !tbaa !9
  %267 = getelementptr inbounds ptr, ptr %265, i64 %266
  %268 = load ptr, ptr %267, align 8, !tbaa !5
  %269 = load ptr, ptr %9, align 8, !tbaa !5
  %270 = load i64, ptr %269, align 8, !tbaa !9
  %271 = load i64, ptr %16, align 8, !tbaa !9
  %272 = add nsw i64 %270, %271
  %273 = getelementptr inbounds double, ptr %268, i64 %272
  store double %262, ptr %273, align 8, !tbaa !31
  br label %274

274:                                              ; preds = %249
  %275 = load i64, ptr %16, align 8, !tbaa !9
  %276 = add nsw i64 %275, 1
  store i64 %276, ptr %16, align 8, !tbaa !9
  br label %243, !llvm.loop !38

277:                                              ; preds = %243
  store i8 1, ptr %18, align 1, !tbaa !35
  br label %278

278:                                              ; preds = %277, %205, %200
  %279 = load ptr, ptr %8, align 8, !tbaa !5
  %280 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %279, i32 0, i32 2
  %281 = load i64, ptr %280, align 8, !tbaa !36
  %282 = icmp eq i64 %281, 1
  br i1 %282, label %283, label %359

283:                                              ; preds = %278
  %284 = load ptr, ptr %8, align 8, !tbaa !5
  %285 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %284, i32 0, i32 3
  %286 = load double, ptr %285, align 8, !tbaa !37
  %287 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %286, double noundef 0.000000e+00)
  br i1 %287, label %288, label %359

288:                                              ; preds = %283
  %289 = load ptr, ptr %11, align 8, !tbaa !5
  %290 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %289, i32 0, i32 6
  %291 = load ptr, ptr %290, align 8, !tbaa !30
  %292 = load i64, ptr %15, align 8, !tbaa !9
  %293 = getelementptr inbounds ptr, ptr %291, i64 %292
  %294 = load ptr, ptr %293, align 8, !tbaa !5
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  %296 = load i64, ptr %295, align 8, !tbaa !9
  %297 = load ptr, ptr %10, align 8, !tbaa !5
  %298 = load i64, ptr %297, align 8, !tbaa !9
  %299 = add nsw i64 %296, %298
  %300 = load ptr, ptr %9, align 8, !tbaa !5
  %301 = load i64, ptr %300, align 8, !tbaa !9
  %302 = add nsw i64 %299, %301
  %303 = add nsw i64 %302, 0
  %304 = getelementptr inbounds double, ptr %294, i64 %303
  store double 1.000000e+01, ptr %304, align 8, !tbaa !31
  %305 = load ptr, ptr %8, align 8, !tbaa !5
  %306 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %305, i32 0, i32 3
  %307 = load double, ptr %306, align 8, !tbaa !37
  %308 = load ptr, ptr %11, align 8, !tbaa !5
  %309 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %308, i32 0, i32 6
  %310 = load ptr, ptr %309, align 8, !tbaa !30
  %311 = load i64, ptr %15, align 8, !tbaa !9
  %312 = getelementptr inbounds ptr, ptr %310, i64 %311
  %313 = load ptr, ptr %312, align 8, !tbaa !5
  %314 = load ptr, ptr %9, align 8, !tbaa !5
  %315 = load i64, ptr %314, align 8, !tbaa !9
  %316 = load ptr, ptr %10, align 8, !tbaa !5
  %317 = load i64, ptr %316, align 8, !tbaa !9
  %318 = add nsw i64 %315, %317
  %319 = load ptr, ptr %9, align 8, !tbaa !5
  %320 = load i64, ptr %319, align 8, !tbaa !9
  %321 = add nsw i64 %318, %320
  %322 = add nsw i64 %321, 1
  %323 = getelementptr inbounds double, ptr %313, i64 %322
  store double %307, ptr %323, align 8, !tbaa !31
  store i64 0, ptr %16, align 8, !tbaa !9
  br label %324

324:                                              ; preds = %355, %288
  %325 = load i64, ptr %16, align 8, !tbaa !9
  %326 = load ptr, ptr %10, align 8, !tbaa !5
  %327 = load i64, ptr %326, align 8, !tbaa !9
  %328 = sub nsw i64 %327, 1
  %329 = icmp sle i64 %325, %328
  br i1 %329, label %330, label %358

330:                                              ; preds = %324
  %331 = load ptr, ptr %11, align 8, !tbaa !5
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %331, i32 0, i32 6
  %333 = load ptr, ptr %332, align 8, !tbaa !30
  %334 = load i64, ptr %15, align 8, !tbaa !9
  %335 = getelementptr inbounds ptr, ptr %333, i64 %334
  %336 = load ptr, ptr %335, align 8, !tbaa !5
  %337 = load ptr, ptr %9, align 8, !tbaa !5
  %338 = load i64, ptr %337, align 8, !tbaa !9
  %339 = load i64, ptr %16, align 8, !tbaa !9
  %340 = add nsw i64 %338, %339
  %341 = getelementptr inbounds double, ptr %336, i64 %340
  %342 = load double, ptr %341, align 8, !tbaa !31
  %343 = fneg double %342
  %344 = load ptr, ptr %11, align 8, !tbaa !5
  %345 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %344, i32 0, i32 6
  %346 = load ptr, ptr %345, align 8, !tbaa !30
  %347 = load i64, ptr %15, align 8, !tbaa !9
  %348 = getelementptr inbounds ptr, ptr %346, i64 %347
  %349 = load ptr, ptr %348, align 8, !tbaa !5
  %350 = load ptr, ptr %9, align 8, !tbaa !5
  %351 = load i64, ptr %350, align 8, !tbaa !9
  %352 = load i64, ptr %16, align 8, !tbaa !9
  %353 = add nsw i64 %351, %352
  %354 = getelementptr inbounds double, ptr %349, i64 %353
  store double %343, ptr %354, align 8, !tbaa !31
  br label %355

355:                                              ; preds = %330
  %356 = load i64, ptr %16, align 8, !tbaa !9
  %357 = add nsw i64 %356, 1
  store i64 %357, ptr %16, align 8, !tbaa !9
  br label %324, !llvm.loop !39

358:                                              ; preds = %324
  store i8 1, ptr %18, align 1, !tbaa !35
  br label %359

359:                                              ; preds = %358, %283, %278
  %360 = load ptr, ptr %8, align 8, !tbaa !5
  %361 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %360, i32 0, i32 2
  %362 = load i64, ptr %361, align 8, !tbaa !36
  %363 = icmp eq i64 %362, 2
  br i1 %363, label %364, label %397

364:                                              ; preds = %359
  %365 = load ptr, ptr %11, align 8, !tbaa !5
  %366 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %365, i32 0, i32 6
  %367 = load ptr, ptr %366, align 8, !tbaa !30
  %368 = load i64, ptr %15, align 8, !tbaa !9
  %369 = getelementptr inbounds ptr, ptr %367, i64 %368
  %370 = load ptr, ptr %369, align 8, !tbaa !5
  %371 = load ptr, ptr %9, align 8, !tbaa !5
  %372 = load i64, ptr %371, align 8, !tbaa !9
  %373 = load ptr, ptr %10, align 8, !tbaa !5
  %374 = load i64, ptr %373, align 8, !tbaa !9
  %375 = add nsw i64 %372, %374
  %376 = load ptr, ptr %9, align 8, !tbaa !5
  %377 = load i64, ptr %376, align 8, !tbaa !9
  %378 = add nsw i64 %375, %377
  %379 = add nsw i64 %378, 0
  %380 = getelementptr inbounds double, ptr %370, i64 %379
  store double 2.000000e+00, ptr %380, align 8, !tbaa !31
  %381 = load ptr, ptr %11, align 8, !tbaa !5
  %382 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %381, i32 0, i32 6
  %383 = load ptr, ptr %382, align 8, !tbaa !30
  %384 = load i64, ptr %15, align 8, !tbaa !9
  %385 = getelementptr inbounds ptr, ptr %383, i64 %384
  %386 = load ptr, ptr %385, align 8, !tbaa !5
  %387 = load ptr, ptr %9, align 8, !tbaa !5
  %388 = load i64, ptr %387, align 8, !tbaa !9
  %389 = load ptr, ptr %10, align 8, !tbaa !5
  %390 = load i64, ptr %389, align 8, !tbaa !9
  %391 = add nsw i64 %388, %390
  %392 = load ptr, ptr %9, align 8, !tbaa !5
  %393 = load i64, ptr %392, align 8, !tbaa !9
  %394 = add nsw i64 %391, %393
  %395 = add nsw i64 %394, 1
  %396 = getelementptr inbounds double, ptr %386, i64 %395
  store double 0.000000e+00, ptr %396, align 8, !tbaa !31
  store i8 1, ptr %18, align 1, !tbaa !35
  br label %397

397:                                              ; preds = %364, %359
  %398 = load i8, ptr %18, align 1, !tbaa !35, !range !40, !noundef !41
  %399 = trunc i8 %398 to i1
  %400 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %399, ptr noundef @.str.798, ptr noundef %400)
  %401 = load ptr, ptr %8, align 8, !tbaa !5
  %402 = getelementptr inbounds %"struct.alglib_impl::rbfv3model", ptr %401, i32 0, i32 7
  %403 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %402, i32 0, i32 4
  %404 = load ptr, ptr %403, align 8, !tbaa !30
  %405 = load i64, ptr %15, align 8, !tbaa !9
  %406 = getelementptr inbounds i64, ptr %404, i64 %405
  %407 = load i64, ptr %406, align 8, !tbaa !9
  %408 = sitofp i64 %407 to double
  %409 = load ptr, ptr %11, align 8, !tbaa !5
  %410 = getelementptr inbounds %"struct.alglib_impl::ae_matrix", ptr %409, i32 0, i32 6
  %411 = load ptr, ptr %410, align 8, !tbaa !30
  %412 = load i64, ptr %15, align 8, !tbaa !9
  %413 = getelementptr inbounds ptr, ptr %411, i64 %412
  %414 = load ptr, ptr %413, align 8, !tbaa !5
  %415 = load ptr, ptr %9, align 8, !tbaa !5
  %416 = load i64, ptr %415, align 8, !tbaa !9
  %417 = load ptr, ptr %10, align 8, !tbaa !5
  %418 = load i64, ptr %417, align 8, !tbaa !9
  %419 = add nsw i64 %416, %418
  %420 = load ptr, ptr %9, align 8, !tbaa !5
  %421 = load i64, ptr %420, align 8, !tbaa !9
  %422 = add nsw i64 %419, %421
  %423 = add nsw i64 %422, 2
  %424 = getelementptr inbounds double, ptr %414, i64 %423
  store double %408, ptr %424, align 8, !tbaa !31
  br label %425

425:                                              ; preds = %397
  %426 = load i64, ptr %15, align 8, !tbaa !9
  %427 = add nsw i64 %426, 1
  store i64 %427, ptr %15, align 8, !tbaa !9
  br label %88, !llvm.loop !42

428:                                              ; preds = %88
  br label %429

429:                                              ; preds = %428, %65
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  ret void
}

declare void @_ZN11alglib_impl7rcopyrrElPKNS_9ae_matrixElPS0_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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !10, i64 0, !10, i64 8, !10, i64 16, !13, i64 24, !14, i64 32, !17, i64 96, !14, i64 176, !14, i64 240, !10, i64 304, !18, i64 312, !21, i64 864, !17, i64 2440, !24, i64 2520, !15, i64 3720, !13, i64 3728}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !15, i64 32, !16, i64 40, !7, i64 72}
!18 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !10, i64 0, !10, i64 8, !17, i64 16, !10, i64 96, !10, i64 104, !13, i64 112, !10, i64 120, !14, i64 128, !17, i64 192, !17, i64 272, !19, i64 352, !14, i64 488}
!19 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !20, i64 0, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !16, i64 104}
!20 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !16, i64 8, !15, i64 40}
!21 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !13, i64 40, !17, i64 48, !14, i64 128, !17, i64 192, !15, i64 272, !22, i64 280, !23, i64 416, !19, i64 1328, !17, i64 1464, !15, i64 1544, !10, i64 1552, !10, i64 1560, !10, i64 1568}
!22 = !{!"_ZTSN11alglib_impl12ae_obj_arrayE", !10, i64 0, !10, i64 8, !15, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !20, i64 56, !16, i64 104}
!23 = !{!"_ZTSN11alglib_impl19biharmonicevaluatorE", !10, i64 0, !10, i64 8, !14, i64 16, !14, i64 80, !14, i64 144, !14, i64 208, !14, i64 272, !14, i64 336, !14, i64 400, !14, i64 464, !14, i64 528, !14, i64 592, !14, i64 656, !14, i64 720, !14, i64 784, !14, i64 848}
!24 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !14, i64 0, !25, i64 64, !14, i64 784, !14, i64 848, !17, i64 912, !17, i64 992, !14, i64 1072, !14, i64 1136}
!25 = !{!"_ZTSN11alglib_impl19rbf3evaluatorbufferE", !14, i64 0, !14, i64 64, !14, i64 128, !14, i64 192, !14, i64 256, !14, i64 320, !14, i64 384, !14, i64 448, !14, i64 512, !14, i64 576, !17, i64 640}
!26 = !{!12, !10, i64 0}
!27 = !{!12, !10, i64 304}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!7, !7, i64 0}
!31 = !{!13, !13, i64 0}
!32 = distinct !{!32, !29}
!33 = distinct !{!33, !29}
!34 = distinct !{!34, !29}
!35 = !{!15, !15, i64 0}
!36 = !{!12, !10, i64 16}
!37 = !{!12, !13, i64 24}
!38 = distinct !{!38, !29}
!39 = distinct !{!39, !29}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = distinct !{!42, !29}


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

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

declare void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl11rbfv3unpackEPNS_10rbfv3modelEPlS2_PNS_9ae_matrixES2_S4_PNS_8ae_stateE(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef %2, ptr noundef %3, ptr nocapture noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  store i64 0, ptr %1, align 8, !tbaa !5
  store i64 0, ptr %2, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %3)
  store i64 0, ptr %4, align 8, !tbaa !5
  tail call void @_ZN11alglib_impl15ae_matrix_clearEPNS_9ae_matrixE(ptr noundef %5)
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i64, ptr %8, align 8, !tbaa !9
  store i64 %9, ptr %1, align 8, !tbaa !5
  %10 = load i64, ptr %0, align 8, !tbaa !25
  store i64 %10, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 304
  %12 = load i64, ptr %11, align 8, !tbaa !26
  store i64 %12, ptr %4, align 8, !tbaa !5
  %13 = load i64, ptr %0, align 8, !tbaa !25
  %14 = load i64, ptr %8, align 8, !tbaa !9
  %15 = add nsw i64 %14, 1
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %5, i64 noundef %13, i64 noundef %15, ptr noundef %6)
  %16 = load i64, ptr %0, align 8, !tbaa !25
  %.not.not161 = icmp sgt i64 %16, 0
  br i1 %.not.not161, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  br label %18

18:                                               ; preds = %.lr.ph, %18
  %.0136162 = phi i64 [ 0, %.lr.ph ], [ %21, %18 ]
  %19 = load i64, ptr %1, align 8, !tbaa !5
  %20 = add nsw i64 %19, 1
  tail call void @_ZN11alglib_impl7rcopyrrElPKNS_9ae_matrixElPS0_lPNS_8ae_stateE(i64 noundef %20, ptr noundef nonnull %17, i64 noundef %.0136162, ptr noundef %5, i64 noundef %.0136162, ptr noundef %6)
  %21 = add nuw nsw i64 %.0136162, 1
  %22 = load i64, ptr %0, align 8, !tbaa !25
  %.not.not = icmp slt i64 %21, %22
  br i1 %.not.not, label %18, label %._crit_edge, !llvm.loop !27

._crit_edge:                                      ; preds = %18, %7
  %23 = load i64, ptr %4, align 8, !tbaa !5
  %24 = icmp sgt i64 %23, 0
  br i1 %24, label %25, label %.loopexit159

25:                                               ; preds = %._crit_edge
  %26 = load i64, ptr %1, align 8, !tbaa !5
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = add nsw i64 %27, %26
  %29 = add i64 %26, 3
  %30 = add i64 %29, %28
  tail call void @_ZN11alglib_impl20ae_matrix_set_lengthEPNS_9ae_matrixEllPNS_8ae_stateE(ptr noundef %3, i64 noundef %23, i64 noundef %30, ptr noundef %6)
  %31 = load i64, ptr %4, align 8, !tbaa !5
  %.not.not142182 = icmp sgt i64 %31, 0
  br i1 %.not.not142182, label %.preheader158.lr.ph, label %.loopexit159

.preheader158.lr.ph:                              ; preds = %25
  %32 = getelementptr inbounds i8, ptr %0, i64 232
  %33 = getelementptr inbounds i8, ptr %0, i64 88
  %34 = getelementptr inbounds i8, ptr %3, i64 72
  %35 = getelementptr inbounds i8, ptr %0, i64 16
  %36 = getelementptr inbounds i8, ptr %0, i64 24
  %37 = getelementptr inbounds i8, ptr %0, i64 296
  %.pre = load i64, ptr %1, align 8, !tbaa !5
  br label %.preheader158

.preheader158:                                    ; preds = %.preheader158.lr.ph, %248
  %38 = phi i64 [ %.pre, %.preheader158.lr.ph ], [ %256, %248 ]
  %.1137183 = phi i64 [ 0, %.preheader158.lr.ph ], [ %261, %248 ]
  %.not.not143163 = icmp sgt i64 %38, 0
  br i1 %.not.not143163, label %.lr.ph165, label %.preheader157

.lr.ph165:                                        ; preds = %.preheader158
  %39 = mul nsw i64 %.1137183, %28
  %xtraiter = and i64 %38, 1
  %40 = icmp eq i64 %38, 1
  br i1 %40, label %.preheader157.loopexit.unr-lcssa, label %.lr.ph165.new

.lr.ph165.new:                                    ; preds = %.lr.ph165
  %unroll_iter = and i64 %38, 9223372036854775806
  br label %56

.preheader157.loopexit.unr-lcssa:                 ; preds = %56, %.lr.ph165
  %.0138164.unr = phi i64 [ 0, %.lr.ph165 ], [ %82, %56 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader157, label %.preheader157.loopexit.epilog-lcssa

.preheader157.loopexit.epilog-lcssa:              ; preds = %.preheader157.loopexit.unr-lcssa
  %41 = load ptr, ptr %32, align 8, !tbaa !29
  %42 = getelementptr double, ptr %41, i64 %39
  %43 = getelementptr double, ptr %42, i64 %.0138164.unr
  %44 = load double, ptr %43, align 8, !tbaa !30
  %45 = load ptr, ptr %33, align 8, !tbaa !29
  %46 = getelementptr inbounds double, ptr %45, i64 %.0138164.unr
  %47 = load double, ptr %46, align 8, !tbaa !30
  %48 = fmul double %44, %47
  %49 = load ptr, ptr %34, align 8, !tbaa !29
  %50 = getelementptr inbounds ptr, ptr %49, i64 %.1137183
  %51 = load ptr, ptr %50, align 8, !tbaa !31
  %52 = getelementptr inbounds double, ptr %51, i64 %.0138164.unr
  store double %48, ptr %52, align 8, !tbaa !30
  br label %.preheader157

.preheader157:                                    ; preds = %.preheader157.loopexit.epilog-lcssa, %.preheader157.loopexit.unr-lcssa, %.preheader158
  %53 = load i64, ptr %2, align 8, !tbaa !5
  %.not.not144166 = icmp sgt i64 %53, 0
  br i1 %.not.not144166, label %.lr.ph168, label %.preheader

.lr.ph168:                                        ; preds = %.preheader157
  %54 = mul nsw i64 %.1137183, %28
  %xtraiter192 = and i64 %53, 1
  %55 = icmp eq i64 %53, 1
  br i1 %55, label %.preheader.loopexit.unr-lcssa, label %.lr.ph168.new

.lr.ph168.new:                                    ; preds = %.lr.ph168
  %unroll_iter194 = and i64 %53, 9223372036854775806
  br label %94

56:                                               ; preds = %56, %.lr.ph165.new
  %.0138164 = phi i64 [ 0, %.lr.ph165.new ], [ %82, %56 ]
  %niter = phi i64 [ 0, %.lr.ph165.new ], [ %niter.next.1, %56 ]
  %57 = load ptr, ptr %32, align 8, !tbaa !29
  %58 = getelementptr double, ptr %57, i64 %39
  %59 = getelementptr double, ptr %58, i64 %.0138164
  %60 = load double, ptr %59, align 8, !tbaa !30
  %61 = load ptr, ptr %33, align 8, !tbaa !29
  %62 = getelementptr inbounds double, ptr %61, i64 %.0138164
  %63 = load double, ptr %62, align 8, !tbaa !30
  %64 = fmul double %60, %63
  %65 = load ptr, ptr %34, align 8, !tbaa !29
  %66 = getelementptr inbounds ptr, ptr %65, i64 %.1137183
  %67 = load ptr, ptr %66, align 8, !tbaa !31
  %68 = getelementptr inbounds double, ptr %67, i64 %.0138164
  store double %64, ptr %68, align 8, !tbaa !30
  %69 = or disjoint i64 %.0138164, 1
  %70 = load ptr, ptr %32, align 8, !tbaa !29
  %71 = getelementptr double, ptr %70, i64 %39
  %72 = getelementptr double, ptr %71, i64 %69
  %73 = load double, ptr %72, align 8, !tbaa !30
  %74 = load ptr, ptr %33, align 8, !tbaa !29
  %75 = getelementptr inbounds double, ptr %74, i64 %69
  %76 = load double, ptr %75, align 8, !tbaa !30
  %77 = fmul double %73, %76
  %78 = load ptr, ptr %34, align 8, !tbaa !29
  %79 = getelementptr inbounds ptr, ptr %78, i64 %.1137183
  %80 = load ptr, ptr %79, align 8, !tbaa !31
  %81 = getelementptr inbounds double, ptr %80, i64 %69
  store double %77, ptr %81, align 8, !tbaa !30
  %82 = add nuw nsw i64 %.0138164, 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 %.preheader157.loopexit.unr-lcssa, label %56, !llvm.loop !32

.preheader.loopexit.unr-lcssa:                    ; preds = %94, %.lr.ph168
  %.1139167.unr = phi i64 [ 0, %.lr.ph168 ], [ %116, %94 ]
  %lcmp.mod193.not = icmp eq i64 %xtraiter192, 0
  br i1 %lcmp.mod193.not, label %.preheader, label %.preheader.loopexit.epilog-lcssa

.preheader.loopexit.epilog-lcssa:                 ; preds = %.preheader.loopexit.unr-lcssa
  %83 = load ptr, ptr %32, align 8, !tbaa !29
  %84 = getelementptr double, ptr %83, i64 %54
  %85 = getelementptr double, ptr %84, i64 %38
  %86 = getelementptr double, ptr %85, i64 %.1139167.unr
  %87 = load double, ptr %86, align 8, !tbaa !30
  %88 = load ptr, ptr %34, align 8, !tbaa !29
  %89 = getelementptr inbounds ptr, ptr %88, i64 %.1137183
  %90 = load ptr, ptr %89, align 8, !tbaa !31
  %91 = getelementptr double, ptr %90, i64 %38
  %92 = getelementptr double, ptr %91, i64 %.1139167.unr
  store double %87, ptr %92, align 8, !tbaa !30
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit.epilog-lcssa, %.preheader.loopexit.unr-lcssa, %.preheader157
  br i1 %.not.not143163, label %.lr.ph172.preheader, label %._crit_edge173

.lr.ph172.preheader:                              ; preds = %.preheader
  %xtraiter196 = and i64 %38, 1
  %93 = icmp eq i64 %38, 1
  br i1 %93, label %._crit_edge173.loopexit.unr-lcssa, label %.lr.ph172.preheader.new

.lr.ph172.preheader.new:                          ; preds = %.lr.ph172.preheader
  %unroll_iter198 = and i64 %38, 9223372036854775806
  br label %.lr.ph172

94:                                               ; preds = %94, %.lr.ph168.new
  %.1139167 = phi i64 [ 0, %.lr.ph168.new ], [ %116, %94 ]
  %niter195 = phi i64 [ 0, %.lr.ph168.new ], [ %niter195.next.1, %94 ]
  %95 = load ptr, ptr %32, align 8, !tbaa !29
  %96 = getelementptr double, ptr %95, i64 %54
  %97 = getelementptr double, ptr %96, i64 %38
  %98 = getelementptr double, ptr %97, i64 %.1139167
  %99 = load double, ptr %98, align 8, !tbaa !30
  %100 = load ptr, ptr %34, align 8, !tbaa !29
  %101 = getelementptr inbounds ptr, ptr %100, i64 %.1137183
  %102 = load ptr, ptr %101, align 8, !tbaa !31
  %103 = getelementptr double, ptr %102, i64 %38
  %104 = getelementptr double, ptr %103, i64 %.1139167
  store double %99, ptr %104, align 8, !tbaa !30
  %105 = or disjoint i64 %.1139167, 1
  %106 = load ptr, ptr %32, align 8, !tbaa !29
  %107 = getelementptr double, ptr %106, i64 %54
  %108 = getelementptr double, ptr %107, i64 %38
  %109 = getelementptr double, ptr %108, i64 %105
  %110 = load double, ptr %109, align 8, !tbaa !30
  %111 = load ptr, ptr %34, align 8, !tbaa !29
  %112 = getelementptr inbounds ptr, ptr %111, i64 %.1137183
  %113 = load ptr, ptr %112, align 8, !tbaa !31
  %114 = getelementptr double, ptr %113, i64 %38
  %115 = getelementptr double, ptr %114, i64 %105
  store double %110, ptr %115, align 8, !tbaa !30
  %116 = add nuw nsw i64 %.1139167, 2
  %niter195.next.1 = add i64 %niter195, 2
  %niter195.ncmp.1 = icmp eq i64 %niter195.next.1, %unroll_iter194
  br i1 %niter195.ncmp.1, label %.preheader.loopexit.unr-lcssa, label %94, !llvm.loop !33

.lr.ph172:                                        ; preds = %.lr.ph172, %.lr.ph172.preheader.new
  %.2140171 = phi i64 [ 0, %.lr.ph172.preheader.new ], [ %136, %.lr.ph172 ]
  %niter199 = phi i64 [ 0, %.lr.ph172.preheader.new ], [ %niter199.next.1, %.lr.ph172 ]
  %117 = load ptr, ptr %33, align 8, !tbaa !29
  %118 = getelementptr inbounds double, ptr %117, i64 %.2140171
  %119 = load double, ptr %118, align 8, !tbaa !30
  %120 = load ptr, ptr %34, align 8, !tbaa !29
  %121 = getelementptr inbounds ptr, ptr %120, i64 %.1137183
  %122 = load ptr, ptr %121, align 8, !tbaa !31
  %123 = getelementptr double, ptr %122, i64 %38
  %124 = getelementptr double, ptr %123, i64 %53
  %125 = getelementptr double, ptr %124, i64 %.2140171
  store double %119, ptr %125, align 8, !tbaa !30
  %126 = or disjoint i64 %.2140171, 1
  %127 = load ptr, ptr %33, align 8, !tbaa !29
  %128 = getelementptr inbounds double, ptr %127, i64 %126
  %129 = load double, ptr %128, align 8, !tbaa !30
  %130 = load ptr, ptr %34, align 8, !tbaa !29
  %131 = getelementptr inbounds ptr, ptr %130, i64 %.1137183
  %132 = load ptr, ptr %131, align 8, !tbaa !31
  %133 = getelementptr double, ptr %132, i64 %38
  %134 = getelementptr double, ptr %133, i64 %53
  %135 = getelementptr double, ptr %134, i64 %126
  store double %129, ptr %135, align 8, !tbaa !30
  %136 = add nuw nsw i64 %.2140171, 2
  %niter199.next.1 = add i64 %niter199, 2
  %niter199.ncmp.1 = icmp eq i64 %niter199.next.1, %unroll_iter198
  br i1 %niter199.ncmp.1, label %._crit_edge173.loopexit.unr-lcssa, label %.lr.ph172, !llvm.loop !34

._crit_edge173.loopexit.unr-lcssa:                ; preds = %.lr.ph172, %.lr.ph172.preheader
  %.2140171.unr = phi i64 [ 0, %.lr.ph172.preheader ], [ %136, %.lr.ph172 ]
  %lcmp.mod197.not = icmp eq i64 %xtraiter196, 0
  br i1 %lcmp.mod197.not, label %._crit_edge173, label %.lr.ph172.epil

.lr.ph172.epil:                                   ; preds = %._crit_edge173.loopexit.unr-lcssa
  %137 = load ptr, ptr %33, align 8, !tbaa !29
  %138 = getelementptr inbounds double, ptr %137, i64 %.2140171.unr
  %139 = load double, ptr %138, align 8, !tbaa !30
  %140 = load ptr, ptr %34, align 8, !tbaa !29
  %141 = getelementptr inbounds ptr, ptr %140, i64 %.1137183
  %142 = load ptr, ptr %141, align 8, !tbaa !31
  %143 = getelementptr double, ptr %142, i64 %38
  %144 = getelementptr double, ptr %143, i64 %53
  %145 = getelementptr double, ptr %144, i64 %.2140171.unr
  store double %139, ptr %145, align 8, !tbaa !30
  br label %._crit_edge173

._crit_edge173:                                   ; preds = %.lr.ph172.epil, %._crit_edge173.loopexit.unr-lcssa, %.preheader
  %146 = load i64, ptr %35, align 8, !tbaa !35
  %147 = icmp eq i64 %146, 1
  br i1 %147, label %148, label %.thread

148:                                              ; preds = %._crit_edge173
  %149 = load double, ptr %36, align 8, !tbaa !36
  %150 = tail call noundef zeroext i1 @_ZN11alglib_impl8ae_fp_eqEdd(double noundef %149, double noundef 0.000000e+00)
  br i1 %150, label %151, label %.loopexit

151:                                              ; preds = %148
  %152 = load ptr, ptr %34, align 8, !tbaa !29
  %153 = getelementptr inbounds ptr, ptr %152, i64 %.1137183
  %154 = load ptr, ptr %153, align 8, !tbaa !31
  %155 = load i64, ptr %1, align 8, !tbaa !5
  %156 = load i64, ptr %2, align 8, !tbaa !5
  %157 = getelementptr double, ptr %154, i64 %156
  %.idx = shl i64 %155, 4
  %158 = getelementptr i8, ptr %157, i64 %.idx
  store double 1.000000e+00, ptr %158, align 8, !tbaa !30
  %159 = load ptr, ptr %34, align 8, !tbaa !29
  %160 = getelementptr inbounds ptr, ptr %159, i64 %.1137183
  %161 = load ptr, ptr %160, align 8, !tbaa !31
  %162 = getelementptr double, ptr %161, i64 %156
  %163 = getelementptr i8, ptr %162, i64 %.idx
  %164 = getelementptr i8, ptr %163, i64 8
  store double 0.000000e+00, ptr %164, align 8, !tbaa !30
  %.not.not147174 = icmp sgt i64 %156, 0
  br i1 %.not.not147174, label %.lr.ph177.preheader, label %.loopexit

.lr.ph177.preheader:                              ; preds = %151
  %xtraiter200 = and i64 %156, 1
  %165 = icmp eq i64 %156, 1
  br i1 %165, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph177.preheader.new

.lr.ph177.preheader.new:                          ; preds = %.lr.ph177.preheader
  %unroll_iter202 = and i64 %156, 9223372036854775806
  br label %.lr.ph177

.lr.ph177:                                        ; preds = %.lr.ph177, %.lr.ph177.preheader.new
  %.3175 = phi i64 [ 0, %.lr.ph177.preheader.new ], [ %181, %.lr.ph177 ]
  %niter203 = phi i64 [ 0, %.lr.ph177.preheader.new ], [ %niter203.next.1, %.lr.ph177 ]
  %166 = load ptr, ptr %34, align 8, !tbaa !29
  %167 = getelementptr inbounds ptr, ptr %166, i64 %.1137183
  %168 = load ptr, ptr %167, align 8, !tbaa !31
  %169 = getelementptr double, ptr %168, i64 %155
  %170 = getelementptr double, ptr %169, i64 %.3175
  %171 = load double, ptr %170, align 8, !tbaa !30
  %172 = fneg double %171
  store double %172, ptr %170, align 8, !tbaa !30
  %173 = or disjoint i64 %.3175, 1
  %174 = load ptr, ptr %34, align 8, !tbaa !29
  %175 = getelementptr inbounds ptr, ptr %174, i64 %.1137183
  %176 = load ptr, ptr %175, align 8, !tbaa !31
  %177 = getelementptr double, ptr %176, i64 %155
  %178 = getelementptr double, ptr %177, i64 %173
  %179 = load double, ptr %178, align 8, !tbaa !30
  %180 = fneg double %179
  store double %180, ptr %178, align 8, !tbaa !30
  %181 = add nuw nsw i64 %.3175, 2
  %niter203.next.1 = add i64 %niter203, 2
  %niter203.ncmp.1 = icmp eq i64 %niter203.next.1, %unroll_iter202
  br i1 %niter203.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph177, !llvm.loop !37

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph177, %.lr.ph177.preheader
  %.3175.unr = phi i64 [ 0, %.lr.ph177.preheader ], [ %181, %.lr.ph177 ]
  %lcmp.mod201.not = icmp eq i64 %xtraiter200, 0
  br i1 %lcmp.mod201.not, label %.loopexit, label %.lr.ph177.epil

.lr.ph177.epil:                                   ; preds = %.loopexit.loopexit.unr-lcssa
  %182 = load ptr, ptr %34, align 8, !tbaa !29
  %183 = getelementptr inbounds ptr, ptr %182, i64 %.1137183
  %184 = load ptr, ptr %183, align 8, !tbaa !31
  %185 = getelementptr double, ptr %184, i64 %155
  %186 = getelementptr double, ptr %185, i64 %.3175.unr
  %187 = load double, ptr %186, align 8, !tbaa !30
  %188 = fneg double %187
  store double %188, ptr %186, align 8, !tbaa !30
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph177.epil, %.loopexit.loopexit.unr-lcssa, %151, %148
  %.pr = load i64, ptr %35, align 8, !tbaa !35
  %189 = icmp eq i64 %.pr, 1
  br i1 %189, label %190, label %.thread

190:                                              ; preds = %.loopexit
  %191 = load double, ptr %36, align 8, !tbaa !36
  %192 = tail call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %191, double noundef 0.000000e+00)
  br i1 %192, label %193, label %thread-pre-split155

193:                                              ; preds = %190
  %194 = load ptr, ptr %34, align 8, !tbaa !29
  %195 = getelementptr inbounds ptr, ptr %194, i64 %.1137183
  %196 = load ptr, ptr %195, align 8, !tbaa !31
  %197 = load i64, ptr %1, align 8, !tbaa !5
  %198 = load i64, ptr %2, align 8, !tbaa !5
  %199 = getelementptr double, ptr %196, i64 %198
  %.idx148 = shl i64 %197, 4
  %200 = getelementptr i8, ptr %199, i64 %.idx148
  store double 1.000000e+01, ptr %200, align 8, !tbaa !30
  %201 = load double, ptr %36, align 8, !tbaa !36
  %202 = load ptr, ptr %34, align 8, !tbaa !29
  %203 = getelementptr inbounds ptr, ptr %202, i64 %.1137183
  %204 = load ptr, ptr %203, align 8, !tbaa !31
  %205 = getelementptr double, ptr %204, i64 %198
  %206 = getelementptr i8, ptr %205, i64 %.idx148
  %207 = getelementptr i8, ptr %206, i64 8
  store double %201, ptr %207, align 8, !tbaa !30
  %.not.not150178 = icmp sgt i64 %198, 0
  br i1 %.not.not150178, label %.lr.ph181.preheader, label %thread-pre-split155

.lr.ph181.preheader:                              ; preds = %193
  %xtraiter204 = and i64 %198, 1
  %208 = icmp eq i64 %198, 1
  br i1 %208, label %thread-pre-split155.loopexit.unr-lcssa, label %.lr.ph181.preheader.new

.lr.ph181.preheader.new:                          ; preds = %.lr.ph181.preheader
  %unroll_iter206 = and i64 %198, 9223372036854775806
  br label %.lr.ph181

.lr.ph181:                                        ; preds = %.lr.ph181, %.lr.ph181.preheader.new
  %.4179 = phi i64 [ 0, %.lr.ph181.preheader.new ], [ %224, %.lr.ph181 ]
  %niter207 = phi i64 [ 0, %.lr.ph181.preheader.new ], [ %niter207.next.1, %.lr.ph181 ]
  %209 = load ptr, ptr %34, align 8, !tbaa !29
  %210 = getelementptr inbounds ptr, ptr %209, i64 %.1137183
  %211 = load ptr, ptr %210, align 8, !tbaa !31
  %212 = getelementptr double, ptr %211, i64 %197
  %213 = getelementptr double, ptr %212, i64 %.4179
  %214 = load double, ptr %213, align 8, !tbaa !30
  %215 = fneg double %214
  store double %215, ptr %213, align 8, !tbaa !30
  %216 = or disjoint i64 %.4179, 1
  %217 = load ptr, ptr %34, align 8, !tbaa !29
  %218 = getelementptr inbounds ptr, ptr %217, i64 %.1137183
  %219 = load ptr, ptr %218, align 8, !tbaa !31
  %220 = getelementptr double, ptr %219, i64 %197
  %221 = getelementptr double, ptr %220, i64 %216
  %222 = load double, ptr %221, align 8, !tbaa !30
  %223 = fneg double %222
  store double %223, ptr %221, align 8, !tbaa !30
  %224 = add nuw nsw i64 %.4179, 2
  %niter207.next.1 = add i64 %niter207, 2
  %niter207.ncmp.1 = icmp eq i64 %niter207.next.1, %unroll_iter206
  br i1 %niter207.ncmp.1, label %thread-pre-split155.loopexit.unr-lcssa, label %.lr.ph181, !llvm.loop !38

thread-pre-split155.loopexit.unr-lcssa:           ; preds = %.lr.ph181, %.lr.ph181.preheader
  %.4179.unr = phi i64 [ 0, %.lr.ph181.preheader ], [ %224, %.lr.ph181 ]
  %lcmp.mod205.not = icmp eq i64 %xtraiter204, 0
  br i1 %lcmp.mod205.not, label %thread-pre-split155, label %.lr.ph181.epil

.lr.ph181.epil:                                   ; preds = %thread-pre-split155.loopexit.unr-lcssa
  %225 = load ptr, ptr %34, align 8, !tbaa !29
  %226 = getelementptr inbounds ptr, ptr %225, i64 %.1137183
  %227 = load ptr, ptr %226, align 8, !tbaa !31
  %228 = getelementptr double, ptr %227, i64 %197
  %229 = getelementptr double, ptr %228, i64 %.4179.unr
  %230 = load double, ptr %229, align 8, !tbaa !30
  %231 = fneg double %230
  store double %231, ptr %229, align 8, !tbaa !30
  br label %thread-pre-split155

thread-pre-split155:                              ; preds = %.lr.ph181.epil, %thread-pre-split155.loopexit.unr-lcssa, %193, %190
  %.1.ph = phi i1 [ %150, %190 ], [ true, %193 ], [ true, %thread-pre-split155.loopexit.unr-lcssa ], [ true, %.lr.ph181.epil ]
  %.pr156 = load i64, ptr %35, align 8, !tbaa !35
  br label %.thread

.thread:                                          ; preds = %._crit_edge173, %thread-pre-split155, %.loopexit
  %232 = phi i64 [ %.pr156, %thread-pre-split155 ], [ %.pr, %.loopexit ], [ %146, %._crit_edge173 ]
  %.1 = phi i1 [ %.1.ph, %thread-pre-split155 ], [ %150, %.loopexit ], [ false, %._crit_edge173 ]
  %233 = icmp eq i64 %232, 2
  br i1 %233, label %234, label %248

234:                                              ; preds = %.thread
  %235 = load ptr, ptr %34, align 8, !tbaa !29
  %236 = getelementptr inbounds ptr, ptr %235, i64 %.1137183
  %237 = load ptr, ptr %236, align 8, !tbaa !31
  %238 = load i64, ptr %1, align 8, !tbaa !5
  %239 = load i64, ptr %2, align 8, !tbaa !5
  %240 = getelementptr double, ptr %237, i64 %239
  %.idx151 = shl i64 %238, 4
  %241 = getelementptr i8, ptr %240, i64 %.idx151
  store double 2.000000e+00, ptr %241, align 8, !tbaa !30
  %242 = load ptr, ptr %34, align 8, !tbaa !29
  %243 = getelementptr inbounds ptr, ptr %242, i64 %.1137183
  %244 = load ptr, ptr %243, align 8, !tbaa !31
  %245 = getelementptr double, ptr %244, i64 %239
  %246 = getelementptr i8, ptr %245, i64 %.idx151
  %247 = getelementptr i8, ptr %246, i64 8
  store double 0.000000e+00, ptr %247, align 8, !tbaa !30
  br label %248

248:                                              ; preds = %234, %.thread
  %.2 = phi i1 [ true, %234 ], [ %.1, %.thread ]
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %.2, ptr noundef nonnull @.str.798, ptr noundef %6)
  %249 = load ptr, ptr %37, align 8, !tbaa !29
  %250 = getelementptr inbounds i64, ptr %249, i64 %.1137183
  %251 = load i64, ptr %250, align 8, !tbaa !5
  %252 = sitofp i64 %251 to double
  %253 = load ptr, ptr %34, align 8, !tbaa !29
  %254 = getelementptr inbounds ptr, ptr %253, i64 %.1137183
  %255 = load ptr, ptr %254, align 8, !tbaa !31
  %256 = load i64, ptr %1, align 8, !tbaa !5
  %257 = load i64, ptr %2, align 8, !tbaa !5
  %258 = getelementptr double, ptr %255, i64 %257
  %.idx153 = shl i64 %256, 4
  %259 = getelementptr i8, ptr %258, i64 %.idx153
  %260 = getelementptr i8, ptr %259, i64 16
  store double %252, ptr %260, align 8, !tbaa !30
  %261 = add nuw nsw i64 %.1137183, 1
  %262 = load i64, ptr %4, align 8, !tbaa !5
  %.not.not142 = icmp slt i64 %261, %262
  br i1 %.not.not142, label %.preheader158, label %.loopexit159, !llvm.loop !39

.loopexit159:                                     ; preds = %248, %25, %._crit_edge
  ret void
}

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


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