; 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.313 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.314 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.315 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.316 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.317 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.318 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.319 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.321 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [39 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_impl21spline1dconvdiffcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_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, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) #3 {
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i64, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.alglib_impl::ae_frame", align 8
  %26 = alloca %"struct.alglib_impl::ae_vector", align 8
  %27 = alloca %"struct.alglib_impl::ae_vector", align 8
  %28 = alloca %"struct.alglib_impl::ae_vector", align 8
  %29 = alloca %"struct.alglib_impl::ae_vector", align 8
  %30 = alloca %"struct.alglib_impl::ae_vector", align 8
  %31 = alloca %"struct.alglib_impl::ae_vector", align 8
  %32 = alloca %"struct.alglib_impl::ae_vector", align 8
  %33 = alloca %"struct.alglib_impl::ae_vector", align 8
  %34 = alloca %"struct.alglib_impl::ae_vector", align 8
  %35 = alloca %"struct.alglib_impl::ae_vector", align 8
  %36 = alloca %"struct.alglib_impl::ae_vector", align 8
  %37 = alloca %"struct.alglib_impl::ae_vector", align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store i64 %2, ptr %15, align 8, !tbaa !9
  store i64 %3, ptr %16, align 8, !tbaa !9
  store double %4, ptr %17, align 8, !tbaa !11
  store i64 %5, ptr %18, align 8, !tbaa !9
  store double %6, ptr %19, align 8, !tbaa !11
  store ptr %7, ptr %20, align 8, !tbaa !5
  store i64 %8, ptr %21, align 8, !tbaa !9
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, 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 64, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  %42 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %42, ptr noundef %25)
  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)
  call void @llvm.memset.p0.i64(ptr align 8 %28, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %29, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %31, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %34, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %35, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %36, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %37, i8 0, i64 64, i1 false)
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %26, ptr noundef %43, ptr noundef %44, i1 noundef zeroext true)
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %27, ptr noundef %45, ptr noundef %46, i1 noundef zeroext true)
  %47 = load ptr, ptr %20, align 8, !tbaa !5
  %48 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef %28, ptr noundef %47, ptr noundef %48, i1 noundef zeroext true)
  %49 = load ptr, ptr %22, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %49)
  %50 = load ptr, ptr %23, align 8, !tbaa !5
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %50)
  %51 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %29, i64 noundef 0, i64 noundef 3, ptr noundef %51, i1 noundef zeroext true)
  %52 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %30, i64 noundef 0, i64 noundef 3, ptr noundef %52, i1 noundef zeroext true)
  %53 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %31, i64 noundef 0, i64 noundef 3, ptr noundef %53, i1 noundef zeroext true)
  %54 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %32, i64 noundef 0, i64 noundef 3, ptr noundef %54, i1 noundef zeroext true)
  %55 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %33, i64 noundef 0, i64 noundef 3, ptr noundef %55, i1 noundef zeroext true)
  %56 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %34, i64 noundef 0, i64 noundef 3, ptr noundef %56, i1 noundef zeroext true)
  %57 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %35, i64 noundef 0, i64 noundef 3, ptr noundef %57, i1 noundef zeroext true)
  %58 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %36, i64 noundef 0, i64 noundef 2, ptr noundef %58, i1 noundef zeroext true)
  %59 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef %37, i64 noundef 0, i64 noundef 2, ptr noundef %59, i1 noundef zeroext true)
  %60 = load i64, ptr %16, align 8, !tbaa !9
  %61 = icmp eq i64 %60, -1
  br i1 %61, label %71, label %62

62:                                               ; preds = %12
  %63 = load i64, ptr %16, align 8, !tbaa !9
  %64 = icmp eq i64 %63, 0
  br i1 %64, label %71, label %65

65:                                               ; preds = %62
  %66 = load i64, ptr %16, align 8, !tbaa !9
  %67 = icmp eq i64 %66, 1
  br i1 %67, label %71, label %68

68:                                               ; preds = %65
  %69 = load i64, ptr %16, align 8, !tbaa !9
  %70 = icmp eq i64 %69, 2
  br label %71

71:                                               ; preds = %68, %65, %62, %12
  %72 = phi i1 [ true, %65 ], [ true, %62 ], [ true, %12 ], [ %70, %68 ]
  %73 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %72, ptr noundef @.str.313, ptr noundef %73)
  %74 = load i64, ptr %18, align 8, !tbaa !9
  %75 = icmp eq i64 %74, -1
  br i1 %75, label %85, label %76

