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

@.str.254 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [68 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
define dso_local void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"struct.alglib_impl::ae_frame", 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 i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 64, 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 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %21, ptr noundef %13)
  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)
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %14, ptr noundef %22, ptr noundef %23, i1 noundef zeroext true)
  store ptr %14, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %15, ptr noundef %24, ptr noundef %25, i1 noundef zeroext true)
  store ptr %15, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef %16, ptr noundef %26, ptr noundef %27, i1 noundef zeroext true)
  store ptr %16, ptr %9, align 8, !tbaa !5
  %28 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %28)
  %29 = load i64, ptr %10, align 8, !tbaa !9
  %30 = icmp sge i64 %29, 2
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %30, ptr noundef @.str.254, ptr noundef %31)
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %32, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = load i64, ptr %10, align 8, !tbaa !9
  %36 = icmp sge i64 %34, %35
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef @.str.255, ptr noundef %37)
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !11
  %41 = load i64, ptr %10, align 8, !tbaa !9
  %42 = icmp sge i64 %40, %41
  %43 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef @.str.256, ptr noundef %43)
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !11
  %47 = load i64, ptr %10, align 8, !tbaa !9
  %48 = icmp sge i64 %46, %47
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.257, ptr noundef %49)
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i64, ptr %10, align 8, !tbaa !9
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %50, i64 noundef %51, ptr noundef %52)
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %53, ptr noundef @.str.258, ptr noundef %54)
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load i64, ptr %10, align 8, !tbaa !9
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %55, i64 noundef %56, ptr noundef %57)
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef @.str.259, ptr noundef %59)
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load i64, ptr %10, align 8, !tbaa !9
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %60, i64 noundef %61, ptr noundef %62)
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %63, ptr noundef @.str.260, ptr noundef %64)
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i64, ptr %10, align 8, !tbaa !9
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15heapsortdpointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %65, ptr noundef %66, ptr noundef %67, i64 noundef %68, ptr noundef %69)
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = load i64, ptr %10, align 8, !tbaa !9
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %70, i64 noundef %71, ptr noundef %72)
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %73, ptr noundef @.str.261, ptr noundef %74)
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %75, i32 0, i32 4
  %77 = load i64, ptr %10, align 8, !tbaa !9
  %78 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %76, i64 noundef %77, ptr noundef %78)
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %79, i32 0, i32 5
  %81 = load i64, ptr %10, align 8, !tbaa !9
  %82 = sub nsw i64 %81, 1
  %83 = mul nsw i64 4, %82
  %84 = add nsw i64 %83, 2
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %80, i64 noundef %84, ptr noundef %85)
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %86, i32 0, i32 0
  store i8 0, ptr %87, align 8, !tbaa !15
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %88, i32 0, i32 2
  store i64 3, ptr %89, align 8, !tbaa !17
  %90 = load i64, ptr %10, align 8, !tbaa !9
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %91, i32 0, i32 1
  store i64 %90, ptr %92, align 8, !tbaa !18
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %93, i32 0, i32 3
  store i64 1, ptr %94, align 8, !tbaa !19
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %113, %6
  %96 = load i64, ptr %17, align 8, !tbaa !9
  %97 = load i64, ptr %10, align 8, !tbaa !9
  %98 = sub nsw i64 %97, 1
  %99 = icmp sle i64 %96, %98
  br i1 %99, label %100, label %116

100:                                              ; preds = %95
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %101, i32 0, i32 4
  %103 = load ptr, ptr %102, align 8, !tbaa !20
  %104 = load i64, ptr %17, align 8, !tbaa !9
  %105 = getelementptr inbounds double, ptr %103, i64 %104
  %106 = load double, ptr %105, align 8, !tbaa !21
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %107, i32 0, i32 4
  %109 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %108, i32 0, i32 4
  %110 = load ptr, ptr %109, align 8, !tbaa !20
  %111 = load i64, ptr %17, align 8, !tbaa !9
  %112 = getelementptr inbounds double, ptr %110, i64 %111
  store double %106, ptr %112, align 8, !tbaa !21
  br label %113

113:                                              ; preds = %100
  %114 = load i64, ptr %17, align 8, !tbaa !9
  %115 = add nsw i64 %114, 1
  store i64 %115, ptr %17, align 8, !tbaa !9
  br label %95, !llvm.loop !23

