; 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.215 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.223 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.224 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.225 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.229 = 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_impl21spline1dconvdiffcubicEPNS_9ae_vectorES1_lldldS1_lS1_S1_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_vectorES1_PNS_8ae_stateEb(ptr noundef %26, ptr noundef %43, ptr noundef %44, i1 noundef zeroext true)
  store ptr %26, ptr %13, align 8, !tbaa !5
  %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_vectorES1_PNS_8ae_stateEb(ptr noundef %27, ptr noundef %45, ptr noundef %46, i1 noundef zeroext true)
  store ptr %27, ptr %14, align 8, !tbaa !5
  %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_vectorES1_PNS_8ae_stateEb(ptr noundef %28, ptr noundef %47, ptr noundef %48, i1 noundef zeroext true)
  store ptr %28, ptr %20, align 8, !tbaa !5
  %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.215, 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.216, 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.217, 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.218, 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.219, 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.220, ptr noundef %128)
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %129, i32 0, i32 0
  %131 = load i64, ptr %130, align 8, !tbaa !13
  %132 = load i64, ptr %15, align 8, !tbaa !9
  %133 = icmp sge i64 %131, %132
  %134 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %133, ptr noundef @.str.221, ptr noundef %134)
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %135, i32 0, i32 0
  %137 = load i64, ptr %136, align 8, !tbaa !13
  %138 = load i64, ptr %15, align 8, !tbaa !9
  %139 = icmp sge i64 %137, %138
  %140 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %139, ptr noundef @.str.222, ptr noundef %140)
  %141 = load i64, ptr %21, align 8, !tbaa !9
  %142 = icmp sge i64 %141, 2
  %143 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %142, ptr noundef @.str.223, ptr noundef %143)
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  %145 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %144, i32 0, i32 0
  %146 = load i64, ptr %145, align 8, !tbaa !13
  %147 = load i64, ptr %21, align 8, !tbaa !9
  %148 = icmp sge i64 %146, %147
  %149 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %148, ptr noundef @.str.224, ptr noundef %149)
  %150 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %150, ptr %39, align 8, !tbaa !9
  %151 = load i64, ptr %16, align 8, !tbaa !9
  %152 = icmp eq i64 %151, -1
  br i1 %152, label %153, label %156

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

156:                                              ; preds = %153, %125
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = load i64, ptr %15, align 8, !tbaa !9
  %159 = load ptr, ptr %24, align 8, !tbaa !5
  %160 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %157, 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.225, ptr noundef %161)
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = load i64, ptr %39, align 8, !tbaa !9
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %162, i64 noundef %163, ptr noundef %164)
  %166 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %165, ptr noundef @.str.226, ptr noundef %166)
  %167 = load ptr, ptr %20, align 8, !tbaa !5
  %168 = load i64, ptr %21, align 8, !tbaa !9
  %169 = load ptr, ptr %24, align 8, !tbaa !5
  %170 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %167, 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.227, ptr noundef %171)
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load i64, ptr %15, align 8, !tbaa !9
  %175 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %172, ptr noundef %173, ptr noundef %36, i64 noundef %174, ptr noundef %175)
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = load i64, ptr %15, align 8, !tbaa !9
  %178 = load ptr, ptr %24, align 8, !tbaa !5
  %179 = call noundef zeroext i1 @_ZN11alglib_impl11aredistinctEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %176, i64 noundef %177, ptr noundef %178)
  %180 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %179, ptr noundef @.str.228, ptr noundef %180)
  %181 = load i64, ptr %15, align 8, !tbaa !9
  %182 = load i64, ptr %21, align 8, !tbaa !9
  %183 = load ptr, ptr %24, align 8, !tbaa !5
  %184 = call noundef i64 @_ZN11alglib_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef %181, i64 noundef %182, ptr noundef %183)
  %185 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl20ae_vector_set_lengthEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef %34, i64 noundef %184, ptr noundef %185)
  %186 = load i64, ptr %18, align 8, !tbaa !9
  %187 = icmp eq i64 %186, -1
  br i1 %187, label %188, label %227

188:                                              ; preds = %156
  %189 = load i64, ptr %16, align 8, !tbaa !9
  %190 = icmp eq i64 %189, -1
  br i1 %190, label %191, label %227

191:                                              ; preds = %188
  store i64 0, ptr %38, align 8, !tbaa !9
  br label %192

192:                                              ; preds = %223, %191
  %193 = load i64, ptr %38, align 8, !tbaa !9
  %194 = load i64, ptr %21, align 8, !tbaa !9
  %195 = sub nsw i64 %194, 1
  %196 = icmp sle i64 %193, %195
  br i1 %196, label %197, label %226