76:                                               ; preds = %71
  %77 = load i64, ptr %18, align 8, !tbaa !9
  %78 = icmp eq i64 %77, 0
  br i1 %78, label %85, label %79

79:                                               ; preds = %76
  %80 = load i64, ptr %18, align 8, !tbaa !9
  %81 = icmp eq i64 %80, 1
  br i1 %81, label %85, label %82

82:                                               ; preds = %79
  %83 = load i64, ptr %18, align 8, !tbaa !9
  %84 = icmp eq i64 %83, 2
  br label %85

85:                                               ; preds = %82, %79, %76, %71
  %86 = phi i1 [ true, %79 ], [ true, %76 ], [ true, %71 ], [ %84, %82 ]
  %87 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %86, ptr noundef @.str.314, ptr noundef %87)
  %88 = load i64, ptr %18, align 8, !tbaa !9
  %89 = icmp eq i64 %88, -1
  br i1 %89, label %90, label %93

90:                                               ; preds = %85
  %91 = load i64, ptr %16, align 8, !tbaa !9
  %92 = icmp eq i64 %91, -1
  br i1 %92, label %101, label %93

93:                                               ; preds = %90, %85
  %94 = load i64, ptr %18, align 8, !tbaa !9
  %95 = icmp ne i64 %94, -1
  br i1 %95, label %96, label %99

96:                                               ; preds = %93
  %97 = load i64, ptr %16, align 8, !tbaa !9
  %98 = icmp ne i64 %97, -1
  br label %99

99:                                               ; preds = %96, %93
  %100 = phi i1 [ false, %93 ], [ %98, %96 ]
  br label %101

101:                                              ; preds = %99, %90
  %102 = phi i1 [ true, %90 ], [ %100, %99 ]
  %103 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %102, ptr noundef @.str.315, ptr noundef %103)
  %104 = load i64, ptr %16, align 8, !tbaa !9
  %105 = icmp eq i64 %104, 1
  br i1 %105, label %109, label %106

106:                                              ; preds = %101
  %107 = load i64, ptr %16, align 8, !tbaa !9
  %108 = icmp eq i64 %107, 2
  br i1 %108, label %109, label %114

109:                                              ; preds = %106, %101
  %110 = load double, ptr %17, align 8, !tbaa !11
  %111 = load ptr, ptr %24, align 8, !tbaa !5
  %112 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %110, ptr noundef %111)
  %113 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %112, ptr noundef @.str.316, ptr noundef %113)
  br label %114

114:                                              ; preds = %109, %106
  %115 = load i64, ptr %18, align 8, !tbaa !9
  %116 = icmp eq i64 %115, 1
  br i1 %116, label %120, label %117

117:                                              ; preds = %114
  %118 = load i64, ptr %18, align 8, !tbaa !9
  %119 = icmp eq i64 %118, 2
  br i1 %119, label %120, label %125

120:                                              ; preds = %117, %114
  %121 = load double, ptr %19, align 8, !tbaa !11
  %122 = load ptr, ptr %24, align 8, !tbaa !5
  %123 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %121, ptr noundef %122)
  %124 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %123, ptr noundef @.str.317, ptr noundef %124)
  br label %125

125:                                              ; preds = %120, %117
  %126 = load i64, ptr %15, align 8, !tbaa !9
  %127 = icmp sge i64 %126, 2
  %128 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %127, ptr noundef @.str.318, ptr noundef %128)
  %129 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 0
  %130 = load i64, ptr %129, align 8, !tbaa !13
  %131 = load i64, ptr %15, align 8, !tbaa !9
  %132 = icmp sge i64 %130, %131
  %133 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %132, ptr noundef @.str.319, ptr noundef %133)
  %134 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %27, i32 0, i32 0
  %135 = load i64, ptr %134, align 8, !tbaa !13
  %136 = load i64, ptr %15, align 8, !tbaa !9
  %137 = icmp sge i64 %135, %136
  %138 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %137, ptr noundef @.str.320, ptr noundef %138)
  %139 = load i64, ptr %21, align 8, !tbaa !9
  %140 = icmp sge i64 %139, 2
  %141 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %140, ptr noundef @.str.321, ptr noundef %141)
  %142 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 0
  %143 = load i64, ptr %142, align 8, !tbaa !13
  %144 = load i64, ptr %21, align 8, !tbaa !9
  %145 = icmp sge i64 %143, %144
  %146 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %145, ptr noundef @.str.322, ptr noundef %146)
  %147 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %147, ptr %39, align 8, !tbaa !9
  %148 = load i64, ptr %16, align 8, !tbaa !9
  %149 = icmp eq i64 %148, -1
  br i1 %149, label %150, label %153

