; 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::rbfmodel" = type { i64, i64, i64, %"struct.alglib_impl::rbfv1model", %"struct.alglib_impl::rbfv2model", %"struct.alglib_impl::rbfv3model", %"struct.alglib_impl::rbfcalcbuffer", double, double, double, i64, i64, i64, i64, i64, double, double, double, i64, double, i64, i64, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", i8, %"struct.alglib_impl::ae_vector", double, i64, i8 }
%"struct.alglib_impl::rbfv1model" = type { i64, i64, i64, i64, %"struct.alglib_impl::kdtree", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_matrix", double, %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::kdtree" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_matrix", %"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::kdtreerequestbuffer", i64 }
%"struct.alglib_impl::kdtreerequestbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", i64, double, i8, double, 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", double, %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv2model" = type { i64, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", double, i64, double, i64, %"struct.alglib_impl::rbfv2calcbuffer" }
%"struct.alglib_impl::rbfv2calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", double, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"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::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" }
%"struct.alglib_impl::rbfcalcbuffer" = type { i64, %"struct.alglib_impl::rbfv1calcbuffer", %"struct.alglib_impl::rbfv2calcbuffer", %"struct.alglib_impl::rbfv3calcbuffer", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }
%"struct.alglib_impl::rbfv1calcbuffer" = type { %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_matrix", %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::kdtreerequestbuffer" }
%"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 }

@.str.1030 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1036 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1037 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.1038 = external hidden unnamed_addr constant [42 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: mustprogress uwtable
define dso_local void @_ZN11alglib_impl12rbftshessbufEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #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 i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %17 = load ptr, ptr %10, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 0
  %19 = load i64, ptr %18, align 8, !tbaa !9
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !14
  %23 = icmp sge i64 %19, %22
  %24 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %23, ptr noundef @.str.1036, ptr noundef %24)
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %26, i32 0, i32 0
  %28 = load i64, ptr %27, align 8, !tbaa !14
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  %30 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %25, i64 noundef %28, ptr noundef %29)
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef @.str.1037, ptr noundef %31)
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %32, i32 0, i32 2
  %34 = load i64, ptr %33, align 8, !tbaa !34
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.alglib_impl::rbfcalcbuffer", ptr %35, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !35
  %38 = icmp eq i64 %34, %37
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef @.str.1038, ptr noundef %39)
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %40, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %43, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !36
  %46 = icmp slt i64 %42, %45
  br i1 %46, label %47, label %53

47:                                               ; preds = %7
  %48 = load ptr, ptr %11, align 8, !tbaa !5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %49, i32 0, i32 1
  %51 = load i64, ptr %50, align 8, !tbaa !36
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %48, i64 noundef %51, ptr noundef %52)
  br label %53

53:                                               ; preds = %47, %7
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %54, i32 0, i32 0
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !36
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %60, i32 0, i32 0
  %62 = load i64, ptr %61, align 8, !tbaa !14
  %63 = mul nsw i64 %59, %62
  %64 = icmp slt i64 %56, %63
  br i1 %64, label %65, label %75

65:                                               ; preds = %53
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %67, i32 0, i32 1
  %69 = load i64, ptr %68, align 8, !tbaa !36
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %70, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !14
  %73 = mul nsw i64 %69, %72
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %66, i64 noundef %73, ptr noundef %74)
  br label %75

75:                                               ; preds = %65, %53
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %76, i32 0, i32 0
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %79, i32 0, i32 1
  %81 = load i64, ptr %80, align 8, !tbaa !36
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %82, i32 0, i32 0
  %84 = load i64, ptr %83, align 8, !tbaa !14
  %85 = mul nsw i64 %81, %84
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %86, i32 0, i32 0
  %88 = load i64, ptr %87, align 8, !tbaa !14
  %89 = mul nsw i64 %85, %88
  %90 = icmp slt i64 %78, %89
  br i1 %90, label %91, label %105

