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

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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.262 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [66 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; 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) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) #3 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.alglib_impl::ae_frame", align 8
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  %13 = alloca %"struct.alglib_impl::ae_vector", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.alglib_impl::ae_vector", align 8
  %16 = alloca %"struct.alglib_impl::ae_vector", align 8
  %17 = alloca %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #5
  %19 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %19, ptr noundef %11)
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %17, i8 0, i64 64, i1 false)
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %12, ptr noundef %20, ptr noundef %21, i1 noundef zeroext true)
  store ptr %12, ptr %6, align 8, !tbaa !5
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %13, ptr noundef %22, ptr noundef %23, i1 noundef zeroext true)
  store ptr %13, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %24)
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %15, i64 noundef 0, i64 noundef 3, ptr noundef %25, i1 noundef zeroext true)
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %16, i64 noundef 0, i64 noundef 3, ptr noundef %26, i1 noundef zeroext true)
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %17, i64 noundef 0, i64 noundef 3, ptr noundef %27, i1 noundef zeroext true)
  %28 = load i64, ptr %8, align 8, !tbaa !9
  %29 = icmp sge i64 %28, 2
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.262, ptr noundef %30)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = load i64, ptr %8, align 8, !tbaa !9
  %35 = icmp sge i64 %33, %34
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %35, ptr noundef @.str.263, ptr noundef %36)
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 0
  %39 = load i64, ptr %38, align 8, !tbaa !11
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = icmp sge i64 %39, %40
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef @.str.264, ptr noundef %42)
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %43, i64 noundef %44, ptr noundef %45)
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef @.str.265, ptr noundef %47)
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = load i64, ptr %8, align 8, !tbaa !9
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %48, i64 noundef %49, ptr noundef %50)
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef @.str.266, ptr noundef %52)
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL23spline1d_heapsortpointsEPNS_9ae_vectorES1_lPNS_8ae_stateE(ptr noundef %53, ptr noundef %54, i64 noundef %55, ptr noundef %56)
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i64, ptr %8, align 8, !tbaa !9
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %57, i64 noundef %58, ptr noundef %59)
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %60, ptr noundef @.str.267, ptr noundef %61)
  %62 = load i64, ptr %8, align 8, !tbaa !9
  %63 = icmp sle i64 %62, 4
  br i1 %63, label %64, label %71

64:                                               ; preds = %5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = load i64, ptr %8, align 8, !tbaa !9
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %65, ptr noundef %66, i64 noundef %67, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %68, ptr noundef %69)
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %70)
  store i32 1, ptr %18, align 4
  br label %484

71:                                               ; preds = %5
  %72 = load i64, ptr %8, align 8, !tbaa !9
  %73 = sub nsw i64 %72, 1
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %73, ptr noundef %74)
  %75 = load i64, ptr %8, align 8, !tbaa !9
  %76 = sub nsw i64 %75, 1
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %17, i64 noundef %76, ptr noundef %77)
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %78

78:                                               ; preds = %117, %71
  %79 = load i64, ptr %14, align 8, !tbaa !9
  %80 = load i64, ptr %8, align 8, !tbaa !9
  %81 = sub nsw i64 %80, 2
  %82 = icmp sle i64 %79, %81
  br i1 %82, label %83, label %120

83:                                               ; preds = %78
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %84, i32 0, i32 4
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = load i64, ptr %14, align 8, !tbaa !9
  %88 = add nsw i64 %87, 1
  %89 = getelementptr inbounds double, ptr %86, i64 %88
  %90 = load double, ptr %89, align 8, !tbaa !16
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %91, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !15
  %94 = load i64, ptr %14, align 8, !tbaa !9
  %95 = getelementptr inbounds double, ptr %93, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !16
  %97 = fsub double %90, %96
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !15
  %101 = load i64, ptr %14, align 8, !tbaa !9
  %102 = add nsw i64 %101, 1
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !16
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %105, i32 0, i32 4
  %107 = load ptr, ptr %106, align 8, !tbaa !15
  %108 = load i64, ptr %14, align 8, !tbaa !9
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !16
  %111 = fsub double %104, %110
  %112 = fdiv double %97, %111
  %113 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %114 = load ptr, ptr %113, align 8, !tbaa !15
  %115 = load i64, ptr %14, align 8, !tbaa !9
  %116 = getelementptr inbounds double, ptr %114, i64 %115
  store double %112, ptr %116, align 8, !tbaa !16
  br label %117

117:                                              ; preds = %83
  %118 = load i64, ptr %14, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  store i64 %119, ptr %14, align 8, !tbaa !9
  br label %78, !llvm.loop !18

120:                                              ; preds = %78
  store i64 1, ptr %14, align 8, !tbaa !9
  br label %121

121:                                              ; preds = %145, %120
  %122 = load i64, ptr %14, align 8, !tbaa !9
  %123 = load i64, ptr %8, align 8, !tbaa !9
  %124 = sub nsw i64 %123, 2
  %125 = icmp sle i64 %122, %124
  br i1 %125, label %126, label %148