150:                                              ; preds = %125
  %151 = load i64, ptr %15, align 8, !tbaa !9
  %152 = sub nsw i64 %151, 1
  store i64 %152, ptr %39, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %150, %125
  %154 = load i64, ptr %15, align 8, !tbaa !9
  %155 = load ptr, ptr %24, align 8, !tbaa !5
  %156 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %154, ptr noundef %155)
  %157 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %156, ptr noundef @.str.323, ptr noundef %157)
  %158 = load i64, ptr %39, align 8, !tbaa !9
  %159 = load ptr, ptr %24, align 8, !tbaa !5
  %160 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %27, i64 noundef %158, ptr noundef %159)
  %161 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %160, ptr noundef @.str.324, ptr noundef %161)
  %162 = load i64, ptr %21, align 8, !tbaa !9
  %163 = load ptr, ptr %24, align 8, !tbaa !5
  %164 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %28, i64 noundef %162, ptr noundef %163)
  %165 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %164, ptr noundef @.str.325, ptr noundef %165)
  %166 = load i64, ptr %15, align 8, !tbaa !9
  %167 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %26, ptr noundef %27, ptr noundef %36, i64 noundef %166, ptr noundef %167)
  %168 = load i64, ptr %15, align 8, !tbaa !9
  %169 = load ptr, ptr %24, align 8, !tbaa !5
  %170 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %26, i64 noundef %168, ptr noundef %169)
  %171 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %170, ptr noundef @.str.326, ptr noundef %171)
  %172 = load i64, ptr %15, align 8, !tbaa !9
  %173 = load i64, ptr %21, align 8, !tbaa !9
  %174 = load ptr, ptr %24, align 8, !tbaa !5
  %175 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %172, i64 noundef %173, ptr noundef %174)
  %176 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %175, ptr noundef %176)
  %177 = load i64, ptr %18, align 8, !tbaa !9
  %178 = icmp eq i64 %177, -1
  br i1 %178, label %179, label %214

179:                                              ; preds = %153
  %180 = load i64, ptr %16, align 8, !tbaa !9
  %181 = icmp eq i64 %180, -1
  br i1 %181, label %182, label %214

182:                                              ; preds = %179
  store i64 0, ptr %38, align 8, !tbaa !9
  br label %183

183:                                              ; preds = %210, %182
  %184 = load i64, ptr %38, align 8, !tbaa !9
  %185 = load i64, ptr %21, align 8, !tbaa !9
  %186 = sub nsw i64 %185, 1
  %187 = icmp sle i64 %184, %186
  br i1 %187, label %188, label %213

188:                                              ; preds = %183
  %189 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !17
  %191 = load i64, ptr %38, align 8, !tbaa !9
  %192 = getelementptr inbounds double, ptr %190, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !11
  store double %193, ptr %40, align 8, !tbaa !11
  %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 double, ptr %196, align 8, !tbaa !11
  %198 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %26, i32 0, i32 4
  %199 = load ptr, ptr %198, align 8, !tbaa !17
  %200 = load i64, ptr %15, align 8, !tbaa !9
  %201 = sub nsw i64 %200, 1
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !11
  %204 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13apperiodicmapEPdddS0_PNS_8ae_stateE(ptr noundef %40, double noundef %197, double noundef %203, ptr noundef %41, ptr noundef %204)
  %205 = load double, ptr %40, align 8, !tbaa !11
  %206 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %28, i32 0, i32 4
  %207 = load ptr, ptr %206, align 8, !tbaa !17
  %208 = load i64, ptr %38, align 8, !tbaa !9
  %209 = getelementptr inbounds double, ptr %207, i64 %208
  store double %205, ptr %209, align 8, !tbaa !11
  br label %210

210:                                              ; preds = %188
  %211 = load i64, ptr %38, align 8, !tbaa !9
  %212 = add nsw i64 %211, 1
  store i64 %212, ptr %38, align 8, !tbaa !9
  br label %183, !llvm.loop !18

213:                                              ; preds = %183
  br label %214