197:                                              ; preds = %192
  %198 = load ptr, ptr %20, align 8, !tbaa !5
  %199 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %198, i32 0, i32 4
  %200 = load ptr, ptr %199, align 8, !tbaa !17
  %201 = load i64, ptr %38, align 8, !tbaa !9
  %202 = getelementptr inbounds double, ptr %200, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !11
  store double %203, ptr %40, align 8, !tbaa !11
  %204 = load ptr, ptr %13, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %204, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !17
  %207 = getelementptr inbounds double, ptr %206, i64 0
  %208 = load double, ptr %207, align 8, !tbaa !11
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %209, i32 0, i32 4
  %211 = load ptr, ptr %210, align 8, !tbaa !17
  %212 = load i64, ptr %15, align 8, !tbaa !9
  %213 = sub nsw i64 %212, 1
  %214 = getelementptr inbounds double, ptr %211, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !11
  %216 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl13apperiodicmapEPdddS0_PNS_8ae_stateE(ptr noundef %40, double noundef %208, double noundef %215, ptr noundef %41, ptr noundef %216)
  %217 = load double, ptr %40, align 8, !tbaa !11
  %218 = load ptr, ptr %20, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %218, i32 0, i32 4
  %220 = load ptr, ptr %219, align 8, !tbaa !17
  %221 = load i64, ptr %38, align 8, !tbaa !9
  %222 = getelementptr inbounds double, ptr %220, i64 %221
  store double %217, ptr %222, align 8, !tbaa !11
  br label %223

223:                                              ; preds = %197
  %224 = load i64, ptr %38, align 8, !tbaa !9
  %225 = add nsw i64 %224, 1
  store i64 %225, ptr %38, align 8, !tbaa !9
  br label %192, !llvm.loop !18

226:                                              ; preds = %192
  br label %227

227:                                              ; preds = %226, %188, %156
  %228 = load ptr, ptr %20, align 8, !tbaa !5
  %229 = load i64, ptr %21, align 8, !tbaa !9
  %230 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_implL24spline1d_heapsortppointsEPNS_9ae_vectorES1_S1_lPNS_8ae_stateE(ptr noundef %228, ptr noundef %34, ptr noundef %37, i64 noundef %229, ptr noundef %230)
  %231 = load ptr, ptr %13, align 8, !tbaa !5
  %232 = load ptr, ptr %14, align 8, !tbaa !5
  %233 = load i64, ptr %15, align 8, !tbaa !9
  %234 = load i64, ptr %16, align 8, !tbaa !9
  %235 = load double, ptr %17, align 8, !tbaa !11
  %236 = load i64, ptr %18, align 8, !tbaa !9
  %237 = load double, ptr %19, align 8, !tbaa !11
  %238 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_implL38spline1d_spline1dgriddiffcubicinternalEPNS_9ae_vectorES1_lldldS1_S1_S1_S1_S1_S1_PNS_8ae_stateE(ptr noundef %231, ptr noundef %232, i64 noundef %233, i64 noundef %234, double noundef %235, i64 noundef %236, double noundef %237, ptr noundef %33, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %34, ptr noundef %238)
  %239 = load ptr, ptr %13, align 8, !tbaa !5
  %240 = load ptr, ptr %14, align 8, !tbaa !5
  %241 = load i64, ptr %15, align 8, !tbaa !9
  %242 = load ptr, ptr %20, align 8, !tbaa !5
  %243 = load i64, ptr %21, align 8, !tbaa !9
  %244 = load ptr, ptr %22, align 8, !tbaa !5
  %245 = load ptr, ptr %23, align 8, !tbaa !5
  %246 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl24spline1dconvdiffinternalEPNS_9ae_vectorES1_S1_lS1_lS1_bS1_bS1_bPNS_8ae_stateE(ptr noundef %239, ptr noundef %240, ptr noundef %33, i64 noundef %241, ptr noundef %242, i64 noundef %243, ptr noundef %244, i1 noundef zeroext true, ptr noundef %245, i1 noundef zeroext true, ptr noundef %35, i1 noundef zeroext false, ptr noundef %246)
  %247 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 0
  %248 = load i64, ptr %247, align 8, !tbaa !13
  %249 = load i64, ptr %21, align 8, !tbaa !9
  %250 = icmp sge i64 %248, %249
  %251 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %250, ptr noundef @.str.229, ptr noundef %251)
  store i64 0, ptr %38, align 8, !tbaa !9
  br label %252

252:                                              ; preds = %272, %227
  %253 = load i64, ptr %38, align 8, !tbaa !9
  %254 = load i64, ptr %21, align 8, !tbaa !9
  %255 = sub nsw i64 %254, 1
  %256 = icmp sle i64 %253, %255
  br i1 %256, label %257, label %275

