; 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_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 }
%"struct.alglib_impl::spline1dinterpolant" = type { i8, i64, i64, i64, %"struct.alglib_impl::ae_vector", %"struct.alglib_impl::ae_vector" }

@.str.403 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [38 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_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_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_impl21spline1dbuildmonotoneEPKNS_9ae_vectorES2_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 %"struct.alglib_impl::ae_vector", 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 double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  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) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %28, 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 %14, 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)
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %12, ptr noundef %29, ptr noundef %30, i1 noundef zeroext true)
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %13, ptr noundef %31, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %33)
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %14, i64 noundef 0, i64 noundef 3, ptr noundef %34, i1 noundef zeroext true)
  %35 = 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 %35, i1 noundef zeroext true)
  %36 = 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 %36, i1 noundef zeroext true)
  %37 = 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 2, ptr noundef %37, i1 noundef zeroext true)
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = icmp sge i64 %38, 2
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.403, ptr noundef %40)
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = load i64, ptr %8, align 8, !tbaa !9
  %44 = icmp sge i64 %42, %43
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.404, ptr noundef %45)
  %46 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 0
  %47 = load i64, ptr %46, align 8, !tbaa !11
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = icmp sge i64 %47, %48
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef @.str.405, ptr noundef %50)
  %51 = load i64, ptr %8, align 8, !tbaa !9
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %51, ptr noundef %52)
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.406, ptr noundef %54)
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %13, i64 noundef %55, ptr noundef %56)
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %57, ptr noundef @.str.407, ptr noundef %58)
  %59 = load i64, ptr %8, align 8, !tbaa !9
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %12, ptr noundef %13, ptr noundef %17, i64 noundef %59, ptr noundef %60)
  %61 = load i64, ptr %8, align 8, !tbaa !9
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %12, i64 noundef %61, ptr noundef %62)
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef @.str.408, ptr noundef %64)
  store double 5.000000e-16, ptr %25, align 8, !tbaa !15
  %65 = load i64, ptr %8, align 8, !tbaa !9
  %66 = add nsw i64 %65, 2
  store i64 %66, ptr %8, align 8, !tbaa !9
  %67 = load i64, ptr %8, align 8, !tbaa !9
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %67, ptr noundef %68)
  %69 = load i64, ptr %8, align 8, !tbaa !9
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %69, ptr noundef %70)
  %71 = load i64, ptr %8, align 8, !tbaa !9
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %71, ptr noundef %72)
  %73 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %74 = load ptr, ptr %73, align 8, !tbaa !17
  %75 = getelementptr inbounds double, ptr %74, i64 0
  %76 = load double, ptr %75, align 8, !tbaa !15
  %77 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %79 = getelementptr inbounds double, ptr %78, i64 1
  %80 = load double, ptr %79, align 8, !tbaa !15
  %81 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %82 = load ptr, ptr %81, align 8, !tbaa !17
  %83 = getelementptr inbounds double, ptr %82, i64 0
  %84 = load double, ptr %83, align 8, !tbaa !15
  %85 = fsub double %80, %84
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %85, ptr noundef %86)
  %88 = fsub double %76, %87
  %89 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !17
  %91 = getelementptr inbounds double, ptr %90, i64 0
  store double %88, ptr %91, align 8, !tbaa !15
  %92 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %93 = load ptr, ptr %92, align 8, !tbaa !17
  %94 = load i64, ptr %8, align 8, !tbaa !9
  %95 = sub nsw i64 %94, 3
  %96 = getelementptr inbounds double, ptr %93, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !15
  %98 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %99 = load ptr, ptr %98, align 8, !tbaa !17
  %100 = load i64, ptr %8, align 8, !tbaa !9
  %101 = sub nsw i64 %100, 3
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !15
  %104 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !17
  %106 = load i64, ptr %8, align 8, !tbaa !9
  %107 = sub nsw i64 %106, 4
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !15
  %110 = fsub double %103, %109
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %110, ptr noundef %111)
  %113 = fadd double %97, %112
  %114 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !17
  %116 = load i64, ptr %8, align 8, !tbaa !9
  %117 = sub nsw i64 %116, 1
  %118 = getelementptr inbounds double, ptr %115, i64 %117
  store double %113, ptr %118, align 8, !tbaa !15
  %119 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %120 = load ptr, ptr %119, align 8, !tbaa !17
  %121 = getelementptr inbounds double, ptr %120, i64 0
  %122 = load double, ptr %121, align 8, !tbaa !15
  %123 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !17
  %125 = getelementptr inbounds double, ptr %124, i64 0
  store double %122, ptr %125, align 8, !tbaa !15
  %126 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %127 = load ptr, ptr %126, align 8, !tbaa !17
  %128 = load i64, ptr %8, align 8, !tbaa !9
  %129 = sub nsw i64 %128, 3
  %130 = getelementptr inbounds double, ptr %127, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !15
  %132 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = load i64, ptr %8, align 8, !tbaa !9
  %135 = sub nsw i64 %134, 1
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  store double %131, ptr %136, align 8, !tbaa !15
  store i64 1, ptr %26, align 8, !tbaa !9
  br label %137

137:                                              ; preds = %163, %5
  %138 = load i64, ptr %26, align 8, !tbaa !9
  %139 = load i64, ptr %8, align 8, !tbaa !9
  %140 = sub nsw i64 %139, 2
  %141 = icmp sle i64 %138, %140
  br i1 %141, label %142, label %166