214:                                              ; preds = %213, %179, %153
  %215 = load i64, ptr %21, align 8, !tbaa !9
  %216 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %28, ptr noundef %34, ptr noundef %37, i64 noundef %215, ptr noundef %216)
  %217 = load i64, ptr %15, align 8, !tbaa !9
  %218 = load i64, ptr %16, align 8, !tbaa !9
  %219 = load double, ptr %17, align 8, !tbaa !11
  %220 = load i64, ptr %18, align 8, !tbaa !9
  %221 = load double, ptr %19, align 8, !tbaa !11
  %222 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl29spline1dgriddiffcubicinternalEPKNS_9ae_vectorEPS0_lldldS3_S3_S3_S3_S3_S3_PNS_8ae_stateE(ptr noundef %26, ptr noundef %27, i64 noundef %217, i64 noundef %218, double noundef %219, i64 noundef %220, double noundef %221, ptr noundef %33, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %34, ptr noundef %222)
  %223 = load i64, ptr %15, align 8, !tbaa !9
  %224 = load i64, ptr %21, align 8, !tbaa !9
  %225 = load ptr, ptr %22, align 8, !tbaa !5
  %226 = load ptr, ptr %23, align 8, !tbaa !5
  %227 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl24spline1dconvdiffinternalEPKNS_9ae_vectorES2_S2_lS2_lPS0_bS3_bS3_bPNS_8ae_stateE(ptr noundef %26, ptr noundef %27, ptr noundef %33, i64 noundef %223, ptr noundef %28, i64 noundef %224, ptr noundef %225, i1 noundef zeroext true, ptr noundef %226, i1 noundef zeroext true, ptr noundef %35, i1 noundef zeroext false, ptr noundef %227)
  %228 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 0
  %229 = load i64, ptr %228, align 8, !tbaa !13
  %230 = load i64, ptr %21, align 8, !tbaa !9
  %231 = icmp sge i64 %229, %230
  %232 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %231, ptr noundef @.str.327, ptr noundef %232)
  store i64 0, ptr %38, align 8, !tbaa !9
  br label %233

233:                                              ; preds = %253, %214
  %234 = load i64, ptr %38, align 8, !tbaa !9
  %235 = load i64, ptr %21, align 8, !tbaa !9
  %236 = sub nsw i64 %235, 1
  %237 = icmp sle i64 %234, %236
  br i1 %237, label %238, label %256

238:                                              ; preds = %233
  %239 = load ptr, ptr %22, align 8, !tbaa !5
  %240 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !17
  %242 = load i64, ptr %38, align 8, !tbaa !9
  %243 = getelementptr inbounds double, ptr %241, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !11
  %245 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %246 = load ptr, ptr %245, align 8, !tbaa !17
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %248 = load ptr, ptr %247, align 8, !tbaa !17
  %249 = load i64, ptr %38, align 8, !tbaa !9
  %250 = getelementptr inbounds i64, ptr %248, i64 %249
  %251 = load i64, ptr %250, align 8, !tbaa !9
  %252 = getelementptr inbounds double, ptr %246, i64 %251
  store double %244, ptr %252, align 8, !tbaa !11
  br label %253

253:                                              ; preds = %238
  %254 = load i64, ptr %38, align 8, !tbaa !9
  %255 = add nsw i64 %254, 1
  store i64 %255, ptr %38, align 8, !tbaa !9
  br label %233, !llvm.loop !20

256:                                              ; preds = %233
  %257 = load ptr, ptr %22, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %257, i32 0, i32 4
  %259 = load ptr, ptr %258, align 8, !tbaa !17
  %260 = getelementptr inbounds double, ptr %259, i64 0
  %261 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %262 = load ptr, ptr %261, align 8, !tbaa !17
  %263 = getelementptr inbounds double, ptr %262, i64 0
  %264 = load i64, ptr %21, align 8, !tbaa !9
  %265 = sub nsw i64 %264, 1
  %266 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %265)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %260, i64 noundef 1, ptr noundef %263, i64 noundef 1, i64 noundef %266)
  store i64 0, ptr %38, align 8, !tbaa !9
  br label %267

267:                                              ; preds = %287, %256
  %268 = load i64, ptr %38, align 8, !tbaa !9
  %269 = load i64, ptr %21, align 8, !tbaa !9
  %270 = sub nsw i64 %269, 1
  %271 = icmp sle i64 %268, %270
  br i1 %271, label %272, label %290

272:                                              ; preds = %267
  %273 = load ptr, ptr %23, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %273, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !17
  %276 = load i64, ptr %38, align 8, !tbaa !9
  %277 = getelementptr inbounds double, ptr %275, i64 %276
  %278 = load double, ptr %277, align 8, !tbaa !11
  %279 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %280 = load ptr, ptr %279, align 8, !tbaa !17
  %281 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !17
  %283 = load i64, ptr %38, align 8, !tbaa !9
  %284 = getelementptr inbounds i64, ptr %282, i64 %283
  %285 = load i64, ptr %284, align 8, !tbaa !9
  %286 = getelementptr inbounds double, ptr %280, i64 %285
  store double %278, ptr %286, align 8, !tbaa !11
  br label %287