91:                                               ; preds = %75
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %93, i32 0, i32 1
  %95 = load i64, ptr %94, align 8, !tbaa !36
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %96, i32 0, i32 0
  %98 = load i64, ptr %97, align 8, !tbaa !14
  %99 = mul nsw i64 %95, %98
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %100, i32 0, i32 0
  %102 = load i64, ptr %101, align 8, !tbaa !14
  %103 = mul nsw i64 %99, %102
  %104 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %92, i64 noundef %103, ptr noundef %104)
  br label %105

105:                                              ; preds = %91, %75
  store i64 0, ptr %15, align 8, !tbaa !37
  br label %106

106:                                              ; preds = %119, %105
  %107 = load i64, ptr %15, align 8, !tbaa !37
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %108, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !36
  %111 = sub nsw i64 %110, 1
  %112 = icmp sle i64 %107, %111
  br i1 %112, label %113, label %122

113:                                              ; preds = %106
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !38
  %117 = load i64, ptr %15, align 8, !tbaa !37
  %118 = getelementptr inbounds double, ptr %116, i64 %117
  store double 0.000000e+00, ptr %118, align 8, !tbaa !39
  br label %119

119:                                              ; preds = %113
  %120 = load i64, ptr %15, align 8, !tbaa !37
  %121 = add nsw i64 %120, 1
  store i64 %121, ptr %15, align 8, !tbaa !37
  br label %106, !llvm.loop !40

122:                                              ; preds = %106
  store i64 0, ptr %15, align 8, !tbaa !37
  br label %123

123:                                              ; preds = %140, %122
  %124 = load i64, ptr %15, align 8, !tbaa !37
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %125, i32 0, i32 1
  %127 = load i64, ptr %126, align 8, !tbaa !36
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %128, i32 0, i32 0
  %130 = load i64, ptr %129, align 8, !tbaa !14
  %131 = mul nsw i64 %127, %130
  %132 = sub nsw i64 %131, 1
  %133 = icmp sle i64 %124, %132
  br i1 %133, label %134, label %143

134:                                              ; preds = %123
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !38
  %138 = load i64, ptr %15, align 8, !tbaa !37
  %139 = getelementptr inbounds double, ptr %137, i64 %138
  store double 0.000000e+00, ptr %139, align 8, !tbaa !39
  br label %140

140:                                              ; preds = %134
  %141 = load i64, ptr %15, align 8, !tbaa !37
  %142 = add nsw i64 %141, 1
  store i64 %142, ptr %15, align 8, !tbaa !37
  br label %123, !llvm.loop !42

143:                                              ; preds = %123
  store i64 0, ptr %15, align 8, !tbaa !37
  br label %144

144:                                              ; preds = %165, %143
  %145 = load i64, ptr %15, align 8, !tbaa !37
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %146, i32 0, i32 1
  %148 = load i64, ptr %147, align 8, !tbaa !36
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %149, i32 0, i32 0
  %151 = load i64, ptr %150, align 8, !tbaa !14
  %152 = mul nsw i64 %148, %151
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %153, i32 0, i32 0
  %155 = load i64, ptr %154, align 8, !tbaa !14
  %156 = mul nsw i64 %152, %155
  %157 = sub nsw i64 %156, 1
  %158 = icmp sle i64 %145, %157
  br i1 %158, label %159, label %168

159:                                              ; preds = %144
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %160, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !38
  %163 = load i64, ptr %15, align 8, !tbaa !37
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  store double 0.000000e+00, ptr %164, align 8, !tbaa !39
  br label %165

165:                                              ; preds = %159
  %166 = load i64, ptr %15, align 8, !tbaa !37
  %167 = add nsw i64 %166, 1
  store i64 %167, ptr %15, align 8, !tbaa !37
  br label %144, !llvm.loop !43

168:                                              ; preds = %144
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %169, i32 0, i32 2
  %171 = load i64, ptr %170, align 8, !tbaa !34
  %172 = icmp eq i64 %171, 1
  br i1 %172, label %173, label %183

173:                                              ; preds = %168
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %174, i32 0, i32 3
  %176 = load ptr, ptr %9, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.alglib_impl::rbfcalcbuffer", ptr %176, i32 0, i32 1
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  %180 = load ptr, ptr %12, align 8, !tbaa !5
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv1tshessbufEPKNS_10rbfv1modelEPNS_15rbfv1calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef %175, ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %180, ptr noundef %181, ptr noundef %182)
  store i32 1, ptr %16, align 4
  br label %215

