; 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.352 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.353 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.354 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.359 = 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_impl23spline1dbuildhermitebufEPKNS_9ae_vectorES2_S2_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_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %14, ptr noundef %22, ptr noundef %23, i1 noundef zeroext true)
  %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_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %15, ptr noundef %24, ptr noundef %25, i1 noundef zeroext true)
  %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_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %16, ptr noundef %26, ptr noundef %27, i1 noundef zeroext true)
  %28 = load i64, ptr %10, align 8, !tbaa !9
  %29 = icmp sge i64 %28, 2
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef @.str.352, ptr noundef %30)
  %31 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 0
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = load i64, ptr %10, align 8, !tbaa !9
  %34 = icmp sge i64 %32, %33
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %34, ptr noundef @.str.353, ptr noundef %35)
  %36 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = load i64, ptr %10, align 8, !tbaa !9
  %39 = icmp sge i64 %37, %38
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %39, ptr noundef @.str.354, ptr noundef %40)
  %41 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 0
  %42 = load i64, ptr %41, align 8, !tbaa !11
  %43 = load i64, ptr %10, align 8, !tbaa !9
  %44 = icmp sge i64 %42, %43
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef @.str.355, ptr noundef %45)
  %46 = load i64, ptr %10, align 8, !tbaa !9
  %47 = load ptr, ptr %12, align 8, !tbaa !5
  %48 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %46, ptr noundef %47)
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %48, ptr noundef @.str.356, ptr noundef %49)
  %50 = load i64, ptr %10, align 8, !tbaa !9
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %15, i64 noundef %50, ptr noundef %51)
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef @.str.357, ptr noundef %53)
  %54 = load i64, ptr %10, align 8, !tbaa !9
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %16, i64 noundef %54, ptr noundef %55)
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %56, ptr noundef @.str.358, ptr noundef %57)
  %58 = load i64, ptr %10, align 8, !tbaa !9
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl15heapsortdpointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %14, ptr noundef %15, ptr noundef %16, i64 noundef %58, ptr noundef %59)
  %60 = load i64, ptr %10, align 8, !tbaa !9
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %14, i64 noundef %60, ptr noundef %61)
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %62, ptr noundef @.str.359, ptr noundef %63)
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %64, i32 0, i32 4
  %66 = load i64, ptr %10, align 8, !tbaa !9
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %65, i64 noundef %66, ptr noundef %67)
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %68, i32 0, i32 5
  %70 = load i64, ptr %10, align 8, !tbaa !9
  %71 = sub nsw i64 %70, 1
  %72 = mul nsw i64 4, %71
  %73 = add nsw i64 %72, 2
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %69, i64 noundef %73, ptr noundef %74)
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %75, i32 0, i32 0
  store i8 0, ptr %76, align 8, !tbaa !15
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %77, i32 0, i32 2
  store i64 3, ptr %78, align 8, !tbaa !17
  %79 = load i64, ptr %10, align 8, !tbaa !9
  %80 = load ptr, ptr %11, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %80, i32 0, i32 1
  store i64 %79, ptr %81, align 8, !tbaa !18
  %82 = load ptr, ptr %11, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %82, i32 0, i32 3
  store i64 1, ptr %83, align 8, !tbaa !19
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %101, %6
  %85 = load i64, ptr %17, align 8, !tbaa !9
  %86 = load i64, ptr %10, align 8, !tbaa !9
  %87 = sub nsw i64 %86, 1
  %88 = icmp sle i64 %85, %87
  br i1 %88, label %89, label %104

89:                                               ; preds = %84
  %90 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  %92 = load i64, ptr %17, align 8, !tbaa !9
  %93 = getelementptr inbounds double, ptr %91, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !21
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %95, i32 0, i32 4
  %97 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %96, i32 0, i32 4
  %98 = load ptr, ptr %97, align 8, !tbaa !20
  %99 = load i64, ptr %17, align 8, !tbaa !9
  %100 = getelementptr inbounds double, ptr %98, i64 %99
  store double %94, ptr %100, align 8, !tbaa !21
  br label %101

101:                                              ; preds = %89
  %102 = load i64, ptr %17, align 8, !tbaa !9
  %103 = add nsw i64 %102, 1
  store i64 %103, ptr %17, align 8, !tbaa !9
  br label %84, !llvm.loop !23

104:                                              ; preds = %84
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %234, %104
  %106 = load i64, ptr %17, align 8, !tbaa !9
  %107 = load i64, ptr %10, align 8, !tbaa !9
  %108 = sub nsw i64 %107, 2
  %109 = icmp sle i64 %106, %108
  br i1 %109, label %110, label %237