142:                                              ; preds = %137
  %143 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %12, i32 0, i32 4
  %144 = load ptr, ptr %143, align 8, !tbaa !17
  %145 = load i64, ptr %26, align 8, !tbaa !9
  %146 = sub nsw i64 %145, 1
  %147 = getelementptr inbounds double, ptr %144, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !15
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !17
  %151 = load i64, ptr %26, align 8, !tbaa !9
  %152 = getelementptr inbounds double, ptr %150, i64 %151
  store double %148, ptr %152, align 8, !tbaa !15
  %153 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %13, i32 0, i32 4
  %154 = load ptr, ptr %153, align 8, !tbaa !17
  %155 = load i64, ptr %26, align 8, !tbaa !9
  %156 = sub nsw i64 %155, 1
  %157 = getelementptr inbounds double, ptr %154, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !15
  %159 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %160 = load ptr, ptr %159, align 8, !tbaa !17
  %161 = load i64, ptr %26, align 8, !tbaa !9
  %162 = getelementptr inbounds double, ptr %160, i64 %161
  store double %158, ptr %162, align 8, !tbaa !15
  br label %163

163:                                              ; preds = %142
  %164 = load i64, ptr %26, align 8, !tbaa !9
  %165 = add nsw i64 %164, 1
  store i64 %165, ptr %26, align 8, !tbaa !9
  br label %137, !llvm.loop !18

166:                                              ; preds = %137
  store i64 0, ptr %26, align 8, !tbaa !9
  store double 0.000000e+00, ptr %23, align 8, !tbaa !15
  br label %167

167:                                              ; preds = %190, %166
  %168 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %169 = load ptr, ptr %168, align 8, !tbaa !17
  %170 = load i64, ptr %26, align 8, !tbaa !9
  %171 = add nsw i64 %170, 1
  %172 = getelementptr inbounds double, ptr %169, i64 %171
  %173 = load double, ptr %172, align 8, !tbaa !15
  %174 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !17
  %176 = load i64, ptr %26, align 8, !tbaa !9
  %177 = getelementptr inbounds double, ptr %175, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !15
  %179 = fsub double %173, %178
  store double %179, ptr %23, align 8, !tbaa !15
  %180 = load i64, ptr %26, align 8, !tbaa !9
  %181 = add nsw i64 %180, 1
  store i64 %181, ptr %26, align 8, !tbaa !9
  br label %182

182:                                              ; preds = %167
  %183 = load double, ptr %23, align 8, !tbaa !15
  %184 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %183, double noundef 0.000000e+00)
  br i1 %184, label %190, label %185

185:                                              ; preds = %182
  %186 = load i64, ptr %26, align 8, !tbaa !9
  %187 = load i64, ptr %8, align 8, !tbaa !9
  %188 = sub nsw i64 %187, 2
  %189 = icmp sgt i64 %186, %188
  br label %190

190:                                              ; preds = %185, %182
  %191 = phi i1 [ true, %182 ], [ %189, %185 ]
  %192 = xor i1 %191, true
  br i1 %192, label %167, label %193, !llvm.loop !20

193:                                              ; preds = %190
  %194 = load double, ptr %23, align 8, !tbaa !15
  %195 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %194, double noundef 0.000000e+00)
  br i1 %195, label %196, label %202

196:                                              ; preds = %193
  %197 = load double, ptr %23, align 8, !tbaa !15
  %198 = load double, ptr %23, align 8, !tbaa !15
  %199 = load ptr, ptr %10, align 8, !tbaa !5
  %200 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %198, ptr noundef %199)
  %201 = fdiv double %197, %200
  store double %201, ptr %23, align 8, !tbaa !15
  br label %202

202:                                              ; preds = %196, %193
  store i64 0, ptr %26, align 8, !tbaa !9
  br label %203

203:                                              ; preds = %442, %202
  %204 = load i64, ptr %26, align 8, !tbaa !9
  %205 = load i64, ptr %8, align 8, !tbaa !9
  %206 = sub nsw i64 %205, 1
  %207 = icmp slt i64 %204, %206
  br i1 %207, label %208, label %445

208:                                              ; preds = %203
  store i64 1, ptr %21, align 8, !tbaa !9
  %209 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %209, ptr %27, align 8, !tbaa !9
  br label %210

210:                                              ; preds = %242, %208
  %211 = load i64, ptr %27, align 8, !tbaa !9
  %212 = load i64, ptr %8, align 8, !tbaa !9
  %213 = sub nsw i64 %212, 2
  %214 = icmp sle i64 %211, %213
  br i1 %214, label %215, label %245

215:                                              ; preds = %210
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !17
  %218 = load i64, ptr %27, align 8, !tbaa !9
  %219 = add nsw i64 %218, 1
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !15
  %222 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %223 = load ptr, ptr %222, align 8, !tbaa !17
  %224 = load i64, ptr %27, align 8, !tbaa !9
  %225 = getelementptr inbounds double, ptr %223, i64 %224
  %226 = load double, ptr %225, align 8, !tbaa !15
  %227 = fsub double %221, %226
  store double %227, ptr %24, align 8, !tbaa !15
  %228 = load double, ptr %23, align 8, !tbaa !15
  %229 = load double, ptr %24, align 8, !tbaa !15
  %230 = fmul double %228, %229
  %231 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %230, double noundef 0.000000e+00)
  br i1 %231, label %232, label %235