287:                                              ; preds = %272
  %288 = load i64, ptr %38, align 8, !tbaa !9
  %289 = add nsw i64 %288, 1
  store i64 %289, ptr %38, align 8, !tbaa !9
  br label %267, !llvm.loop !21

290:                                              ; preds = %267
  %291 = load ptr, ptr %23, align 8, !tbaa !5
  %292 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %291, i32 0, i32 4
  %293 = load ptr, ptr %292, align 8, !tbaa !17
  %294 = getelementptr inbounds double, ptr %293, i64 0
  %295 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %296 = load ptr, ptr %295, align 8, !tbaa !17
  %297 = getelementptr inbounds double, ptr %296, i64 0
  %298 = load i64, ptr %21, align 8, !tbaa !9
  %299 = sub nsw i64 %298, 1
  %300 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %299)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %294, i64 noundef 1, ptr noundef %297, i64 noundef 1, i64 noundef %300)
  %301 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %301)
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 64, 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 32, ptr %25) #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 noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, 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

declare void @_ZN11alglib_impl13apperiodicmapEPdddS0_PNS_8ae_stateE(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11alglib_impl24spline1dconvdiffinternalEPKNS_9ae_vectorES2_S2_lS2_lPS0_bS3_bS3_bPNS_8ae_stateE(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef, i64 noundef, ptr noundef, i1 noundef zeroext, ptr noundef, i1 noundef zeroext, ptr noundef, i1 noundef zeroext, 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"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


; 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.313 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.314 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.315 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.316 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.317 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.318 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.319 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.320 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.321 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.322 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.323 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.324 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.325 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.326 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.327 = external hidden unnamed_addr constant [39 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_impl21spline1dconvdiffcubicEPKNS_9ae_vectorES2_lldldS2_lPS0_S3_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, i64 noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11) local_unnamed_addr #3 {
  %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 %"struct.alglib_impl::ae_vector", align 8
  %18 = alloca %"struct.alglib_impl::ae_vector", align 8
  %19 = alloca %"struct.alglib_impl::ae_vector", 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 double, align 8
  %27 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 32, 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 @llvm.lifetime.start.p0(i64 64, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %20) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %21) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %22) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %24) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #4
  call void @_ZN11alglib_impl13ae_frame_makeEPNS_8ae_stateEPNS_8ae_frameE(ptr noundef %11, ptr noundef nonnull %13)
  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 @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %19, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %20, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %21, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %22, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %23, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %24, i8 0, i64 64, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %25, i8 0, i64 64, i1 false)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %14, ptr noundef %0, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %15, ptr noundef %1, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl19ae_vector_init_copyEPNS_9ae_vectorEPKS0_PNS_8ae_stateEb(ptr noundef nonnull %16, ptr noundef %7, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %9)
  call void @_ZN11alglib_impl15ae_vector_clearEPNS_9ae_vectorE(ptr noundef %10)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %17, i64 noundef 0, i64 noundef 3, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %18, i64 noundef 0, i64 noundef 3, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %19, i64 noundef 0, i64 noundef 3, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %20, i64 noundef 0, i64 noundef 3, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %21, i64 noundef 0, i64 noundef 3, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %22, i64 noundef 0, i64 noundef 3, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %23, i64 noundef 0, i64 noundef 3, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %24, i64 noundef 0, i64 noundef 2, ptr noundef %11, i1 noundef zeroext true)
  call void @_ZN11alglib_impl14ae_vector_initEPNS_9ae_vectorEllPNS_8ae_stateEb(ptr noundef nonnull %25, i64 noundef 0, i64 noundef 2, ptr noundef %11, i1 noundef zeroext true)
  %28 = icmp eq i64 %3, -1
  %29 = add i64 %3, 1
  %spec.select = icmp ult i64 %29, 4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %spec.select, ptr noundef nonnull @.str.313, ptr noundef %11)
  %30 = add i64 %5, 1
  %31 = icmp ult i64 %30, 4
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %31, ptr noundef nonnull @.str.314, ptr noundef %11)
  %32 = and i64 %5, %3
  %or.cond9 = icmp eq i64 %32, -1
  br i1 %or.cond9, label %37, label %33

33:                                               ; preds = %12
  %34 = icmp ne i64 %5, -1
  %35 = icmp ne i64 %3, -1
  %36 = and i1 %35, %34
  br label %37

