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

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

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

@.str.178 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.188 = 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_impl21spline1dgriddiffcubicEPNS_9ae_vectorES1_lldldS1_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_vectorES1_PNS_8ae_stateEb(ptr noundef %20, ptr noundef %31, ptr noundef %32, i1 noundef zeroext true)
  store ptr %20, ptr %10, align 8, !tbaa !5
  %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_vectorES1_PNS_8ae_stateEb(ptr noundef %21, ptr noundef %33, ptr noundef %34, i1 noundef zeroext true)
  store ptr %21, ptr %11, align 8, !tbaa !5
  %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.178, 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.179, 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.180, 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.181, 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.182, 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.183, ptr noundef %110)
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %111, i32 0, i32 0
  %113 = load i64, ptr %112, align 8, !tbaa !13
  %114 = load i64, ptr %12, align 8, !tbaa !9
  %115 = icmp sge i64 %113, %114
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %115, ptr noundef @.str.184, ptr noundef %116)
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %117, i32 0, i32 0
  %119 = load i64, ptr %118, align 8, !tbaa !13
  %120 = load i64, ptr %12, align 8, !tbaa !9
  %121 = icmp sge i64 %119, %120
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %121, ptr noundef @.str.185, ptr noundef %122)
  %123 = load i64, ptr %12, align 8, !tbaa !9
  store i64 %123, ptr %29, align 8, !tbaa !9
  %124 = load i64, ptr %13, align 8, !tbaa !9
  %125 = icmp eq i64 %124, -1
  br i1 %125, label %126, label %129

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

129:                                              ; preds = %126, %107
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load i64, ptr %12, align 8, !tbaa !9
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %130, i64 noundef %131, ptr noundef %132)
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %133, ptr noundef @.str.186, ptr noundef %134)
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = load i64, ptr %29, align 8, !tbaa !9
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %135, i64 noundef %136, ptr noundef %137)
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %138, ptr noundef @.str.187, ptr noundef %139)
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i64, ptr %12, align 8, !tbaa !9
  %143 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %140, ptr noundef %141, ptr noundef %27, i64 noundef %142, ptr noundef %143)
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = load i64, ptr %12, align 8, !tbaa !9
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %144, i64 noundef %145, ptr noundef %146)
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %147, ptr noundef @.str.188, ptr noundef %148)
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = load i64, ptr %12, align 8, !tbaa !9
  %152 = load i64, ptr %13, align 8, !tbaa !9
  %153 = load double, ptr %14, align 8, !tbaa !11
  %154 = load i64, ptr %15, align 8, !tbaa !9
  %155 = load double, ptr %16, align 8, !tbaa !11
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_implL38spline1d_spline1dgriddiffcubicinternalEPNS_9ae_vectorES1_lldldS1_S1_S1_S1_S1_S1_PNS_8ae_stateE(ptr noundef %149, ptr noundef %150, i64 noundef %151, i64 noundef %152, double noundef %153, i64 noundef %154, double noundef %155, ptr noundef %156, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %157)
  %158 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 0
  %159 = load i64, ptr %158, align 8, !tbaa !13
  %160 = load i64, ptr %12, align 8, !tbaa !9
  %161 = icmp slt i64 %159, %160
  br i1 %161, label %162, label %165

162:                                              ; preds = %129
  %163 = load i64, ptr %12, align 8, !tbaa !9
  %164 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %163, ptr noundef %164)
  br label %165

165:                                              ; preds = %162, %129
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %186, %165
  %167 = load i64, ptr %28, align 8, !tbaa !9
  %168 = load i64, ptr %12, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  %170 = icmp sle i64 %167, %169
  br i1 %170, label %171, label %189

171:                                              ; preds = %166
  %172 = load ptr, ptr %17, align 8, !tbaa !5
  %173 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %172, i32 0, i32 4
  %174 = load ptr, ptr %173, align 8, !tbaa !17
  %175 = load i64, ptr %28, align 8, !tbaa !9
  %176 = getelementptr inbounds double, ptr %174, i64 %175
  %177 = load double, ptr %176, align 8, !tbaa !11
  %178 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !17
  %180 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !17
  %182 = load i64, ptr %28, align 8, !tbaa !9
  %183 = getelementptr inbounds i64, ptr %181, i64 %182
  %184 = load i64, ptr %183, align 8, !tbaa !9
  %185 = getelementptr inbounds double, ptr %179, i64 %184
  store double %177, ptr %185, align 8, !tbaa !11
  br label %186

186:                                              ; preds = %171
  %187 = load i64, ptr %28, align 8, !tbaa !9
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %28, align 8, !tbaa !9
  br label %166, !llvm.loop !18

189:                                              ; preds = %166
  %190 = load ptr, ptr %17, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !17
  %193 = getelementptr inbounds double, ptr %192, i64 0
  %194 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %195 = load ptr, ptr %194, align 8, !tbaa !17
  %196 = getelementptr inbounds double, ptr %195, i64 0
  %197 = load i64, ptr %12, align 8, !tbaa !9
  %198 = sub nsw i64 %197, 1
  %199 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %198)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %193, i64 noundef 1, ptr noundef %196, i64 noundef 1, i64 noundef %199)
  %200 = load ptr, ptr %18, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %200)
  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 zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) #2

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

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

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 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_frame_leaveEPNS_8ae_stateE(ptr noundef) #2

declare noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_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 hidden void @_ZN11alglib_implL38spline1d_spline1dgriddiffcubicinternalEPNS_9ae_vectorES1_lldldS1_S1_S1_S1_S1_S1_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.178 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.179 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.180 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.181 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.182 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.183 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.184 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.185 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.186 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.187 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.188 = 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_impl21spline1dgriddiffcubicEPNS_9ae_vectorES1_lldldS1_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_vectorES1_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_vectorES1_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.178, 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.179, 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.180, 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.181, 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.182, 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.183, 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.184, 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.185, ptr noundef %8)
  %43 = add nsw i64 %2, -1
  %spec.select102 = select i1 %19, i64 %43, i64 %2
  %44 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_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.186, ptr noundef %8)
  %45 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %12, i64 noundef %spec.select102, ptr noundef %8)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef nonnull @.str.187, 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_impl11aredistinctEPNS_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.188, ptr noundef %8)
  call void @_ZN11alglib_implL38spline1d_spline1dgriddiffcubicinternalEPNS_9ae_vectorES1_lldldS1_S1_S1_S1_S1_S1_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.not103 = icmp sgt i64 %2, 0
  br i1 %.not.not103, 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
  %.097104 = 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 %.097104
  %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 %.097104
  %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 %.097104, 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 %.097104, 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
  %.097104.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 %.097104.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 %.097104.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 zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef, ptr noundef) local_unnamed_addr #2

declare void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef) local_unnamed_addr #2

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

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

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

declare noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef, i64 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_frame_leaveEPNS_8ae_stateE(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare hidden 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 hidden void @_ZN11alglib_implL38spline1d_spline1dgriddiffcubicinternalEPNS_9ae_vectorES1_lldldS1_S1_S1_S1_S1_S1_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