126:                                              ; preds = %121
  %127 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !15
  %129 = load i64, ptr %14, align 8, !tbaa !9
  %130 = getelementptr inbounds double, ptr %128, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !16
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !15
  %134 = load i64, ptr %14, align 8, !tbaa !9
  %135 = sub nsw i64 %134, 1
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !16
  %138 = fsub double %131, %137
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %138, ptr noundef %139)
  %141 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !15
  %143 = load i64, ptr %14, align 8, !tbaa !9
  %144 = getelementptr inbounds double, ptr %142, i64 %143
  store double %140, ptr %144, align 8, !tbaa !16
  br label %145

145:                                              ; preds = %126
  %146 = load i64, ptr %14, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %14, align 8, !tbaa !9
  br label %121, !llvm.loop !20

148:                                              ; preds = %121
  %149 = load i64, ptr %8, align 8, !tbaa !9
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %149, ptr noundef %150)
  store i64 2, ptr %14, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %282, %148
  %152 = load i64, ptr %14, align 8, !tbaa !9
  %153 = load i64, ptr %8, align 8, !tbaa !9
  %154 = sub nsw i64 %153, 3
  %155 = icmp sle i64 %152, %154
  br i1 %155, label %156, label %285

156:                                              ; preds = %151
  %157 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %158 = load ptr, ptr %157, align 8, !tbaa !15
  %159 = load i64, ptr %14, align 8, !tbaa !9
  %160 = sub nsw i64 %159, 1
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !16
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %162, ptr noundef %163)
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !15
  %167 = load i64, ptr %14, align 8, !tbaa !9
  %168 = add nsw i64 %167, 1
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !16
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %170, ptr noundef %171)
  %173 = fadd double %164, %172
  %174 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %173, double noundef 0.000000e+00)
  br i1 %174, label %175, label %219

175:                                              ; preds = %156
  %176 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !15
  %178 = load i64, ptr %14, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  %180 = getelementptr inbounds double, ptr %177, i64 %179
  %181 = load double, ptr %180, align 8, !tbaa !16
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !15
  %184 = load i64, ptr %14, align 8, !tbaa !9
  %185 = sub nsw i64 %184, 1
  %186 = getelementptr inbounds double, ptr %183, i64 %185
  %187 = load double, ptr %186, align 8, !tbaa !16
  %188 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %189 = load ptr, ptr %188, align 8, !tbaa !15
  %190 = load i64, ptr %14, align 8, !tbaa !9
  %191 = sub nsw i64 %190, 1
  %192 = getelementptr inbounds double, ptr %189, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !16
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !15
  %196 = load i64, ptr %14, align 8, !tbaa !9
  %197 = getelementptr inbounds double, ptr %195, i64 %196
  %198 = load double, ptr %197, align 8, !tbaa !16
  %199 = fmul double %193, %198
  %200 = call double @llvm.fmuladd.f64(double %181, double %187, double %199)
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !15
  %203 = load i64, ptr %14, align 8, !tbaa !9
  %204 = add nsw i64 %203, 1
  %205 = getelementptr inbounds double, ptr %202, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !16
  %207 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %208 = load ptr, ptr %207, align 8, !tbaa !15
  %209 = load i64, ptr %14, align 8, !tbaa !9
  %210 = sub nsw i64 %209, 1
  %211 = getelementptr inbounds double, ptr %208, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !16
  %213 = fadd double %206, %212
  %214 = fdiv double %200, %213
  %215 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %216 = load ptr, ptr %215, align 8, !tbaa !15
  %217 = load i64, ptr %14, align 8, !tbaa !9
  %218 = getelementptr inbounds double, ptr %216, i64 %217
  store double %214, ptr %218, align 8, !tbaa !16
  br label %281

219:                                              ; preds = %156
  %220 = load ptr, ptr %6, align 8, !tbaa !5
  %221 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %220, i32 0, i32 4
  %222 = load ptr, ptr %221, align 8, !tbaa !15
  %223 = load i64, ptr %14, align 8, !tbaa !9
  %224 = add nsw i64 %223, 1
  %225 = getelementptr inbounds double, ptr %222, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !16
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !15
  %230 = load i64, ptr %14, align 8, !tbaa !9
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  %232 = load double, ptr %231, align 8, !tbaa !16
  %233 = fsub double %226, %232
  %234 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !15
  %236 = load i64, ptr %14, align 8, !tbaa !9
  %237 = sub nsw i64 %236, 1
  %238 = getelementptr inbounds double, ptr %235, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !16
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %240, i32 0, i32 4
  %242 = load ptr, ptr %241, align 8, !tbaa !15
  %243 = load i64, ptr %14, align 8, !tbaa !9
  %244 = getelementptr inbounds double, ptr %242, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !16
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %246, i32 0, i32 4
  %248 = load ptr, ptr %247, align 8, !tbaa !15
  %249 = load i64, ptr %14, align 8, !tbaa !9
  %250 = sub nsw i64 %249, 1
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  %252 = load double, ptr %251, align 8, !tbaa !16
  %253 = fsub double %245, %252
  %254 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %17, i32 0, i32 4
  %255 = load ptr, ptr %254, align 8, !tbaa !15
  %256 = load i64, ptr %14, align 8, !tbaa !9
  %257 = getelementptr inbounds double, ptr %255, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !16
  %259 = fmul double %253, %258
  %260 = call double @llvm.fmuladd.f64(double %233, double %239, double %259)
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %261, i32 0, i32 4
  %263 = load ptr, ptr %262, align 8, !tbaa !15
  %264 = load i64, ptr %14, align 8, !tbaa !9
  %265 = add nsw i64 %264, 1
  %266 = getelementptr inbounds double, ptr %263, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !16
  %268 = load ptr, ptr %6, align 8, !tbaa !5
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %268, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !15
  %271 = load i64, ptr %14, align 8, !tbaa !9
  %272 = sub nsw i64 %271, 1
  %273 = getelementptr inbounds double, ptr %270, i64 %272
  %274 = load double, ptr %273, align 8, !tbaa !16
  %275 = fsub double %267, %274
  %276 = fdiv double %260, %275
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %278 = load ptr, ptr %277, align 8, !tbaa !15
  %279 = load i64, ptr %14, align 8, !tbaa !9
  %280 = getelementptr inbounds double, ptr %278, i64 %279
  store double %276, ptr %280, align 8, !tbaa !16
  br label %281