37:                                               ; preds = %12, %33
  %38 = phi i1 [ %36, %33 ], [ true, %12 ]
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %38, ptr noundef nonnull @.str.315, ptr noundef %11)
  %39 = add i64 %3, -1
  %or.cond11 = icmp ult i64 %39, 2
  br i1 %or.cond11, label %40, label %42

40:                                               ; preds = %37
  %41 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %4, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %41, ptr noundef nonnull @.str.316, ptr noundef %11)
  br label %42

42:                                               ; preds = %37, %40
  %43 = add i64 %5, -1
  %or.cond13 = icmp ult i64 %43, 2
  br i1 %or.cond13, label %44, label %46

44:                                               ; preds = %42
  %45 = call noundef zeroext i1 @_ZN11alglib_impl11ae_isfiniteEdPNS_8ae_stateE(double noundef %6, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %45, ptr noundef nonnull @.str.317, ptr noundef %11)
  br label %46

46:                                               ; preds = %42, %44
  %47 = icmp sgt i64 %2, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %47, ptr noundef nonnull @.str.318, ptr noundef %11)
  %48 = load i64, ptr %14, align 8, !tbaa !5
  %49 = icmp sge i64 %48, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %49, ptr noundef nonnull @.str.319, ptr noundef %11)
  %50 = load i64, ptr %15, align 8, !tbaa !5
  %51 = icmp sge i64 %50, %2
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %51, ptr noundef nonnull @.str.320, ptr noundef %11)
  %52 = icmp sgt i64 %8, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.321, ptr noundef %11)
  %53 = load i64, ptr %16, align 8, !tbaa !5
  %54 = icmp sge i64 %53, %8
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %54, ptr noundef nonnull @.str.322, ptr noundef %11)
  %55 = sext i1 %28 to i64
  %spec.select135 = add nsw i64 %55, %2
  %56 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %2, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %56, ptr noundef nonnull @.str.323, ptr noundef %11)
  %57 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %spec.select135, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %57, ptr noundef nonnull @.str.324, ptr noundef %11)
  %58 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %16, i64 noundef %8, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %58, ptr noundef nonnull @.str.325, ptr noundef %11)
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %24, i64 noundef %2, ptr noundef %11)
  %59 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPKNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %14, i64 noundef %2, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %59, ptr noundef nonnull @.str.326, ptr noundef %11)
  %60 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %2, i64 noundef %8, ptr noundef %11)
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %22, i64 noundef %60, ptr noundef %11)
  %.not.not136 = icmp sgt i64 %8, 0
  %or.cond = and i1 %or.cond9, %.not.not136
  br i1 %or.cond, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %46
  %61 = getelementptr inbounds i8, ptr %16, i64 56
  %62 = getelementptr inbounds i8, ptr %14, i64 56
  br label %63

63:                                               ; preds = %.lr.ph, %63
  %.0129137 = phi i64 [ 0, %.lr.ph ], [ %75, %63 ]
  %64 = load ptr, ptr %61, align 8, !tbaa !13
  %65 = getelementptr inbounds double, ptr %64, i64 %.0129137
  %66 = load double, ptr %65, align 8, !tbaa !14
  store double %66, ptr %26, align 8, !tbaa !14
  %67 = load ptr, ptr %62, align 8, !tbaa !13
  %68 = load double, ptr %67, align 8, !tbaa !14
  %69 = getelementptr double, ptr %67, i64 %2
  %70 = getelementptr i8, ptr %69, i64 -8
  %71 = load double, ptr %70, align 8, !tbaa !14
  call void @_ZN11alglib_impl13apperiodicmapEPdddS0_PNS_8ae_stateE(ptr noundef nonnull %26, double noundef %68, double noundef %71, ptr noundef nonnull %27, ptr noundef %11)
  %72 = load double, ptr %26, align 8, !tbaa !14
  %73 = load ptr, ptr %61, align 8, !tbaa !13
  %74 = getelementptr inbounds double, ptr %73, i64 %.0129137
  store double %72, ptr %74, align 8, !tbaa !14
  %75 = add nuw nsw i64 %.0129137, 1
  %exitcond.not = icmp eq i64 %75, %8
  br i1 %exitcond.not, label %.loopexit, label %63, !llvm.loop !16