232:                                              ; preds = %215
  %233 = load i64, ptr %21, align 8, !tbaa !9
  %234 = add nsw i64 %233, 1
  store i64 %234, ptr %21, align 8, !tbaa !9
  br label %241

235:                                              ; preds = %215
  %236 = load double, ptr %24, align 8, !tbaa !15
  %237 = load double, ptr %24, align 8, !tbaa !15
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %237, ptr noundef %238)
  %240 = fdiv double %236, %239
  store double %240, ptr %23, align 8, !tbaa !15
  br label %245

241:                                              ; preds = %232
  br label %242

242:                                              ; preds = %241
  %243 = load i64, ptr %27, align 8, !tbaa !9
  %244 = add nsw i64 %243, 1
  store i64 %244, ptr %27, align 8, !tbaa !9
  br label %210, !llvm.loop !21

245:                                              ; preds = %235, %210
  %246 = load i64, ptr %26, align 8, !tbaa !9
  %247 = load i64, ptr %21, align 8, !tbaa !9
  %248 = add nsw i64 %246, %247
  store i64 %248, ptr %22, align 8, !tbaa !9
  %249 = load i64, ptr %21, align 8, !tbaa !9
  %250 = icmp sge i64 %249, 2
  %251 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %250, ptr noundef @.str.409, ptr noundef %251)
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !17
  %254 = load i64, ptr %26, align 8, !tbaa !9
  %255 = getelementptr inbounds double, ptr %253, i64 %254
  store double 0.000000e+00, ptr %255, align 8, !tbaa !15
  %256 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %257 = load ptr, ptr %256, align 8, !tbaa !17
  %258 = load i64, ptr %22, align 8, !tbaa !9
  %259 = sub nsw i64 %258, 1
  %260 = getelementptr inbounds double, ptr %257, i64 %259
  store double 0.000000e+00, ptr %260, align 8, !tbaa !15
  %261 = load i64, ptr %26, align 8, !tbaa !9
  %262 = add nsw i64 %261, 1
  store i64 %262, ptr %27, align 8, !tbaa !9
  br label %263

263:                                              ; preds = %325, %245
  %264 = load i64, ptr %27, align 8, !tbaa !9
  %265 = load i64, ptr %22, align 8, !tbaa !9
  %266 = sub nsw i64 %265, 2
  %267 = icmp sle i64 %264, %266
  br i1 %267, label %268, label %328

268:                                              ; preds = %263
  %269 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %270 = load ptr, ptr %269, align 8, !tbaa !17
  %271 = load i64, ptr %27, align 8, !tbaa !9
  %272 = getelementptr inbounds double, ptr %270, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !15
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !17
  %276 = load i64, ptr %27, align 8, !tbaa !9
  %277 = sub nsw i64 %276, 1
  %278 = getelementptr inbounds double, ptr %275, i64 %277
  %279 = load double, ptr %278, align 8, !tbaa !15
  %280 = fsub double %273, %279
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !17
  %283 = load i64, ptr %27, align 8, !tbaa !9
  %284 = getelementptr inbounds double, ptr %282, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !15
  %286 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %287 = load ptr, ptr %286, align 8, !tbaa !17
  %288 = load i64, ptr %27, align 8, !tbaa !9
  %289 = sub nsw i64 %288, 1
  %290 = getelementptr inbounds double, ptr %287, i64 %289
  %291 = load double, ptr %290, align 8, !tbaa !15
  %292 = fsub double %285, %291
  %293 = fdiv double %280, %292
  %294 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %295 = load ptr, ptr %294, align 8, !tbaa !17
  %296 = load i64, ptr %27, align 8, !tbaa !9
  %297 = add nsw i64 %296, 1
  %298 = getelementptr inbounds double, ptr %295, i64 %297
  %299 = load double, ptr %298, align 8, !tbaa !15
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !17
  %302 = load i64, ptr %27, align 8, !tbaa !9
  %303 = getelementptr inbounds double, ptr %301, i64 %302
  %304 = load double, ptr %303, align 8, !tbaa !15
  %305 = fsub double %299, %304
  %306 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %307 = load ptr, ptr %306, align 8, !tbaa !17
  %308 = load i64, ptr %27, align 8, !tbaa !9
  %309 = add nsw i64 %308, 1
  %310 = getelementptr inbounds double, ptr %307, i64 %309
  %311 = load double, ptr %310, align 8, !tbaa !15
  %312 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %313 = load ptr, ptr %312, align 8, !tbaa !17
  %314 = load i64, ptr %27, align 8, !tbaa !9
  %315 = getelementptr inbounds double, ptr %313, i64 %314
  %316 = load double, ptr %315, align 8, !tbaa !15
  %317 = fsub double %311, %316
  %318 = fdiv double %305, %317
  %319 = fadd double %293, %318
  %320 = fdiv double %319, 2.000000e+00
  %321 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %322 = load ptr, ptr %321, align 8, !tbaa !17
  %323 = load i64, ptr %27, align 8, !tbaa !9
  %324 = getelementptr inbounds double, ptr %322, i64 %323
  store double %320, ptr %324, align 8, !tbaa !15
  br label %325