257:                                              ; preds = %252
  %258 = load ptr, ptr %22, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %258, i32 0, i32 4
  %260 = load ptr, ptr %259, align 8, !tbaa !17
  %261 = load i64, ptr %38, align 8, !tbaa !9
  %262 = getelementptr inbounds double, ptr %260, i64 %261
  %263 = load double, ptr %262, align 8, !tbaa !11
  %264 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !17
  %266 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %267 = load ptr, ptr %266, align 8, !tbaa !17
  %268 = load i64, ptr %38, align 8, !tbaa !9
  %269 = getelementptr inbounds i64, ptr %267, i64 %268
  %270 = load i64, ptr %269, align 8, !tbaa !9
  %271 = getelementptr inbounds double, ptr %265, i64 %270
  store double %263, ptr %271, align 8, !tbaa !11
  br label %272

272:                                              ; preds = %257
  %273 = load i64, ptr %38, align 8, !tbaa !9
  %274 = add nsw i64 %273, 1
  store i64 %274, ptr %38, align 8, !tbaa !9
  br label %252, !llvm.loop !20

275:                                              ; preds = %252
  %276 = load ptr, ptr %22, align 8, !tbaa !5
  %277 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %276, i32 0, i32 4
  %278 = load ptr, ptr %277, align 8, !tbaa !17
  %279 = getelementptr inbounds double, ptr %278, i64 0
  %280 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %281 = load ptr, ptr %280, align 8, !tbaa !17
  %282 = getelementptr inbounds double, ptr %281, i64 0
  %283 = load i64, ptr %21, align 8, !tbaa !9
  %284 = sub nsw i64 %283, 1
  %285 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %284)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %279, i64 noundef 1, ptr noundef %282, i64 noundef 1, i64 noundef %285)
  store i64 0, ptr %38, align 8, !tbaa !9
  br label %286

286:                                              ; preds = %306, %275
  %287 = load i64, ptr %38, align 8, !tbaa !9
  %288 = load i64, ptr %21, align 8, !tbaa !9
  %289 = sub nsw i64 %288, 1
  %290 = icmp sle i64 %287, %289
  br i1 %290, label %291, label %309

291:                                              ; preds = %286
  %292 = load ptr, ptr %23, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %292, i32 0, i32 4
  %294 = load ptr, ptr %293, align 8, !tbaa !17
  %295 = load i64, ptr %38, align 8, !tbaa !9
  %296 = getelementptr inbounds double, ptr %294, i64 %295
  %297 = load double, ptr %296, align 8, !tbaa !11
  %298 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %299 = load ptr, ptr %298, align 8, !tbaa !17
  %300 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %37, i32 0, i32 4
  %301 = load ptr, ptr %300, align 8, !tbaa !17
  %302 = load i64, ptr %38, align 8, !tbaa !9
  %303 = getelementptr inbounds i64, ptr %301, i64 %302
  %304 = load i64, ptr %303, align 8, !tbaa !9
  %305 = getelementptr inbounds double, ptr %299, i64 %304
  store double %297, ptr %305, align 8, !tbaa !11
  br label %306

306:                                              ; preds = %291
  %307 = load i64, ptr %38, align 8, !tbaa !9
  %308 = add nsw i64 %307, 1
  store i64 %308, ptr %38, align 8, !tbaa !9
  br label %286, !llvm.loop !21