281:                                              ; preds = %219, %175
  br label %282

282:                                              ; preds = %281
  %283 = load i64, ptr %14, align 8, !tbaa !9
  %284 = add nsw i64 %283, 1
  store i64 %284, ptr %14, align 8, !tbaa !9
  br label %151, !llvm.loop !21

285:                                              ; preds = %151
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %286, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !15
  %289 = getelementptr inbounds double, ptr %288, i64 0
  %290 = load double, ptr %289, align 8, !tbaa !16
  %291 = load ptr, ptr %6, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %291, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !15
  %294 = getelementptr inbounds double, ptr %293, i64 0
  %295 = load double, ptr %294, align 8, !tbaa !16
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %296, i32 0, i32 4
  %298 = load ptr, ptr %297, align 8, !tbaa !15
  %299 = getelementptr inbounds double, ptr %298, i64 0
  %300 = load double, ptr %299, align 8, !tbaa !16
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %301, i32 0, i32 4
  %303 = load ptr, ptr %302, align 8, !tbaa !15
  %304 = getelementptr inbounds double, ptr %303, i64 1
  %305 = load double, ptr %304, align 8, !tbaa !16
  %306 = load ptr, ptr %7, align 8, !tbaa !5
  %307 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %306, i32 0, i32 4
  %308 = load ptr, ptr %307, align 8, !tbaa !15
  %309 = getelementptr inbounds double, ptr %308, i64 1
  %310 = load double, ptr %309, align 8, !tbaa !16
  %311 = load ptr, ptr %6, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %311, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !15
  %314 = getelementptr inbounds double, ptr %313, i64 2
  %315 = load double, ptr %314, align 8, !tbaa !16
  %316 = load ptr, ptr %7, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %316, i32 0, i32 4
  %318 = load ptr, ptr %317, align 8, !tbaa !15
  %319 = getelementptr inbounds double, ptr %318, i64 2
  %320 = load double, ptr %319, align 8, !tbaa !16
  %321 = load ptr, ptr %10, align 8, !tbaa !5
  %322 = call noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef %290, double noundef %295, double noundef %300, double noundef %305, double noundef %310, double noundef %315, double noundef %320, ptr noundef %321)
  %323 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %324 = load ptr, ptr %323, align 8, !tbaa !15
  %325 = getelementptr inbounds double, ptr %324, i64 0
  store double %322, ptr %325, align 8, !tbaa !16
  %326 = load ptr, ptr %6, align 8, !tbaa !5
  %327 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %326, i32 0, i32 4
  %328 = load ptr, ptr %327, align 8, !tbaa !15
  %329 = getelementptr inbounds double, ptr %328, i64 1
  %330 = load double, ptr %329, align 8, !tbaa !16
  %331 = load ptr, ptr %6, align 8, !tbaa !5
  %332 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %331, i32 0, i32 4
  %333 = load ptr, ptr %332, align 8, !tbaa !15
  %334 = getelementptr inbounds double, ptr %333, i64 0
  %335 = load double, ptr %334, align 8, !tbaa !16
  %336 = load ptr, ptr %7, align 8, !tbaa !5
  %337 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %336, i32 0, i32 4
  %338 = load ptr, ptr %337, align 8, !tbaa !15
  %339 = getelementptr inbounds double, ptr %338, i64 0
  %340 = load double, ptr %339, align 8, !tbaa !16
  %341 = load ptr, ptr %6, align 8, !tbaa !5
  %342 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %341, i32 0, i32 4
  %343 = load ptr, ptr %342, align 8, !tbaa !15
  %344 = getelementptr inbounds double, ptr %343, i64 1
  %345 = load double, ptr %344, align 8, !tbaa !16
  %346 = load ptr, ptr %7, align 8, !tbaa !5
  %347 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %346, i32 0, i32 4
  %348 = load ptr, ptr %347, align 8, !tbaa !15
  %349 = getelementptr inbounds double, ptr %348, i64 1
  %350 = load double, ptr %349, align 8, !tbaa !16
  %351 = load ptr, ptr %6, align 8, !tbaa !5
  %352 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %351, i32 0, i32 4
  %353 = load ptr, ptr %352, align 8, !tbaa !15
  %354 = getelementptr inbounds double, ptr %353, i64 2
  %355 = load double, ptr %354, align 8, !tbaa !16
  %356 = load ptr, ptr %7, align 8, !tbaa !5
  %357 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %356, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !15
  %359 = getelementptr inbounds double, ptr %358, i64 2
  %360 = load double, ptr %359, align 8, !tbaa !16
  %361 = load ptr, ptr %10, align 8, !tbaa !5
  %362 = call noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef %330, double noundef %335, double noundef %340, double noundef %345, double noundef %350, double noundef %355, double noundef %360, ptr noundef %361)
  %363 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %364 = load ptr, ptr %363, align 8, !tbaa !15
  %365 = getelementptr inbounds double, ptr %364, i64 1
  store double %362, ptr %365, align 8, !tbaa !16
  %366 = load ptr, ptr %6, align 8, !tbaa !5
  %367 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %366, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !15
  %369 = load i64, ptr %8, align 8, !tbaa !9
  %370 = sub nsw i64 %369, 2
  %371 = getelementptr inbounds double, ptr %368, i64 %370
  %372 = load double, ptr %371, align 8, !tbaa !16
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %373, i32 0, i32 4
  %375 = load ptr, ptr %374, align 8, !tbaa !15
  %376 = load i64, ptr %8, align 8, !tbaa !9
  %377 = sub nsw i64 %376, 3
  %378 = getelementptr inbounds double, ptr %375, i64 %377
  %379 = load double, ptr %378, align 8, !tbaa !16
  %380 = load ptr, ptr %7, align 8, !tbaa !5
  %381 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %380, i32 0, i32 4
  %382 = load ptr, ptr %381, align 8, !tbaa !15
  %383 = load i64, ptr %8, align 8, !tbaa !9
  %384 = sub nsw i64 %383, 3
  %385 = getelementptr inbounds double, ptr %382, i64 %384
  %386 = load double, ptr %385, align 8, !tbaa !16
  %387 = load ptr, ptr %6, align 8, !tbaa !5
  %388 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %387, i32 0, i32 4
  %389 = load ptr, ptr %388, align 8, !tbaa !15
  %390 = load i64, ptr %8, align 8, !tbaa !9
  %391 = sub nsw i64 %390, 2
  %392 = getelementptr inbounds double, ptr %389, i64 %391
  %393 = load double, ptr %392, align 8, !tbaa !16
  %394 = load ptr, ptr %7, align 8, !tbaa !5
  %395 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %394, i32 0, i32 4
  %396 = load ptr, ptr %395, align 8, !tbaa !15
  %397 = load i64, ptr %8, align 8, !tbaa !9
  %398 = sub nsw i64 %397, 2
  %399 = getelementptr inbounds double, ptr %396, i64 %398
  %400 = load double, ptr %399, align 8, !tbaa !16
  %401 = load ptr, ptr %6, align 8, !tbaa !5
  %402 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %401, i32 0, i32 4
  %403 = load ptr, ptr %402, align 8, !tbaa !15
  %404 = load i64, ptr %8, align 8, !tbaa !9
  %405 = sub nsw i64 %404, 1
  %406 = getelementptr inbounds double, ptr %403, i64 %405
  %407 = load double, ptr %406, align 8, !tbaa !16
  %408 = load ptr, ptr %7, align 8, !tbaa !5
  %409 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %408, i32 0, i32 4
  %410 = load ptr, ptr %409, align 8, !tbaa !15
  %411 = load i64, ptr %8, align 8, !tbaa !9
  %412 = sub nsw i64 %411, 1
  %413 = getelementptr inbounds double, ptr %410, i64 %412
  %414 = load double, ptr %413, align 8, !tbaa !16
  %415 = load ptr, ptr %10, align 8, !tbaa !5
  %416 = call noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef %372, double noundef %379, double noundef %386, double noundef %393, double noundef %400, double noundef %407, double noundef %414, ptr noundef %415)
  %417 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %418 = load ptr, ptr %417, align 8, !tbaa !15
  %419 = load i64, ptr %8, align 8, !tbaa !9
  %420 = sub nsw i64 %419, 2
  %421 = getelementptr inbounds double, ptr %418, i64 %420
  store double %416, ptr %421, align 8, !tbaa !16
  %422 = load ptr, ptr %6, align 8, !tbaa !5
  %423 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %422, i32 0, i32 4
  %424 = load ptr, ptr %423, align 8, !tbaa !15
  %425 = load i64, ptr %8, align 8, !tbaa !9
  %426 = sub nsw i64 %425, 1
  %427 = getelementptr inbounds double, ptr %424, i64 %426
  %428 = load double, ptr %427, align 8, !tbaa !16
  %429 = load ptr, ptr %6, align 8, !tbaa !5
  %430 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %429, i32 0, i32 4
  %431 = load ptr, ptr %430, align 8, !tbaa !15
  %432 = load i64, ptr %8, align 8, !tbaa !9
  %433 = sub nsw i64 %432, 3
  %434 = getelementptr inbounds double, ptr %431, i64 %433
  %435 = load double, ptr %434, align 8, !tbaa !16
  %436 = load ptr, ptr %7, align 8, !tbaa !5
  %437 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %436, i32 0, i32 4
  %438 = load ptr, ptr %437, align 8, !tbaa !15
  %439 = load i64, ptr %8, align 8, !tbaa !9
  %440 = sub nsw i64 %439, 3
  %441 = getelementptr inbounds double, ptr %438, i64 %440
  %442 = load double, ptr %441, align 8, !tbaa !16
  %443 = load ptr, ptr %6, align 8, !tbaa !5
  %444 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %443, i32 0, i32 4
  %445 = load ptr, ptr %444, align 8, !tbaa !15
  %446 = load i64, ptr %8, align 8, !tbaa !9
  %447 = sub nsw i64 %446, 2
  %448 = getelementptr inbounds double, ptr %445, i64 %447
  %449 = load double, ptr %448, align 8, !tbaa !16
  %450 = load ptr, ptr %7, align 8, !tbaa !5
  %451 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %450, i32 0, i32 4
  %452 = load ptr, ptr %451, align 8, !tbaa !15
  %453 = load i64, ptr %8, align 8, !tbaa !9
  %454 = sub nsw i64 %453, 2
  %455 = getelementptr inbounds double, ptr %452, i64 %454
  %456 = load double, ptr %455, align 8, !tbaa !16
  %457 = load ptr, ptr %6, align 8, !tbaa !5
  %458 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %457, i32 0, i32 4
  %459 = load ptr, ptr %458, align 8, !tbaa !15
  %460 = load i64, ptr %8, align 8, !tbaa !9
  %461 = sub nsw i64 %460, 1
  %462 = getelementptr inbounds double, ptr %459, i64 %461
  %463 = load double, ptr %462, align 8, !tbaa !16
  %464 = load ptr, ptr %7, align 8, !tbaa !5
  %465 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %464, i32 0, i32 4
  %466 = load ptr, ptr %465, align 8, !tbaa !15
  %467 = load i64, ptr %8, align 8, !tbaa !9
  %468 = sub nsw i64 %467, 1
  %469 = getelementptr inbounds double, ptr %466, i64 %468
  %470 = load double, ptr %469, align 8, !tbaa !16
  %471 = load ptr, ptr %10, align 8, !tbaa !5
  %472 = call noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef %428, double noundef %435, double noundef %442, double noundef %449, double noundef %456, double noundef %463, double noundef %470, ptr noundef %471)
  %473 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %474 = load ptr, ptr %473, align 8, !tbaa !15
  %475 = load i64, ptr %8, align 8, !tbaa !9
  %476 = sub nsw i64 %475, 1
  %477 = getelementptr inbounds double, ptr %474, i64 %476
  store double %472, ptr %477, align 8, !tbaa !16
  %478 = load ptr, ptr %6, align 8, !tbaa !5
  %479 = load ptr, ptr %7, align 8, !tbaa !5
  %480 = load i64, ptr %8, align 8, !tbaa !9
  %481 = load ptr, ptr %9, align 8, !tbaa !5
  %482 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %478, ptr noundef %479, ptr noundef %15, i64 noundef %480, ptr noundef %481, ptr noundef %482)
  %483 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %483)
  store i32 0, ptr %18, align 4
  br label %484