325:                                              ; preds = %268
  %326 = load i64, ptr %27, align 8, !tbaa !9
  %327 = add nsw i64 %326, 1
  store i64 %327, ptr %27, align 8, !tbaa !9
  br label %263, !llvm.loop !22

328:                                              ; preds = %263
  %329 = load i64, ptr %26, align 8, !tbaa !9
  store i64 %329, ptr %27, align 8, !tbaa !9
  br label %330

330:                                              ; preds = %439, %328
  %331 = load i64, ptr %27, align 8, !tbaa !9
  %332 = load i64, ptr %22, align 8, !tbaa !9
  %333 = sub nsw i64 %332, 2
  %334 = icmp sle i64 %331, %333
  br i1 %334, label %335, label %442

335:                                              ; preds = %330
  %336 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %337 = load ptr, ptr %336, align 8, !tbaa !17
  %338 = load i64, ptr %27, align 8, !tbaa !9
  %339 = add nsw i64 %338, 1
  %340 = getelementptr inbounds double, ptr %337, i64 %339
  %341 = load double, ptr %340, align 8, !tbaa !15
  %342 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %343 = load ptr, ptr %342, align 8, !tbaa !17
  %344 = load i64, ptr %27, align 8, !tbaa !9
  %345 = getelementptr inbounds double, ptr %343, i64 %344
  %346 = load double, ptr %345, align 8, !tbaa !15
  %347 = fsub double %341, %346
  %348 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %349 = load ptr, ptr %348, align 8, !tbaa !17
  %350 = load i64, ptr %27, align 8, !tbaa !9
  %351 = add nsw i64 %350, 1
  %352 = getelementptr inbounds double, ptr %349, i64 %351
  %353 = load double, ptr %352, align 8, !tbaa !15
  %354 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %355 = load ptr, ptr %354, align 8, !tbaa !17
  %356 = load i64, ptr %27, align 8, !tbaa !9
  %357 = getelementptr inbounds double, ptr %355, i64 %356
  %358 = load double, ptr %357, align 8, !tbaa !15
  %359 = fsub double %353, %358
  %360 = fdiv double %347, %359
  store double %360, ptr %18, align 8, !tbaa !15
  %361 = load double, ptr %18, align 8, !tbaa !15
  %362 = load ptr, ptr %10, align 8, !tbaa !5
  %363 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %361, ptr noundef %362)
  %364 = load double, ptr %25, align 8, !tbaa !15
  %365 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %363, double noundef %364)
  br i1 %365, label %366, label %376

366:                                              ; preds = %335
  %367 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %368 = load ptr, ptr %367, align 8, !tbaa !17
  %369 = load i64, ptr %27, align 8, !tbaa !9
  %370 = getelementptr inbounds double, ptr %368, i64 %369
  store double 0.000000e+00, ptr %370, align 8, !tbaa !15
  %371 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %372 = load ptr, ptr %371, align 8, !tbaa !17
  %373 = load i64, ptr %27, align 8, !tbaa !9
  %374 = add nsw i64 %373, 1
  %375 = getelementptr inbounds double, ptr %372, i64 %374
  store double 0.000000e+00, ptr %375, align 8, !tbaa !15
  br label %438

376:                                              ; preds = %335
  %377 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %378 = load ptr, ptr %377, align 8, !tbaa !17
  %379 = load i64, ptr %27, align 8, !tbaa !9
  %380 = getelementptr inbounds double, ptr %378, i64 %379
  %381 = load double, ptr %380, align 8, !tbaa !15
  %382 = load double, ptr %18, align 8, !tbaa !15
  %383 = fdiv double %381, %382
  store double %383, ptr %19, align 8, !tbaa !15
  %384 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !17
  %386 = load i64, ptr %27, align 8, !tbaa !9
  %387 = add nsw i64 %386, 1
  %388 = getelementptr inbounds double, ptr %385, i64 %387
  %389 = load double, ptr %388, align 8, !tbaa !15
  %390 = load double, ptr %18, align 8, !tbaa !15
  %391 = fdiv double %389, %390
  store double %391, ptr %20, align 8, !tbaa !15
  %392 = load double, ptr %19, align 8, !tbaa !15
  %393 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %392, double noundef 0.000000e+00)
  br i1 %393, label %394, label %405

394:                                              ; preds = %376
  %395 = load double, ptr %19, align 8, !tbaa !15
  %396 = load double, ptr %20, align 8, !tbaa !15
  %397 = load double, ptr %19, align 8, !tbaa !15
  %398 = fdiv double %396, %397
  %399 = load ptr, ptr %10, align 8, !tbaa !5
  %400 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %398, ptr noundef %399)
  %401 = fadd double 1.000000e+00, %400
  %402 = load ptr, ptr %10, align 8, !tbaa !5
  %403 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %401, ptr noundef %402)
  %404 = fmul double %395, %403
  store double %404, ptr %24, align 8, !tbaa !15
  br label %412

405:                                              ; preds = %376
  %406 = load double, ptr %20, align 8, !tbaa !15
  %407 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %406, double noundef 0.000000e+00)
  br i1 %407, label %408, label %410

408:                                              ; preds = %405
  %409 = load double, ptr %20, align 8, !tbaa !15
  store double %409, ptr %24, align 8, !tbaa !15
  br label %411

