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

@.str.276 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [69 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_impl21spline1dgriddiffcubicEPKNS_9ae_vectorES2_lldldPS0_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, i64 noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"struct.alglib_impl::ae_frame", align 8
  %20 = alloca %"struct.alglib_impl::ae_vector", align 8
  %21 = alloca %"struct.alglib_impl::ae_vector", align 8
  %22 = alloca %"struct.alglib_impl::ae_vector", align 8
  %23 = alloca %"struct.alglib_impl::ae_vector", align 8
  %24 = alloca %"struct.alglib_impl::ae_vector", align 8
  %25 = alloca %"struct.alglib_impl::ae_vector", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i64 %2, ptr %12, align 8, !tbaa !9
  store i64 %3, ptr %13, align 8, !tbaa !9
  store double %4, ptr %14, align 8, !tbaa !11
  store i64 %5, ptr %15, align 8, !tbaa !9
  store double %6, ptr %16, align 8, !tbaa !11
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %30 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %30, ptr noundef %19)
  call void @llvm.memset.p0.i64(ptr align 8 %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %25, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 64, i1 false)
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %20, ptr noundef %31, ptr noundef %32, i1 noundef zeroext true)
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %21, ptr noundef %33, ptr noundef %34, i1 noundef zeroext true)
  %35 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %35)
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %22, i64 noundef 0, i64 noundef 3, ptr noundef %36, i1 noundef zeroext true)
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %23, i64 noundef 0, i64 noundef 3, ptr noundef %37, i1 noundef zeroext true)
  %38 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %24, i64 noundef 0, i64 noundef 3, ptr noundef %38, i1 noundef zeroext true)
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %25, i64 noundef 0, i64 noundef 3, ptr noundef %39, i1 noundef zeroext true)
  %40 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %26, i64 noundef 0, i64 noundef 3, ptr noundef %40, i1 noundef zeroext true)
  %41 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %27, i64 noundef 0, i64 noundef 2, ptr noundef %41, i1 noundef zeroext true)
  %42 = load i64, ptr %13, align 8, !tbaa !9
  %43 = icmp eq i64 %42, -1
  br i1 %43, label %53, label %44

44:                                               ; preds = %9
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = icmp eq i64 %45, 0
  br i1 %46, label %53, label %47

47:                                               ; preds = %44
  %48 = load i64, ptr %13, align 8, !tbaa !9
  %49 = icmp eq i64 %48, 1
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = load i64, ptr %13, align 8, !tbaa !9
  %52 = icmp eq i64 %51, 2
  br label %53

53:                                               ; preds = %50, %47, %44, %9
  %54 = phi i1 [ true, %47 ], [ true, %44 ], [ true, %9 ], [ %52, %50 ]
  %55 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef @.str.276, ptr noundef %55)
  %56 = load i64, ptr %15, align 8, !tbaa !9
  %57 = icmp eq i64 %56, -1
  br i1 %57, label %67, label %58

58:                                               ; preds = %53
  %59 = load i64, ptr %15, align 8, !tbaa !9
  %60 = icmp eq i64 %59, 0
  br i1 %60, label %67, label %61

61:                                               ; preds = %58
  %62 = load i64, ptr %15, align 8, !tbaa !9
  %63 = icmp eq i64 %62, 1
  br i1 %63, label %67, label %64

64:                                               ; preds = %61
  %65 = load i64, ptr %15, align 8, !tbaa !9
  %66 = icmp eq i64 %65, 2
  br label %67

67:                                               ; preds = %64, %61, %58, %53
  %68 = phi i1 [ true, %61 ], [ true, %58 ], [ true, %53 ], [ %66, %64 ]
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %68, ptr noundef @.str.277, ptr noundef %69)
  %70 = load i64, ptr %15, align 8, !tbaa !9
  %71 = icmp eq i64 %70, -1
  br i1 %71, label %72, label %75

72:                                               ; preds = %67
  %73 = load i64, ptr %13, align 8, !tbaa !9
  %74 = icmp eq i64 %73, -1
  br i1 %74, label %83, label %75

75:                                               ; preds = %72, %67
  %76 = load i64, ptr %15, align 8, !tbaa !9
  %77 = icmp ne i64 %76, -1
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load i64, ptr %13, align 8, !tbaa !9
  %80 = icmp ne i64 %79, -1
  br label %81

81:                                               ; preds = %78, %75
  %82 = phi i1 [ false, %75 ], [ %80, %78 ]
  br label %83

83:                                               ; preds = %81, %72
  %84 = phi i1 [ true, %72 ], [ %82, %81 ]
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %84, ptr noundef @.str.278, ptr noundef %85)
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = icmp eq i64 %86, 1
  br i1 %87, label %91, label %88