484:                                              ; preds = %285, %64
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  %485 = load i32, ptr %18, align 4
  switch i32 %485, label %487 [
    i32 0, label %486
    i32 1, label %486
  ]

486:                                              ; preds = %484, %484
  ret void

487:                                              ; preds = %484
  unreachable
}

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

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

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) #2

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #2

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef) #3

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

declare noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !13, i64 16, !14, i64 24, !7, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


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

%"struct.alglib_impl::ae_frame" = type { %"struct.alglib_impl::ae_dyn_block" }
%"struct.alglib_impl::ae_dyn_block" = type { ptr, ptr, ptr, ptr }
%"struct.alglib_impl::ae_vector" = type { i64, i64, i8, %"struct.alglib_impl::ae_dyn_block", %union.anon.0 }
%union.anon.0 = type { ptr }

@.str.262 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [66 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress 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) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11alglib_impl18spline1dbuildakimaEPNS_9ae_vectorES1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #3 {
  %6 = alloca %"struct.alglib_impl::ae_frame", align 8
  %7 = alloca %"struct.alglib_impl::ae_vector", align 8
  %8 = alloca %"struct.alglib_impl::ae_vector", align 8
  %9 = alloca %"struct.alglib_impl::ae_vector", align 8
  %10 = alloca %"struct.alglib_impl::ae_vector", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %4, ptr noundef nonnull %6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %8, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %11, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %7, ptr noundef %0, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %1, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %3)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %9, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %10, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %11, i64 noundef 0, i64 noundef 3, ptr noundef %4, i1 noundef zeroext true)
  %12 = icmp sgt i64 %2, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %12, ptr noundef nonnull @.str.262, ptr noundef %4)
  %13 = load i64, ptr %7, align 8, !tbaa !5
  %14 = icmp sge i64 %13, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %14, ptr noundef nonnull @.str.263, ptr noundef %4)
  %15 = load i64, ptr %8, align 8, !tbaa !5
  %16 = icmp sge i64 %15, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %16, ptr noundef nonnull @.str.264, ptr noundef %4)
  %17 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.265, ptr noundef %4)
  %18 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.266, ptr noundef %4)
  call void @_ZN11alglib_implL23spline1d_heapsortpointsEPNS_9ae_vectorES1_lPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %8, i64 noundef %2, ptr noundef %4)
  %19 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.267, ptr noundef %4)
  %20 = icmp slt i64 %2, 5
  br i1 %20, label %21, label %.lr.ph