309:                                              ; preds = %286
  %310 = load ptr, ptr %23, align 8, !tbaa !5
  %311 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %310, i32 0, i32 4
  %312 = load ptr, ptr %311, align 8, !tbaa !17
  %313 = getelementptr inbounds double, ptr %312, i64 0
  %314 = getelementptr inbounds %"struct.alglib_impl::ae_vector", ptr %34, i32 0, i32 4
  %315 = load ptr, ptr %314, align 8, !tbaa !17
  %316 = getelementptr inbounds double, ptr %315, i64 0
  %317 = load i64, ptr %21, align 8, !tbaa !9
  %318 = sub nsw i64 %317, 1
  %319 = call noundef i64 @_ZN11alglib_impl8ae_v_lenEll(i64 noundef 0, i64 noundef %318)
  call void @_ZN11alglib_impl9ae_v_moveEPdlPKdll(ptr noundef %313, i64 noundef 1, ptr noundef %316, i64 noundef 1, i64 noundef %319)
  %320 = load ptr, ptr %24, align 8, !tbaa !5
  call void @_ZN11alglib_impl14ae_frame_leaveEPNS_8ae_stateE(ptr noundef %320)
  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_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) #2

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

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_impl24spline1dconvdiffinternalEPNS_9ae_vectorES1_S1_lS1_lS1_bS1_bS1_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.215 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.217 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.218 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.221 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.222 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.223 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.224 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.225 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.226 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.229 = 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_impl21spline1dconvdiffcubicEPNS_9ae_vectorES1_lldldS1_lS1_S1_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_vectorES1_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_vectorES1_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_vectorES1_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.215, 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.216, 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.217, 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.218, 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.219, 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.220, 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.221, 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.222, ptr noundef %11)
  %52 = icmp sgt i64 %8, 1
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %52, ptr noundef nonnull @.str.223, 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.224, ptr noundef %11)
  %55 = sext i1 %28 to i64
  %spec.select154 = add nsw i64 %55, %2
  %56 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_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.225, ptr noundef %11)
  %57 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_9ae_vectorElPNS_8ae_stateE(ptr noundef nonnull %15, i64 noundef %spec.select154, ptr noundef %11)
  call void @_ZN11alglib_impl9ae_assertEbPKcPNS_8ae_stateE(i1 noundef zeroext %57, ptr noundef nonnull @.str.226, ptr noundef %11)
  %58 = call noundef zeroext i1 @_ZN11alglib_impl14isfinitevectorEPNS_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.227, 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_impl11aredistinctEPNS_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.228, 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.not155 = icmp sgt i64 %8, 0
  %or.cond = and i1 %or.cond9, %.not.not155
  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
  %.0148156 = phi i64 [ 0, %.lr.ph ], [ %75, %63 ]
  %64 = load ptr, ptr %61, align 8, !tbaa !13
  %65 = getelementptr inbounds double, ptr %64, i64 %.0148156
  %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 %.0148156
  store double %72, ptr %74, align 8, !tbaa !14
  %75 = add nuw nsw i64 %.0148156, 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_implL38spline1d_spline1dgriddiffcubicinternalEPNS_9ae_vectorES1_lldldS1_S1_S1_S1_S1_S1_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_impl24spline1dconvdiffinternalEPNS_9ae_vectorES1_S1_lS1_lS1_bS1_bS1_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.229, ptr noundef %11)
  br i1 %.not.not155, label %.lr.ph159, label %._crit_edge

.lr.ph159:                                        ; 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.ph159.new

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

82:                                               ; preds = %82, %.lr.ph159.new
  %.1158 = phi i64 [ 0, %.lr.ph159.new ], [ %100, %82 ]
  %niter = phi i64 [ 0, %.lr.ph159.new ], [ %niter.next.1, %82 ]
  %83 = load ptr, ptr %78, align 8, !tbaa !13
  %84 = getelementptr inbounds double, ptr %83, i64 %.1158
  %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 %.1158
  %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 %.1158, 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 %.1158, 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.ph159
  %.1158.unr = phi i64 [ 0, %.lr.ph159 ], [ %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 %.1158.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 %.1158.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.not155, label %.lr.ph163, label %._crit_edge164

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

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

118:                                              ; preds = %118, %.lr.ph163.new
  %.2161 = phi i64 [ 0, %.lr.ph163.new ], [ %136, %118 ]
  %niter171 = phi i64 [ 0, %.lr.ph163.new ], [ %niter171.next.1, %118 ]
  %119 = load ptr, ptr %115, align 8, !tbaa !13
  %120 = getelementptr inbounds double, ptr %119, i64 %.2161
  %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 %.2161
  %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 %.2161, 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 %.2161, 2
  %niter171.next.1 = add i64 %niter171, 2
  %niter171.ncmp.1 = icmp eq i64 %niter171.next.1, %unroll_iter170
  br i1 %niter171.ncmp.1, label %._crit_edge164.loopexit.unr-lcssa, label %118, !llvm.loop !20

._crit_edge164.loopexit.unr-lcssa:                ; preds = %118, %.lr.ph163
  %.2161.unr = phi i64 [ 0, %.lr.ph163 ], [ %136, %118 ]
  %lcmp.mod169.not = icmp eq i64 %xtraiter168, 0
  br i1 %lcmp.mod169.not, label %._crit_edge164, label %._crit_edge164.loopexit.epilog-lcssa

._crit_edge164.loopexit.epilog-lcssa:             ; preds = %._crit_edge164.loopexit.unr-lcssa
  %137 = load ptr, ptr %115, align 8, !tbaa !13
  %138 = getelementptr inbounds double, ptr %137, i64 %.2161.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 %.2161.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_edge164

._crit_edge164:                                   ; preds = %._crit_edge164.loopexit.epilog-lcssa, %._crit_edge164.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_impl9ae_maxintEllPNS_8ae_stateE(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

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_impl24spline1dconvdiffinternalEPNS_9ae_vectorES1_S1_lS1_lS1_bS1_bS1_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