116:                                              ; preds = %95
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %258, %116
  %118 = load i64, ptr %17, align 8, !tbaa !9
  %119 = load i64, ptr %10, align 8, !tbaa !9
  %120 = sub nsw i64 %119, 2
  %121 = icmp sle i64 %118, %120
  br i1 %121, label %122, label %261

122:                                              ; preds = %117
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !20
  %126 = load i64, ptr %17, align 8, !tbaa !9
  %127 = add nsw i64 %126, 1
  %128 = getelementptr inbounds double, ptr %125, i64 %127
  %129 = load double, ptr %128, align 8, !tbaa !21
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %130, i32 0, i32 4
  %132 = load ptr, ptr %131, align 8, !tbaa !20
  %133 = load i64, ptr %17, align 8, !tbaa !9
  %134 = getelementptr inbounds double, ptr %132, i64 %133
  %135 = load double, ptr %134, align 8, !tbaa !21
  %136 = fsub double %129, %135
  store double %136, ptr %18, align 8, !tbaa !21
  %137 = load double, ptr %18, align 8, !tbaa !21
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %137, ptr noundef %138)
  store double %139, ptr %19, align 8, !tbaa !21
  %140 = load double, ptr %18, align 8, !tbaa !21
  %141 = load double, ptr %19, align 8, !tbaa !21
  %142 = fmul double %140, %141
  store double %142, ptr %20, align 8, !tbaa !21
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %143, i32 0, i32 4
  %145 = load ptr, ptr %144, align 8, !tbaa !20
  %146 = load i64, ptr %17, align 8, !tbaa !9
  %147 = getelementptr inbounds double, ptr %145, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !21
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %149, i32 0, i32 5
  %151 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %150, i32 0, i32 4
  %152 = load ptr, ptr %151, align 8, !tbaa !20
  %153 = load i64, ptr %17, align 8, !tbaa !9
  %154 = mul nsw i64 4, %153
  %155 = add nsw i64 %154, 0
  %156 = getelementptr inbounds double, ptr %152, i64 %155
  store double %148, ptr %156, align 8, !tbaa !21
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %157, i32 0, i32 4
  %159 = load ptr, ptr %158, align 8, !tbaa !20
  %160 = load i64, ptr %17, align 8, !tbaa !9
  %161 = getelementptr inbounds double, ptr %159, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !21
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %163, i32 0, i32 5
  %165 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %164, i32 0, i32 4
  %166 = load ptr, ptr %165, align 8, !tbaa !20
  %167 = load i64, ptr %17, align 8, !tbaa !9
  %168 = mul nsw i64 4, %167
  %169 = add nsw i64 %168, 1
  %170 = getelementptr inbounds double, ptr %166, i64 %169
  store double %162, ptr %170, align 8, !tbaa !21
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !20
  %174 = load i64, ptr %17, align 8, !tbaa !9
  %175 = add nsw i64 %174, 1
  %176 = getelementptr inbounds double, ptr %173, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !21
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %178, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !20
  %181 = load i64, ptr %17, align 8, !tbaa !9
  %182 = getelementptr inbounds double, ptr %180, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !21
  %184 = fsub double %177, %183
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %185, i32 0, i32 4
  %187 = load ptr, ptr %186, align 8, !tbaa !20
  %188 = load i64, ptr %17, align 8, !tbaa !9
  %189 = getelementptr inbounds double, ptr %187, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !21
  %191 = fmul double 2.000000e+00, %190
  %192 = load double, ptr %18, align 8, !tbaa !21
  %193 = fmul double %191, %192
  %194 = fneg double %193
  %195 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %184, double %194)
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %196, i32 0, i32 4
  %198 = load ptr, ptr %197, align 8, !tbaa !20
  %199 = load i64, ptr %17, align 8, !tbaa !9
  %200 = add nsw i64 %199, 1
  %201 = getelementptr inbounds double, ptr %198, i64 %200
  %202 = load double, ptr %201, align 8, !tbaa !21
  %203 = load double, ptr %18, align 8, !tbaa !21
  %204 = fneg double %202
  %205 = call double @llvm.fmuladd.f64(double %204, double %203, double %195)
  %206 = load double, ptr %19, align 8, !tbaa !21
  %207 = fdiv double %205, %206
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %208, i32 0, i32 5
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !20
  %212 = load i64, ptr %17, align 8, !tbaa !9
  %213 = mul nsw i64 4, %212
  %214 = add nsw i64 %213, 2
  %215 = getelementptr inbounds double, ptr %211, i64 %214
  store double %207, ptr %215, align 8, !tbaa !21
  %216 = load ptr, ptr %8, align 8, !tbaa !5
  %217 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %216, i32 0, i32 4
  %218 = load ptr, ptr %217, align 8, !tbaa !20
  %219 = load i64, ptr %17, align 8, !tbaa !9
  %220 = getelementptr inbounds double, ptr %218, i64 %219
  %221 = load double, ptr %220, align 8, !tbaa !21
  %222 = load ptr, ptr %8, align 8, !tbaa !5
  %223 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %222, i32 0, i32 4
  %224 = load ptr, ptr %223, align 8, !tbaa !20
  %225 = load i64, ptr %17, align 8, !tbaa !9
  %226 = add nsw i64 %225, 1
  %227 = getelementptr inbounds double, ptr %224, i64 %226
  %228 = load double, ptr %227, align 8, !tbaa !21
  %229 = fsub double %221, %228
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %230, i32 0, i32 4
  %232 = load ptr, ptr %231, align 8, !tbaa !20
  %233 = load i64, ptr %17, align 8, !tbaa !9
  %234 = getelementptr inbounds double, ptr %232, i64 %233
  %235 = load double, ptr %234, align 8, !tbaa !21
  %236 = load double, ptr %18, align 8, !tbaa !21
  %237 = fmul double %235, %236
  %238 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %229, double %237)
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !20
  %242 = load i64, ptr %17, align 8, !tbaa !9
  %243 = add nsw i64 %242, 1
  %244 = getelementptr inbounds double, ptr %241, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !21
  %246 = load double, ptr %18, align 8, !tbaa !21
  %247 = call double @llvm.fmuladd.f64(double %245, double %246, double %238)
  %248 = load double, ptr %20, align 8, !tbaa !21
  %249 = fdiv double %247, %248
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  %251 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %250, i32 0, i32 5
  %252 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %251, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !20
  %254 = load i64, ptr %17, align 8, !tbaa !9
  %255 = mul nsw i64 4, %254
  %256 = add nsw i64 %255, 3
  %257 = getelementptr inbounds double, ptr %253, i64 %256
  store double %249, ptr %257, align 8, !tbaa !21
  br label %258