21:                                               ; preds = %5
  call void @_ZN11alglib_impl18spline1dbuildcubicEPNS_9ae_vectorES1_lldldPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %8, i64 noundef %2, i64 noundef 0, double noundef 0.000000e+00, i64 noundef 0, double noundef 0.000000e+00, ptr noundef %3, ptr noundef %4)
  br label %211

.lr.ph:                                           ; preds = %5
  %22 = add nsw i64 %2, -1
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %22, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %22, ptr noundef %4)
  %23 = add nsw i64 %2, -2
  %24 = getelementptr inbounds i8, ptr %8, i64 56
  %25 = getelementptr inbounds i8, ptr %7, i64 56
  %26 = getelementptr inbounds i8, ptr %11, i64 56
  %xtraiter = and i64 %22, 1
  %27 = icmp eq i64 %23, 0
  br i1 %27, label %.lr.ph158.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %22, -2
  br label %46

.lr.ph158.unr-lcssa:                              ; preds = %46, %.lr.ph
  %.0155.unr = phi i64 [ 0, %.lr.ph ], [ %64, %46 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph158, label %.lr.ph158.epilog-lcssa

.lr.ph158.epilog-lcssa:                           ; preds = %.lr.ph158.unr-lcssa
  %28 = load ptr, ptr %24, align 8, !tbaa !13
  %29 = add nuw nsw i64 %.0155.unr, 1
  %30 = getelementptr inbounds double, ptr %28, i64 %29
  %31 = load double, ptr %30, align 8, !tbaa !14
  %32 = getelementptr inbounds double, ptr %28, i64 %.0155.unr
  %33 = load double, ptr %32, align 8, !tbaa !14
  %34 = fsub double %31, %33
  %35 = load ptr, ptr %25, align 8, !tbaa !13
  %36 = getelementptr inbounds double, ptr %35, i64 %29
  %37 = load double, ptr %36, align 8, !tbaa !14
  %38 = getelementptr inbounds double, ptr %35, i64 %.0155.unr
  %39 = load double, ptr %38, align 8, !tbaa !14
  %40 = fsub double %37, %39
  %41 = fdiv double %34, %40
  %42 = load ptr, ptr %26, align 8, !tbaa !13
  %43 = getelementptr inbounds double, ptr %42, i64 %.0155.unr
  store double %41, ptr %43, align 8, !tbaa !14
  br label %.lr.ph158

.lr.ph158:                                        ; preds = %.lr.ph158.unr-lcssa, %.lr.ph158.epilog-lcssa
  %44 = getelementptr inbounds i8, ptr %11, i64 56
  %45 = getelementptr inbounds i8, ptr %10, i64 56
  %smax = call i64 @llvm.smax.i64(i64 %23, i64 1)
  br label %79

46:                                               ; preds = %46, %.lr.ph.new
  %.0155 = phi i64 [ 0, %.lr.ph.new ], [ %64, %46 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %46 ]
  %47 = load ptr, ptr %24, align 8, !tbaa !13
  %48 = or disjoint i64 %.0155, 1
  %49 = getelementptr inbounds double, ptr %47, i64 %48
  %50 = load double, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds double, ptr %47, i64 %.0155
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = fsub double %50, %52
  %54 = load ptr, ptr %25, align 8, !tbaa !13
  %55 = getelementptr inbounds double, ptr %54, i64 %48
  %56 = load double, ptr %55, align 8, !tbaa !14
  %57 = getelementptr inbounds double, ptr %54, i64 %.0155
  %58 = load double, ptr %57, align 8, !tbaa !14
  %59 = fsub double %56, %58
  %60 = fdiv double %53, %59
  %61 = load ptr, ptr %26, align 8, !tbaa !13
  %62 = getelementptr inbounds double, ptr %61, i64 %.0155
  store double %60, ptr %62, align 8, !tbaa !14
  %63 = load ptr, ptr %24, align 8, !tbaa !13
  %64 = add nuw nsw i64 %.0155, 2
  %65 = getelementptr inbounds double, ptr %63, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !14
  %67 = getelementptr inbounds double, ptr %63, i64 %48
  %68 = load double, ptr %67, align 8, !tbaa !14
  %69 = fsub double %66, %68
  %70 = load ptr, ptr %25, align 8, !tbaa !13
  %71 = getelementptr inbounds double, ptr %70, i64 %64
  %72 = load double, ptr %71, align 8, !tbaa !14
  %73 = getelementptr inbounds double, ptr %70, i64 %48
  %74 = load double, ptr %73, align 8, !tbaa !14
  %75 = fsub double %72, %74
  %76 = fdiv double %69, %75
  %77 = load ptr, ptr %26, align 8, !tbaa !13
  %78 = getelementptr inbounds double, ptr %77, i64 %48
  store double %76, ptr %78, align 8, !tbaa !14
  %niter.next.1 = add nuw nsw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.lr.ph158.unr-lcssa, label %46, !llvm.loop !16

79:                                               ; preds = %.lr.ph158, %79
  %.1157 = phi i64 [ 1, %.lr.ph158 ], [ %89, %79 ]
  %80 = load ptr, ptr %44, align 8, !tbaa !13
  %81 = getelementptr inbounds double, ptr %80, i64 %.1157
  %82 = load double, ptr %81, align 8, !tbaa !14
  %83 = getelementptr i8, ptr %81, i64 -8
  %84 = load double, ptr %83, align 8, !tbaa !14
  %85 = fsub double %82, %84
  %86 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %85, ptr noundef %4)
  %87 = load ptr, ptr %45, align 8, !tbaa !13
  %88 = getelementptr inbounds double, ptr %87, i64 %.1157
  store double %86, ptr %88, align 8, !tbaa !14
  %89 = add nuw i64 %.1157, 1
  %exitcond165.not = icmp eq i64 %.1157, %smax
  br i1 %exitcond165.not, label %.lr.ph162, label %79, !llvm.loop !18