410:                                              ; preds = %405
  br label %439

411:                                              ; preds = %408
  br label %412

412:                                              ; preds = %411, %394
  %413 = load double, ptr %24, align 8, !tbaa !15
  %414 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %413, double noundef 3.000000e+00)
  br i1 %414, label %415, label %437

415:                                              ; preds = %412
  %416 = load double, ptr %19, align 8, !tbaa !15
  %417 = fmul double 3.000000e+00, %416
  %418 = load double, ptr %18, align 8, !tbaa !15
  %419 = fmul double %417, %418
  %420 = load double, ptr %24, align 8, !tbaa !15
  %421 = fdiv double %419, %420
  %422 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %423 = load ptr, ptr %422, align 8, !tbaa !17
  %424 = load i64, ptr %27, align 8, !tbaa !9
  %425 = getelementptr inbounds double, ptr %423, i64 %424
  store double %421, ptr %425, align 8, !tbaa !15
  %426 = load double, ptr %20, align 8, !tbaa !15
  %427 = fmul double 3.000000e+00, %426
  %428 = load double, ptr %18, align 8, !tbaa !15
  %429 = fmul double %427, %428
  %430 = load double, ptr %24, align 8, !tbaa !15
  %431 = fdiv double %429, %430
  %432 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %433 = load ptr, ptr %432, align 8, !tbaa !17
  %434 = load i64, ptr %27, align 8, !tbaa !9
  %435 = add nsw i64 %434, 1
  %436 = getelementptr inbounds double, ptr %433, i64 %435
  store double %431, ptr %436, align 8, !tbaa !15
  br label %437

437:                                              ; preds = %415, %412
  br label %438

438:                                              ; preds = %437, %366
  br label %439

439:                                              ; preds = %438, %410
  %440 = load i64, ptr %27, align 8, !tbaa !9
  %441 = add nsw i64 %440, 1
  store i64 %441, ptr %27, align 8, !tbaa !9
  br label %330, !llvm.loop !23

442:                                              ; preds = %330
  %443 = load i64, ptr %22, align 8, !tbaa !9
  %444 = sub nsw i64 %443, 1
  store i64 %444, ptr %26, align 8, !tbaa !9
  br label %203, !llvm.loop !24