.loopexit:                                        ; preds = %63, %46
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef nonnull %16, ptr noundef nonnull %22, ptr noundef nonnull %25, i64 noundef %8, ptr noundef %11)
  call void @_ZN11alglib_impl29spline1dgriddiffcubicinternalEPKNS_9ae_vectorEPS0_lldldS3_S3_S3_S3_S3_S3_PNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, i64 noundef %2, i64 noundef %3, double noundef %4, i64 noundef %5, double noundef %6, ptr noundef nonnull %21, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %22, ptr noundef %11)
  call void @_ZN11alglib_impl24spline1dconvdiffinternalEPKNS_9ae_vectorES2_S2_lS2_lPS0_bS3_bS3_bPNS_8ae_stateE(ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %21, i64 noundef %2, ptr noundef nonnull %16, i64 noundef %8, ptr noundef %9, i1 noundef zeroext true, ptr noundef %10, i1 noundef zeroext true, ptr noundef nonnull %23, i1 noundef zeroext false, ptr noundef %11)
  %76 = load i64, ptr %22, align 8, !tbaa !5
  %77 = icmp sge i64 %76, %8
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %77, ptr noundef nonnull @.str.327, ptr noundef %11)
  br i1 %.not.not136, label %.lr.ph140, label %._crit_edge

.lr.ph140:                                        ; preds = %.loopexit
  %78 = getelementptr inbounds i8, ptr %9, i64 56
  %79 = getelementptr inbounds i8, ptr %22, i64 56
  %80 = getelementptr inbounds i8, ptr %25, i64 56
  %xtraiter = and i64 %8, 1
  %81 = icmp eq i64 %8, 1
  br i1 %81, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph140.new

.lr.ph140.new:                                    ; preds = %.lr.ph140
  %unroll_iter = and i64 %8, 9223372036854775806
  br label %82

82:                                               ; preds = %82, %.lr.ph140.new
  %.1139 = phi i64 [ 0, %.lr.ph140.new ], [ %100, %82 ]
  %niter = phi i64 [ 0, %.lr.ph140.new ], [ %niter.next.1, %82 ]
  %83 = load ptr, ptr %78, align 8, !tbaa !13
  %84 = getelementptr inbounds double, ptr %83, i64 %.1139
  %85 = load double, ptr %84, align 8, !tbaa !14
  %86 = load ptr, ptr %79, align 8, !tbaa !13
  %87 = load ptr, ptr %80, align 8, !tbaa !13
  %88 = getelementptr inbounds i64, ptr %87, i64 %.1139
  %89 = load i64, ptr %88, align 8, !tbaa !18
  %90 = getelementptr inbounds double, ptr %86, i64 %89
  store double %85, ptr %90, align 8, !tbaa !14
  %91 = or disjoint i64 %.1139, 1
  %92 = load ptr, ptr %78, align 8, !tbaa !13
  %93 = getelementptr inbounds double, ptr %92, i64 %91
  %94 = load double, ptr %93, align 8, !tbaa !14
  %95 = load ptr, ptr %79, align 8, !tbaa !13
  %96 = load ptr, ptr %80, align 8, !tbaa !13
  %97 = getelementptr inbounds i64, ptr %96, i64 %91
  %98 = load i64, ptr %97, align 8, !tbaa !18
  %99 = getelementptr inbounds double, ptr %95, i64 %98
  store double %94, ptr %99, align 8, !tbaa !14
  %100 = add nuw nsw i64 %.1139, 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 %82, !llvm.loop !19

._crit_edge.loopexit.unr-lcssa:                   ; preds = %82, %.lr.ph140
  %.1139.unr = phi i64 [ 0, %.lr.ph140 ], [ %100, %82 ]
  %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
  %101 = load ptr, ptr %78, align 8, !tbaa !13
  %102 = getelementptr inbounds double, ptr %101, i64 %.1139.unr
  %103 = load double, ptr %102, align 8, !tbaa !14
  %104 = load ptr, ptr %79, align 8, !tbaa !13
  %105 = load ptr, ptr %80, align 8, !tbaa !13
  %106 = getelementptr inbounds i64, ptr %105, i64 %.1139.unr
  %107 = load i64, ptr %106, align 8, !tbaa !18
  %108 = getelementptr inbounds double, ptr %104, i64 %107
  store double %103, ptr %108, align 8, !tbaa !14
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.epilog-lcssa, %._crit_edge.loopexit.unr-lcssa, %.loopexit
  %109 = add nsw i64 %8, -1
  %110 = getelementptr inbounds i8, ptr %9, i64 56
  %111 = load ptr, ptr %110, align 8, !tbaa !13
  %112 = getelementptr inbounds i8, ptr %22, i64 56
  %113 = load ptr, ptr %112, align 8, !tbaa !13
  %114 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %109)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %111, i64 noundef 1, ptr noundef %113, i64 noundef 1, i64 noundef %114)
  br i1 %.not.not136, label %.lr.ph144, label %._crit_edge145