.lr.ph162:                                        ; preds = %79
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %2, ptr noundef %4)
  %90 = add nsw i64 %2, -3
  %91 = getelementptr inbounds i8, ptr %10, i64 56
  %92 = getelementptr inbounds i8, ptr %7, i64 56
  %93 = getelementptr inbounds i8, ptr %11, i64 56
  %94 = getelementptr inbounds i8, ptr %9, i64 56
  %smax166 = call i64 @llvm.smax.i64(i64 %90, i64 2)
  br label %95

95:                                               ; preds = %.lr.ph162, %142
  %.2160 = phi i64 [ 2, %.lr.ph162 ], [ %102, %142 ]
  %96 = load ptr, ptr %91, align 8, !tbaa !13
  %97 = add nsw i64 %.2160, -1
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !14
  %100 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %99, ptr noundef %4)
  %101 = load ptr, ptr %91, align 8, !tbaa !13
  %102 = add nuw i64 %.2160, 1
  %103 = getelementptr inbounds double, ptr %101, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !14
  %105 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %104, ptr noundef %4)
  %106 = fadd double %100, %105
  %107 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %106, double noundef 0.000000e+00)
  br i1 %107, label %108, label %123

108:                                              ; preds = %95
  %109 = load ptr, ptr %91, align 8, !tbaa !13
  %110 = getelementptr inbounds double, ptr %109, i64 %102
  %111 = load double, ptr %110, align 8, !tbaa !14
  %112 = load ptr, ptr %93, align 8, !tbaa !13
  %113 = getelementptr inbounds double, ptr %112, i64 %97
  %114 = load double, ptr %113, align 8, !tbaa !14
  %115 = getelementptr inbounds double, ptr %109, i64 %97
  %116 = load double, ptr %115, align 8, !tbaa !14
  %117 = getelementptr inbounds double, ptr %112, i64 %.2160
  %118 = load double, ptr %117, align 8, !tbaa !14
  %119 = fmul double %116, %118
  %120 = call double @llvm.fmuladd.f64(double %111, double %114, double %119)
  %121 = fadd double %111, %116
  %122 = fdiv double %120, %121
  br label %142