88:                                               ; preds = %83
  %89 = load i64, ptr %13, align 8, !tbaa !9
  %90 = icmp eq i64 %89, 2
  br i1 %90, label %91, label %96

91:                                               ; preds = %88, %83
  %92 = load double, ptr %14, align 8, !tbaa !11
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %92, ptr noundef %93)
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %94, ptr noundef @.str.279, ptr noundef %95)
  br label %96

96:                                               ; preds = %91, %88
  %97 = load i64, ptr %15, align 8, !tbaa !9
  %98 = icmp eq i64 %97, 1
  br i1 %98, label %102, label %99

99:                                               ; preds = %96
  %100 = load i64, ptr %15, align 8, !tbaa !9
  %101 = icmp eq i64 %100, 2
  br i1 %101, label %102, label %107

102:                                              ; preds = %99, %96
  %103 = load double, ptr %16, align 8, !tbaa !11
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %103, ptr noundef %104)
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %105, ptr noundef @.str.280, ptr noundef %106)
  br label %107

107:                                              ; preds = %102, %99
  %108 = load i64, ptr %12, align 8, !tbaa !9
  %109 = icmp sge i64 %108, 2
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %109, ptr noundef @.str.281, ptr noundef %110)
  %111 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %20, i32 0, i32 0
  %112 = load i64, ptr %111, align 8, !tbaa !13
  %113 = load i64, ptr %12, align 8, !tbaa !9
  %114 = icmp sge i64 %112, %113
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %114, ptr noundef @.str.282, ptr noundef %115)
  %116 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %21, i32 0, i32 0
  %117 = load i64, ptr %116, align 8, !tbaa !13
  %118 = load i64, ptr %12, align 8, !tbaa !9
  %119 = icmp sge i64 %117, %118
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %119, ptr noundef @.str.283, ptr noundef %120)
  %121 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %121, ptr %29, align 8, !tbaa !9
  %122 = load i64, ptr %13, align 8, !tbaa !9
  %123 = icmp eq i64 %122, -1
  br i1 %123, label %124, label %127

124:                                              ; preds = %107
  %125 = load i64, ptr %12, align 8, !tbaa !9
  %126 = sub nsw i64 %125, 1
  store i64 %126, ptr %29, align 8, !tbaa !9
  br label %127

127:                                              ; preds = %124, %107
  %128 = load i64, ptr %12, align 8, !tbaa !9
  %129 = load ptr, ptr %18, align 8, !tbaa !5
  %130 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %128, ptr noundef %129)
  %131 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %130, ptr noundef @.str.284, ptr noundef %131)
  %132 = load i64, ptr %29, align 8, !tbaa !9
  %133 = load ptr, ptr %18, align 8, !tbaa !5
  %134 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %21, i64 noundef %132, ptr noundef %133)
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %134, ptr noundef @.str.285, ptr noundef %135)
  %136 = load i64, ptr %12, align 8, !tbaa !9
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %20, ptr noundef %21, ptr noundef %27, i64 noundef %136, ptr noundef %137)
  %138 = load i64, ptr %12, align 8, !tbaa !9
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %20, i64 noundef %138, ptr noundef %139)
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %140, ptr noundef @.str.286, ptr noundef %141)
  %142 = load i64, ptr %12, align 8, !tbaa !9
  %143 = load i64, ptr %13, align 8, !tbaa !9
  %144 = load double, ptr %14, align 8, !tbaa !11
  %145 = load i64, ptr %15, align 8, !tbaa !9
  %146 = load double, ptr %16, align 8, !tbaa !11
  %147 = load ptr, ptr %17, align 8, !tbaa !5
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl29spline1dgriddiffcubicinternalEPKNS_9ae_vectorEPS0_lldldS3_S3_S3_S3_S3_S3_PNS_8ae_stateE(ptr noundef %20, ptr noundef %21, i64 noundef %142, i64 noundef %143, double noundef %144, i64 noundef %145, double noundef %146, ptr noundef %147, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %148)
  %149 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 0
  %150 = load i64, ptr %149, align 8, !tbaa !13
  %151 = load i64, ptr %12, align 8, !tbaa !9
  %152 = icmp slt i64 %150, %151
  br i1 %152, label %153, label %156

153:                                              ; preds = %127
  %154 = load i64, ptr %12, align 8, !tbaa !9
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %154, ptr noundef %155)
  br label %156

156:                                              ; preds = %153, %127
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %157

157:                                              ; preds = %177, %156
  %158 = load i64, ptr %28, align 8, !tbaa !9
  %159 = load i64, ptr %12, align 8, !tbaa !9
  %160 = sub nsw i64 %159, 1
  %161 = icmp sle i64 %158, %160
  br i1 %161, label %162, label %180