258:                                              ; preds = %122
  %259 = load i64, ptr %17, align 8, !tbaa !9
  %260 = add nsw i64 %259, 1
  store i64 %260, ptr %17, align 8, !tbaa !9
  br label %117, !llvm.loop !25

261:                                              ; preds = %117
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %262, i32 0, i32 4
  %264 = load ptr, ptr %263, align 8, !tbaa !20
  %265 = load i64, ptr %10, align 8, !tbaa !9
  %266 = sub nsw i64 %265, 1
  %267 = getelementptr inbounds double, ptr %264, i64 %266
  %268 = load double, ptr %267, align 8, !tbaa !21
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %269, i32 0, i32 5
  %271 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %270, i32 0, i32 4
  %272 = load ptr, ptr %271, align 8, !tbaa !20
  %273 = load i64, ptr %10, align 8, !tbaa !9
  %274 = sub nsw i64 %273, 1
  %275 = mul nsw i64 4, %274
  %276 = add nsw i64 %275, 0
  %277 = getelementptr inbounds double, ptr %272, i64 %276
  store double %268, ptr %277, align 8, !tbaa !21
  %278 = load ptr, ptr %9, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %278, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !20
  %281 = load i64, ptr %10, align 8, !tbaa !9
  %282 = sub nsw i64 %281, 1
  %283 = getelementptr inbounds double, ptr %280, i64 %282
  %284 = load double, ptr %283, align 8, !tbaa !21
  %285 = load ptr, ptr %11, align 8, !tbaa !5
  %286 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %285, i32 0, i32 5
  %287 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %286, i32 0, i32 4
  %288 = load ptr, ptr %287, align 8, !tbaa !20
  %289 = load i64, ptr %10, align 8, !tbaa !9
  %290 = sub nsw i64 %289, 1
  %291 = mul nsw i64 4, %290
  %292 = add nsw i64 %291, 1
  %293 = getelementptr inbounds double, ptr %288, i64 %292
  store double %284, ptr %293, align 8, !tbaa !21
  %294 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %294)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 64, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #5
  ret void
}

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_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl15heapsortdpointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 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 = !{!16, !13, i64 0}
!16 = !{!"_ZTSN11alglib_impl19spline1dinterpolantE", !13, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !12, i64 96}
!17 = !{!16, !10, i64 16}
!18 = !{!16, !10, i64 8}
!19 = !{!16, !10, i64 24}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