123:                                              ; preds = %95
  %124 = load ptr, ptr %92, align 8, !tbaa !13
  %125 = getelementptr inbounds double, ptr %124, i64 %102
  %126 = load double, ptr %125, align 8, !tbaa !14
  %127 = getelementptr inbounds double, ptr %124, i64 %.2160
  %128 = load double, ptr %127, align 8, !tbaa !14
  %129 = fsub double %126, %128
  %130 = load ptr, ptr %93, align 8, !tbaa !13
  %131 = getelementptr inbounds double, ptr %130, i64 %97
  %132 = load double, ptr %131, align 8, !tbaa !14
  %133 = getelementptr inbounds double, ptr %124, i64 %97
  %134 = load double, ptr %133, align 8, !tbaa !14
  %135 = fsub double %128, %134
  %136 = getelementptr inbounds double, ptr %130, i64 %.2160
  %137 = load double, ptr %136, align 8, !tbaa !14
  %138 = fmul double %135, %137
  %139 = call double @llvm.fmuladd.f64(double %129, double %132, double %138)
  %140 = fsub double %126, %134
  %141 = fdiv double %139, %140
  br label %142

142:                                              ; preds = %108, %123
  %.sink = phi double [ %122, %108 ], [ %141, %123 ]
  %143 = load ptr, ptr %94, align 8, !tbaa !13
  %144 = getelementptr inbounds double, ptr %143, i64 %.2160
  store double %.sink, ptr %144, align 8, !tbaa !14
  %exitcond167.not = icmp eq i64 %.2160, %smax166
  br i1 %exitcond167.not, label %._crit_edge163, label %95, !llvm.loop !19