.lr.ph144:                                        ; preds = %._crit_edge
  %115 = getelementptr inbounds i8, ptr %10, i64 56
  %116 = getelementptr inbounds i8, ptr %25, i64 56
  %xtraiter149 = and i64 %8, 1
  %117 = icmp eq i64 %8, 1
  br i1 %117, label %._crit_edge145.loopexit.unr-lcssa, label %.lr.ph144.new

.lr.ph144.new:                                    ; preds = %.lr.ph144
  %unroll_iter151 = and i64 %8, 9223372036854775806
  br label %118

118:                                              ; preds = %118, %.lr.ph144.new
  %.2142 = phi i64 [ 0, %.lr.ph144.new ], [ %136, %118 ]
  %niter152 = phi i64 [ 0, %.lr.ph144.new ], [ %niter152.next.1, %118 ]
  %119 = load ptr, ptr %115, align 8, !tbaa !13
  %120 = getelementptr inbounds double, ptr %119, i64 %.2142
  %121 = load double, ptr %120, align 8, !tbaa !14
  %122 = load ptr, ptr %112, align 8, !tbaa !13
  %123 = load ptr, ptr %116, align 8, !tbaa !13
  %124 = getelementptr inbounds i64, ptr %123, i64 %.2142
  %125 = load i64, ptr %124, align 8, !tbaa !18
  %126 = getelementptr inbounds double, ptr %122, i64 %125
  store double %121, ptr %126, align 8, !tbaa !14
  %127 = or disjoint i64 %.2142, 1
  %128 = load ptr, ptr %115, align 8, !tbaa !13
  %129 = getelementptr inbounds double, ptr %128, i64 %127
  %130 = load double, ptr %129, align 8, !tbaa !14
  %131 = load ptr, ptr %112, align 8, !tbaa !13
  %132 = load ptr, ptr %116, align 8, !tbaa !13
  %133 = getelementptr inbounds i64, ptr %132, i64 %127
  %134 = load i64, ptr %133, align 8, !tbaa !18
  %135 = getelementptr inbounds double, ptr %131, i64 %134
  store double %130, ptr %135, align 8, !tbaa !14
  %136 = add nuw nsw i64 %.2142, 2
  %niter152.next.1 = add i64 %niter152, 2
  %niter152.ncmp.1 = icmp eq i64 %niter152.next.1, %unroll_iter151
  br i1 %niter152.ncmp.1, label %._crit_edge145.loopexit.unr-lcssa, label %118, !llvm.loop !20

._crit_edge145.loopexit.unr-lcssa:                ; preds = %118, %.lr.ph144
  %.2142.unr = phi i64 [ 0, %.lr.ph144 ], [ %136, %118 ]
  %lcmp.mod150.not = icmp eq i64 %xtraiter149, 0
  br i1 %lcmp.mod150.not, label %._crit_edge145, label %._crit_edge145.loopexit.epilog-lcssa

._crit_edge145.loopexit.epilog-lcssa:             ; preds = %._crit_edge145.loopexit.unr-lcssa
  %137 = load ptr, ptr %115, align 8, !tbaa !13
  %138 = getelementptr inbounds double, ptr %137, i64 %.2142.unr
  %139 = load double, ptr %138, align 8, !tbaa !14
  %140 = load ptr, ptr %112, align 8, !tbaa !13
  %141 = load ptr, ptr %116, align 8, !tbaa !13
  %142 = getelementptr inbounds i64, ptr %141, i64 %.2142.unr
  %143 = load i64, ptr %142, align 8, !tbaa !18
  %144 = getelementptr inbounds double, ptr %140, i64 %143
  store double %139, ptr %144, align 8, !tbaa !14
  br label %._crit_edge145

._crit_edge145:                                   ; preds = %._crit_edge145.loopexit.epilog-lcssa, %._crit_edge145.loopexit.unr-lcssa, %._crit_edge
  %145 = getelementptr inbounds i8, ptr %10, i64 56
  %146 = load ptr, ptr %145, align 8, !tbaa !13
  %147 = load ptr, ptr %112, align 8, !tbaa !13
  %148 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %109)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %146, i64 noundef 1, ptr noundef %147, i64 noundef 1, i64 noundef %148)
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %23) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %19) #4
  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 32, ptr nonnull %13) #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 noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, 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

declare void @_ZN11alglib_impl13apperiodicmapEPdddS0_PNS_8ae_stateE(ptr noundef, double noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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


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