445:                                              ; preds = %203
  %446 = load i64, ptr %8, align 8, !tbaa !9
  %447 = load ptr, ptr %9, align 8, !tbaa !5
  %448 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %15, ptr noundef %16, ptr noundef %14, i64 noundef %446, ptr noundef %447, ptr noundef %448)
  %449 = load ptr, ptr %9, align 8, !tbaa !5
  %450 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %449, i32 0, i32 3
  store i64 2, ptr %450, align 8, !tbaa !25
  %451 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %451)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #4
  ret void
}

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

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

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

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

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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr 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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, 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_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

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

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 = { 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 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = !{!26, !10, i64 24}
!26 = !{!"_ZTSN11alglib_impl19spline1dinterpolantE", !13, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !12, i64 96}


; 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.403 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.404 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.405 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.406 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.407 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.408 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.409 = external hidden unnamed_addr constant [38 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_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_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_impl21spline1dbuildmonotoneEPKNS_9ae_vectorES2_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
  %12 = alloca %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #4
  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 @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_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_vectorEPKS0_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)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %12, i64 noundef 0, i64 noundef 2, ptr noundef %4, i1 noundef zeroext true)
  %13 = icmp sgt i64 %2, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.403, ptr noundef %4)
  %14 = load i64, ptr %7, align 8, !tbaa !5
  %15 = icmp sge i64 %14, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.404, ptr noundef %4)
  %16 = load i64, ptr %8, align 8, !tbaa !5
  %17 = icmp sge i64 %16, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.405, ptr noundef %4)
  %18 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.406, ptr noundef %4)
  %19 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.407, ptr noundef %4)
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %12, i64 noundef %2, ptr noundef %4)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %7, i64 noundef %2, ptr noundef %4)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.408, ptr noundef %4)
  %21 = add nsw i64 %2, 2
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %21, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %21, ptr noundef %4)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %21, ptr noundef %4)
  %22 = getelementptr inbounds i8, ptr %7, i64 56
  %23 = load ptr, ptr %22, align 8, !tbaa !13
  %24 = load double, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds i8, ptr %23, i64 8
  %26 = load double, ptr %25, align 8, !tbaa !14
  %27 = fsub double %26, %24
  %28 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %27, ptr noundef %4)
  %29 = fsub double %24, %28
  %30 = getelementptr inbounds i8, ptr %10, i64 56
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  store double %29, ptr %31, align 8, !tbaa !14
  %32 = load ptr, ptr %22, align 8, !tbaa !13
  %33 = add nsw i64 %2, -1
  %34 = getelementptr inbounds double, ptr %32, i64 %33
  %35 = load double, ptr %34, align 8, !tbaa !14
  %36 = getelementptr double, ptr %32, i64 %2
  %37 = getelementptr i8, ptr %36, i64 -16
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = fsub double %35, %38
  %40 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %39, ptr noundef %4)
  %41 = fadd double %35, %40
  %42 = load ptr, ptr %30, align 8, !tbaa !13
  %43 = add i64 %2, 1
  %44 = getelementptr inbounds double, ptr %42, i64 %43
  store double %41, ptr %44, align 8, !tbaa !14
  %45 = getelementptr inbounds i8, ptr %8, i64 56
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = load double, ptr %46, align 8, !tbaa !14
  %48 = getelementptr inbounds i8, ptr %11, i64 56
  %49 = load ptr, ptr %48, align 8, !tbaa !13
  store double %47, ptr %49, align 8, !tbaa !14
  %50 = load ptr, ptr %45, align 8, !tbaa !13
  %51 = getelementptr inbounds double, ptr %50, i64 %33
  %52 = load double, ptr %51, align 8, !tbaa !14
  %53 = load ptr, ptr %48, align 8, !tbaa !13
  %54 = getelementptr inbounds double, ptr %53, i64 %43
  store double %52, ptr %54, align 8, !tbaa !14
  %.not152 = icmp slt i64 %2, 1
  br i1 %.not152, label %.preheader147.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %5
  %xtraiter = and i64 %2, 1
  %55 = icmp eq i64 %2, 1
  br i1 %55, label %.preheader147.preheader.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %2, 9223372036854775806
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.0131153 = phi i64 [ 1, %.lr.ph.preheader.new ], [ %78, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %56 = load ptr, ptr %22, align 8, !tbaa !13
  %57 = add nsw i64 %.0131153, -1
  %58 = getelementptr inbounds double, ptr %56, i64 %57
  %59 = load double, ptr %58, align 8, !tbaa !14
  %60 = load ptr, ptr %30, align 8, !tbaa !13
  %61 = getelementptr inbounds double, ptr %60, i64 %.0131153
  store double %59, ptr %61, align 8, !tbaa !14
  %62 = load ptr, ptr %45, align 8, !tbaa !13
  %63 = getelementptr inbounds double, ptr %62, i64 %57
  %64 = load double, ptr %63, align 8, !tbaa !14
  %65 = load ptr, ptr %48, align 8, !tbaa !13
  %66 = getelementptr inbounds double, ptr %65, i64 %.0131153
  store double %64, ptr %66, align 8, !tbaa !14
  %67 = add nuw i64 %.0131153, 1
  %68 = load ptr, ptr %22, align 8, !tbaa !13
  %69 = getelementptr inbounds double, ptr %68, i64 %.0131153
  %70 = load double, ptr %69, align 8, !tbaa !14
  %71 = load ptr, ptr %30, align 8, !tbaa !13
  %72 = getelementptr inbounds double, ptr %71, i64 %67
  store double %70, ptr %72, align 8, !tbaa !14
  %73 = load ptr, ptr %45, align 8, !tbaa !13
  %74 = getelementptr inbounds double, ptr %73, i64 %.0131153
  %75 = load double, ptr %74, align 8, !tbaa !14
  %76 = load ptr, ptr %48, align 8, !tbaa !13
  %77 = getelementptr inbounds double, ptr %76, i64 %67
  store double %75, ptr %77, align 8, !tbaa !14
  %78 = add nuw i64 %.0131153, 2
  %niter.next.1 = add nuw i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.preheader147.preheader.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !16

.preheader147.preheader.loopexit.unr-lcssa:       ; preds = %.lr.ph, %.lr.ph.preheader
  %.0131153.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %78, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader147.preheader, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %.preheader147.preheader.loopexit.unr-lcssa
  %79 = load ptr, ptr %22, align 8, !tbaa !13
  %80 = add nsw i64 %.0131153.unr, -1
  %81 = getelementptr inbounds double, ptr %79, i64 %80
  %82 = load double, ptr %81, align 8, !tbaa !14
  %83 = load ptr, ptr %30, align 8, !tbaa !13
  %84 = getelementptr inbounds double, ptr %83, i64 %.0131153.unr
  store double %82, ptr %84, align 8, !tbaa !14
  %85 = load ptr, ptr %45, align 8, !tbaa !13
  %86 = getelementptr inbounds double, ptr %85, i64 %80
  %87 = load double, ptr %86, align 8, !tbaa !14
  %88 = load ptr, ptr %48, align 8, !tbaa !13
  %89 = getelementptr inbounds double, ptr %88, i64 %.0131153.unr
  store double %87, ptr %89, align 8, !tbaa !14
  br label %.preheader147.preheader

.preheader147.preheader:                          ; preds = %.lr.ph.epil, %.preheader147.preheader.loopexit.unr-lcssa, %5
  br label %.preheader147

.preheader147:                                    ; preds = %.preheader147.preheader, %.preheader147
  %.1132 = phi i64 [ %91, %.preheader147 ], [ 0, %.preheader147.preheader ]
  %90 = load ptr, ptr %48, align 8, !tbaa !13
  %91 = add nuw nsw i64 %.1132, 1
  %92 = getelementptr inbounds double, ptr %90, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !14
  %94 = getelementptr inbounds double, ptr %90, i64 %.1132
  %95 = load double, ptr %94, align 8, !tbaa !14
  %96 = fsub double %93, %95
  %97 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %96, double noundef 0.000000e+00)
  %98 = icmp sge i64 %.1132, %2
  %99 = or i1 %98, %97
  br i1 %99, label %100, label %.preheader147, !llvm.loop !18

100:                                              ; preds = %.preheader147
  %101 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %96, double noundef 0.000000e+00)
  br i1 %101, label %102, label %105