183:                                              ; preds = %168
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %184, i32 0, i32 2
  %186 = load i64, ptr %185, align 8, !tbaa !34
  %187 = icmp eq i64 %186, 2
  br i1 %187, label %188, label %198

188:                                              ; preds = %183
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.alglib_impl::rbfcalcbuffer", ptr %191, i32 0, i32 2
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv2tshessbufEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef %190, ptr noundef %192, ptr noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %196, ptr noundef %197)
  store i32 1, ptr %16, align 4
  br label %215

198:                                              ; preds = %183
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %199, i32 0, i32 2
  %201 = load i64, ptr %200, align 8, !tbaa !34
  %202 = icmp eq i64 %201, 3
  br i1 %202, label %203, label %213

203:                                              ; preds = %198
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::rbfmodel", ptr %204, i32 0, i32 5
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = getelementptr inbounds %"struct.alglib_impl::rbfcalcbuffer", ptr %206, i32 0, i32 3
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  %212 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl14rbfv3tshessbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef %205, ptr noundef %207, ptr noundef %208, ptr noundef %209, ptr noundef %210, ptr noundef %211, ptr noundef %212)
  store i32 1, ptr %16, align 4
  br label %215

213:                                              ; preds = %198
  %214 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef @.str.1030, ptr noundef %214)
  store i32 0, ptr %16, align 4
  br label %215

215:                                              ; preds = %213, %203, %188, %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  %216 = load i32, ptr %16, align 4
  switch i32 %216, label %218 [
    i32 0, label %217
    i32 1, label %217
  ]

217:                                              ; preds = %215, %215
  ret void