; 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.254 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [68 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
define dso_local void @_ZN11alglib_impl20spline1dbuildhermiteEPNS_9ae_vectorES1_S1_lPNS_19spline1dinterpolantEPNS_8ae_stateE(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca %"struct.alglib_impl::ae_frame", 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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %10) #5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %5, ptr noundef nonnull %7)
  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 @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %8, ptr noundef %0, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %9, ptr noundef %1, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorES1_PNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %2, ptr noundef %5, i1 noundef zeroext true)
  call void @_ZN11alglib_impl26_spline1dinterpolant_clearEPv(ptr noundef %4)
  %11 = icmp sgt i64 %3, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.254, ptr noundef %5)
  %12 = load i64, ptr %8, align 8, !tbaa !5
  %13 = icmp sge i64 %12, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %13, ptr noundef nonnull @.str.255, ptr noundef %5)
  %14 = load i64, ptr %9, align 8, !tbaa !5
  %15 = icmp sge i64 %14, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %15, ptr noundef nonnull @.str.256, ptr noundef %5)
  %16 = load i64, ptr %10, align 8, !tbaa !5
  %17 = icmp sge i64 %16, %3
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %17, ptr noundef nonnull @.str.257, ptr noundef %5)
  %18 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %3, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %18, ptr noundef nonnull @.str.258, ptr noundef %5)
  %19 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %9, i64 noundef %3, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %19, ptr noundef nonnull @.str.259, ptr noundef %5)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %10, i64 noundef %3, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %20, ptr noundef nonnull @.str.260, ptr noundef %5)
  call void @_ZN11alglib_impl15heapsortdpointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, i64 noundef %3, ptr noundef %5)
  %21 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %8, i64 noundef %3, ptr noundef %5)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %21, ptr noundef nonnull @.str.261, ptr noundef %5)
  %22 = getelementptr inbounds i8, ptr %4, i64 32
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %3, ptr noundef %5)
  %23 = getelementptr inbounds i8, ptr %4, i64 96
  %24 = add i64 %3, -1
  %25 = shl nsw i64 %24, 2
  %26 = or disjoint i64 %25, 2
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %23, i64 noundef %26, ptr noundef %5)
  store i8 0, ptr %4, align 8, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %4, i64 16
  store i64 3, ptr %27, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 %3, ptr %28, align 8, !tbaa !16
  %29 = getelementptr inbounds i8, ptr %4, i64 24
  store i64 1, ptr %29, align 8, !tbaa !17
  %.not.not112 = icmp sgt i64 %3, 0
  br i1 %.not.not112, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %6
  %30 = getelementptr inbounds i8, ptr %8, i64 56
  %31 = getelementptr inbounds i8, ptr %4, i64 88
  %xtraiter = and i64 %3, 3
  %32 = icmp ult i64 %3, 4
  br i1 %32, label %.preheader.unr-lcssa, label %.lr.ph.new

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