102:                                              ; preds = %100
  %103 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %96, ptr noundef %4)
  %104 = fdiv double %96, %103
  br label %105

105:                                              ; preds = %102, %100
  %.0135 = phi double [ %104, %102 ], [ %96, %100 ]
  %.not141162 = icmp slt i64 %2, 0
  br i1 %.not141162, label %._crit_edge, label %.preheader145.lr.ph

.preheader145.lr.ph:                              ; preds = %105
  %106 = getelementptr inbounds i8, ptr %9, i64 56
  br label %.preheader145

.loopexit:                                        ; preds = %202, %.preheader
  %.not141 = icmp sgt i64 %127, %2
  br i1 %.not141, label %._crit_edge, label %.preheader145, !llvm.loop !19

.preheader145:                                    ; preds = %.preheader145.lr.ph, %.loopexit
  %.2133164 = phi i64 [ 0, %.preheader145.lr.ph ], [ %127, %.loopexit ]
  %.1136163 = phi double [ %.0135, %.preheader145.lr.ph ], [ %.2137, %.loopexit ]
  br label %107

107:                                              ; preds = %.preheader145, %117
  %.0155 = phi i64 [ %.2133164, %.preheader145 ], [ %109, %117 ]
  %.0138154 = phi i64 [ 1, %.preheader145 ], [ %118, %117 ]
  %108 = load ptr, ptr %48, align 8, !tbaa !13
  %109 = add nsw i64 %.0155, 1
  %110 = getelementptr inbounds double, ptr %108, i64 %109
  %111 = load double, ptr %110, align 8, !tbaa !14
  %112 = getelementptr inbounds double, ptr %108, i64 %.0155
  %113 = load double, ptr %112, align 8, !tbaa !14
  %114 = fsub double %111, %113
  %115 = fmul double %.1136163, %114
  %116 = call noundef zeroext i1 @_ZN11alglib_impl16ae_fp_greater_eqEdd(double noundef %115, double noundef 0.000000e+00)
  br i1 %116, label %117, label %119

117:                                              ; preds = %107
  %118 = add nuw nsw i64 %.0138154, 1
  %.not142.not = icmp slt i64 %.0155, %2
  br i1 %.not142.not, label %107, label %.loopexit146, !llvm.loop !20

119:                                              ; preds = %107
  %120 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %114, ptr noundef %4)
  %121 = fdiv double %114, %120
  br label %.loopexit146

.loopexit146:                                     ; preds = %117, %119
  %.0138149 = phi i64 [ %.0138154, %119 ], [ %118, %117 ]
  %.2137 = phi double [ %121, %119 ], [ %.1136163, %117 ]
  %122 = add nsw i64 %.0138149, %.2133164
  %123 = icmp ugt i64 %.0138149, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %123, ptr noundef nonnull @.str.409, ptr noundef %4)
  %124 = load ptr, ptr %106, align 8, !tbaa !13
  %125 = getelementptr inbounds double, ptr %124, i64 %.2133164
  store double 0.000000e+00, ptr %125, align 8, !tbaa !14
  %126 = load ptr, ptr %106, align 8, !tbaa !13
  %127 = add nsw i64 %122, -1
  %128 = getelementptr inbounds double, ptr %126, i64 %127
  store double 0.000000e+00, ptr %128, align 8, !tbaa !14
  %129 = add nsw i64 %122, -2
  %.not143156.not = icmp slt i64 %.2133164, %129
  br i1 %.not143156.not, label %.lr.ph158.preheader, label %.preheader

.lr.ph158.preheader:                              ; preds = %.loopexit146
  %130 = add nsw i64 %.2133164, 1
  br label %.lr.ph158

.preheader:                                       ; preds = %.lr.ph158, %.loopexit146
  %.not144159 = icmp sgt i64 %.2133164, %129
  br i1 %.not144159, label %.loopexit, label %.lr.ph161

.lr.ph158:                                        ; preds = %.lr.ph158.preheader, %.lr.ph158
  %.1157 = phi i64 [ %140, %.lr.ph158 ], [ %130, %.lr.ph158.preheader ]
  %131 = load ptr, ptr %48, align 8, !tbaa !13
  %132 = getelementptr inbounds double, ptr %131, i64 %.1157
  %133 = add nsw i64 %.1157, -1
  %134 = getelementptr inbounds double, ptr %131, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !14
  %136 = load ptr, ptr %30, align 8, !tbaa !13
  %137 = getelementptr inbounds double, ptr %136, i64 %.1157
  %138 = getelementptr inbounds double, ptr %136, i64 %133
  %139 = load double, ptr %138, align 8, !tbaa !14
  %140 = add nsw i64 %.1157, 1
  %141 = load <2 x double>, ptr %132, align 8, !tbaa !14
  %142 = insertelement <2 x double> poison, double %135, i64 0
  %143 = shufflevector <2 x double> %142, <2 x double> %141, <2 x i32> <i32 0, i32 2>
  %144 = fsub <2 x double> %141, %143
  %145 = load <2 x double>, ptr %137, align 8, !tbaa !14
  %146 = insertelement <2 x double> poison, double %139, i64 0
  %147 = shufflevector <2 x double> %146, <2 x double> %145, <2 x i32> <i32 0, i32 2>
  %148 = fsub <2 x double> %145, %147
  %149 = fdiv <2 x double> %144, %148
  %shift = shufflevector <2 x double> %149, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %150 = fadd <2 x double> %149, %shift
  %151 = extractelement <2 x double> %150, i64 0
  %152 = fmul double %151, 5.000000e-01
  %153 = load ptr, ptr %106, align 8, !tbaa !13
  %154 = getelementptr inbounds double, ptr %153, i64 %.1157
  store double %152, ptr %154, align 8, !tbaa !14
  %exitcond169.not = icmp eq i64 %140, %127
  br i1 %exitcond169.not, label %.preheader, label %.lr.ph158, !llvm.loop !21