218:                                              ; preds = %215
  unreachable
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14rbfv1tshessbufEPKNS_10rbfv1modelEPNS_15rbfv1calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14rbfv3tshessbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14rbfv2tshessbufEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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, !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 0}
!15 = !{!"_ZTSN11alglib_impl8rbfmodelE", !11, i64 0, !11, i64 8, !11, i64 16, !16, i64 24, !21, i64 1576, !23, i64 2560, !32, i64 6296, !20, i64 8856, !20, i64 8864, !20, i64 8872, !11, i64 8880, !11, i64 8888, !11, i64 8896, !11, i64 8904, !11, i64 8912, !20, i64 8920, !20, i64 8928, !20, i64 8936, !11, i64 8944, !20, i64 8952, !11, i64 8960, !11, i64 8968, !18, i64 8976, !18, i64 9056, !12, i64 9136, !10, i64 9144, !20, i64 9208, !11, i64 9216, !12, i64 9224}
!16 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !17, i64 32, !18, i64 1096, !18, i64 1176, !20, i64 1256, !18, i64 1264, !10, i64 1344, !18, i64 1408, !10, i64 1488}
!17 = !{!"_ZTSN11alglib_impl6kdtreeE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !18, i64 32, !10, i64 112, !10, i64 176, !10, i64 240, !10, i64 304, !10, i64 368, !19, i64 432, !11, i64 1056}
!18 = !{!"_ZTSN11alglib_impl9ae_matrixE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !13, i64 40, !7, i64 72}
!19 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !10, i64 0, !10, i64 64, !10, i64 128, !11, i64 192, !20, i64 200, !12, i64 208, !20, i64 216, !11, i64 224, !10, i64 232, !10, i64 296, !10, i64 360, !10, i64 424, !10, i64 488, !20, i64 552, !10, i64 560}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !10, i64 32, !10, i64 96, !10, i64 160, !10, i64 224, !10, i64 288, !10, i64 352, !10, i64 416, !10, i64 480, !18, i64 544, !20, i64 624, !11, i64 632, !20, i64 640, !11, i64 648, !22, i64 656}
!22 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !10, i64 0, !10, i64 64, !10, i64 128, !20, i64 192, !10, i64 200, !10, i64 264}
!23 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !11, i64 0, !11, i64 8, !11, i64 16, !20, i64 24, !10, i64 32, !18, i64 96, !10, i64 176, !10, i64 240, !11, i64 304, !24, i64 312, !27, i64 864, !18, i64 2440, !30, i64 2520, !12, i64 3720, !20, i64 3728}
!24 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !11, i64 0, !11, i64 8, !18, i64 16, !11, i64 96, !11, i64 104, !20, i64 112, !11, i64 120, !10, i64 128, !18, i64 192, !18, i64 272, !25, i64 352, !10, i64 488}
!25 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !26, 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}
!26 = !{!"_ZTSN11alglib_impl7ae_lockE", !6, i64 0, !13, i64 8, !12, i64 40}
!27 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !20, i64 40, !18, i64 48, !10, i64 128, !18, i64 192, !12, i64 272, !28, i64 280, !29, i64 416, !25, i64 1328, !18, i64 1464, !12, i64 1544, !11, i64 1552, !11, i64 1560, !11, i64 1568}
!28 = !{!"_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, !26, i64 56, !13, i64 104}
!29 = !{!"_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}
!30 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !10, i64 0, !31, i64 64, !10, i64 784, !10, i64 848, !18, i64 912, !18, i64 992, !10, i64 1072, !10, i64 1136}
!31 = !{!"_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, !18, i64 640}
!32 = !{!"_ZTSN11alglib_impl13rbfcalcbufferE", !11, i64 0, !33, i64 8, !22, i64 840, !30, i64 1168, !10, i64 2368, !10, i64 2432, !10, i64 2496}
!33 = !{!"_ZTSN11alglib_impl15rbfv1calcbufferE", !10, i64 0, !18, i64 64, !10, i64 144, !19, i64 208}
!34 = !{!15, !11, i64 16}
!35 = !{!32, !11, i64 0}
!36 = !{!15, !11, i64 8}
!37 = !{!11, !11, i64 0}
!38 = !{!7, !7, i64 0}
!39 = !{!20, !20, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}
!43 = distinct !{!43, !41}


; 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.1030 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1036 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.1037 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.1038 = external hidden unnamed_addr constant [42 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 uwtable
define dso_local void @_ZN11alglib_impl12rbftshessbufEPKNS_8rbfmodelEPNS_13rbfcalcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) local_unnamed_addr #1 {
  %8 = load i64, ptr %2, align 8, !tbaa !5
  %9 = load i64, ptr %0, align 8, !tbaa !13
  %10 = icmp sge i64 %8, %9
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %10, ptr noundef nonnull @.str.1036, ptr noundef %6)
  %11 = load i64, ptr %0, align 8, !tbaa !13
  %12 = tail call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %2, i64 noundef %11, ptr noundef %6)
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.1037, ptr noundef %6)
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !33
  %15 = load i64, ptr %1, align 8, !tbaa !34
  %16 = icmp eq i64 %14, %15
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.1038, ptr noundef %6)
  %17 = load i64, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 8
  %19 = load i64, ptr %18, align 8, !tbaa !35
  %20 = icmp slt i64 %17, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %7
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %3, i64 noundef %19, ptr noundef %6)
  %.pre = load i64, ptr %18, align 8, !tbaa !35
  br label %22

22:                                               ; preds = %21, %7
  %23 = phi i64 [ %.pre, %21 ], [ %19, %7 ]
  %24 = load i64, ptr %4, align 8, !tbaa !5
  %25 = load i64, ptr %0, align 8, !tbaa !13
  %26 = mul nsw i64 %25, %23
  %27 = icmp slt i64 %24, %26
  br i1 %27, label %28, label %29

28:                                               ; preds = %22
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %4, i64 noundef %26, ptr noundef %6)
  %.pre94 = load i64, ptr %18, align 8, !tbaa !35
  %.pre95 = load i64, ptr %0, align 8, !tbaa !13
  %.pre97 = mul nsw i64 %.pre95, %.pre94
  br label %29

29:                                               ; preds = %28, %22
  %.pre-phi = phi i64 [ %.pre97, %28 ], [ %26, %22 ]
  %30 = phi i64 [ %.pre95, %28 ], [ %25, %22 ]
  %31 = phi i64 [ %.pre94, %28 ], [ %23, %22 ]
  %32 = load i64, ptr %5, align 8, !tbaa !5
  %33 = mul nsw i64 %.pre-phi, %30
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %29
  tail call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %5, i64 noundef %33, ptr noundef %6)
  %.pre96 = load i64, ptr %18, align 8, !tbaa !35
  br label %36