._crit_edge163:                                   ; preds = %142
  %145 = getelementptr inbounds i8, ptr %7, i64 56
  %146 = load ptr, ptr %145, align 8, !tbaa !13
  %147 = load double, ptr %146, align 8, !tbaa !14
  %148 = getelementptr inbounds i8, ptr %8, i64 56
  %149 = load ptr, ptr %148, align 8, !tbaa !13
  %150 = load double, ptr %149, align 8, !tbaa !14
  %151 = getelementptr inbounds i8, ptr %146, i64 8
  %152 = load double, ptr %151, align 8, !tbaa !14
  %153 = getelementptr inbounds i8, ptr %149, i64 8
  %154 = load double, ptr %153, align 8, !tbaa !14
  %155 = getelementptr inbounds i8, ptr %146, i64 16
  %156 = load double, ptr %155, align 8, !tbaa !14
  %157 = getelementptr inbounds i8, ptr %149, i64 16
  %158 = load double, ptr %157, align 8, !tbaa !14
  %159 = call noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef %147, double noundef %147, double noundef %150, double noundef %152, double noundef %154, double noundef %156, double noundef %158, ptr noundef %4)
  %160 = getelementptr inbounds i8, ptr %9, i64 56
  %161 = load ptr, ptr %160, align 8, !tbaa !13
  store double %159, ptr %161, align 8, !tbaa !14
  %162 = load ptr, ptr %145, align 8, !tbaa !13
  %163 = getelementptr inbounds i8, ptr %162, i64 8
  %164 = load double, ptr %163, align 8, !tbaa !14
  %165 = load double, ptr %162, align 8, !tbaa !14
  %166 = load ptr, ptr %148, align 8, !tbaa !13
  %167 = load double, ptr %166, align 8, !tbaa !14
  %168 = getelementptr inbounds i8, ptr %166, i64 8
  %169 = load double, ptr %168, align 8, !tbaa !14
  %170 = getelementptr inbounds i8, ptr %162, i64 16
  %171 = load double, ptr %170, align 8, !tbaa !14
  %172 = getelementptr inbounds i8, ptr %166, i64 16
  %173 = load double, ptr %172, align 8, !tbaa !14
  %174 = call noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef %164, double noundef %165, double noundef %167, double noundef %164, double noundef %169, double noundef %171, double noundef %173, ptr noundef %4)
  %175 = load ptr, ptr %160, align 8, !tbaa !13
  %176 = getelementptr inbounds i8, ptr %175, i64 8
  store double %174, ptr %176, align 8, !tbaa !14
  %177 = load ptr, ptr %145, align 8, !tbaa !13
  %178 = getelementptr inbounds double, ptr %177, i64 %23
  %179 = load double, ptr %178, align 8, !tbaa !14
  %180 = getelementptr inbounds double, ptr %177, i64 %90
  %181 = load double, ptr %180, align 8, !tbaa !14
  %182 = load ptr, ptr %148, align 8, !tbaa !13
  %183 = getelementptr inbounds double, ptr %182, i64 %90
  %184 = load double, ptr %183, align 8, !tbaa !14
  %185 = getelementptr inbounds double, ptr %182, i64 %23
  %186 = load double, ptr %185, align 8, !tbaa !14
  %187 = getelementptr inbounds double, ptr %177, i64 %22
  %188 = load double, ptr %187, align 8, !tbaa !14
  %189 = getelementptr inbounds double, ptr %182, i64 %22
  %190 = load double, ptr %189, align 8, !tbaa !14
  %191 = call noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef %179, double noundef %181, double noundef %184, double noundef %179, double noundef %186, double noundef %188, double noundef %190, ptr noundef %4)
  %192 = load ptr, ptr %160, align 8, !tbaa !13
  %193 = getelementptr inbounds double, ptr %192, i64 %23
  store double %191, ptr %193, align 8, !tbaa !14
  %194 = load ptr, ptr %145, align 8, !tbaa !13
  %195 = getelementptr inbounds double, ptr %194, i64 %22
  %196 = load double, ptr %195, align 8, !tbaa !14
  %197 = getelementptr inbounds double, ptr %194, i64 %90
  %198 = load double, ptr %197, align 8, !tbaa !14
  %199 = load ptr, ptr %148, align 8, !tbaa !13
  %200 = getelementptr inbounds double, ptr %199, i64 %90
  %201 = load double, ptr %200, align 8, !tbaa !14
  %202 = getelementptr inbounds double, ptr %194, i64 %23
  %203 = load double, ptr %202, align 8, !tbaa !14
  %204 = getelementptr inbounds double, ptr %199, i64 %23
  %205 = load double, ptr %204, align 8, !tbaa !14
  %206 = getelementptr inbounds double, ptr %199, i64 %22
  %207 = load double, ptr %206, align 8, !tbaa !14
  %208 = call noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef %196, double noundef %198, double noundef %201, double noundef %203, double noundef %205, double noundef %196, double noundef %207, ptr noundef %4)
  %209 = load ptr, ptr %160, align 8, !tbaa !13
  %210 = getelementptr inbounds double, ptr %209, i64 %22
  store double %208, ptr %210, align 8, !tbaa !14
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, i64 noundef %2, ptr noundef %3, ptr noundef %4)
  br label %211

211:                                              ; preds = %._crit_edge163, %21
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  ret void
}

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

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

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

declare noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef, i64 noundef, i64 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef double @_ZN11alglib_implL23spline1d_diffthreepointEdddddddPNS_8ae_stateE(double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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, !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 = !{!8, !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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