110:                                              ; preds = %105
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %112 = load ptr, ptr %111, align 8, !tbaa !20
  %113 = load i64, ptr %17, align 8, !tbaa !9
  %114 = add nsw i64 %113, 1
  %115 = getelementptr inbounds double, ptr %112, i64 %114
  %116 = load double, ptr %115, align 8, !tbaa !21
  %117 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %14, i32 0, i32 4
  %118 = load ptr, ptr %117, align 8, !tbaa !20
  %119 = load i64, ptr %17, align 8, !tbaa !9
  %120 = getelementptr inbounds double, ptr %118, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !21
  %122 = fsub double %116, %121
  store double %122, ptr %18, align 8, !tbaa !21
  %123 = load double, ptr %18, align 8, !tbaa !21
  %124 = load ptr, ptr %12, align 8, !tbaa !5
  %125 = call noundef double @_ZN11alglib_impl6ae_sqrEdPNS_8ae_stateE(double noundef %123, ptr noundef %124)
  store double %125, ptr %19, align 8, !tbaa !21
  %126 = load double, ptr %18, align 8, !tbaa !21
  %127 = load double, ptr %19, align 8, !tbaa !21
  %128 = fmul double %126, %127
  store double %128, ptr %20, align 8, !tbaa !21
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %130 = load ptr, ptr %129, align 8, !tbaa !20
  %131 = load i64, ptr %17, align 8, !tbaa !9
  %132 = getelementptr inbounds double, ptr %130, i64 %131
  %133 = load double, ptr %132, align 8, !tbaa !21
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %134, i32 0, i32 5
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !20
  %138 = load i64, ptr %17, align 8, !tbaa !9
  %139 = mul nsw i64 4, %138
  %140 = add nsw i64 %139, 0
  %141 = getelementptr inbounds double, ptr %137, i64 %140
  store double %133, ptr %141, align 8, !tbaa !21
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !20
  %144 = load i64, ptr %17, align 8, !tbaa !9
  %145 = getelementptr inbounds double, ptr %143, i64 %144
  %146 = load double, ptr %145, align 8, !tbaa !21
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %147, i32 0, i32 5
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %148, i32 0, i32 4
  %150 = load ptr, ptr %149, align 8, !tbaa !20
  %151 = load i64, ptr %17, align 8, !tbaa !9
  %152 = mul nsw i64 4, %151
  %153 = add nsw i64 %152, 1
  %154 = getelementptr inbounds double, ptr %150, i64 %153
  store double %146, ptr %154, align 8, !tbaa !21
  %155 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %156 = load ptr, ptr %155, align 8, !tbaa !20
  %157 = load i64, ptr %17, align 8, !tbaa !9
  %158 = add nsw i64 %157, 1
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !21
  %161 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !20
  %163 = load i64, ptr %17, align 8, !tbaa !9
  %164 = getelementptr inbounds double, ptr %162, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !21
  %166 = fsub double %160, %165
  %167 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !20
  %169 = load i64, ptr %17, align 8, !tbaa !9
  %170 = getelementptr inbounds double, ptr %168, i64 %169
  %171 = load double, ptr %170, align 8, !tbaa !21
  %172 = fmul double 2.000000e+00, %171
  %173 = load double, ptr %18, align 8, !tbaa !21
  %174 = fmul double %172, %173
  %175 = fneg double %174
  %176 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %166, double %175)
  %177 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %178 = load ptr, ptr %177, align 8, !tbaa !20
  %179 = load i64, ptr %17, align 8, !tbaa !9
  %180 = add nsw i64 %179, 1
  %181 = getelementptr inbounds double, ptr %178, i64 %180
  %182 = load double, ptr %181, align 8, !tbaa !21
  %183 = load double, ptr %18, align 8, !tbaa !21
  %184 = fneg double %182
  %185 = call double @llvm.fmuladd.f64(double %184, double %183, double %176)
  %186 = load double, ptr %19, align 8, !tbaa !21
  %187 = fdiv double %185, %186
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %188, i32 0, i32 5
  %190 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %189, i32 0, i32 4
  %191 = load ptr, ptr %190, align 8, !tbaa !20
  %192 = load i64, ptr %17, align 8, !tbaa !9
  %193 = mul nsw i64 4, %192
  %194 = add nsw i64 %193, 2
  %195 = getelementptr inbounds double, ptr %191, i64 %194
  store double %187, ptr %195, align 8, !tbaa !21
  %196 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %197 = load ptr, ptr %196, align 8, !tbaa !20
  %198 = load i64, ptr %17, align 8, !tbaa !9
  %199 = getelementptr inbounds double, ptr %197, i64 %198
  %200 = load double, ptr %199, align 8, !tbaa !21
  %201 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !20
  %203 = load i64, ptr %17, align 8, !tbaa !9
  %204 = add nsw i64 %203, 1
  %205 = getelementptr inbounds double, ptr %202, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !21
  %207 = fsub double %200, %206
  %208 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !20
  %210 = load i64, ptr %17, align 8, !tbaa !9
  %211 = getelementptr inbounds double, ptr %209, i64 %210
  %212 = load double, ptr %211, align 8, !tbaa !21
  %213 = load double, ptr %18, align 8, !tbaa !21
  %214 = fmul double %212, %213
  %215 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %207, double %214)
  %216 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %217 = load ptr, ptr %216, align 8, !tbaa !20
  %218 = load i64, ptr %17, 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 !21
  %222 = load double, ptr %18, align 8, !tbaa !21
  %223 = call double @llvm.fmuladd.f64(double %221, double %222, double %215)
  %224 = load double, ptr %20, align 8, !tbaa !21
  %225 = fdiv double %223, %224
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %226, i32 0, i32 5
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %227, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !20
  %230 = load i64, ptr %17, align 8, !tbaa !9
  %231 = mul nsw i64 4, %230
  %232 = add nsw i64 %231, 3
  %233 = getelementptr inbounds double, ptr %229, i64 %232
  store double %225, ptr %233, align 8, !tbaa !21
  br label %234