36:                                               ; preds = %35, %29
  %37 = phi i64 [ %.pre96, %35 ], [ %31, %29 ]
  %.not.not82 = icmp sgt i64 %37, 0
  br i1 %.not.not82, label %.lr.ph, label %.preheader79

.lr.ph:                                           ; preds = %36
  %38 = getelementptr inbounds i8, ptr %3, i64 56
  %xtraiter = and i64 %37, 3
  %39 = icmp ult i64 %37, 4
  br i1 %39, label %.preheader79.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %37, 9223372036854775804
  br label %47

.preheader79.loopexit.unr-lcssa:                  ; preds = %47, %.lr.ph
  %.083.unr = phi i64 [ 0, %.lr.ph ], [ %59, %47 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader79, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader79.loopexit.unr-lcssa, %.epil.preheader
  %.083.epil = phi i64 [ %42, %.epil.preheader ], [ %.083.unr, %.preheader79.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader79.loopexit.unr-lcssa ]
  %40 = load ptr, ptr %38, align 8, !tbaa !36
  %41 = getelementptr inbounds double, ptr %40, i64 %.083.epil
  store double 0.000000e+00, ptr %41, align 8, !tbaa !37
  %42 = add nuw nsw i64 %.083.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader79, label %.epil.preheader, !llvm.loop !38

.preheader79:                                     ; preds = %.preheader79.loopexit.unr-lcssa, %.epil.preheader, %36
  %43 = load i64, ptr %0, align 8, !tbaa !13
  %44 = mul nsw i64 %43, %37
  %.not.not7784 = icmp sgt i64 %44, 0
  br i1 %.not.not7784, label %.lr.ph86, label %.preheader

.lr.ph86:                                         ; preds = %.preheader79
  %45 = getelementptr inbounds i8, ptr %4, i64 56
  %xtraiter99 = and i64 %44, 3
  %46 = icmp ult i64 %44, 4
  br i1 %46, label %.preheader.loopexit.unr-lcssa, label %.lr.ph86.new

.lr.ph86.new:                                     ; preds = %.lr.ph86
  %unroll_iter102 = and i64 %44, 9223372036854775804
  br label %66

47:                                               ; preds = %47, %.lr.ph.new
  %.083 = phi i64 [ 0, %.lr.ph.new ], [ %59, %47 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %47 ]
  %48 = load ptr, ptr %38, align 8, !tbaa !36
  %49 = getelementptr inbounds double, ptr %48, i64 %.083
  store double 0.000000e+00, ptr %49, align 8, !tbaa !37
  %50 = or disjoint i64 %.083, 1
  %51 = load ptr, ptr %38, align 8, !tbaa !36
  %52 = getelementptr inbounds double, ptr %51, i64 %50
  store double 0.000000e+00, ptr %52, align 8, !tbaa !37
  %53 = or disjoint i64 %.083, 2
  %54 = load ptr, ptr %38, align 8, !tbaa !36
  %55 = getelementptr inbounds double, ptr %54, i64 %53
  store double 0.000000e+00, ptr %55, align 8, !tbaa !37
  %56 = or disjoint i64 %.083, 3
  %57 = load ptr, ptr %38, align 8, !tbaa !36
  %58 = getelementptr inbounds double, ptr %57, i64 %56
  store double 0.000000e+00, ptr %58, align 8, !tbaa !37
  %59 = add nuw nsw i64 %.083, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader79.loopexit.unr-lcssa, label %47, !llvm.loop !40

.preheader.loopexit.unr-lcssa:                    ; preds = %66, %.lr.ph86
  %.185.unr = phi i64 [ 0, %.lr.ph86 ], [ %78, %66 ]
  %lcmp.mod101.not = icmp eq i64 %xtraiter99, 0
  br i1 %lcmp.mod101.not, label %.preheader, label %.epil.preheader98

.epil.preheader98:                                ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader98
  %.185.epil = phi i64 [ %62, %.epil.preheader98 ], [ %.185.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter100 = phi i64 [ %epil.iter100.next, %.epil.preheader98 ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %60 = load ptr, ptr %45, align 8, !tbaa !36
  %61 = getelementptr inbounds double, ptr %60, i64 %.185.epil
  store double 0.000000e+00, ptr %61, align 8, !tbaa !37
  %62 = add nuw nsw i64 %.185.epil, 1
  %epil.iter100.next = add i64 %epil.iter100, 1
  %epil.iter100.cmp.not = icmp eq i64 %epil.iter100.next, %xtraiter99
  br i1 %epil.iter100.cmp.not, label %.preheader, label %.epil.preheader98, !llvm.loop !42

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader98, %.preheader79
  %63 = mul nsw i64 %44, %43
  %.not.not7889 = icmp sgt i64 %63, 0
  br i1 %.not.not7889, label %.lr.ph91, label %._crit_edge

.lr.ph91:                                         ; preds = %.preheader
  %64 = getelementptr inbounds i8, ptr %5, i64 56
  %xtraiter105 = and i64 %63, 3
  %65 = icmp ult i64 %63, 4
  br i1 %65, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph91.new

.lr.ph91.new:                                     ; preds = %.lr.ph91
  %unroll_iter108 = and i64 %63, 9223372036854775804
  br label %79

66:                                               ; preds = %66, %.lr.ph86.new
  %.185 = phi i64 [ 0, %.lr.ph86.new ], [ %78, %66 ]
  %niter103 = phi i64 [ 0, %.lr.ph86.new ], [ %niter103.next.3, %66 ]
  %67 = load ptr, ptr %45, align 8, !tbaa !36
  %68 = getelementptr inbounds double, ptr %67, i64 %.185
  store double 0.000000e+00, ptr %68, align 8, !tbaa !37
  %69 = or disjoint i64 %.185, 1
  %70 = load ptr, ptr %45, align 8, !tbaa !36
  %71 = getelementptr inbounds double, ptr %70, i64 %69
  store double 0.000000e+00, ptr %71, align 8, !tbaa !37
  %72 = or disjoint i64 %.185, 2
  %73 = load ptr, ptr %45, align 8, !tbaa !36
  %74 = getelementptr inbounds double, ptr %73, i64 %72
  store double 0.000000e+00, ptr %74, align 8, !tbaa !37
  %75 = or disjoint i64 %.185, 3
  %76 = load ptr, ptr %45, align 8, !tbaa !36
  %77 = getelementptr inbounds double, ptr %76, i64 %75
  store double 0.000000e+00, ptr %77, align 8, !tbaa !37
  %78 = add nuw nsw i64 %.185, 4
  %niter103.next.3 = add i64 %niter103, 4
  %niter103.ncmp.3 = icmp eq i64 %niter103.next.3, %unroll_iter102
  br i1 %niter103.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %66, !llvm.loop !43

79:                                               ; preds = %79, %.lr.ph91.new
  %.290 = phi i64 [ 0, %.lr.ph91.new ], [ %91, %79 ]
  %niter109 = phi i64 [ 0, %.lr.ph91.new ], [ %niter109.next.3, %79 ]
  %80 = load ptr, ptr %64, align 8, !tbaa !36
  %81 = getelementptr inbounds double, ptr %80, i64 %.290
  store double 0.000000e+00, ptr %81, align 8, !tbaa !37
  %82 = or disjoint i64 %.290, 1
  %83 = load ptr, ptr %64, align 8, !tbaa !36
  %84 = getelementptr inbounds double, ptr %83, i64 %82
  store double 0.000000e+00, ptr %84, align 8, !tbaa !37
  %85 = or disjoint i64 %.290, 2
  %86 = load ptr, ptr %64, align 8, !tbaa !36
  %87 = getelementptr inbounds double, ptr %86, i64 %85
  store double 0.000000e+00, ptr %87, align 8, !tbaa !37
  %88 = or disjoint i64 %.290, 3
  %89 = load ptr, ptr %64, align 8, !tbaa !36
  %90 = getelementptr inbounds double, ptr %89, i64 %88
  store double 0.000000e+00, ptr %90, align 8, !tbaa !37
  %91 = add nuw nsw i64 %.290, 4
  %niter109.next.3 = add i64 %niter109, 4
  %niter109.ncmp.3 = icmp eq i64 %niter109.next.3, %unroll_iter108
  br i1 %niter109.ncmp.3, label %._crit_edge.loopexit.unr-lcssa, label %79, !llvm.loop !44

._crit_edge.loopexit.unr-lcssa:                   ; preds = %79, %.lr.ph91
  %.290.unr = phi i64 [ 0, %.lr.ph91 ], [ %91, %79 ]
  %lcmp.mod107.not = icmp eq i64 %xtraiter105, 0
  br i1 %lcmp.mod107.not, label %._crit_edge, label %.epil.preheader104

.epil.preheader104:                               ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader104
  %.290.epil = phi i64 [ %94, %.epil.preheader104 ], [ %.290.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter106 = phi i64 [ %epil.iter106.next, %.epil.preheader104 ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %92 = load ptr, ptr %64, align 8, !tbaa !36
  %93 = getelementptr inbounds double, ptr %92, i64 %.290.epil
  store double 0.000000e+00, ptr %93, align 8, !tbaa !37
  %94 = add nuw nsw i64 %.290.epil, 1
  %epil.iter106.next = add i64 %epil.iter106, 1
  %epil.iter106.cmp.not = icmp eq i64 %epil.iter106.next, %xtraiter105
  br i1 %epil.iter106.cmp.not, label %._crit_edge, label %.epil.preheader104, !llvm.loop !45

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.epil.preheader104, %.preheader
  %95 = load i64, ptr %13, align 8, !tbaa !33
  switch i64 %95, label %105 [
    i64 1, label %96
    i64 2, label %99
    i64 3, label %102
  ]

96:                                               ; preds = %._crit_edge
  %97 = getelementptr inbounds i8, ptr %0, i64 24
  %98 = getelementptr inbounds i8, ptr %1, i64 8
  tail call void @_ZN11alglib_impl14rbfv1tshessbufEPKNS_10rbfv1modelEPNS_15rbfv1calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef nonnull %97, ptr noundef nonnull %98, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %6)
  br label %106

99:                                               ; preds = %._crit_edge
  %100 = getelementptr inbounds i8, ptr %0, i64 1576
  %101 = getelementptr inbounds i8, ptr %1, i64 840
  tail call void @_ZN11alglib_impl14rbfv2tshessbufEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef nonnull %100, ptr noundef nonnull %101, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %6)
  br label %106

102:                                              ; preds = %._crit_edge
  %103 = getelementptr inbounds i8, ptr %0, i64 2560
  %104 = getelementptr inbounds i8, ptr %1, i64 1168
  tail call void @_ZN11alglib_impl14rbfv3tshessbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef nonnull %103, ptr noundef nonnull %104, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %6)
  br label %106

105:                                              ; preds = %._crit_edge
  tail call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext false, ptr noundef nonnull @.str.1030, ptr noundef %6)
  br label %106

106:                                              ; preds = %105, %102, %99, %96
  ret void
}

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