.preheader.unr-lcssa:                             ; preds = %43, %.lr.ph
  %.0113.unr = phi i64 [ 0, %.lr.ph ], [ %67, %43 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.unr-lcssa, %.epil.preheader
  %.0113.epil = phi i64 [ %38, %.epil.preheader ], [ %.0113.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader.unr-lcssa ]
  %33 = load ptr, ptr %30, align 8, !tbaa !18
  %34 = getelementptr inbounds double, ptr %33, i64 %.0113.epil
  %35 = load double, ptr %34, align 8, !tbaa !19
  %36 = load ptr, ptr %31, align 8, !tbaa !18
  %37 = getelementptr inbounds double, ptr %36, i64 %.0113.epil
  store double %35, ptr %37, align 8, !tbaa !19
  %38 = add nuw nsw i64 %.0113.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.epil.preheader, !llvm.loop !21

.preheader:                                       ; preds = %.epil.preheader, %.preheader.unr-lcssa
  %.not114 = icmp eq i64 %3, 1
  br i1 %.not114, label %._crit_edge, label %.lr.ph116

.lr.ph116:                                        ; preds = %.preheader
  %39 = getelementptr inbounds i8, ptr %8, i64 56
  %40 = getelementptr inbounds i8, ptr %9, i64 56
  %41 = getelementptr inbounds i8, ptr %4, i64 152
  %42 = getelementptr inbounds i8, ptr %10, i64 56
  br label %68

43:                                               ; preds = %43, %.lr.ph.new
  %.0113 = phi i64 [ 0, %.lr.ph.new ], [ %67, %43 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %43 ]
  %44 = load ptr, ptr %30, align 8, !tbaa !18
  %45 = getelementptr inbounds double, ptr %44, i64 %.0113
  %46 = load double, ptr %45, align 8, !tbaa !19
  %47 = load ptr, ptr %31, align 8, !tbaa !18
  %48 = getelementptr inbounds double, ptr %47, i64 %.0113
  store double %46, ptr %48, align 8, !tbaa !19
  %49 = or disjoint i64 %.0113, 1
  %50 = load ptr, ptr %30, align 8, !tbaa !18
  %51 = getelementptr inbounds double, ptr %50, i64 %49
  %52 = load double, ptr %51, align 8, !tbaa !19
  %53 = load ptr, ptr %31, align 8, !tbaa !18
  %54 = getelementptr inbounds double, ptr %53, i64 %49
  store double %52, ptr %54, align 8, !tbaa !19
  %55 = or disjoint i64 %.0113, 2
  %56 = load ptr, ptr %30, align 8, !tbaa !18
  %57 = getelementptr inbounds double, ptr %56, i64 %55
  %58 = load double, ptr %57, align 8, !tbaa !19
  %59 = load ptr, ptr %31, align 8, !tbaa !18
  %60 = getelementptr inbounds double, ptr %59, i64 %55
  store double %58, ptr %60, align 8, !tbaa !19
  %61 = or disjoint i64 %.0113, 3
  %62 = load ptr, ptr %30, align 8, !tbaa !18
  %63 = getelementptr inbounds double, ptr %62, i64 %61
  %64 = load double, ptr %63, align 8, !tbaa !19
  %65 = load ptr, ptr %31, align 8, !tbaa !18
  %66 = getelementptr inbounds double, ptr %65, i64 %61
  store double %64, ptr %66, align 8, !tbaa !19
  %67 = add nuw nsw i64 %.0113, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.unr-lcssa, label %43, !llvm.loop !23

68:                                               ; preds = %.lr.ph116, %68
  %.1115 = phi i64 [ 0, %.lr.ph116 ], [ %70, %68 ]
  %69 = load ptr, ptr %39, align 8, !tbaa !18
  %70 = add nuw nsw i64 %.1115, 1
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !19
  %73 = getelementptr inbounds double, ptr %69, i64 %.1115
  %74 = load double, ptr %73, align 8, !tbaa !19
  %75 = fsub double %72, %74
  %76 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %75, ptr noundef %5)
  %77 = fmul double %75, %76
  %78 = load ptr, ptr %40, align 8, !tbaa !18
  %79 = getelementptr inbounds double, ptr %78, i64 %.1115
  %80 = load double, ptr %79, align 8, !tbaa !19
  %81 = load ptr, ptr %41, align 8, !tbaa !18
  %82 = shl nsw i64 %.1115, 2
  %83 = getelementptr inbounds double, ptr %81, i64 %82
  store double %80, ptr %83, align 8, !tbaa !19
  %84 = load ptr, ptr %42, align 8, !tbaa !18
  %85 = getelementptr inbounds double, ptr %84, i64 %.1115
  %86 = load double, ptr %85, align 8, !tbaa !19
  %87 = load ptr, ptr %41, align 8, !tbaa !18
  %88 = or disjoint i64 %82, 1
  %89 = getelementptr inbounds double, ptr %87, i64 %88
  store double %86, ptr %89, align 8, !tbaa !19
  %90 = load ptr, ptr %40, align 8, !tbaa !18
  %91 = getelementptr inbounds double, ptr %90, i64 %70
  %92 = load double, ptr %91, align 8, !tbaa !19
  %93 = getelementptr inbounds double, ptr %90, i64 %.1115
  %94 = load double, ptr %93, align 8, !tbaa !19
  %95 = fsub double %92, %94
  %96 = load ptr, ptr %42, align 8, !tbaa !18
  %97 = getelementptr inbounds double, ptr %96, i64 %.1115
  %98 = load double, ptr %97, align 8, !tbaa !19
  %99 = fmul double %98, -2.000000e+00
  %100 = fmul double %75, %99
  %101 = call double @llvm.fmuladd.f64(double %95, double 3.000000e+00, double %100)
  %102 = getelementptr inbounds double, ptr %96, i64 %70
  %103 = load double, ptr %102, align 8, !tbaa !19
  %104 = fneg double %103
  %105 = call double @llvm.fmuladd.f64(double %104, double %75, double %101)
  %106 = fdiv double %105, %76
  %107 = load ptr, ptr %41, align 8, !tbaa !18
  %108 = or disjoint i64 %82, 2
  %109 = getelementptr inbounds double, ptr %107, i64 %108
  store double %106, ptr %109, align 8, !tbaa !19
  %110 = load ptr, ptr %40, align 8, !tbaa !18
  %111 = getelementptr inbounds double, ptr %110, i64 %.1115
  %112 = load double, ptr %111, align 8, !tbaa !19
  %113 = getelementptr inbounds double, ptr %110, i64 %70
  %114 = load double, ptr %113, align 8, !tbaa !19
  %115 = fsub double %112, %114
  %116 = load ptr, ptr %42, align 8, !tbaa !18
  %117 = getelementptr inbounds double, ptr %116, i64 %.1115
  %118 = load double, ptr %117, align 8, !tbaa !19
  %119 = fmul double %75, %118
  %120 = call double @llvm.fmuladd.f64(double %115, double 2.000000e+00, double %119)
  %121 = getelementptr inbounds double, ptr %116, i64 %70
  %122 = load double, ptr %121, align 8, !tbaa !19
  %123 = call double @llvm.fmuladd.f64(double %122, double %75, double %120)
  %124 = fdiv double %123, %77
  %125 = load ptr, ptr %41, align 8, !tbaa !18
  %126 = or disjoint i64 %82, 3
  %127 = getelementptr inbounds double, ptr %125, i64 %126
  store double %124, ptr %127, align 8, !tbaa !19
  %exitcond118.not = icmp eq i64 %70, %24
  br i1 %exitcond118.not, label %._crit_edge, label %68, !llvm.loop !25

._crit_edge:                                      ; preds = %68, %6, %.preheader
  %128 = getelementptr inbounds i8, ptr %9, i64 56
  %129 = load ptr, ptr %128, align 8, !tbaa !18
  %130 = getelementptr inbounds double, ptr %129, i64 %24
  %131 = load double, ptr %130, align 8, !tbaa !19
  %132 = getelementptr inbounds i8, ptr %4, i64 152
  %133 = load ptr, ptr %132, align 8, !tbaa !18
  %134 = getelementptr inbounds double, ptr %133, i64 %25
  store double %131, ptr %134, align 8, !tbaa !19
  %135 = getelementptr inbounds i8, ptr %10, i64 56
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = getelementptr inbounds double, ptr %136, i64 %24
  %138 = load double, ptr %137, align 8, !tbaa !19
  %139 = load ptr, ptr %132, align 8, !tbaa !18
  %140 = or disjoint i64 %25, 1
  %141 = getelementptr inbounds double, ptr %139, i64 %140
  store double %138, ptr %141, align 8, !tbaa !19
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %5)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #5
  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_impl6ae_sqrEdPNS_8ae_stateE(double noundef, ptr noundef) 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 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

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 dso_local void @_ZN11alglib_impl15heapsortdpointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

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


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