162:                                              ; preds = %157
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %163, i32 0, i32 4
  %165 = load ptr, ptr %164, align 8, !tbaa !17
  %166 = load i64, ptr %28, align 8, !tbaa !9
  %167 = getelementptr inbounds double, ptr %165, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !11
  %169 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %170 = load ptr, ptr %169, align 8, !tbaa !17
  %171 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !17
  %173 = load i64, ptr %28, align 8, !tbaa !9
  %174 = getelementptr inbounds i64, ptr %172, i64 %173
  %175 = load i64, ptr %174, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %170, i64 %175
  store double %168, ptr %176, align 8, !tbaa !11
  br label %177

177:                                              ; preds = %162
  %178 = load i64, ptr %28, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  store i64 %179, ptr %28, align 8, !tbaa !9
  br label %157, !llvm.loop !18

180:                                              ; preds = %157
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %181, i32 0, i32 4
  %183 = load ptr, ptr %182, align 8, !tbaa !17
  %184 = getelementptr inbounds double, ptr %183, i64 0
  %185 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !17
  %187 = getelementptr inbounds double, ptr %186, i64 0
  %188 = load i64, ptr %12, align 8, !tbaa !9
  %189 = sub nsw i64 %188, 1
  %190 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %189)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %184, i64 noundef 1, ptr noundef %187, i64 noundef 1, i64 noundef %190)
  %191 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %191)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #4
  ret void
}

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

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

declare void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #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 hidden void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl29spline1dgriddiffcubicinternalEPKNS_9ae_vectorEPS0_lldldS3_S3_S3_S3_S3_S3_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN11alglib_impl9ae_vectorE", !10, i64 0, !10, i64 8, !15, i64 16, !16, i64 24, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN11alglib_impl12ae_dyn_blockE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; 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.276 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.277 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.278 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.279 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.280 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.281 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.282 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.283 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.284 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.285 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.286 = external hidden unnamed_addr constant [69 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_impl21spline1dgriddiffcubicEPKNS_9ae_vectorES2_lldldPS0_PNS_8ae_stateE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, double noundef %4, i64 noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #3 {
  %10 = alloca %"struct.alglib_impl::ae_frame", align 8
  %11 = alloca %"struct.alglib_impl::ae_vector", 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 %"struct.alglib_impl::ae_vector", align 8
  call void @llvm.lifetime.start.p0(i64 32, 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 @llvm.lifetime.start.p0(i64 64, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %18) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %8, ptr noundef nonnull %10)
  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 @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %13, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %14, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %15, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %16, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %17, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %18, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %11, ptr noundef %0, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %12, ptr noundef %1, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %7)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %13, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %14, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %15, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %16, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 3, ptr noundef %8, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 2, ptr noundef %8, i1 noundef zeroext true)
  %19 = icmp eq i64 %3, -1
  %20 = add i64 %3, 1
  %spec.select = icmp ult i64 %20, 4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.276, ptr noundef %8)
  %21 = add i64 %5, 1
  %22 = icmp ult i64 %21, 4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %22, ptr noundef nonnull @.str.277, ptr noundef %8)
  %23 = and i64 %5, %3
  %or.cond9 = icmp eq i64 %23, -1
  br i1 %or.cond9, label %28, label %24

24:                                               ; preds = %9
  %25 = icmp ne i64 %5, -1
  %26 = icmp ne i64 %3, -1
  %27 = and i1 %26, %25
  br label %28

28:                                               ; preds = %9, %24
  %29 = phi i1 [ %27, %24 ], [ true, %9 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %29, ptr noundef nonnull @.str.278, ptr noundef %8)
  %30 = add i64 %3, -1
  %or.cond11 = icmp ult i64 %30, 2
  br i1 %or.cond11, label %31, label %33

31:                                               ; preds = %28
  %32 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %32, ptr noundef nonnull @.str.279, ptr noundef %8)
  br label %33

33:                                               ; preds = %28, %31
  %34 = add i64 %5, -1
  %or.cond13 = icmp ult i64 %34, 2
  br i1 %or.cond13, label %35, label %37

35:                                               ; preds = %33
  %36 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %6, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %36, ptr noundef nonnull @.str.280, ptr noundef %8)
  br label %37