declare noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14rbfv1tshessbufEPKNS_10rbfv1modelEPNS_15rbfv1calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14rbfv3tshessbufEPKNS_10rbfv3modelEPNS_15rbfv3calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl14rbfv2tshessbufEPKNS_10rbfv2modelEPNS_15rbfv2calcbufferEPKNS_9ae_vectorEPS5_S8_S8_PNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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, !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 0}
!14 = !{!"_ZTSN11alglib_impl8rbfmodelE", !7, i64 0, !7, i64 8, !7, i64 16, !15, i64 24, !20, i64 1576, !22, i64 2560, !31, i64 6296, !19, i64 8856, !19, i64 8864, !19, i64 8872, !7, i64 8880, !7, i64 8888, !7, i64 8896, !7, i64 8904, !7, i64 8912, !19, i64 8920, !19, i64 8928, !19, i64 8936, !7, i64 8944, !19, i64 8952, !7, i64 8960, !7, i64 8968, !17, i64 8976, !17, i64 9056, !10, i64 9136, !6, i64 9144, !19, i64 9208, !7, i64 9216, !10, i64 9224}
!15 = !{!"_ZTSN11alglib_impl10rbfv1modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !16, i64 32, !17, i64 1096, !17, i64 1176, !19, i64 1256, !17, i64 1264, !6, i64 1344, !17, i64 1408, !6, i64 1488}
!16 = !{!"_ZTSN11alglib_impl6kdtreeE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !17, i64 32, !6, i64 112, !6, i64 176, !6, i64 240, !6, i64 304, !6, i64 368, !18, i64 432, !7, i64 1056}
!17 = !{!"_ZTSN11alglib_impl9ae_matrixE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !11, i64 40, !8, i64 72}
!18 = !{!"_ZTSN11alglib_impl19kdtreerequestbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !7, i64 192, !19, i64 200, !10, i64 208, !19, i64 216, !7, i64 224, !6, i64 232, !6, i64 296, !6, i64 360, !6, i64 424, !6, i64 488, !19, i64 552, !6, i64 560}
!19 = !{!"double", !8, i64 0}
!20 = !{!"_ZTSN11alglib_impl10rbfv2modelE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !6, i64 96, !6, i64 160, !6, i64 224, !6, i64 288, !6, i64 352, !6, i64 416, !6, i64 480, !17, i64 544, !19, i64 624, !7, i64 632, !19, i64 640, !7, i64 648, !21, i64 656}
!21 = !{!"_ZTSN11alglib_impl15rbfv2calcbufferE", !6, i64 0, !6, i64 64, !6, i64 128, !19, i64 192, !6, i64 200, !6, i64 264}
!22 = !{!"_ZTSN11alglib_impl10rbfv3modelE", !7, i64 0, !7, i64 8, !7, i64 16, !19, i64 24, !6, i64 32, !17, i64 96, !6, i64 176, !6, i64 240, !7, i64 304, !23, i64 312, !26, i64 864, !17, i64 2440, !29, i64 2520, !10, i64 3720, !19, i64 3728}
!23 = !{!"_ZTSN11alglib_impl13rbf3evaluatorE", !7, i64 0, !7, i64 8, !17, i64 16, !7, i64 96, !7, i64 104, !19, i64 112, !7, i64 120, !6, i64 128, !17, i64 192, !17, i64 272, !24, i64 352, !6, i64 488}
!24 = !{!"_ZTSN11alglib_impl14ae_shared_poolE", !25, 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}
!25 = !{!"_ZTSN11alglib_impl7ae_lockE", !12, i64 0, !11, i64 8, !10, i64 40}
!26 = !{!"_ZTSN11alglib_impl17rbf3fastevaluatorE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !19, i64 40, !17, i64 48, !6, i64 128, !17, i64 192, !10, i64 272, !27, i64 280, !28, i64 416, !24, i64 1328, !17, i64 1464, !10, i64 1544, !7, i64 1552, !7, i64 1560, !7, i64 1568}
!27 = !{!"_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, !25, i64 56, !11, i64 104}
!28 = !{!"_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}
!29 = !{!"_ZTSN11alglib_impl15rbfv3calcbufferE", !6, i64 0, !30, i64 64, !6, i64 784, !6, i64 848, !17, i64 912, !17, i64 992, !6, i64 1072, !6, i64 1136}
!30 = !{!"_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, !17, i64 640}
!31 = !{!"_ZTSN11alglib_impl13rbfcalcbufferE", !7, i64 0, !32, i64 8, !21, i64 840, !29, i64 1168, !6, i64 2368, !6, i64 2432, !6, i64 2496}
!32 = !{!"_ZTSN11alglib_impl15rbfv1calcbufferE", !6, i64 0, !17, i64 64, !6, i64 144, !18, i64 208}
!33 = !{!14, !7, i64 16}
!34 = !{!31, !7, i64 0}
!35 = !{!14, !7, i64 8}
!36 = !{!8, !8, i64 0}
!37 = !{!19, !19, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.unroll.disable"}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !39}
!43 = distinct !{!43, !41}
!44 = distinct !{!44, !41}
!45 = distinct !{!45, !39}


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