234:                                              ; preds = %110
  %235 = load i64, ptr %17, align 8, !tbaa !9
  %236 = add nsw i64 %235, 1
  store i64 %236, ptr %17, align 8, !tbaa !9
  br label %105, !llvm.loop !25

237:                                              ; preds = %105
  %238 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %15, i32 0, i32 4
  %239 = load ptr, ptr %238, align 8, !tbaa !20
  %240 = load i64, ptr %10, align 8, !tbaa !9
  %241 = sub nsw i64 %240, 1
  %242 = getelementptr inbounds double, ptr %239, i64 %241
  %243 = load double, ptr %242, align 8, !tbaa !21
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  %245 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %244, i32 0, i32 5
  %246 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %245, i32 0, i32 4
  %247 = load ptr, ptr %246, align 8, !tbaa !20
  %248 = load i64, ptr %10, align 8, !tbaa !9
  %249 = sub nsw i64 %248, 1
  %250 = mul nsw i64 4, %249
  %251 = add nsw i64 %250, 0
  %252 = getelementptr inbounds double, ptr %247, i64 %251
  store double %243, ptr %252, align 8, !tbaa !21
  %253 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %16, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !20
  %255 = load i64, ptr %10, align 8, !tbaa !9
  %256 = sub nsw i64 %255, 1
  %257 = getelementptr inbounds double, ptr %254, i64 %256
  %258 = load double, ptr %257, align 8, !tbaa !21
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  %260 = getelementptr inbounds %"struct.alglib_impl::spline1dinterpolant", ptr %259, i32 0, i32 5
  %261 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %260, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !20
  %263 = load i64, ptr %10, align 8, !tbaa !9
  %264 = sub nsw i64 %263, 1
  %265 = mul nsw i64 4, %264
  %266 = add nsw i64 %265, 1
  %267 = getelementptr inbounds double, ptr %262, i64 %266
  store double %258, ptr %267, align 8, !tbaa !21
  %268 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %268)
  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
}

; 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_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_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 zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_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.352 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.353 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.354 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.355 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.356 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.357 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.359 = 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_impl23spline1dbuildhermitebufEPKNS_9ae_vectorES2_S2_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_vectorEPKS0_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_vectorEPKS0_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_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %10, ptr noundef %2, ptr noundef %5, i1 noundef zeroext true)
  %11 = icmp sgt i64 %3, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %11, ptr noundef nonnull @.str.352, 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.353, 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.354, 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.355, ptr noundef %5)
  %18 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_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.356, ptr noundef %5)
  %19 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_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.357, ptr noundef %5)
  %20 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_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.358, 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_impl11aredistinctEPKNS_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.359, 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.not86 = icmp sgt i64 %3, 0
  br i1 %.not.not86, 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
  %.087.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
  %.087.epil = phi i64 [ %38, %.epil.preheader ], [ %.087.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 %.087.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 %.087.epil
  store double %35, ptr %37, align 8, !tbaa !19
  %38 = add nuw nsw i64 %.087.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
  %.not88 = icmp eq i64 %3, 1
  br i1 %.not88, label %._crit_edge, label %.lr.ph90

.lr.ph90:                                         ; 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
  %.087 = 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 %.087
  %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 %.087
  store double %46, ptr %48, align 8, !tbaa !19
  %49 = or disjoint i64 %.087, 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 %.087, 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 %.087, 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 %.087, 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.ph90, %68
  %.189 = phi i64 [ 0, %.lr.ph90 ], [ %70, %68 ]
  %69 = load ptr, ptr %39, align 8, !tbaa !18
  %70 = add nuw nsw i64 %.189, 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 %.189
  %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 %.189
  %80 = load double, ptr %79, align 8, !tbaa !19
  %81 = load ptr, ptr %41, align 8, !tbaa !18
  %82 = shl nsw i64 %.189, 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 %.189
  %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 %.189
  %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 %.189
  %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 %.189
  %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 %.189
  %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
  %exitcond92.not = icmp eq i64 %70, %24
  br i1 %exitcond92.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
}

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