.lr.ph161:                                        ; preds = %.preheader, %202
  %.2160 = phi i64 [ %156, %202 ], [ %.2133164, %.preheader ]
  %155 = load ptr, ptr %48, align 8, !tbaa !13
  %156 = add nsw i64 %.2160, 1
  %157 = getelementptr inbounds double, ptr %155, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !14
  %159 = getelementptr inbounds double, ptr %155, i64 %.2160
  %160 = load double, ptr %159, align 8, !tbaa !14
  %161 = fsub double %158, %160
  %162 = load ptr, ptr %30, align 8, !tbaa !13
  %163 = getelementptr inbounds double, ptr %162, i64 %156
  %164 = load double, ptr %163, align 8, !tbaa !14
  %165 = getelementptr inbounds double, ptr %162, i64 %.2160
  %166 = load double, ptr %165, align 8, !tbaa !14
  %167 = fsub double %164, %166
  %168 = fdiv double %161, %167
  %169 = call noundef double @_ZN11alglib_impl7ae_fabsEdPNS_8ae_stateE(double noundef %168, ptr noundef %4)
  %170 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_less_eqEdd(double noundef %169, double noundef 5.000000e-16)
  %171 = load ptr, ptr %106, align 8, !tbaa !13
  %172 = getelementptr inbounds double, ptr %171, i64 %.2160
  br i1 %170, label %173, label %174

173:                                              ; preds = %.lr.ph161
  store double 0.000000e+00, ptr %172, align 8, !tbaa !14
  br label %.sink.split

174:                                              ; preds = %.lr.ph161
  %175 = load double, ptr %172, align 8, !tbaa !14
  %176 = fdiv double %175, %168
  %177 = getelementptr inbounds double, ptr %171, i64 %156
  %178 = load double, ptr %177, align 8, !tbaa !14
  %179 = fdiv double %178, %168
  %180 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %176, double noundef 0.000000e+00)
  br i1 %180, label %181, label %187

181:                                              ; preds = %174
  %182 = fdiv double %179, %176
  %183 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %182, ptr noundef %4)
  %184 = fadd double %183, 1.000000e+00
  %185 = call noundef double @_ZN11alglib_impl7ae_sqrtEdPNS_8ae_stateE(double noundef %184, ptr noundef %4)
  %186 = fmul double %176, %185
  br label %189

187:                                              ; preds = %174
  %188 = call noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef %179, double noundef 0.000000e+00)
  br i1 %188, label %189, label %202

189:                                              ; preds = %187, %181
  %.0134 = phi double [ %186, %181 ], [ %179, %187 ]
  %190 = call noundef zeroext i1 @_ZN11alglib_impl13ae_fp_greaterEdd(double noundef %.0134, double noundef 3.000000e+00)
  br i1 %190, label %191, label %202

191:                                              ; preds = %189
  %192 = fmul double %176, 3.000000e+00
  %193 = fmul double %168, %192
  %194 = fdiv double %193, %.0134
  %195 = load ptr, ptr %106, align 8, !tbaa !13
  %196 = getelementptr inbounds double, ptr %195, i64 %.2160
  store double %194, ptr %196, align 8, !tbaa !14
  %197 = fmul double %179, 3.000000e+00
  %198 = fmul double %168, %197
  %199 = fdiv double %198, %.0134
  br label %.sink.split

.sink.split:                                      ; preds = %191, %173
  %.sink = phi double [ 0.000000e+00, %173 ], [ %199, %191 ]
  %200 = load ptr, ptr %106, align 8, !tbaa !13
  %201 = getelementptr inbounds double, ptr %200, i64 %156
  store double %.sink, ptr %201, align 8, !tbaa !14
  br label %202

202:                                              ; preds = %.sink.split, %189, %187
  %exitcond170.not = icmp eq i64 %156, %127
  br i1 %exitcond170.not, label %.loopexit, label %.lr.ph161, !llvm.loop !22

._crit_edge:                                      ; preds = %.loopexit, %105
  call void @_ZN11alglib_impl20spline1dbuildhermiteEPKNS_9ae_vectorES2_S2_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %9, i64 noundef %21, ptr noundef %3, ptr noundef %4)
  %203 = getelementptr inbounds i8, ptr %3, i64 24
  store i64 2, ptr %203, align 8, !tbaa !23
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %4)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #4
  ret void
}

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl9ae_fp_neqEdd(double noundef, double 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

declare void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr 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_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

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

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

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

declare noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef, i64 noundef, 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_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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

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 = { 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}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}
!23 = !{!24, !7, i64 24}
!24 = !{!"_ZTSN11alglib_impl19spline1dinterpolantE", !10, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !6, i64 32, !6, i64 96}


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