37:                                               ; preds = %33, %35
  %38 = icmp sgt i64 %2, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef nonnull @.str.281, ptr noundef %8)
  %39 = load i64, ptr %11, align 8, !tbaa !5
  %40 = icmp sge i64 %39, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %40, ptr noundef nonnull @.str.282, ptr noundef %8)
  %41 = load i64, ptr %12, align 8, !tbaa !5
  %42 = icmp sge i64 %41, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %42, ptr noundef nonnull @.str.283, ptr noundef %8)
  %43 = add nsw i64 %2, -1
  %spec.select93 = select i1 %19, i64 %43, i64 %2
  %44 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %2, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %44, ptr noundef nonnull @.str.284, ptr noundef %8)
  %45 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %spec.select93, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef nonnull @.str.285, ptr noundef %8)
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %18, i64 noundef %2, ptr noundef %8)
  %46 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %11, i64 noundef %2, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %46, ptr noundef nonnull @.str.286, ptr noundef %8)
  call void @_ZN11alglib_impl29spline1dgriddiffcubicinternalEPKNS_9ae_vectorEPS0_lldldS3_S3_S3_S3_S3_S3_PNS_8ae_stateE(ptr noundef nonnull %11, ptr noundef nonnull %12, i64 noundef %2, i64 noundef %3, double noundef %4, i64 noundef %5, double noundef %6, ptr noundef %7, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef %8)
  %47 = load i64, ptr %17, align 8, !tbaa !5
  %48 = icmp slt i64 %47, %2
  br i1 %48, label %49, label %50

49:                                               ; preds = %37
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %17, i64 noundef %2, ptr noundef %8)
  br label %50

50:                                               ; preds = %49, %37
  %.not.not94 = icmp sgt i64 %2, 0
  br i1 %.not.not94, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %50
  %51 = getelementptr inbounds i8, ptr %7, i64 56
  %52 = getelementptr inbounds i8, ptr %17, i64 56
  %53 = getelementptr inbounds i8, ptr %18, i64 56
  %xtraiter = and i64 %2, 1
  %54 = icmp eq i64 %2, 1
  br i1 %54, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

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

55:                                               ; preds = %55, %.lr.ph.new
  %.08895 = phi i64 [ 0, %.lr.ph.new ], [ %73, %55 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %55 ]
  %56 = load ptr, ptr %51, align 8, !tbaa !13
  %57 = getelementptr inbounds double, ptr %56, i64 %.08895
  %58 = load double, ptr %57, align 8, !tbaa !14
  %59 = load ptr, ptr %52, align 8, !tbaa !13
  %60 = load ptr, ptr %53, align 8, !tbaa !13
  %61 = getelementptr inbounds i64, ptr %60, i64 %.08895
  %62 = load i64, ptr %61, align 8, !tbaa !16
  %63 = getelementptr inbounds double, ptr %59, i64 %62
  store double %58, ptr %63, align 8, !tbaa !14
  %64 = or disjoint i64 %.08895, 1
  %65 = load ptr, ptr %51, align 8, !tbaa !13
  %66 = getelementptr inbounds double, ptr %65, i64 %64
  %67 = load double, ptr %66, align 8, !tbaa !14
  %68 = load ptr, ptr %52, align 8, !tbaa !13
  %69 = load ptr, ptr %53, align 8, !tbaa !13
  %70 = getelementptr inbounds i64, ptr %69, i64 %64
  %71 = load i64, ptr %70, align 8, !tbaa !16
  %72 = getelementptr inbounds double, ptr %68, i64 %71
  store double %67, ptr %72, align 8, !tbaa !14
  %73 = add nuw nsw i64 %.08895, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %55, !llvm.loop !17

._crit_edge.loopexit.unr-lcssa:                   ; preds = %55, %.lr.ph
  %.08895.unr = phi i64 [ 0, %.lr.ph ], [ %73, %55 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %._crit_edge.loopexit.epilog-lcssa

._crit_edge.loopexit.epilog-lcssa:                ; preds = %._crit_edge.loopexit.unr-lcssa
  %74 = load ptr, ptr %51, align 8, !tbaa !13
  %75 = getelementptr inbounds double, ptr %74, i64 %.08895.unr
  %76 = load double, ptr %75, align 8, !tbaa !14
  %77 = load ptr, ptr %52, align 8, !tbaa !13
  %78 = load ptr, ptr %53, align 8, !tbaa !13
  %79 = getelementptr inbounds i64, ptr %78, i64 %.08895.unr
  %80 = load i64, ptr %79, align 8, !tbaa !16
  %81 = getelementptr inbounds double, ptr %77, i64 %80
  store double %76, ptr %81, align 8, !tbaa !14
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %50
  %82 = getelementptr inbounds i8, ptr %7, i64 56
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = getelementptr inbounds i8, ptr %17, i64 56
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %43)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %83, i64 noundef 1, ptr noundef %85, i64 noundef 1, i64 noundef %86)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %8)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %13) #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 32, ptr nonnull %10) #4
  ret void
}

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(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_impl9ae_v_moveEPdlPKdll(ptr noundef, i64 noundef, ptr noundef, i64 noundef, i64 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_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) 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 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl29spline1dgriddiffcubicinternalEPKNS_9ae_vectorEPS0_lldldS3_S3_S3_S3_S3_S3_PNS_8ae_stateE(ptr noundef, ptr noundef, i64 noundef, i64 noundef, double noundef, i64 noundef, double noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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 = { 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 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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